

* { box-sizing: border-box; }

@font-face {
	font-family: 'Barlow';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/ktu-fontset/Fonts/Barlow-Regular.ttf') format('truetype');
}
@font-face {
	font-family: 'Barlow';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/ktu-fontset/Fonts/Barlow-Medium.ttf') format('truetype');
}
@font-face {
	font-family: 'Barlow';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/ktu-fontset/Fonts/Barlow-SemiBold.ttf') format('truetype');
}
@font-face {
	font-family: 'Barlow';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/ktu-fontset/Fonts/Barlow-Bold.ttf') format('truetype');
}

html, body {
	margin: 0;
	height: 100%;
	overflow: hidden;
	font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: #1a1a1a;
	background: #e5e7ea;
}

h1 {
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0 0 1rem 0;
}

h3 {
	font-size: 0.9rem;
	font-weight: 600;
	color: #1a1a1a;
	margin: 1.1rem 0 0.6rem 0;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid #e5e5e5;
}
h3:first-of-type {
	margin-top: 0;
}

.tcs-panel-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	cursor: pointer;
}
.tcs-panel-header::after {
	content: '▾';
	font-size: 0.7rem;
	color: #999;
	flex-shrink: 0;
	transition: transform 0.15s ease;
}
.tcs-floating.collapsed .tcs-panel-header::after {
	transform: rotate(-90deg);
}
.tcs-floating.collapsed > *:not(.tcs-panel-header):not(.tcs-back-link) {
	display: none !important;
}
.tcs-floating.collapsed h3.tcs-panel-header {
	border-bottom: none;
	margin-bottom: 0;
}

.tcs-config-number {
	font-weight: 400;
	font-size: 0.8rem;
	color: #777;
}

body.tcs-readonly .tcs-floating-left,
body.tcs-readonly #tcs-inspector-panel,
body.tcs-readonly #tcs-context-menu,
body.tcs-readonly a.tcs-action,
body.tcs-readonly #tcs-undo {
	display: none !important;
}

body.tcs-readonly #tcs-config-panel label[for="tcs-start-edge"],
body.tcs-readonly #tcs-config-panel #tcs-start-edge,
body.tcs-readonly #tcs-config-panel br {
	display: none !important;
}

.tcs-back-link {
	display: inline-block;
	margin-bottom: 0.75rem;
	font-size: 0.85rem;
	color: #555;
	text-decoration: none;
}
.tcs-back-link:hover {
	color: #111;
	text-decoration: underline;
}

.tcs-page-header ~ * {
	--tcs-header-height: 49px;
}
@media (min-width: 1024px) {
	.tcs-page-header ~ * {
		--tcs-header-height: 57px;
	}
}

.tcs-page-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 49px;
	box-sizing: border-box;
	background: #ffffff;
	border-bottom: 1px solid #e5e5e5;
	z-index: 15;
}
@media (min-width: 1024px) { .tcs-page-header { height: 57px; } }

