        /*!
         * Launch House Golf — Simulator Builder
         * Copyright (c) 2026 Launch House Golf. All rights reserved.
         * Proprietary and confidential. This source code is the property of
         * Launch House Golf and may not be copied, modified, distributed,
         * reverse-engineered, or used to create derivative works without
         * express written permission. Unauthorized use is prohibited.
         */
        .legal-notice {
            position: fixed;
            bottom: 6px;
            right: 352px;
            z-index: 999;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            font-size: 10.5px;
            color: rgba(255, 255, 255, 0.35);
            letter-spacing: 0.2px;
            pointer-events: none;
            user-select: none;
        }
        body.presentation-mode .legal-notice { display: none; }
        :root {
            --primary: #c9a84c;
            --primary-dim: rgba(201, 168, 76, 0.15);
            --primary-glow: rgba(201, 168, 76, 0.25);
            --accent: #c9a84c;
            --dark: #0c0d0f;
            --panel-bg: #111214;
            --card-bg: #191b1f;
            --card-border: rgba(255, 255, 255, 0.06);
            --card-hover-border: rgba(201, 168, 76, 0.3);
            --light: #f8f9fa;
            --text: #e0e0e0;
            --text-muted: #8a8d93;
            --text-dim: #5a5d63;
            --border: rgba(255, 255, 255, 0.08);
            --success: #4ade80;
            --pad-grey: #4a4a4a;
            --input-bg: #1e2025;
            --input-border: rgba(255, 255, 255, 0.1);
            --input-focus: rgba(201, 168, 76, 0.4);
            --glass: rgba(255, 255, 255, 0.03);
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
            --shadow-gold: 0 0 20px rgba(201, 168, 76, 0.08);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--dark);
            color: var(--text);
            min-height: 100vh;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .app-container {
            display: grid;
            grid-template-columns: 320px 1fr 340px;
            height: 100vh;
            gap: 0;
            overflow: hidden;
        }

        /* Header */
        @keyframes headerShimmer {
            0% { background-position: -200% center; }
            100% { background-position: 200% center; }
        }

        @keyframes headerGlow {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.6; }
        }

        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background:
                repeating-conic-gradient(
                    rgba(255, 255, 255, 0.008) 0% 25%,
                    transparent 0% 50%
                ) 0 0 / 10px 10px,
                linear-gradient(180deg, rgba(18, 20, 24, 0.98) 0%, rgba(12, 13, 15, 0.98) 100%);
            backdrop-filter: blur(24px) saturate(1.2);
            -webkit-backdrop-filter: blur(24px) saturate(1.2);
            padding: 1.1rem 2rem;
            z-index: 1000;
            border-bottom: 1px solid rgba(201, 168, 76, 0.12);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1.5rem;
            box-shadow:
                0 4px 30px rgba(0, 0, 0, 0.5),
                0 1px 0 rgba(255, 255, 255, 0.03) inset;
        }

        /* Animated gold shimmer line */
        .header::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(
                90deg,
                transparent 0%,
                rgba(201, 168, 76, 0.05) 15%,
                rgba(201, 168, 76, 0.5) 45%,
                rgba(232, 210, 140, 0.8) 50%,
                rgba(201, 168, 76, 0.5) 55%,
                rgba(201, 168, 76, 0.05) 85%,
                transparent 100%
            );
            background-size: 200% 100%;
            animation: headerShimmer 6s ease-in-out infinite;
        }

        /* Subtle top-edge highlight */
        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
        }

        .header h1 {
            font-family: 'DM Sans', sans-serif;
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--accent);
            letter-spacing: -0.5px;
            display: flex;
            align-items: center;
            gap: 1.5rem;
            margin: 0;
            position: relative;
        }

        .header h1 img {
            height: 50px;
            vertical-align: middle;
            background: transparent;
            filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.2));
            transition: filter 0.4s ease;
        }

        .header h1 img:hover {
            filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.4));
        }

        .header-title {
            font-family: 'DM Sans', sans-serif;
            font-size: 1.4rem;
            font-weight: 700;
            letter-spacing: 3.5px;
            text-transform: uppercase;
            background: linear-gradient(
                90deg,
                #ffffff 0%,
                #e8d28c 25%,
                #ffffff 50%,
                #c9a84c 75%,
                #ffffff 100%
            );
            background-size: 200% 100%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: headerShimmer 8s ease-in-out infinite;
            position: relative;
        }

        /* Glow behind title text */
        .header-title::after {
            content: 'Golf Simulator Builder';
            position: absolute;
            top: 0;
            left: 0;
            font-size: inherit;
            font-weight: inherit;
            letter-spacing: inherit;
            text-transform: inherit;
            -webkit-text-fill-color: rgba(201, 168, 76, 0.12);
            -webkit-background-clip: unset;
            background: none;
            filter: blur(14px);
            z-index: -1;
            animation: headerGlow 4s ease-in-out infinite;
        }

        /* Left Panel - Configuration */
        .config-panel {
            background:
                repeating-conic-gradient(
                    rgba(255, 255, 255, 0.012) 0% 25%,
                    transparent 0% 50%
                ) 0 0 / 12px 12px,
                var(--panel-bg);
            padding: 6rem 1.25rem 2rem;
            overflow-y: auto;
            border-right: 1px solid var(--border);
            animation: slideInLeft 0.6s ease-out;
            box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .config-section {
            margin-bottom: 1rem;
            background: var(--card-bg);
            padding: 1.25rem;
            border-radius: 12px;
            border: 1px solid var(--card-border);
            transition: all 0.35s ease;
            box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03);
            position: relative;
        }

        .config-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.15), transparent);
        }

        .config-section:hover {
            border-color: var(--card-hover-border);
            box-shadow: var(--shadow-md), var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.05);
            transform: translateY(-1px);
        }

        .config-section h3 {
            font-family: 'DM Sans', sans-serif;
            font-size: 0.8rem;
            color: var(--accent);
            margin-bottom: 1rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            text-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
            padding-bottom: 0.6rem;
            border-bottom: 1px solid rgba(201, 168, 76, 0.08);
        }

        .config-option {
            margin-bottom: 1rem;
        }

        .config-option label {
            display: block;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--text-muted);
            margin-bottom: 0.4rem;
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }

        /* Inline 1/2 pill toggle next to monitor labels (matches wall-selector styling) */
        .count-pill {
            display: inline-flex;
            border-radius: 4px;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.15);
            margin-left: 8px;
            vertical-align: middle;
        }
        .count-btn {
            padding: 2px 8px;
            font-size: 0.7rem;
            font-weight: 600;
            cursor: pointer;
            background: transparent;
            color: var(--text-muted);
            border: none;
            letter-spacing: normal;
            transition: background 0.15s, color 0.15s;
        }
        .count-btn.active { background: rgba(200,168,75,0.25); color: #c8a84b; }
        .count-btn:hover:not(.active) { background: rgba(255,255,255,0.06); color: #fff; }

        /* Small inline count dropdown — custom compact chevron, minimal padding */
        .inline-count-dropdown {
            width: auto !important;
            display: inline-block;
            padding: 2px 16px 2px 8px !important;
            font-size: 0.75rem !important;
            font-weight: 600;
            box-shadow: none !important;
            vertical-align: middle;
            letter-spacing: normal;
            margin-left: 6px;
            text-transform: none;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23a0a0a0' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 5px center;
            background-size: 8px 5px;
        }
        /* Keep label + pill on one row */
        .config-option label.inline-count-label {
            white-space: nowrap;
            letter-spacing: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
        }

        select, input {
            width: 100%;
            padding: 0.65rem 0.75rem;
            border: 1px solid var(--input-border);
            border-radius: 8px;
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            background: var(--input-bg);
            color: var(--text);
            transition: all 0.25s ease;
            cursor: pointer;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        select:focus, input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--primary-dim), inset 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        select:hover {
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 8px rgba(201, 168, 76, 0.05);
        }

        select option {
            background: #1e2025;
            color: var(--text);
        }

        input::placeholder {
            color: var(--text-dim);
        }

        .dimension-control {
            margin-bottom: 1rem;
        }

        .dimension-control label {
            display: block;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--text-muted);
            margin-bottom: 0.4rem;
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }

        .dimension-inputs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem;
        }

        .dimension-input-group {
            position: relative;
        }

        .dimension-input-group input {
            width: 100%;
            padding: 0.65rem 2rem 0.65rem 0.75rem;
            border: 1px solid var(--input-border);
            border-radius: 8px;
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            background: var(--input-bg);
            color: var(--text);
            transition: all 0.25s ease;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
            -moz-appearance: textfield;
        }

        .dimension-input-group input::-webkit-inner-spin-button,
        .dimension-input-group input::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .dimension-input-group .unit-label {
            position: absolute;
            right: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.75rem;
            color: var(--text-dim);
            font-weight: 600;
        }

        .dimension-display {
            margin-top: 0.5rem;
            padding: 0.4rem;
            background: var(--primary-dim);
            border-radius: 6px;
            text-align: center;
            font-size: 0.85rem;
            color: var(--accent);
            font-weight: 600;
            border: 1px solid rgba(201, 168, 76, 0.12);
            box-shadow: 0 0 12px rgba(201, 168, 76, 0.04), inset 0 1px 0 rgba(201, 168, 76, 0.06);
        }

        input[type="range"] {
            width: 100%;
            height: 4px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.08);
            outline: none;
            -webkit-appearance: none;
            margin: 0.5rem 0;
            border: none;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--accent);
            cursor: grab;
            border: 2px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 0 12px rgba(201, 168, 76, 0.4);
            transition: all 0.2s ease;
        }

        input[type="range"]::-webkit-slider-thumb:hover {
            width: 22px;
            height: 22px;
            box-shadow: 0 0 20px rgba(201, 168, 76, 0.6);
        }

        input[type="range"]::-webkit-slider-thumb:active {
            cursor: grabbing;
            width: 20px;
            height: 20px;
            box-shadow: 0 0 16px rgba(201, 168, 76, 0.5);
        }

        input[type="range"]::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--accent);
            cursor: grab;
            border: 2px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 0 12px rgba(201, 168, 76, 0.4);
            transition: all 0.2s ease;
        }

        input[type="range"]::-moz-range-thumb:hover {
            width: 22px;
            height: 22px;
            box-shadow: 0 0 20px rgba(201, 168, 76, 0.6);
        }

        input[type="range"]::-moz-range-thumb:active {
            cursor: grabbing;
            width: 20px;
            height: 20px;
            box-shadow: 0 0 16px rgba(201, 168, 76, 0.5);
        }

        /* Live value tooltip for dimension sliders */
        .dimension-control {
            position: relative;
        }

        .slider-tooltip {
            position: absolute;
            top: -2.5rem;
            left: 50%;
            transform: translateX(-50%);
            background: var(--accent);
            color: var(--dark);
            padding: 0.4rem 0.8rem;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
            white-space: nowrap;
            z-index: 100;
        }

        .dimension-control:has(input[type="range"]:active) .slider-tooltip {
            opacity: 1;
        }

        /* Info icon and tooltip */
        .info-icon {
            display: inline-block;
            width: 16px;
            height: 16px;
            background: rgba(201, 168, 76, 0.2);
            color: var(--accent);
            border-radius: 50%;
            text-align: center;
            line-height: 16px;
            font-size: 11px;
            font-weight: bold;
            cursor: help;
            margin-left: 0.5rem;
            position: relative;
            vertical-align: middle;
            border: 1px solid rgba(201, 168, 76, 0.3);
        }

        .info-tooltip {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-top: 0.5rem;
            background: #252830;
            color: var(--text);
            padding: 1rem;
            border-radius: 8px;
            font-size: 0.8rem;
            line-height: 1.5;
            width: 280px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            z-index: 1000;
            box-shadow: 0 8px 32px rgba(0,0,0,0.5);
            border: 1px solid var(--card-border);
        }

        .info-tooltip::after {
            content: '';
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-bottom-color: #252830;
        }

        .info-icon:hover .info-tooltip {
            opacity: 1;
        }

        .info-tooltip strong {
            display: block;
            color: var(--accent);
            margin-bottom: 0.5rem;
        }

        input[type="number"] {
            padding: 0.5rem;
            background: var(--input-bg);
            color: var(--text);
            border: 1px solid var(--input-border);
            -moz-appearance: textfield;
        }

        input[type="number"]::-webkit-inner-spin-button,
        input[type="number"]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        /* Center - 3D Viewport */
        .viewport {
            background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-top: 5rem;
            overflow: visible;
            min-height: 0;
            min-width: 0;
            animation: fadeIn 0.8s ease-out 0.2s both;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-10px); }
            75% { transform: translateX(10px); }
        }

        #canvas-container {
            width: 100%;
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        #canvas-container canvas {
            display: block;
            max-width: 100%;
            max-height: 100%;
        }

        .viewport-controls {
            position: fixed;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            z-index: 100;
            background: rgba(20, 22, 26, 0.92);
            padding: 0.6rem 1.25rem 0.75rem;
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
            align-items: center;
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.05),
                0 0 0 1px rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .viewport-controls-label {
            font-family: 'Inter', sans-serif;
            font-size: 0.6rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            color: rgba(201, 168, 76, 0.7);
            width: 100%;
            text-align: center;
        }

        .viewport-controls-grid {
            display: flex;
            gap: 1.5rem;
            align-items: center;
            flex-wrap: wrap;
            justify-content: center;
        }

        /* Camera Dropdown */
        .camera-dropdown {
            position: absolute;
            top: 5.5rem;
            left: 1.5rem;
            z-index: 1000;
        }

        .camera-dropdown-btn {
            background: rgba(20, 22, 26, 0.9);
            color: var(--text);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 0.5rem 1rem;
            border-radius: 10px;
            font-family: 'Inter', sans-serif;
            font-size: 0.75rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(12px);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .camera-dropdown-btn:hover {
            border-color: rgba(201, 168, 76, 0.4);
            background: rgba(30, 32, 36, 0.95);
        }

        .camera-dropdown-arrow {
            font-size: 0.6rem;
            opacity: 0.6;
            transition: transform 0.2s ease;
        }

        .camera-dropdown.open .camera-dropdown-arrow {
            transform: rotate(180deg);
        }

        .camera-dropdown-menu {
            display: none;
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            background: rgba(20, 22, 26, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(20px);
            min-width: 120px;
        }

        .camera-dropdown.open .camera-dropdown-menu {
            display: block;
        }

        .camera-dropdown-item {
            padding: 0.5rem 1rem;
            font-family: 'Inter', sans-serif;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .camera-dropdown-item:hover {
            background: rgba(201, 168, 76, 0.15);
            color: var(--text);
        }

        .camera-dropdown-item.active {
            color: var(--accent);
            background: rgba(201, 168, 76, 0.08);
        }

        /* Saved Angles Panel (capture camera views for the PDF quote) */
        .saved-angles-panel {
            position: absolute;
            top: 5.5rem;
            right: 5rem;
            z-index: 1000;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            pointer-events: none;
        }

        .saved-angles-btn {
            pointer-events: auto;
            background: rgba(20, 22, 26, 0.9);
            color: var(--text);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 0.45rem 0.85rem;
            border-radius: 8px;
            font-family: inherit;
            font-size: 0.75rem;
            font-weight: 500;
            letter-spacing: 0.02em;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            transition: background 0.15s, border-color 0.15s;
        }

        .saved-angles-btn:hover:not(:disabled) {
            background: rgba(30, 32, 38, 0.95);
            border-color: var(--primary);
        }

        .saved-angles-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .saved-angles-plus {
            color: var(--primary);
            font-weight: 700;
            font-size: 1em;
            line-height: 1;
        }

        .saved-angles-count {
            color: var(--text-dim, #888);
            font-size: 0.7rem;
            font-weight: 400;
            margin-left: 0.15rem;
        }

        .saved-angles-strip {
            pointer-events: auto;
            display: flex;
            gap: 0.4rem;
        }

        .saved-angle-item {
            position: relative;
            width: 72px;
            height: 46px;
            border-radius: 6px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(20, 22, 26, 0.9);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        }

        .saved-angle-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            cursor: pointer;
            display: block;
            transition: transform 0.2s;
        }

        .saved-angle-item:hover img {
            transform: scale(1.04);
        }

        .saved-angle-remove {
            position: absolute;
            top: 2px;
            right: 2px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.75);
            color: #fff;
            border: none;
            font-size: 0.8rem;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            opacity: 0;
            transition: opacity 0.15s, background 0.15s;
        }

        .saved-angle-item:hover .saved-angle-remove {
            opacity: 1;
        }

        .saved-angle-remove:hover {
            background: #c53030;
        }

        .saved-angle-label {
            position: absolute;
            bottom: 2px;
            left: 3px;
            background: rgba(0, 0, 0, 0.65);
            color: var(--primary);
            font-size: 0.6rem;
            font-weight: 700;
            padding: 0 4px;
            border-radius: 3px;
            line-height: 1.3;
            pointer-events: none;
        }

        body.presentation-mode .saved-angles-panel { display: none !important; }

        @media (max-width: 768px) {
            .saved-angles-panel {
                top: auto;
                bottom: 10.5rem;
                left: 0.5rem;
                right: 0.5rem;
                justify-content: center;
                flex-wrap: wrap;
            }
            .saved-angles-btn {
                font-size: 0.68rem;
                padding: 0.35rem 0.65rem;
            }
            .saved-angle-item {
                width: 56px;
                height: 36px;
            }
        }

        /* Reset Button (icon only, top-right) */
        .reset-btn {
            position: absolute;
            top: 5.5rem;
            right: 1.5rem;
            z-index: 1000;
            background: rgba(20, 22, 26, 0.9);
            color: var(--text);
            border: 1px solid rgba(255, 255, 255, 0.08);
            width: 36px;
            height: 36px;
            padding: 0;
            border-radius: 10px;
            font-size: 1.1rem;
            line-height: 36px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(12px);
        }

        .reset-btn:hover {
            background: linear-gradient(180deg, #d4b35a 0%, #b8952e 100%);
            color: var(--dark);
            border-color: rgba(201, 168, 76, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 6px 24px rgba(201, 168, 76, 0.25), 0 2px 8px rgba(0, 0, 0, 0.3);
        }


        .toggle-control {
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }

        .toggle-control label {
            font-family: 'Inter', sans-serif;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--text-muted);
            white-space: nowrap;
        }

        .toggle-switch {
            position: relative;
            width: 40px;
            height: 22px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 11px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .toggle-switch.active {
            background: var(--accent);
        }

        .toggle-switch::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: white;
            top: 3px;
            left: 3px;
            transition: transform 0.3s;
            box-shadow: 0 1px 3px rgba(0,0,0,0.3);
        }

        .toggle-switch.active::after {
            transform: translateX(18px);
        }

        /* Right Panel - Summary */
        .summary-panel {
            background:
                repeating-conic-gradient(
                    rgba(255, 255, 255, 0.012) 0% 25%,
                    transparent 0% 50%
                ) 0 0 / 12px 12px,
                var(--panel-bg);
            padding: 6rem 1.25rem 2rem;
            overflow-y: auto;
            border-left: 1px solid var(--border);
            animation: slideInRight 0.6s ease-out;
            box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.02);
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .summary-card {
            background: var(--card-bg);
            padding: 1.5rem;
            border-radius: 12px;
            border: 1px solid var(--card-border);
            margin-bottom: 1rem;
            box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03);
            position: relative;
        }

        .summary-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
        }

        .summary-card h2 {
            font-family: 'DM Sans', sans-serif;
            font-size: 0.8rem;
            color: var(--accent);
            margin-bottom: 1.25rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            text-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
            padding-bottom: 0.6rem;
            border-bottom: 1px solid rgba(201, 168, 76, 0.08);
        }

        .price-item {
            display: flex;
            justify-content: space-between;
            padding: 0.6rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 0.85rem;
            transition: all 0.2s ease;
        }

        .price-item:hover {
            background: rgba(255, 255, 255, 0.015);
            padding-left: 0.5rem;
            padding-right: 0.5rem;
            margin: 0 -0.5rem;
            border-radius: 4px;
        }

        .price-item:last-child {
            border-bottom: none;
        }

        .price-item .label {
            color: var(--text-muted);
            font-weight: 400;
        }

        .price-item .value {
            color: #ffffff;
            font-weight: 600;
            font-variant-numeric: tabular-nums;
        }

        .total-price {
            background: linear-gradient(135deg, rgba(201, 168, 76, 0.12) 0%, rgba(201, 168, 76, 0.04) 100%);
            color: white;
            padding: 1rem;
            border-radius: 12px;
            margin-top: 0.75rem;
            text-align: center;
            border: 1px solid rgba(201, 168, 76, 0.25);
            box-shadow:
                0 0 30px rgba(201, 168, 76, 0.06),
                inset 0 1px 0 rgba(201, 168, 76, 0.15),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
            position: relative;
        }

        .total-price::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.4), transparent);
        }

        .total-price .label {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--text-muted);
            margin-bottom: 0.3rem;
        }

        .total-price .amount {
            font-family: 'DM Sans', sans-serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--accent);
            font-variant-numeric: tabular-nums;
        }

        .price-range {
            font-size: 0.75rem;
            margin-top: 0.35rem;
            color: var(--text-muted);
        }

        .summary-sticky-footer {
            position: sticky;
            bottom: 0;
            z-index: 20;
            background: var(--panel-bg);
            padding: 0.75rem 0 0.5rem;
            border-top: 1px solid rgba(201, 168, 76, 0.12);
            box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
        }

        .generate-quote-btn {
            width: 100%;
            background: linear-gradient(180deg, #d4b35a 0%, #b8952e 100%);
            color: var(--dark);
            border: none;
            border-top: 1px solid rgba(255, 255, 255, 0.3);
            padding: 0.65rem;
            border-radius: 10px;
            font-family: 'Inter', sans-serif;
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
            margin-top: 0.6rem;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            box-shadow:
                0 4px 20px rgba(201, 168, 76, 0.25),
                0 1px 3px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .generate-quote-btn:hover {
            background: linear-gradient(180deg, #e0c06a 0%, #c9a84c 100%);
            transform: translateY(-2px);
            box-shadow:
                0 8px 32px rgba(201, 168, 76, 0.35),
                0 2px 8px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }

        .generate-quote-btn:active {
            transform: translateY(0);
            box-shadow:
                0 2px 8px rgba(201, 168, 76, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        /* Animated price glow */
        @keyframes priceGlow {
            0% { box-shadow: 0 0 30px rgba(201, 168, 76, 0.06), inset 0 1px 0 rgba(201, 168, 76, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.2); }
            50% { box-shadow: 0 0 40px rgba(201, 168, 76, 0.25), 0 0 60px rgba(201, 168, 76, 0.1), inset 0 1px 0 rgba(201, 168, 76, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.2); }
            100% { box-shadow: 0 0 30px rgba(201, 168, 76, 0.06), inset 0 1px 0 rgba(201, 168, 76, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.2); }
        }
        .price-animating {
            animation: priceGlow 0.6s ease-out;
        }

        /* Share Link Button */
        .share-link-btn {
            width: 100%;
            background: transparent;
            color: var(--text-muted);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 0.5rem;
            border-radius: 8px;
            font-family: 'Inter', sans-serif;
            font-size: 0.72rem;
            font-weight: 500;
            cursor: pointer;
            margin-top: 0.35rem;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
        }
        .share-link-btn:hover {
            color: var(--accent);
            border-color: rgba(201, 168, 76, 0.3);
            background: rgba(201, 168, 76, 0.06);
        }

        /* Compare Build Buttons */
        .compare-actions {
            display: flex;
            gap: 0.4rem;
            margin-top: 0.35rem;
        }
        .compare-btn {
            flex: 1;
            background: transparent;
            color: var(--text-muted);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 0.45rem 0.4rem;
            border-radius: 8px;
            font-family: 'Inter', sans-serif;
            font-size: 0.68rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
        }
        .compare-btn:hover {
            color: var(--accent);
            border-color: rgba(201, 168, 76, 0.3);
            background: rgba(201, 168, 76, 0.06);
        }
        .compare-btn.saved {
            color: var(--success);
            border-color: rgba(74, 222, 128, 0.2);
        }

        /* Toast Notification */
        .toast {
            position: fixed;
            bottom: 5rem;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: rgba(20, 22, 26, 0.95);
            color: var(--accent);
            border: 1px solid rgba(201, 168, 76, 0.3);
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            font-weight: 500;
            z-index: 10000;
            backdrop-filter: blur(12px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
            pointer-events: none;
        }
        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* Camera Preset Buttons */
        /* camera-presets removed — replaced by camera-dropdown */

        /* Room Preset Buttons */
        .room-preset-btn {
            flex: 1;
            background: rgba(20, 22, 26, 0.9);
            color: var(--text-muted);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 0.4rem 0.5rem;
            border-radius: 20px;
            font-family: 'Inter', sans-serif;
            font-size: 0.68rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }
        .room-preset-btn:hover, .room-preset-btn.active {
            background: linear-gradient(180deg, #d4b35a 0%, #b8952e 100%);
            color: var(--dark);
            border-color: rgba(201, 168, 76, 0.4);
            box-shadow: 0 4px 16px rgba(201, 168, 76, 0.2);
        }

        /* Presentation Mode */
        .presentation-exit {
            display: none;
            position: fixed;
            top: 1rem;
            right: 1rem;
            z-index: 2000;
            background: rgba(20, 22, 26, 0.92);
            color: var(--text);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 0.5rem 1.25rem;
            border-radius: 25px;
            font-family: 'Inter', sans-serif;
            font-size: 0.8rem;
            font-weight: 500;
            cursor: pointer;
            backdrop-filter: blur(12px);
            transition: all 0.3s ease;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
        }
        .presentation-exit:hover {
            background: linear-gradient(180deg, #d4b35a 0%, #b8952e 100%);
            color: var(--dark);
            border-color: rgba(201, 168, 76, 0.4);
        }
        body.presentation-mode .presentation-exit { display: flex; }
        body.presentation-mode .header { display: none !important; }
        body.presentation-mode .config-panel,
        body.presentation-mode .summary-panel { display: none !important; }
        body.presentation-mode .viewport-controls,
        body.presentation-mode .camera-dropdown,
        body.presentation-mode .reset-btn { display: none !important; }
        body.presentation-mode .mobile-bottom-bar { display: none !important; }
        body.presentation-mode .drawer-backdrop { display: none !important; }
        body.presentation-mode .app-container {
            display: block;
        }
        body.presentation-mode .viewport {
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            padding: 0;
        }

        /* Compare Overlay Modal */
        .compare-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 10001;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease-out;
        }
        .compare-overlay.hidden { display: none; }

        .compare-panel {
            background: var(--panel-bg);
            width: 94%;
            max-width: 700px;
            max-height: 85vh;
            border-radius: 16px;
            border: 1px solid rgba(201, 168, 76, 0.2);
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(201, 168, 76, 0.06);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .compare-panel::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.4), transparent);
        }
        .compare-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(0, 0, 0, 0.3);
        }
        .compare-header h2 {
            font-family: 'DM Sans', sans-serif;
            font-size: 1.1rem;
            color: var(--accent);
        }
        .compare-close {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 1.4rem;
            cursor: pointer;
            padding: 0.3rem;
            transition: color 0.2s;
        }
        .compare-close:hover { color: #fff; }

        .compare-body {
            overflow-y: auto;
            padding: 1.5rem;
            flex: 1;
        }
        .compare-table {
            width: 100%;
            border-collapse: collapse;
        }
        .compare-table th {
            text-align: left;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--text-muted);
            padding: 0.6rem 0.75rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }
        .compare-table th:not(:first-child) { text-align: right; }
        .compare-table td {
            padding: 0.65rem 0.75rem;
            font-size: 0.82rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            color: var(--text);
        }
        .compare-table td:not(:first-child) { text-align: right; }
        .compare-table td:first-child {
            color: var(--text-muted);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .compare-table tr.diff td {
            color: var(--accent);
        }
        .compare-table tr.total-row td {
            border-top: 2px solid rgba(201, 168, 76, 0.2);
            font-weight: 700;
            font-size: 1rem;
            padding-top: 1rem;
            color: var(--accent);
        }
        .compare-table .diff-badge {
            display: inline-block;
            font-size: 0.7rem;
            padding: 0.15rem 0.5rem;
            border-radius: 20px;
            margin-left: 0.5rem;
            font-weight: 600;
        }
        .diff-badge.positive {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
        }
        .diff-badge.negative {
            background: rgba(74, 222, 128, 0.15);
            color: #4ade80;
        }

        .selected-items {
            margin-top: 1rem;
        }

        .selected-item {
            background: rgba(255, 255, 255, 0.02);
            padding: 0.75rem;
            border-radius: 8px;
            margin-bottom: 0.5rem;
            font-size: 0.8rem;
            border: 1px solid var(--card-border);
            transition: all 0.25s ease;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
        }

        .selected-item:hover {
            border-color: var(--card-hover-border);
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 0 12px rgba(201, 168, 76, 0.04);
            background: rgba(255, 255, 255, 0.035);
        }

        .selected-item .item-name {
            font-weight: 600;
            color: var(--accent);
            margin-bottom: 0.25rem;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .selected-item .item-detail {
            color: var(--text-muted);
            font-size: 0.78rem;
        }

        /* Scrollbar Styling */
        .config-panel::-webkit-scrollbar,
        .summary-panel::-webkit-scrollbar {
            width: 5px;
        }

        .config-panel::-webkit-scrollbar-track,
        .summary-panel::-webkit-scrollbar-track {
            background: transparent;
        }

        .config-panel::-webkit-scrollbar-thumb,
        .summary-panel::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
        }

        .config-panel::-webkit-scrollbar-thumb:hover,
        .summary-panel::-webkit-scrollbar-thumb:hover {
            background: rgba(201, 168, 76, 0.4);
        }

        /* Admin Panel Gear Button (inside header) */
        .admin-gear-btn {
            position: absolute;
            right: 2rem;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.4rem 0.85rem;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--text-muted);
            font-family: 'Inter', sans-serif;
            font-size: 0.7rem;
            font-weight: 500;
            letter-spacing: 1.2px;
            text-transform: uppercase;
        }

        .admin-gear-btn .gear-icon {
            font-size: 1.1rem;
            transition: transform 0.3s ease;
        }

        .admin-gear-btn:hover {
            background: rgba(201, 168, 76, 0.12);
            border-color: rgba(201, 168, 76, 0.3);
            color: var(--accent);
            box-shadow: 0 0 16px rgba(201, 168, 76, 0.15);
        }

        .admin-gear-btn:hover .gear-icon {
            transform: rotate(45deg);
        }

        /* Configurator Button (header left) */
        .configurator-btn {
            position: absolute;
            left: 2rem;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.4rem 0.85rem;
            background: rgba(201, 168, 76, 0.08);
            border: 1px solid rgba(201, 168, 76, 0.3);
            border-radius: 8px;
            color: var(--accent);
            font-family: 'Outfit', sans-serif;
            font-size: 0.75rem;
            font-weight: 500;
            letter-spacing: 0.04em;
            cursor: pointer;
            transition: all 0.2s ease;
            z-index: 10;
            white-space: nowrap;
        }
        .configurator-btn:hover {
            background: rgba(201, 168, 76, 0.18);
            border-color: rgba(201, 168, 76, 0.55);
            box-shadow: 0 0 12px rgba(201, 168, 76, 0.15);
        }
        .configurator-btn .cfg-icon { font-size: 1rem; }

        /* Configurator Modal */
        .configurator-modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 1500;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        .configurator-modal.open { display: flex; }
        .configurator-modal-inner {
            background: #13151a;
            border: 1px solid rgba(201, 168, 76, 0.2);
            border-radius: 14px;
            width: 95vw;
            height: 90vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7),
                        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
        }
        .configurator-modal-hdr {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.9rem 1.5rem;
            border-bottom: 1px solid rgba(201, 168, 76, 0.12);
            flex-shrink: 0;
        }
        .configurator-modal-hdr h2 {
            font-family: 'Outfit', sans-serif;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--accent);
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin: 0;
        }
        .configurator-modal-close {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            color: var(--text-dim, #888);
            padding: 0.3rem 0.75rem;
            cursor: pointer;
            font-size: 0.75rem;
            font-family: 'Outfit', sans-serif;
            transition: all 0.2s;
        }
        .configurator-modal-close:hover {
            border-color: rgba(255, 255, 255, 0.3);
            color: #fff;
        }
        .configurator-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 1.25rem 1.5rem;
        }
        /* Config panel in modal: 3-column flow */
        .configurator-modal-body .config-panel {
            width: 100% !important;
            height: auto !important;
            max-height: none !important;
            overflow-y: visible !important;
            border-right: none !important;
            padding: 0 !important;
            columns: 3;
            column-gap: 1.25rem;
        }
        .configurator-modal-body .config-panel > *,
        .configurator-modal-body .config-panel .config-section {
            break-inside: avoid;
            margin-bottom: 1rem;
        }
        /* Type-specific wrappers: let their inner sections each be a column card */
        .configurator-modal-body .config-panel > div > .config-section {
            break-inside: avoid;
        }

        /* Admin Panel Overlay */
        .admin-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 10001;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease-out;
        }

        .admin-overlay.hidden {
            display: none;
        }

        .admin-panel {
            background: var(--panel-bg);
            width: 90%;
            max-width: 900px;
            max-height: 85vh;
            border-radius: 16px;
            border: 1px solid rgba(201, 168, 76, 0.2);
            box-shadow:
                0 24px 80px rgba(0, 0, 0, 0.7),
                0 0 60px rgba(201, 168, 76, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .admin-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.4), transparent);
        }

        .admin-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(0, 0, 0, 0.3);
        }

        .admin-header h2 {
            font-family: 'DM Sans', sans-serif;
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--accent);
            letter-spacing: 1px;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }

        .admin-close-btn {
            width: 32px;
            height: 32px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: var(--text-muted);
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .admin-close-btn:hover {
            background: rgba(239, 68, 68, 0.15);
            border-color: rgba(239, 68, 68, 0.3);
            color: #ef4444;
        }

        .admin-body {
            padding: 1.5rem;
            overflow-y: auto;
            flex: 1;
        }

        .admin-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            padding-bottom: 0.75rem;
        }

        .admin-tab {
            padding: 0.6rem 1.25rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 8px;
            color: var(--text-muted);
            font-family: 'Inter', sans-serif;
            font-size: 0.8rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .admin-tab:hover {
            background: rgba(201, 168, 76, 0.08);
            border-color: rgba(201, 168, 76, 0.2);
            color: var(--text);
        }

        .admin-tab.active {
            background: rgba(201, 168, 76, 0.12);
            border-color: rgba(201, 168, 76, 0.3);
            color: var(--accent);
            font-weight: 600;
        }

        .admin-tab-content {
            display: none;
        }

        .admin-tab-content.active {
            display: block;
        }

        /* Pricing Editor */
        .pricing-section {
            background: var(--card-bg);
            border-radius: 12px;
            border: 1px solid var(--card-border);
            padding: 1.25rem;
            margin-bottom: 1rem;
        }

        .pricing-section h3 {
            font-family: 'DM Sans', sans-serif;
            font-size: 0.75rem;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-weight: 600;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid rgba(201, 168, 76, 0.08);
        }

        .pricing-row {
            display: grid;
            grid-template-columns: 1fr 120px;
            gap: 0.75rem;
            align-items: center;
            padding: 0.6rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        }

        .pricing-row:last-child {
            border-bottom: none;
        }

        .pricing-row .pricing-label {
            font-size: 0.85rem;
            color: var(--text);
            font-weight: 400;
        }

        .pricing-row .pricing-sublabel {
            font-size: 0.72rem;
            color: var(--text-dim);
            margin-top: 0.15rem;
        }

        .pricing-input {
            width: 100%;
            padding: 0.5rem 0.6rem;
            background: var(--input-bg);
            border: 1px solid var(--input-border);
            border-radius: 6px;
            color: var(--accent);
            font-family: 'Inter', sans-serif;
            font-size: 0.85rem;
            font-weight: 600;
            text-align: right;
            transition: all 0.2s ease;
        }

        .pricing-input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 2px var(--primary-dim);
        }

        /* Dropdown Item Manager */
        .dropdown-manager {
            background: var(--card-bg);
            border-radius: 12px;
            border: 1px solid var(--card-border);
            padding: 1.25rem;
            margin-bottom: 1rem;
        }

        .dropdown-manager h3 {
            font-family: 'DM Sans', sans-serif;
            font-size: 0.75rem;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-weight: 600;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid rgba(201, 168, 76, 0.08);
        }

        .dropdown-item-list {
            margin-bottom: 1rem;
        }

        .dropdown-item-row {
            display: grid;
            grid-template-columns: 1fr 100px 36px;
            gap: 0.5rem;
            align-items: center;
            padding: 0.5rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        }

        .dropdown-item-row .item-name {
            font-size: 0.82rem;
            color: var(--text);
        }

        .dropdown-item-row .item-price {
            font-size: 0.82rem;
            color: var(--accent);
            font-weight: 600;
            text-align: right;
        }

        .dropdown-item-row .delete-item-btn {
            width: 28px;
            height: 28px;
            background: rgba(239, 68, 68, 0.08);
            border: 1px solid rgba(239, 68, 68, 0.15);
            border-radius: 6px;
            color: #ef4444;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            opacity: 0.6;
        }

        .dropdown-item-row .delete-item-btn:hover {
            opacity: 1;
            background: rgba(239, 68, 68, 0.15);
            border-color: rgba(239, 68, 68, 0.3);
        }

        .add-item-form {
            background: rgba(255, 255, 255, 0.02);
            border: 1px dashed rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 0.75rem;
            margin-top: 0.5rem;
        }

        .add-item-form .form-title {
            font-size: 0.72rem;
            color: var(--text-dim);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.6rem;
            font-weight: 600;
        }

        .add-item-grid {
            display: grid;
            grid-template-columns: 1fr 100px;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .add-item-grid input,
        .add-item-extras input {
            padding: 0.45rem 0.6rem;
            background: var(--input-bg);
            border: 1px solid var(--input-border);
            border-radius: 6px;
            color: var(--text);
            font-family: 'Inter', sans-serif;
            font-size: 0.8rem;
            transition: all 0.2s ease;
        }

        .add-item-grid input:focus,
        .add-item-extras input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 2px var(--primary-dim);
        }

        .add-item-extras {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .add-item-btn {
            width: 100%;
            padding: 0.5rem;
            background: linear-gradient(180deg, rgba(201, 168, 76, 0.15) 0%, rgba(201, 168, 76, 0.08) 100%);
            border: 1px solid rgba(201, 168, 76, 0.25);
            border-radius: 6px;
            color: var(--accent);
            font-family: 'Inter', sans-serif;
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .add-item-btn:hover {
            background: linear-gradient(180deg, rgba(201, 168, 76, 0.25) 0%, rgba(201, 168, 76, 0.12) 100%);
            border-color: rgba(201, 168, 76, 0.4);
            transform: translateY(-1px);
        }

        .admin-save-notice {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.6rem 1rem;
            background: rgba(74, 222, 128, 0.08);
            border: 1px solid rgba(74, 222, 128, 0.15);
            border-radius: 8px;
            color: var(--success);
            font-size: 0.78rem;
            margin-top: 0.75rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .admin-save-notice.show {
            opacity: 1;
        }


        .loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: white;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid rgba(201, 168, 76, 0.15);
            border-top: 3px solid var(--accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* ======== PRESET BUTTONS ======== */
        .preset-btn {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            flex: 1;
            min-width: 0;
            padding: 0.55rem 0.75rem;
            background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, rgba(201, 168, 76, 0.03) 100%);
            border: 1px solid rgba(201, 168, 76, 0.2);
            border-radius: 8px;
            color: var(--text-muted);
            font-family: 'Inter', sans-serif;
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.3px;
            cursor: pointer;
            transition: all 0.25s ease;
            white-space: nowrap;
        }

        .preset-btn:hover {
            background: linear-gradient(135deg, rgba(201, 168, 76, 0.18) 0%, rgba(201, 168, 76, 0.08) 100%);
            border-color: rgba(201, 168, 76, 0.4);
            color: var(--accent);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(201, 168, 76, 0.1);
        }

        .preset-btn .preset-icon {
            font-size: 0.85rem;
            color: var(--accent);
            opacity: 0.7;
        }

        .preset-btn:hover .preset-icon {
            opacity: 1;
        }

        .preset-btn {
            position: relative;
        }

        .preset-tooltip {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-bottom: 0.5rem;
            background: rgba(17, 18, 22, 0.97);
            border: 1px solid rgba(201, 168, 76, 0.25);
            border-radius: 8px;
            padding: 0.65rem 0.85rem;
            font-size: 0.7rem;
            font-weight: 400;
            color: var(--text-muted);
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
            z-index: 50;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
            line-height: 1.5;
        }

        .preset-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 5px solid transparent;
            border-top-color: rgba(201, 168, 76, 0.25);
        }

        .preset-tooltip strong {
            display: block;
            color: var(--accent);
            margin-bottom: 0.35rem;
            font-size: 0.72rem;
        }

        .preset-tooltip .tooltip-line {
            display: block;
            color: var(--text-muted);
        }

        .preset-btn:hover .preset-tooltip {
            opacity: 1;
        }

        /* ======== DRAWER CLOSE BUTTONS (hidden on desktop, shown on mobile) ======== */
        .drawer-close-btn {
            display: none;
        }

        /* ======== MOBILE BOTTOM BAR (hidden on desktop) ======== */
        .mobile-bottom-bar {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 4rem;
            background: rgba(17, 18, 20, 0.96);
            border-top: 1px solid rgba(201, 168, 76, 0.15);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 1002;
            align-items: center;
            justify-content: space-around;
            padding: 0 0.5rem;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
        }

        .mobile-bottom-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.2rem;
            padding: 0.4rem 1rem;
            background: none;
            border: none;
            color: var(--text-muted);
            font-family: 'Inter', sans-serif;
            font-size: 0.6rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            cursor: pointer;
            transition: all 0.2s ease;
            border-radius: 8px;
        }

        .mobile-bottom-btn .btn-icon {
            font-size: 1.3rem;
            line-height: 1;
        }

        .mobile-bottom-btn.active,
        .mobile-bottom-btn:active {
            color: var(--accent);
            background: rgba(201, 168, 76, 0.08);
        }

        /* Drawer overlay backdrop */
        .drawer-backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 1003;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .drawer-backdrop.visible {
            opacity: 1;
        }

        /* ---- Tablet breakpoint (<=1024px) ---- */
        @media (max-width: 1024px) {
            .app-container {
                grid-template-columns: 280px 1fr 300px;
            }

            .config-panel {
                padding: 5rem 1rem 2rem;
            }

            .summary-panel {
                padding: 5rem 1rem 2rem;
            }

            .header {
                padding: 0.9rem 1.5rem;
            }

            .header h1 img {
                height: 40px;
            }

            .header-title {
                font-size: 1.2rem;
                letter-spacing: 2.5px;
            }

            .admin-gear-btn {
                right: 1.5rem;
                font-size: 0.6rem;
                padding: 0.35rem 0.7rem;
            }
        }

        /* ---- Mobile breakpoint (<=768px) ---- */
        @media (max-width: 768px) {
            /* Convert grid to single column — viewport only */
            .app-container {
                display: block;
                height: 100vh;
                height: 100dvh;
            }

            /* Header: compact mobile version */
            .header {
                padding: 0.6rem 1rem;
                gap: 0.75rem;
            }

            .header h1 {
                gap: 0.75rem;
                padding-right: 3rem;
            }

            .header h1 img {
                height: 32px;
            }

            .header-title {
                font-size: 0.95rem;
                letter-spacing: 2px;
            }

            /* Configurator btn: icon-only on mobile */
            .configurator-btn {
                left: 0.75rem;
                padding: 0.4rem;
                font-size: 0.55rem;
                gap: 0;
            }
            .configurator-btn span:not(.cfg-icon) { display: none; }
            .configurator-modal-body .config-panel { columns: 2; }

            /* Admin gear: icon-only on mobile */
            .admin-gear-btn {
                right: 0.75rem;
                padding: 0.4rem;
                font-size: 0.55rem;
                gap: 0;
            }

            .admin-gear-btn span:not(.gear-icon) {
                display: none;
            }

            .admin-gear-btn .gear-icon {
                font-size: 1.1rem;
            }

            /* 3D Viewport: fill entire screen */
            .viewport {
                width: 100%;
                height: 100vh;
                height: 100dvh;
                padding-top: 3.2rem;
                padding-bottom: 4.5rem;
            }

            /* Config panel: full-width drawer from left */
            .config-panel {
                position: fixed;
                top: 0;
                left: 0;
                bottom: 0;
                width: 100%;
                z-index: 1004;
                padding: 3.5rem 1.25rem 5rem;
                transform: translateX(-100%);
                transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: none;
                animation: none;
                border-right: none;
            }

            .config-panel.drawer-open {
                transform: translateX(0);
            }

            /* Summary panel: full-width drawer from right */
            .summary-panel {
                position: fixed;
                top: 0;
                right: 0;
                bottom: 0;
                width: 100%;
                z-index: 1004;
                padding: 3.5rem 1.25rem 18rem;
                transform: translateX(100%);
                transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: none;
                animation: none;
                border-left: none;
            }

            .summary-panel.drawer-open {
                transform: translateX(0);
            }

            /* Show mobile bottom bar */
            .mobile-bottom-bar {
                display: flex;
            }

            /* Show drawer backdrop */
            .drawer-backdrop {
                display: block;
                pointer-events: none;
            }

            .drawer-backdrop.visible {
                pointer-events: auto;
            }

            /* Viewport controls: reflow for mobile */
            .viewport-controls {
                bottom: 5rem;
                left: 0.5rem;
                right: 0.5rem;
                transform: none;
                padding: 0.5rem 0.75rem 0.6rem;
                border-radius: 12px;
            }

            .viewport-controls-grid {
                gap: 0.6rem 1rem;
            }

            .toggle-control {
                gap: 0.35rem;
            }

            .toggle-control label {
                font-size: 0.6rem;
            }

            .toggle-switch {
                width: 34px;
                height: 18px;
                border-radius: 9px;
            }

            .toggle-switch::after {
                width: 12px;
                height: 12px;
            }

            .toggle-switch.active::after {
                transform: translateX(16px);
            }

            /* Camera dropdown: mobile */
            .camera-dropdown {
                top: 4rem;
                left: 0.75rem;
            }

            .camera-dropdown-btn {
                font-size: 0.7rem;
                padding: 0.4rem 0.75rem;
            }

            .camera-dropdown-item {
                font-size: 0.7rem;
                padding: 0.4rem 0.75rem;
            }

            /* Reset button: mobile */
            .reset-btn {
                top: 4rem;
                right: 0.75rem;
                width: 32px;
                height: 32px;
                line-height: 32px;
                font-size: 1rem;
                border-radius: 8px;
            }

            /* Compare modal: full screen on mobile */
            .compare-panel {
                width: 100%;
                max-width: 100%;
                height: 100%;
                max-height: 100%;
                border-radius: 0;
            }
            .compare-table td, .compare-table th {
                font-size: 0.7rem;
                padding: 0.5rem 0.4rem;
            }

            /* Info tooltips: constrained width on mobile */
            .info-tooltip {
                width: 220px;
                font-size: 0.75rem;
                left: auto;
                right: -0.5rem;
                transform: none;
            }

            /* Touch-friendly select/input sizing */
            select, input:not([type="range"]) {
                padding: 0.75rem 0.85rem;
                font-size: 0.9rem;
                min-height: 44px;
            }

            /* Config section spacing */
            .config-section {
                margin-bottom: 0.75rem;
                padding: 1rem;
            }

            .config-section h3 {
                font-size: 0.75rem;
            }

            /* Summary cards */
            .summary-card {
                padding: 1.25rem;
            }

            /* Sticky footer: fixed to bottom of drawer on mobile */
            .summary-sticky-footer {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                z-index: 1005;
                padding: 0.5rem 1rem 0.6rem;
                background: var(--panel-bg);
                border-top: 1px solid rgba(201, 168, 76, 0.15);
                box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
            }

            .total-price {
                padding: 0.6rem;
                margin-top: 0;
            }

            .total-price .label {
                font-size: 0.6rem;
                margin-bottom: 0.15rem;
            }

            .total-price .amount {
                font-size: 1.5rem;
            }

            .price-range {
                font-size: 0.68rem;
                margin-top: 0.2rem;
            }

            /* Generate PDF button: compact on mobile */
            .generate-quote-btn {
                padding: 0.5rem;
                font-size: 0.73rem;
                min-height: 38px;
                margin-top: 0.4rem;
            }

            .share-link-btn {
                padding: 0.4rem;
                font-size: 0.68rem;
                margin-top: 0.25rem;
            }

            .compare-actions {
                margin-top: 0.25rem;
                gap: 0.3rem;
            }

            .compare-btn {
                padding: 0.35rem 0.3rem;
                font-size: 0.63rem;
            }

            /* Admin panel: full screen on mobile */
            .admin-panel {
                width: 100%;
                max-width: 100%;
                height: 100%;
                max-height: 100%;
                border-radius: 0;
            }

            .admin-tabs {
                flex-wrap: wrap;
            }

            .admin-tab {
                flex: 1;
                text-align: center;
                min-height: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
            }


            /* Drawer close buttons (X in top corner of each drawer) */
            .drawer-close-btn {
                position: fixed;
                top: 0.75rem;
                right: 0.75rem;
                width: 40px;
                height: 40px;
                background: rgba(15, 16, 20, 0.85);
                border: 1px solid rgba(255, 255, 255, 0.12);
                border-radius: 50%;
                color: #fff;
                font-size: 1.1rem;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 1010;
                transition: all 0.2s ease;
                backdrop-filter: blur(8px);
                box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
            }

            .drawer-close-btn:hover,
            .drawer-close-btn:active {
                background: rgba(239, 68, 68, 0.2);
                color: #ef4444;
                border-color: rgba(239, 68, 68, 0.4);
            }

            .config-close-btn {
                right: 0.75rem;
            }

            .summary-close-btn {
                right: 0.75rem;
            }
        }

        /* ---- Mobile Summary Card (hidden on desktop) ---- */
        .mobile-summary-card {
            display: none;
        }

        @media (max-width: 768px) {
            .mobile-summary-card {
                display: block;
                position: fixed;
                bottom: 4.5rem;
                left: 0.5rem;
                right: 0.5rem;
                z-index: 200;
                background: rgba(15, 16, 20, 0.92);
                border: 1px solid rgba(255, 255, 255, 0.08);
                border-radius: 14px;
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
                overflow: hidden;
                transition: max-height 0.3s ease;
            }

            .mobile-summary-card .msc-header {
                display: flex;
                align-items: center;
                padding: 0.7rem 1rem;
                cursor: pointer;
                gap: 0.5rem;
                -webkit-tap-highlight-color: transparent;
            }

            .mobile-summary-card .msc-title {
                font-family: 'Inter', sans-serif;
                font-size: 0.7rem;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: 1px;
                color: rgba(255, 255, 255, 0.5);
                flex-shrink: 0;
            }

            .mobile-summary-card .msc-total {
                font-family: 'DM Sans', sans-serif;
                font-size: 1.1rem;
                font-weight: 700;
                color: #b8d432;
                margin-left: auto;
            }

            .mobile-summary-card .msc-chevron {
                font-size: 0.6rem;
                color: rgba(255, 255, 255, 0.4);
                transition: transform 0.3s ease;
                flex-shrink: 0;
            }

            .mobile-summary-card.collapsed .msc-chevron {
                transform: rotate(180deg);
            }

            .mobile-summary-card .msc-body {
                max-height: 300px;
                overflow-y: auto;
                transition: max-height 0.3s ease, opacity 0.2s ease;
                border-top: 1px solid rgba(255, 255, 255, 0.06);
            }

            .mobile-summary-card.collapsed .msc-body {
                max-height: 0;
                opacity: 0;
                border-top: none;
                overflow: hidden;
            }

            .mobile-summary-card .msc-items {
                padding: 0.5rem 1rem 0.25rem;
            }

            .mobile-summary-card .msc-item {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0.3rem 0;
                font-family: 'Inter', sans-serif;
            }

            .mobile-summary-card .msc-item-label {
                font-size: 0.75rem;
                color: rgba(255, 255, 255, 0.6);
                font-weight: 400;
            }

            .mobile-summary-card .msc-item-value {
                font-size: 0.75rem;
                color: rgba(255, 255, 255, 0.9);
                font-weight: 600;
            }

            .mobile-summary-card .msc-footer {
                padding: 0.5rem 1rem 0.75rem;
                border-top: 1px solid rgba(255, 255, 255, 0.06);
            }

            .mobile-summary-card .msc-design-build {
                font-family: 'Inter', sans-serif;
                font-size: 0.7rem;
                color: rgba(255, 255, 255, 0.4);
                text-align: center;
                margin-bottom: 0.5rem;
            }

            .mobile-summary-card .msc-design-build strong {
                color: rgba(255, 255, 255, 0.7);
            }

            .mobile-summary-card .msc-quote-btn {
                width: 100%;
                padding: 0.6rem;
                background: linear-gradient(180deg, #c5d93a 0%, #a3b82e 100%);
                color: #0c0d0f;
                border: none;
                border-radius: 8px;
                font-family: 'Inter', sans-serif;
                font-size: 0.8rem;
                font-weight: 700;
                letter-spacing: 0.5px;
                cursor: pointer;
            }

            /* Hide mobile summary card when drawers are open or in presentation */
            body.presentation-mode .mobile-summary-card { display: none !important; }
        }

        /* ---- Small phone breakpoint (<=400px) ---- */
        @media (max-width: 400px) {
            .header-title {
                font-size: 0.8rem;
                letter-spacing: 1.5px;
            }

            .header h1 img {
                height: 28px;
            }

            .header {
                padding: 0.5rem 0.75rem;
            }

            .admin-gear-btn {
                right: 0.5rem;
                padding: 0.35rem;
            }

            .admin-gear-btn .gear-icon {
                font-size: 1rem;
            }

            .config-panel {
                width: 100vw;
                max-width: 100vw;
            }

            .summary-panel {
                width: 100vw;
                max-width: 100vw;
            }

            .viewport-controls {
                bottom: 5rem;
            }

            .viewport-controls-grid {
                gap: 0.5rem 0.8rem;
            }

            .toggle-control label {
                font-size: 0.55rem;
            }
        }

        /* === RESIDENTIAL / COMMERCIAL TOGGLE === */
        .biz-toggle-group { display: flex; gap: 0; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
        .biz-toggle-btn {
            flex: 1; padding: 0.45rem 0.6rem; font-size: 0.72rem; font-weight: 700;
            letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
            background: transparent; color: var(--text-muted); border: none;
            transition: background 0.15s, color 0.15s;
        }
        .biz-toggle-btn.active { background: var(--accent); color: #000; }
        .biz-toggle-btn:hover:not(.active) { background: rgba(255,255,255,0.07); color: #fff; }
        #bayCountRow { display: none; margin-top: 0.75rem; }
        #bayCountRow.visible { display: flex; align-items: center; gap: 0.75rem; }
        #bayCount { width: 70px; text-align: center; font-size: 1.1rem; font-weight: 700; padding: 0.3rem; }
        .bay-count-note { font-size: 0.68rem; color: var(--text-muted); }

        /* === WALL SELECTOR BUTTONS === */
        .wall-selector { display: flex; gap: 0; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
        .wall-btn {
            flex: 1; padding: 0.35rem 0.4rem; font-size: 0.7rem; font-weight: 600;
            letter-spacing: 0.04em; cursor: pointer; background: transparent;
            color: var(--text-muted); border: none; transition: background 0.15s, color 0.15s;
        }
        .wall-btn.active { background: rgba(200,168,75,0.25); color: #c8a84b; }
        .wall-btn:hover:not(.active) { background: rgba(255,255,255,0.06); color: #fff; }

        /* === DIY+ TOGGLE === */
        .diy-toggle-wrap { display: flex; align-items: center; gap: 0.6rem; }
        .toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
        .toggle-switch input { opacity: 0; width: 0; height: 0; }
        .toggle-slider {
            position: absolute; inset: 0; background: rgba(255,255,255,0.12);
            border-radius: 20px; cursor: pointer; transition: background 0.2s;
        }
        .toggle-slider:before {
            content: ''; position: absolute; width: 14px; height: 14px;
            left: 3px; top: 3px; background: #fff; border-radius: 50%;
            transition: transform 0.2s;
        }
        .toggle-switch input:checked + .toggle-slider { background: var(--accent); }
        .toggle-switch input:checked + .toggle-slider:before { transform: translateX(16px); }
        .diy-label { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }
        .diy-label strong { color: #c8a84b; font-weight: 700; }

        /* === PIPE FRAME ENCLOSURE UI === */
        .enclosure-btns { display: flex; gap: 0; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
        .enc-btn {
            flex: 1; padding: 0.38rem 0.3rem; font-size: 0.68rem; font-weight: 600;
            letter-spacing: 0.03em; text-align: center; cursor: pointer;
            background: transparent; color: var(--text-muted); border: none;
            transition: background 0.15s, color 0.15s;
        }
        .enc-btn.active { background: rgba(200,168,75,0.22); color: #c8a84b; }
        .enc-btn:hover:not(.active) { background: rgba(255,255,255,0.05); color: #fff; }

        /* === COMPONENT HOVER TOOLTIP === */
        #componentTooltip {
            position: fixed;
            pointer-events: none;
            z-index: 9999;
            display: none;
            max-width: 270px;
            background: rgba(10, 12, 16, 0.97);
            border: 1px solid rgba(200, 168, 75, 0.5);
            border-radius: 9px;
            padding: 10px 14px 12px;
            backdrop-filter: blur(10px);
            box-shadow: 0 6px 28px rgba(0,0,0,0.7), 0 0 0 1px rgba(200,168,75,0.08) inset;
        }
        #componentTooltip .tt-title {
            font-size: 0.65rem;
            font-weight: 800;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: #c8a84b;
            margin-bottom: 7px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        #componentTooltip .tt-title::before {
            content: '';
            display: inline-block;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #c8a84b;
            flex-shrink: 0;
        }
        #componentTooltip .tt-specs {
            margin: 0;
            padding: 0;
            list-style: none;
        }
        #componentTooltip .tt-specs li {
            font-size: 0.72rem;
            color: rgba(255,255,255,0.8);
            line-height: 1.6;
            padding-left: 10px;
            position: relative;
        }
        #componentTooltip .tt-specs li::before {
            content: '›';
            position: absolute;
            left: 0;
            color: rgba(200,168,75,0.6);
        }
        #componentTooltip .tt-action {
            margin-top: 8px;
            padding-top: 7px;
            border-top: 1px solid rgba(255,255,255,0.06);
            font-size: 0.62rem;
            color: rgba(200, 168, 75, 0.55);
            letter-spacing: 0.06em;
        }
        #componentTooltip.no-action .tt-action { display: none; }

