

.tcs-custom-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.6rem;
}

.tcs-custom-row b.tcs-custom-name {
	flex-basis: 100%;
	font-weight: 600;
	margin-bottom: -0.15rem;
}
.tcs-custom-row input {
	width: 3.5rem;
	margin-top: 0;
}

.tcs-custom-row a {
	font-size: 0.8rem;
	color: #1a1a1a;
	text-decoration: underline;
	font-weight: 400;
}
.tcs-custom-row a:hover {
	color: #555;
}

.tcs-grid line {
	stroke: #eee;
	stroke-width: 1;
}

.tcs-frame {
	fill: none;
	stroke: #1a1a1a;
	stroke-width: 2;
}

.tcs-module-group {
	cursor: pointer;
}

.tcs-module {
	fill: url(#tcs-steel-tile);
	
	stroke: transparent;
	stroke-width: 1.5;
	transition: stroke 0.1s ease;
}
.tcs-module-group:hover .tcs-module {
	stroke: #1a1a1a;
	stroke-width: 2;
}
.tcs-module-group.selected .tcs-module {
	stroke: #1560d4;
	stroke-width: 2.5;
}

.tcs-module-icon {
	pointer-events: none;
}

.tcs-unterputz-border {
	fill: url(#tcs-steel-tile);
	pointer-events: none;
}

.tcs-eny-preview-image {
	pointer-events: none;
}

.tcs-eny-configure-hint {
	font-size: 16px;
	font-weight: 600;
	font-style: italic;
	fill: #fff;
	paint-order: stroke;
	stroke: rgba(0, 0, 0, 0.65);
	stroke-width: 4px;
	stroke-linejoin: round;
	text-anchor: middle;
	dominant-baseline: middle;
	pointer-events: none;
	user-select: none;
}

.tcs-station-shading {
	pointer-events: none;
	mix-blend-mode: overlay;
}

.tcs-module-joints,
.tcs-outer-edge {
	pointer-events: none;
}

.tcs-locator {
	cursor: pointer;
}

.tcs-locator-halo {
	fill: #ffffff;
	stroke: #c0392b;
	stroke-width: 1.5;
	pointer-events: none;
}

.tcs-locator-hit {
	fill: transparent;
}

.tcs-locator-cross {
	stroke: #c0392b;
	stroke-linecap: round;
	pointer-events: none;
}

.tcs-locator:hover .tcs-locator-halo {
	fill: #ffe8e8;
	stroke: #ff0000;
}
.tcs-locator:hover .tcs-locator-cross {
	stroke: #ff0000;
}

.tcs-drag-preview {
	fill: #ffe8e8;
	fill-opacity: 0.5;
	stroke: #ff0000;
	stroke-width: 2;
	stroke-dasharray: 6 4;
	pointer-events: none;
}

#tcs-module-area .tcs-tile,
#tcs-module-area .tcs-single-variant-link {
	cursor: grab;
	touch-action: none;
}

.tcs-palette-drag-ghost {
	position: fixed;
	top: 0;
	left: 0;
	width: 64px;
	height: 64px;
	pointer-events: none;
	opacity: 0.85;
	z-index: 1000;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.tcs-palette-drag-ghost img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	-webkit-user-drag: none;
	user-drag: none;
}

body.tcs-palette-drag-active {
	user-select: none;
}

.tcs-canvas-start-edge {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}
.tcs-canvas-start-edge label {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	font-size: 0.85rem;
	color: #555;
	white-space: nowrap;
}
.tcs-canvas-start-edge select {
	width: auto;
	margin: 0;
	padding: 0.15rem 0.3rem;
	font-size: 0.85rem;
	
	border: none;
	background: transparent;
}

#tcs-dimension-text,
#tcs-price {
	font-weight: 600;
}