.tcs-page-header-inner {
	max-width: 1680px;
	height: 100%;
	margin: 0 auto;
	padding: 8px 16px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 14px;
}
@media (min-width: 640px) { .tcs-page-header-inner { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1024px) { .tcs-page-header-inner { padding-left: 48px; padding-right: 48px; gap: 18px; } }
@media (min-width: 1440px) { .tcs-page-header-inner { padding-left: 64px; padding-right: 64px; } }

.tcs-page-header-logo {
	display: block;
	height: 18px;
	width: auto;
	flex: none;
}
@media (min-width: 1024px) { .tcs-page-header-logo { height: 22.5px; } }

.tcs-page-header-title {
	margin: 0;
	min-width: 0;
	display: flex;
	align-items: baseline;
	gap: 0.45em;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	color: #222;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (min-width: 1024px) { .tcs-page-header-title { font-size: 1.0625rem; } }

.tcs-breadcrumb-link {
	flex: 0 1 auto;
	min-width: 2.5em;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 400;
	color: #555;
	text-decoration: none;
}
.tcs-breadcrumb-link:hover,
.tcs-breadcrumb-link:focus-visible {
	color: #111;
	text-decoration: underline;
}
.tcs-breadcrumb-sep {
	flex: none;
	font-weight: 400;
	color: #999;
}
.tcs-breadcrumb-aktuell {
	flex: none;
	font-weight: 600;
	color: #222;
}

.tcs-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tcs-canvas-toolbar {
	position: fixed;
	top: calc(var(--tcs-header-height, 0px) + 0.5rem);
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.tcs-canvas-pill {
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid #ddd;
	border-radius: 999px;
	padding: 0.3rem 0.9rem;
	font-size: 0.85rem;
	color: #555;
}

a.tcs-canvas-pill {
	text-decoration: none;
}
a.tcs-canvas-pill:hover {
	background: #fff;
	color: #222;
}

.tcs-view-panel {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	padding: 0.15rem 0.35rem 0.15rem 0.8rem;
}
.tcs-view-panel-title {
	margin-right: 0.35rem;
	font-size: 0.8rem;
	color: #777;
}
.tcs-view-panel-sep {
	width: 1px;
	align-self: stretch;
	margin: 0.2rem 0.3rem;
	background: #ddd;
}
.tcs-view-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	width: 1.75rem;
	height: 1.5rem;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: #666;
	cursor: pointer;
}
.tcs-view-toggle[hidden] {
	display: none;
}
.tcs-view-toggle:hover {
	background: #eee;
	color: #222;
}
.tcs-view-toggle[aria-pressed="true"] {
	background: #333;
	color: #fff;
}
.tcs-view-toggle[aria-disabled="true"] {
	background: transparent;
	color: #c4c4c4;
	cursor: not-allowed;
}
.tcs-view-toggle[aria-pressed="true"][aria-disabled="true"] {
	background: #e4e4e4;
	color: #fff;
}
.tcs-view-toggle:focus-visible {
	outline: 2px solid #2f6fed;
	outline-offset: 1px;
}
.tcs-view-icon {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.tcs-view-toggle .tcs-view-icon-on {
	display: none;
}
.tcs-view-toggle[aria-pressed="true"] .tcs-view-icon-on {
	display: inline;
}
.tcs-view-toggle[aria-pressed="true"] .tcs-view-icon-off {
	display: none;
}
.tcs-view-icon-off {
	fill: none;
	stroke: currentColor;
	stroke-width: 1;
	stroke-dasharray: 1.5 1.3;
}

.tcs-canvas {
	position: fixed;
	inset: 0;
	
	top: var(--tcs-header-height, 0px);
	width: 100vw;
	height: calc(100vh - var(--tcs-header-height, 0px));
	
	background: #ffffff;
	touch-action: none;
}

.tcs-floating {
	background: white;
	border: 1px solid #cfcfcf;
	padding: 1.1rem;
	overflow: hidden;
}

.tcs-floating-left {
	position: fixed;
	top: calc(var(--tcs-header-height, 0px) + 1rem);
	left: 1rem;
	width: 280px;
	max-height: calc(100vh - var(--tcs-header-height, 0px) - 2rem);
	overflow-y: auto;
	z-index: 10;
	
	scrollbar-gutter: stable;
}

.tcs-right-stack {
	position: fixed;
	top: calc(var(--tcs-header-height, 0px) + 1rem);
	right: 1rem;
	width: 260px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	z-index: 10;
	
	max-height: calc(100vh - var(--tcs-header-height, 0px) - 2rem);
	overflow-y: auto;
}
.tcs-right-stack > * {
	flex-shrink: 0;
}

.tcs-palette-area {
	display: flex;
	flex-direction: column;
}

@media (max-width: 700px) {
	.tcs-floating-left {
		left: 1rem;
		right: 1rem;
		width: auto;
		max-height: calc(70vh - var(--tcs-header-height, 0px));
	}

	.tcs-right-stack {
		left: 1rem;
		right: 1rem;
		top: auto;
		bottom: 1rem;
		width: auto;
	}
}

.tcs-accordion {
	border-bottom: 1px solid #e5e5e5;
}
.tcs-accordion:first-child {
	border-top: 1px solid #e5e5e5;
}

.tcs-floating-left > .tcs-accordion:first-child {
	border-top: none;
}
.tcs-floating-left > .tcs-accordion:first-child > .tcs-accordion-header {
	padding-top: 0;
}

.tcs-floating-left > .tcs-accordion[hidden]:first-child + .tcs-accordion {
	border-top: none;
}
.tcs-floating-left > .tcs-accordion[hidden]:first-child + .tcs-accordion > .tcs-accordion-header {
	padding-top: 0;
}

.tcs-accordion-header {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	padding: 0.6rem 0.1rem;
	cursor: pointer;
	font-size: 0.95rem;
}
.tcs-accordion-header:hover {
	background: #fafafa;
}
.tcs-accordion-subtitle {
	color: #888;
	font-size: 0.8rem;
}

.tcs-accordion-content {
	padding: 0 0.1rem 0.75rem 0.1rem;
}
.tcs-accordion.collapsed .tcs-accordion-content {
	display: none;
}

.tcs-tile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
	gap: 0.5rem;
}

.tcs-tile {
	border: 1px solid #ddd;
	padding: 0.4rem;
	text-align: center;
	cursor: pointer;
	min-width: 0;
}
.tcs-tile:hover {
	border-color: #999;
}
.tcs-tile.active {
	border-color: #111;
	border-width: 2px;
	padding: calc(0.4rem - 1px);
}
.tcs-tile img {
	width: 100%;
	height: 44px;
	object-fit: contain;
	display: block;
}
.tcs-tile-caption {
	font-size: 0.68rem;
	color: #555;
	margin-top: 0.3rem;
	line-height: 1.2;
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
}

.tcs-single-variant-link {
	display: inline-block;
	color: #1a1a1a;
	text-decoration: underline;
	font-size: 0.9rem;
}
.tcs-single-variant-link:hover {
	color: #555;
}

.tcs-material-segmented {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}
.tcs-material-segment {
	border: 1px solid #ddd;
	background: #fff;
	padding: 0.35rem 0.6rem;
	font-size: 0.82rem;
	cursor: pointer;
	color: #333;
}
.tcs-material-segment:hover {
	border-color: #999;
}
.tcs-material-segment.active {
	border-color: #111;
	border-width: 2px;
	padding: 0.3rem 0.55rem;
	font-weight: 600;
}
.tcs-material-color-row {
	margin-top: 0.5rem;
}
.tcs-material-color-row label {
	display: block;
	margin-bottom: 0.3rem;
}
.tcs-material-swatch-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.tcs-material-swatch {
	flex-shrink: 0;
	width: 2.2rem;
	height: 2.2rem;
	border: 1px solid #bbb;
	background-size: cover;
	background-position: center;
}
.tcs-material-swatch-row select {
	flex: 1;
	min-width: 0;
}

.tcs-dimension-row {
	display: flex;
	gap: 0.5rem;
}
.tcs-dimension-row input {
	flex: 1;
	min-width: 0;
}

input.tcs-field-invalid {
	border-color: #b91c1c;
	outline-color: #b91c1c;
	background: #fef2f2;
}
.tcs-field-error {
	font-size: 0.8rem;
	color: #b91c1c;
	margin: 0.35rem 0 0;
}
.tcs-field-error[hidden] {
	display: none;
}

label {
	display: block;
	font-size: 0.85rem;
	margin-top: 0.5rem;
}

input, select, textarea {
	width: 100%;
	padding: 0.4rem;
	margin-top: 0.15rem;
	border: 1px solid #ccc;
	font-size: 0.9rem;
	background: white;
	color: #1a1a1a;
	font-family: inherit;
}

textarea {
	resize: vertical;
}

#tcs-eny-width:disabled,
#tcs-eny-height:disabled {
	background: #f0f0f0;
	color: #666;
	cursor: not-allowed;
}

a.tcs-action {
	display: inline-block;
	margin-top: 0.6rem;
	padding: 0.5rem 1rem;
	background: #111;
	color: white;
	text-decoration: none;
	font-size: 0.85rem;
}
a.tcs-action:hover {
	background: #333;
}

.tcs-action-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: 1fr;
	column-gap: 0.5rem;
}
.tcs-action-grid > a.tcs-action {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.tcs-action-grid > a.tcs-action-wide {
	grid-column: 1 / -1;
}
a.tcs-action.tcs-action-secondary {
	background: white;
	color: #111;
	border: 1px solid #111;
}
a.tcs-action.tcs-action-secondary:hover {
	background: #f0f0f0;
}

a.tcs-action.tcs-action-busy {
	opacity: 0.6;
	pointer-events: none;
}

.tcs-load-config {
	margin: 0 0 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #e5e5e5;
}
.tcs-load-config label {
	margin-top: 0;
}
.tcs-load-config-row {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.15rem;
}
.tcs-load-config-row input {
	flex: 1;
	min-width: 0;
	margin-top: 0;
}
.tcs-load-config-row button {
	flex-shrink: 0;
	padding: 0 1rem;
	border: 0;
	background: #111;
	color: white;
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
}
.tcs-load-config-row button:hover:not(:disabled) {
	background: #333;
}
.tcs-load-config-row button:disabled {
	opacity: 0.5;
	cursor: default;
}
.tcs-load-config-status {
	font-size: 0.8rem;
	color: #666;
	margin: 0.35rem 0 0;
}
.tcs-load-config-status.tcs-load-config-error {
	color: #b91c1c;
}

.tcs-hint {
	font-size: 0.8rem;
	color: #999;
	margin-top: 0.75rem;
}

.tcs-info-hint {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #bbb;
	color: #fff;
	font-size: 0.7rem;
	font-style: normal;
	font-weight: 600;
	line-height: 1;
	cursor: help;
	flex: none;
}

.tcs-info-hint-bubble {
	position: fixed;
	background: #1a1a1a;
	color: #fff;
	padding: 0.4rem 0.6rem;
	border-radius: 4px;
	font-size: 0.75rem;
	line-height: 1.3;
	white-space: pre-line;
	max-width: 220px;
	pointer-events: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	z-index: 1000;
}

#tcs-inspector-panel p {
	margin: 0.3rem 0;
	font-size: 0.9rem;
}
#tcs-inspector-module-type {
	font-weight: 600;
}

.tcs-finish-overlay {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 1rem;
	background: #ffffff;
}
.tcs-finish-overlay.tcs-visible {
	display: flex;
}
.tcs-finish-overlay-spinner {
	width: 2.5rem;
	height: 2.5rem;
	border: 3px solid #ddd;
	border-top-color: #111;
	border-radius: 50%;
	animation: tcs-spin 0.8s linear infinite;
}
.tcs-finish-overlay p {
	font-size: 0.95rem;
	color: #555;
}
@keyframes tcs-spin {
	to { transform: rotate(360deg); }
}

.tcs-context-menu {
	position: fixed;
	z-index: 1000;
	background: white;
	border: 1px solid #ccc;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	min-width: 120px;
}
.tcs-context-menu a {
	display: block;
	padding: 0.5rem 0.9rem;
	color: #1a1a1a;
	text-decoration: none;
	font-size: 0.9rem;
}
.tcs-context-menu a:hover {
	background: #f4f4f4;
}

.tcs-context-menu #tcs-context-delete {
	color: #c0392b;
}

#tcs-inspector-content label:first-child {
	margin-top: 0.75rem;
}
#tcs-inspector-content input[type="file"] {
	padding: 0.3rem;
}
.tcs-content-remove {
	display: inline-block;
	margin-top: 0.35rem;
	font-size: 0.8rem;
	color: #c0392b;
	text-decoration: underline;
}
.tcs-content-remove:hover {
	color: #8e2c1f;
}