.tcs-stele-blind-material {
	fill: url(#tcs-steel-tile);
	stroke: #6b6e70;
	stroke-width: 1.5;
	cursor: pointer;
	transition: stroke 0.1s ease;
}
.tcs-stele-blind-material:hover {
	stroke: #1a1a1a;
	stroke-width: 2;
}
.tcs-stele-blind-material.selected {
	stroke: #1560d4;
	stroke-width: 2.5;
}

.tcs-stele-blind {
	fill: url(#tcs-stele-hatch);
	fill-opacity: 0.55;
	stroke: none;
	cursor: pointer;
}

.tcs-stele-blind-label {
	font-size: 11px;
	fill: #55585a;
	text-anchor: middle;
	dominant-baseline: middle;
	pointer-events: none;
	user-select: none;
}

.tcs-mount-foot {
	fill: #2b2b2b;
	cursor: pointer;
	transition: filter 0.1s ease;
}
.tcs-mount-foot:hover {
	filter: drop-shadow(0 0 2px #1a1a1a);
}
.tcs-mount-foot.selected {
	filter: drop-shadow(0 0 2px #1560d4) drop-shadow(0 0 2px #1560d4);
}

.tcs-mount-attachment-plug {
	fill: #4a4d4f;
	pointer-events: none;
}

.tcs-backview-background {
	fill: #3a3d40;
	pointer-events: none;
}

.tcs-backwall-panel {
	fill: #101113;
	stroke: #050506;
	stroke-width: 1;
	pointer-events: none;
}

.tcs-backwall-label {
	font-size: 11px;
	fill: #c7cbd1;
	pointer-events: none;
	user-select: none;
}

.tcs-module-hit {
	fill: transparent;
	stroke: none;
	pointer-events: all;
}
.tcs-module-group:hover .tcs-module-hit {
	stroke: #aab4c8;
	stroke-width: 2;
}
.tcs-module-group.selected .tcs-module-hit {
	stroke: #1560d4;
	stroke-width: 2.5;
}

.tcs-backwall-screw {
	pointer-events: none;
}

.tcs-side-shape {
	fill: #d9dde1;
	stroke: #5a6066;
	stroke-width: 1.2;
	stroke-linejoin: round;
}

.tcs-side-body {
	fill: #2b2b2b;
}
.tcs-side-post,
.tcs-side-foot,
.tcs-side-stele-foot {
	fill: #2b2b2b;
}
.tcs-side-camera {
	fill: #3d4248;
}
.tcs-side-stele-joint,
.tcs-side-foot-base,
.tcs-side-floor {
	fill: none;
	stroke-width: 0.8;
}
.tcs-side-wall {
	stroke: none;
}
.tcs-side-hatch-line {
	stroke: #b3b8bd;
	stroke-width: 1.5;
}
.tcs-side-wall-face {
	stroke: #7a8086;
	stroke-width: 1.5;
}
.tcs-side-caption {
	font-size: 13px;
	font-weight: 600;
	fill: #666;
	text-anchor: middle;
	pointer-events: none;
	user-select: none;
}

.tcs-view3d {
	visibility: hidden;
	background: #e8e8e8;
}
body.tcs-view3d-active .tcs-view3d {
	visibility: visible;
}
body.tcs-view3d-active #tcs-view {
	visibility: hidden;
}

.tcs-view-switch {
	display: flex;
	align-items: center;
	gap: 0.15rem;
}
.tcs-view-switch-btn {
	margin: 0;
	padding: 0.15rem 0.6rem;
	border: none;
	border-radius: 999px;
	background: transparent;
	font: inherit;
	font-size: 0.85rem;
	color: #555;
	cursor: pointer;
}
.tcs-view-switch-btn[aria-pressed="true"] {
	background: #333;
	color: #fff;
}
.tcs-view-switch-btn:disabled {
	color: #aaa;
	cursor: not-allowed;
}
.tcs-view-switch .tcs-info-hint {
	margin-left: 0.2rem;
}
.tcs-view-switch .tcs-info-hint[hidden] {
	display: none;
}

.tcs-view3d-only {
	display: none;
}
body.tcs-view3d-active .tcs-view3d-only {
	display: block;
}

body.tcs-readonly.tcs-view3d-active #tcs-view3d-ifc-export {
	display: inline-block !important;
}

a.tcs-action.tcs-action-disabled {
	background: #ccc;
	border-color: #ccc;
	color: #fff;
	cursor: not-allowed;
}
#tcs-view3d-ifc-hint {
	margin-left: 0.3rem;
	vertical-align: middle;
}
#tcs-view3d-ifc-hint[hidden] {
	display: none;
}
.tcs-view3d-ifc-error {
	margin: 0.4rem 0 0;
	max-width: 16rem;
	color: #b00020;
}
.tcs-view3d-ifc-error[hidden] {
	display: none;
}

@media (max-width: 700px) {
	.tcs-canvas-toolbar {
		flex-wrap: wrap;
		justify-content: center;
		width: max-content;
		max-width: calc(100vw - 1rem);
		row-gap: 0.3rem;
	}
	.tcs-floating-left {
		top: calc(var(--tcs-header-height, 0px) + 3.4rem);
	}
}

@media (max-width: 560px) {
	.tcs-floating-left {
		top: calc(var(--tcs-header-height, 0px) + 5.6rem);
	}
}