.tcs-content-error {
	margin-top: 0.35rem;
	font-size: 0.8rem;
	color: #c0392b;
}

.tcs-engrave-text {
	text-anchor: middle;
	dominant-baseline: central;
	pointer-events: none;
	user-select: none;
}

.tcs-engrave-durchgang {
	fill: #f2f2f2;
	
}

.tcs-engrave-ausgelegt {
	fill: #111111;
}

.tcs-engrave-hinterlegt {
	fill: #0a0a0a;
}

.tcs-engrave-hinterleuchtet {
	fill: #ffffff;
	filter: drop-shadow(0 0 2px #ffffff) drop-shadow(0 0 7px rgba(255, 255, 255, 0.85));
}

.tcs-engrave-day-night-glas {
	fill: #111111;
}

.tcs-engrave-graphic,
.tcs-engrave-vector {
	pointer-events: none;
}
.tcs-engrave-graphic.tcs-engrave-durchgang {
	filter: brightness(0) invert(1);
}
.tcs-engrave-graphic.tcs-engrave-ausgelegt {
	filter: brightness(0);
}
.tcs-engrave-graphic.tcs-engrave-hinterlegt {
	filter: brightness(0);
}
.tcs-engrave-graphic.tcs-engrave-hinterleuchtet {
	filter: brightness(0) invert(1) drop-shadow(0 0 2px #ffffff) drop-shadow(0 0 7px rgba(255, 255, 255, 0.85));
}
.tcs-engrave-graphic.tcs-engrave-day-night-glas {
	filter: brightness(0);
}

.tcs-foil-graphic {
	pointer-events: none;
}

.tcs-pictogram-category {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #777;
	margin: 0.6rem 0 0.35rem 0;
}
.tcs-pictogram-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
	gap: 0.4rem;
}
.tcs-pictogram-tile {
	border: 1px solid #ddd;
	background: #fff;
	padding: 0.35rem;
	text-align: center;
	cursor: pointer;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}
.tcs-pictogram-tile:hover:not(:disabled) {
	border-color: #999;
}
.tcs-pictogram-tile.selected {
	border-color: #111;
	border-width: 2px;
	padding: calc(0.35rem - 1px);
}
.tcs-pictogram-tile:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.tcs-pictogram-tile-svg {
	width: 100%;
	height: 34px;
	fill: #333;
}
.tcs-pictogram-tile span {
	font-size: 0.65rem;
	color: #555;
	line-height: 1.15;
}

.tcs-night-overlay {
	fill: #04060a;
	fill-opacity: 0.72;
	pointer-events: none;
}

body.tcs-night-active .tcs-engrave-hinterlegt {
	opacity: 0.28;
}
body.tcs-night-active .tcs-plate-edge,
body.tcs-night-active .tcs-cut-edge {
	opacity: 0.28;
}

body.tcs-night-active .tcs-engrave-hinterleuchtet {
	filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}
body.tcs-night-active .tcs-engrave-graphic.tcs-engrave-hinterleuchtet {
	filter: brightness(0) invert(1) drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

body.tcs-night-active .tcs-engrave-day-night-glas {
	fill: #ffffff;
	filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}
body.tcs-night-active .tcs-engrave-graphic.tcs-engrave-day-night-glas {
	filter: brightness(0) invert(1) drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

body.tcs-night-active .tcs-engrave-durchgang {
	fill: #2a2a2a;
	filter: none;
}
body.tcs-night-active .tcs-engrave-graphic.tcs-engrave-durchgang {
	filter: brightness(0.12);
}

body.tcs-night-active .tcs-eny-preview-image,
body.tcs-night-active .tcs-module-icon {
	filter: brightness(0.35);
}

.tcs-scale-figure {
	fill: #7d858c;
	opacity: 0.32;
}
.tcs-scale-figure-stroke {
	fill: none;
	stroke: #7d858c;
}
.tcs-scale-figure-stroke.tcs-scale-figure-filled {
	fill: #7d858c;
}
.tcs-scale-figure-label {
	font-size: 20px;
	fill: #5f666c;
	text-anchor: middle;
	dominant-baseline: middle;
	pointer-events: none;
	user-select: none;
}
.tcs-scale-floor {
	fill: #b9bcbf;
	pointer-events: none;
}

.tcs-scale-camera-funnel {
	fill: #19b5b5;
	fill-opacity: 0.10;
	stroke: #19b5b5;
	stroke-opacity: 0.55;
	stroke-width: 1;
}
.tcs-scale-camera-edge {
	fill: none;
	stroke: #19b5b5;
	stroke-opacity: 0.55;
	stroke-width: 1;
}

.tcs-scale-camera-assumed .tcs-scale-camera-edge {
	stroke-dasharray: 6 4;
	stroke-opacity: 0.8;
}
.tcs-scale-camera-assumed .tcs-scale-camera-funnel {
	stroke: none;
}
.tcs-scale-camera-axis {
	stroke: #12a3a3;
	stroke-width: 1.5;
	stroke-dasharray: 8 5;
}
.tcs-scale-camera-label {
	font-size: 11px;
	fill: #0f8f8f;
	font-weight: 600;
	pointer-events: none;
	user-select: none;
}

.tcs-scale-reach-band {
	fill: #e08a00;
	stroke: none;
}
.tcs-scale-reach-band-din {
	fill-opacity: 0.08;
}
.tcs-scale-reach-band-barrierefrei {
	fill-opacity: 0.20;
}
.tcs-scale-reach-leader {
	stroke: #e08a00;
	stroke-opacity: 0.55;
	stroke-width: 1;
}
.tcs-scale-reach-axis {
	stroke: #c47800;
	stroke-width: 1.5;
	stroke-dasharray: 8 5;
}
.tcs-scale-reach-label {
	font-size: 11px;
	fill: #a86500;
	font-weight: 600;
	pointer-events: none;
	user-select: none;
}

.tcs-dim-line,
.tcs-dim-tick,
.tcs-station-dim-line,
.tcs-station-dim-tick,
.tcs-height-marker-line,
.tcs-height-marker-tick {
	stroke: #888;
	stroke-width: 1;
	pointer-events: none;
}
.tcs-side-movement-area .tcs-station-dim-line {
	stroke: #b0b0b0;
	stroke-dasharray: 8 5;
}
.tcs-side-movement-area .tcs-station-dim-tick {
	stroke: #b0b0b0;
}
.tcs-side-movement-area .tcs-station-dim-label {
	fill: #8a8a8a;
}
.tcs-dim-label,
.tcs-station-dim-label,
.tcs-height-marker-label {
	font-size: 11px;
	fill: #666;
	text-anchor: middle;
	dominant-baseline: middle;
	pointer-events: none;
	user-select: none;
}

.tcs-height-marker--ok .tcs-height-marker-line,
.tcs-height-marker--ok .tcs-height-marker-tick {
	stroke: #2e8b3d;
}
.tcs-height-marker--ok .tcs-height-marker-label {
	fill: #217a30;
	font-weight: 600;
}

.tcs-height-marker-warning-triangle {
	fill: #f5c518;
	stroke: #8a6d00;
	stroke-width: 0.75;
	pointer-events: none;
}
.tcs-height-marker-warning-mark {
	font-size: 8px;
	font-weight: 700;
	fill: #1a1a1a;
	text-anchor: middle;
	dominant-baseline: middle;
	pointer-events: none;
	user-select: none;
}

svg.tcs-hinweise-unlesbar .tcs-height-marker,
svg.tcs-hinweise-unlesbar .tcs-height-marker * {
	visibility: hidden;
}

.tcs-height-marker-hit {
	pointer-events: auto;
	cursor: help;
}

.tcs-eny-bell-dialog {
	position: fixed;
	z-index: 1100;
	width: 300px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
	font-size: 0.85rem;
}
.tcs-eny-bell-dialog h3 {
	margin: 0 0 0.8rem;
	font-size: 1rem;
}
.tcs-eny-bell-dialog-body {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
}
.tcs-eny-bell-dialog-preview {
	width: 90px;
	height: 60px;
	object-fit: contain;
	background: #9a9d9f;
	padding: 4px;
	flex: none;
}
.tcs-eny-bell-dialog-fields {
	flex: 1;
	min-width: 0;
}
.tcs-eny-bell-dialog-fields label {
	display: block;
	margin-bottom: 0.6rem;
}
.tcs-eny-bell-dialog-fields select,
.tcs-eny-bell-dialog-fields input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 0.25rem;
}
.tcs-eny-bell-dialog-fields .tcs-hint {
	margin: 0;
}
.tcs-eny-bell-dialog-actions {
	display: flex;
	gap: 0.5rem;
}

.tcs-inlay-color-line {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.tcs-inlay-color-line select {
	flex: 1;
}
.tcs-inlay-swatch {
	width: 1.6rem;
	height: 1.6rem;
	flex: none;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 3px;
}

.tcs-keepout {
	fill: rgba(200, 30, 30, 0.12);
	stroke: rgba(200, 30, 30, 0.75);
	stroke-width: 0.6;
	stroke-dasharray: 3 2;
	vector-effect: non-scaling-stroke;
	pointer-events: none;
}

.tcs-geraet-feld,
.tcs-geraet-taste {
	cursor: pointer;
}
.tcs-geraet-feld:hover {
	fill-opacity: 0.1;
}

.tcs-floating-left.tcs-geraet-panel {
	width: 320px;
}
@media (max-width: 700px) {
	.tcs-floating-left.tcs-geraet-panel {
		width: auto;
	}
}

body.tcs-geraet-modus-voll .tcs-right-stack,
body.tcs-geraet-modus-beschriftung .tcs-right-stack {
	max-height: calc(100vh - var(--tcs-header-height, 0px) - 2rem);
	overflow-y: auto;
}
body.tcs-geraet-modus-voll .tcs-right-stack > *,
body.tcs-geraet-modus-beschriftung .tcs-right-stack > * {
	flex-shrink: 0;
}
.tcs-geraet-intro {
	margin-top: 0;
}
.tcs-geraet-felder {
	width: 100%;
	border-collapse: collapse;
	margin-top: 0.6rem;
}
.tcs-geraet-felder th {
	width: 1%;
	white-space: nowrap;
	text-align: left;
	vertical-align: top;
	padding: 0.2rem 0.5rem 0.2rem 0;
}
.tcs-geraet-felder th label {
	margin-top: 0.45rem;
	font-weight: 400;
	font-size: 0.8rem;
	color: #555;
}
.tcs-geraet-felder td {
	padding: 0.2rem 0;
}
.tcs-geraet-felder td input,
.tcs-geraet-felder td textarea {
	margin-top: 0;
	padding: 0.3rem 0.4rem;
}
.tcs-geraet-felder td textarea {
	resize: none;
	line-height: 1.25;
}
.tcs-geraet-zeile-aktiv th label {
	color: #3b7dd8;
	font-weight: 600;
}
.tcs-geraet-zeile-aktiv td input,
.tcs-geraet-zeile-aktiv td textarea {
	border-color: #3b7dd8;
}

.tcs-geraet-inspector-teil {
	margin: 0.9rem 0 0.4rem;
	padding-top: 0.6rem;
	border-top: 1px solid #e2e5e8;
	font-size: 0.8rem;
	font-weight: 600;
}
.tcs-geraet-check {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}
.tcs-geraet-check input {
	width: auto;
	margin: 0;
}
#tcs-geraet-panel select:disabled {
	background: #f0f0f0;
	color: #666;
	cursor: not-allowed;
}
.tcs-geraet-summary {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.3rem 0.75rem;
	margin: 0;
	font-size: 0.82rem;
}
.tcs-geraet-summary dt {
	color: #666;
}
.tcs-geraet-summary dd {
	margin: 0;
	text-align: right;
	font-weight: 500;
	overflow-wrap: anywhere;
}
.tcs-geraet-summary dd.tcs-geraet-fehlt {
	color: #b45309;
	font-weight: 400;
}

.tcs-geraet-summary dd.tcs-geraet-sonder {
	color: #9a3412;
}
.tcs-geraet-summary dd.tcs-geraet-sonder-grund {
	color: #9a3412;
	font-weight: 400;
	font-size: 0.92em;
}

.tcs-geraet-konfiguration .tcs-geraet-summary {
	margin-bottom: 0.25rem;
}
#tcs-geraet-nummer,
#tcs-geraet-nummer-wert {
	white-space: nowrap;
	overflow-wrap: normal;
}
.tcs-geraet-konfiguration .tcs-hint a {
	color: #3b7dd8;
	margin-right: 0.15rem;
}
.tcs-geraet-konfiguration .tcs-hint.tcs-geraet-hinweis-fehler {
	color: #b91c1c;
}
a.tcs-action.tcs-geraet-aus {
	opacity: 0.45;
	pointer-events: none;
}

.tcs-geraet-nurlesen-hinweis {
	margin-top: 0;
	color: #b45309;
}
.tcs-geraet-nurlesen-hinweis a {
	color: #3b7dd8;
}
body.tcs-geraet-nurlesen #tcs-geraet-laden-oeffnen,
body.tcs-geraet-nurlesen #tcs-geraet-speichern,
body.tcs-geraet-nurlesen #tcs-geraet-speichern-hinweis,
body.tcs-geraet-nurlesen #tcs-geraet-xml-import,
body.tcs-geraet-nurlesen #tcs-geraet-zuruecksetzen {
	display: none !important;
}
body.tcs-geraet-nurlesen .tcs-geraet-felder {
	pointer-events: none;
}

.tcs-nb-hintergrund {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(20, 22, 26, 0.38);
}
.tcs-nb-dialog {
	width: min(1100px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	box-shadow: 0 10px 36px rgba(0, 0, 0, 0.24);
	font-size: 0.85rem;
}
.tcs-nb-dialog h3 {
	margin: 0 0 0.8rem;
	font-size: 1rem;
}
.tcs-nb-leiste {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.5rem 0.7rem;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid #e5e5e5;
}
.tcs-nb-feldlabel {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.75rem;
	color: #555;
}
.tcs-nb-feldlabel select {
	min-width: 11.5rem;
	height: 2rem;
}
.tcs-nb-einheit {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: #555;
}
.tcs-nb-einheit input {
	width: 4.5rem;
	height: 2rem;
}
.tcs-nb-gruppe {
	display: flex;
	gap: 2px;
}
.tcs-nb-werkzeug {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.35rem;
	border: 1px solid #cfcfcf;
	background: white;
	color: #111;
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
}
.tcs-nb-werkzeug svg {
	width: 16px;
	height: 16px;
}
.tcs-nb-werkzeug:hover {
	background: #f0f0f0;
}
.tcs-nb-werkzeug.tcs-nb-an {
	background: #111;
	border-color: #111;
	color: white;
}
.tcs-nb-werkzeug:focus-visible,
.tcs-nb-knopf:focus-visible,
.tcs-nb-feld-knopf:focus-visible {
	outline: 2px solid #3b7dd8;
	outline-offset: 1px;
}
.tcs-nb-werkzeug-text {
	gap: 0.3rem;
	font-size: 0.85rem;
}
.tcs-nb-farbfeld {
	display: block;
	width: 1.05rem;
	height: 1.05rem;
	border: 1px solid rgba(0, 0, 0, 0.3);
}
.tcs-nb-farben .tcs-nb-werkzeug.tcs-nb-an {
	background: white;
	border-color: #111;
	box-shadow: inset 0 0 0 2px #111;
}

.tcs-nb-farbe-eigen {
	width: 2rem;
	height: 2rem;
	padding: 3px;
	border: 0;
	border-radius: 50%;
	background: conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935);
	cursor: pointer;
}
.tcs-nb-farbe-eigen::-webkit-color-swatch-wrapper {
	padding: 0;
}
.tcs-nb-farbe-eigen::-webkit-color-swatch {
	border: 2px solid white;
	border-radius: 50%;
}
.tcs-nb-farbe-eigen::-moz-color-swatch {
	border: 2px solid white;
	border-radius: 50%;
}
.tcs-nb-bildleiste {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid #e5e5e5;
}
.tcs-nb-bildleiste[hidden] {
	display: none;
}
.tcs-nb-koerper {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	gap: 1.1rem;
	padding-top: 0.9rem;
}
@media (max-width: 980px) {
	.tcs-nb-koerper {
		grid-template-columns: minmax(0, 1fr);
	}
}
.tcs-nb-spalte {
	min-width: 0;
}
.tcs-nb-spaltenkopf {
	font-size: 0.75rem;
	color: #555;
	margin-bottom: 0.35rem;
}
.tcs-nb-eingabe {
	min-height: 9rem;
	max-height: 22rem;
	overflow: auto;
	padding: 0.6rem 0.7rem;
	border: 1px solid #bdbdbd;
	line-height: 1.25;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	cursor: text;
}
.tcs-nb-eingabe:focus {
	outline: 2px solid #3b7dd8;
	outline-offset: -1px;
}
.tcs-nb-absatz {
	min-height: 1em;
}
.tcs-nb-bild {
	vertical-align: baseline;
	max-width: 100%;
	margin: 0 0.15em;
	cursor: pointer;
}
.tcs-nb-bild-gewaehlt {
	outline: 2px solid #3b7dd8;
	outline-offset: 1px;
}
.tcs-nb-hinweis {
	margin: 0.4rem 0 0;
}
.tcs-nb-vorschau-flaeche {
	background: #d9dbde;
	padding: 0.6rem;
}
.tcs-nb-vorschau {
	display: block;
	width: 100%;
	height: auto;
	max-height: 22rem;
}
.tcs-nb-echt {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 0.5rem;
	font-size: 0.75rem;
	color: #555;
}
.tcs-nb-echtgroesse {
	flex: none;
	max-width: 100%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.tcs-nb-meldungen {
	flex: 1;
	min-width: 0;
	align-self: center;
}
.tcs-nb-status {
	margin: 0;
	color: #2f6b2f;
}
.tcs-nb-status.tcs-nb-status-warnung {
	color: #b45309;
	font-weight: 600;
}
.tcs-nb-fehler {
	margin: 0.4rem 0 0;
	color: #b91c1c;
}

.tcs-nb-aktionen {
	position: sticky;
	bottom: -1.1rem;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 0.5rem;
	margin: 1rem -1.1rem -1.1rem;
	padding: 0.7rem 1.1rem;
	border-top: 1px solid #e5e5e5;
	background: white;
}
.tcs-nb-knopf {
	padding: 0.5rem 1rem;
	border: 1px solid #111;
	background: white;
	color: #111;
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
}
.tcs-nb-knopf:hover {
	background: #f0f0f0;
}
.tcs-nb-knopf-primaer {
	background: #111;
	color: white;
}
.tcs-nb-knopf-primaer:hover {
	background: #333;
}
.tcs-nb-knopf-klein {
	padding: 0.25rem 0.6rem;
	font-size: 0.8rem;
}

.tcs-nb-feld {
	display: flex;
	gap: 0.3rem;
	align-items: flex-start;
}
.tcs-nb-feld input,
.tcs-nb-feld textarea {
	flex: 1;
	min-width: 0;
}

.tcs-nb-feld textarea {
	white-space: pre;
	overflow-x: auto;
}
.tcs-nb-feld-gestaltet input,
.tcs-nb-feld-gestaltet textarea {
	background: #f4f6fa;
	font-style: italic;
	cursor: pointer;
}
.tcs-nb-feld-knopf {
	flex: none;
	padding: 0.2rem 0.5rem;
	border: 1px solid #cfcfcf;
	background: white;
	font: inherit;
	font-size: 0.8rem;
	cursor: pointer;
}
.tcs-nb-feld-knopf:hover {
	background: #f0f0f0;
}

#tcs-view-night[aria-pressed="true"] {
	background: #e9ecf2;
}
#tcs-view-night[aria-pressed="true"]:hover {
	background: #dde2eb;
}
.tcs-view-icon-farbig .tcs-view-icon-off,
.tcs-view-icon-farbig .tcs-view-icon-on {
	fill: initial;
	stroke: none;
	stroke-dasharray: none;
}
.tcs-view-sonne circle {
	fill: #ffd54f;
	stroke: #e0a800;
	stroke-width: 1;
}
.tcs-view-sonne-strahlen line {
	stroke: #ffb300;
	stroke-width: 1.8;
	stroke-linecap: round;
}
.tcs-view-mond circle {
	fill: #2b3a55;
}
.tcs-view-toggle[aria-disabled="true"] .tcs-view-icon-farbig {
	filter: grayscale(1);
	opacity: 0.45;
}

.tcs-load-config-link {
	display: inline-block;
	margin: 0 0 0.75rem;
	color: #222;
	text-decoration: underline;
	font-size: 0.9rem;
}
.tcs-load-config-link:hover {
	color: #000;
}
.tcs-load-config-dialog {
	width: min(26rem, calc(100vw - 2rem));
	padding: 1.25rem 1.25rem 1rem;
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.tcs-load-config-dialog::backdrop {
	background: rgba(20, 20, 20, 0.35);
}
.tcs-load-config-dialog .tcs-load-config {
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
}
.tcs-load-config-title {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
}
.tcs-load-config-close {
	position: absolute;
	top: -0.6rem;
	right: -0.4rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	background: transparent;
	font-size: 1.4rem;
	line-height: 1;
	color: #555;
	cursor: pointer;
}
.tcs-load-config-close:hover {
	color: #000;
}

#tcs-config-panel .tcs-config-number,
#tcs-mpl-summary-panel .tcs-config-number {
	display: block;
	margin-top: 0.15rem;
	white-space: nowrap;
}

.tcs-cad-input {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 900;
}
.tcs-cad-input[hidden] {
	display: none;
}
.tcs-cad-box {
	position: fixed;
	display: flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.2rem 0.45rem;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 0.75rem;
	color: #6b6e70;
	pointer-events: auto;
}
.tcs-cad-label {
	font-weight: 400;
}
.tcs-cad-field {
	width: 4.2em;
	padding: 0.05rem 0.2rem;
	font: inherit;
	font-size: 0.8rem;
	text-align: right;
	border: 1px solid #c8cacc;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
}
.tcs-cad-field:focus {
	outline: none;
	border-color: #222;
}
.tcs-cad-unit {
	color: #9a9c9e;
}
.tcs-cad-info {
	position: fixed;
	max-width: 22rem;
	font-size: 0.7rem;
	line-height: 1.25;
	pointer-events: none;
}
.tcs-cad-hint {
	color: #6b6e70;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 0.05rem 0.4rem;
	white-space: nowrap;
}
.tcs-cad-error:empty {
	display: none;
}
.tcs-cad-error {
	margin-top: 0.15rem;
	padding: 0.15rem 0.3rem;
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 3px;
	white-space: normal;
}
.tcs-cad-invalid .tcs-cad-field {
	border-color: #b91c1c;
	background: #fef2f2;
}

.tcs-hinweise {
	margin: 0.5rem 0 0.75rem;
	font-size: 0.78rem;
	line-height: 1.3;
}
.tcs-hinweise[hidden] {
	display: none;
}
.tcs-hinweise-titel {
	margin: 0 0 0.2rem;
	font-weight: 600;
}
.tcs-hinweise-liste {
	margin: 0;
	padding: 0;
	list-style: none;
}
.tcs-hinweise-liste li {
	margin: 0.2rem 0;
	padding-left: 1.25rem;
	
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpolygon points='8,0.6 15.4,13.4 0.6,13.4' fill='%23f5c518' stroke='%238a6d00' stroke-width='1'/%3E%3Ctext x='8' y='11.6' font-family='Arial,sans-serif' font-size='9' font-weight='700' text-anchor='middle' fill='%231a1a1a'%3E!%3C/text%3E%3C/svg%3E") no-repeat 0 0.1em / 0.95rem auto;
}
.tcs-hinweise a.tcs-hinweis {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}
.tcs-hinweise a.tcs-hinweis:hover,
.tcs-hinweise a.tcs-hinweis:focus-visible {
	text-decoration: underline;
}
