        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --blue: #0C07AD;
            --blue-tint: #eef5fc;
            --ink: #1c1d21;
            --muted: #111111;
            --line: #7e7e7e;
            --gold-1: #BB8E53;
            --gold-2: #A47333;
            --panel-bg: #ffffff;
            --radius: 16px;
            --btn-radius: 8px;
            --swatch-radius: 8px;
            --swatch-ring: #cd8e3c;
        }

        html,
        body {
            height: 100%;
            font-family: "Sora", sans-serif;
            color: var(--ink);
            background: #dfe1e4;
            -webkit-font-smoothing: antialiased;
        }

        .stage {
            position: fixed;
            inset: 0;
            overflow: hidden;
        }

        #app {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
            display: block;
            z-index: 0;
        }

        .camera-switcher {
            position: absolute;
            left: 20px;
            bottom: 20px;
            z-index: 10;
            background: #ffffff;
            border-radius: 20px;
            padding: 12px 14px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        }

        .view-btn {
            background: #ffffff;
            border: 1.5px solid transparent;
            border-radius: 16px;
            padding: 8px 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            width: 90px;
            height: 80px;
            font-family: "Sora", sans-serif;
        }

        .view-btn img {
            max-width: 100%;
            max-height: 40px;
            object-fit: contain;
            display: block;
        }

        .view-btn span {
            font-size: 13px;
            font-weight: 600;
            color: #4a4a4a;
        }

        .view-btn:hover {
            background: #f8f9fa;
        }

        .view-btn.active {
            border-color: #cd8e3c;
            background: #ffffff;
        }

        .view-btn.active span {
            color: #cd8e3c;
        }

        .panel {
            position: absolute;
            top: 50%;
            right: 28px;
            transform: translateY(-50%);
            z-index: 10;
            width: min(440px, calc(100vw - 64px));
            
            max-height: calc(100vh - 40px);

            background: var(--panel-bg);
            border-radius: var(--radius);
            box-shadow: 0 18px 50px rgba(20, 25, 35, 0.18);

            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .panel-body {
            overflow-y: auto;
            padding: 4px 18px 20px 28px;
            flex: 1 1 auto;
            min-height: 0;
            scrollbar-width: thin;
            scrollbar-color: var(--gold-1) #f1f3f5;
        }

        .panel-body::-webkit-scrollbar {
            width: 7px;
        }

        .panel-body::-webkit-scrollbar-track {
            background: #f1f3f5;
            border-radius: 10px;
            margin: 6px 0;
        }

        .panel-body::-webkit-scrollbar-thumb {
            background: var(--gold-1);
            border-radius: 10px;
            transition: background 0.2s ease;
        }

        .panel-body::-webkit-scrollbar-thumb:hover {
            background: var(--gold-2);
        }

        .panel-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            padding: 26px 26px 0;
            margin-bottom: 12px;
            flex: 0 0 auto;
        }

        .panel-head h1 {
            font-size: 26px;
            font-weight: 700;
            letter-spacing: -0.2px;
        }

        .panel-head p {
            font-size: 13px;
            color: var(--muted);
            margin-top: 4px;
        }

        .bookmark {
            width: 44px;
            height: 44px;
            border: 1px solid var(--line);
            border-radius: var(--btn-radius);
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--ink);
            transition: background .15s ease, border-color .15s ease;
        }

        .bookmark:hover {
            background: #f6f7f9;
        }

        .bookmark.active {
            color: var(--blue);
            border-color: var(--blue);
        }

        .label {
            display: block;
            font-size: 16px;
            line-height: 2;
            font-weight: 700;
            letter-spacing: 0.6px;
            color: var(--muted);
            margin-bottom: 12px;
        }

        .section {
            margin-bottom: 16px;
        }

        .section:first-of-type .label {
            margin-bottom: 18px;
        }

        .colors {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 15px;
        }

        .swatch {
            aspect-ratio: 1 / 1;
            border-radius: var(--swatch-radius);
            border: 1px solid rgba(0, 0, 0, 0.08);
            cursor: pointer;
            transition: transform .12s ease;
            position: relative;
        }

        .swatch:hover {
            transform: translateY(-1px);
        }

        .swatch.selected::after {
            content: "";
            position: absolute;
            inset: -8px;
            border-radius: 12px;
            border: 3px solid var(--swatch-ring);
            pointer-events: none;
        }

        .option {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            padding: 11px 16px;
            margin-bottom: 8px;
            border: 1px solid var(--line);
            border-radius: var(--btn-radius);
            background: #fff;
            cursor: pointer;
            text-align: left;
            font-family: "Sora", sans-serif;
            transition: border-color .15s ease, background .15s ease;
        }

        .option:last-child {
            margin-bottom: 0;
        }

        .option:hover {
            border-color: #cfd4da;
        }

        .option.selected {
            border-color: var(--blue);
            background: var(--blue-tint);
        }

        .radio {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 2px solid #c3c8cf;
            flex-shrink: 0;
            position: relative;
            transition: border-color .15s ease;
        }

        .option.selected .radio {
            border-color: var(--blue);
        }

        .option.selected .radio::after {
            content: "";
            position: absolute;
            inset: 3px;
            border-radius: 50%;
            background: var(--blue);
        }

        .option .name {
            flex: 1;
            font-size: 14px;
            color: var(--ink);
        }

        .option .price {
            font-size: 14px;
            color: var(--muted);
            font-weight: 500;
        }

        .check-row {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            padding: 13px 16px;
            border: 1px solid var(--line);
            border-radius: var(--btn-radius);
            background: #fff;
            cursor: pointer;
            text-align: left;
            font-family: "Sora", sans-serif;
        }

        .check-row:hover {
            border-color: #cfd4da;
        }

        .checkbox {
            width: 20px;
            height: 20px;
            border-radius: 6px;
            border: 2px solid #c3c8cf;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background .15s ease, border-color .15s ease;
        }

        .check-row.checked .checkbox {
            background: var(--blue);
            border-color: var(--blue);
        }

        .check-row.checked .checkbox svg {
            opacity: 1;
        }

        .checkbox svg {
            opacity: 0;
            width: 12px;
            height: 12px;
        }

        .check-row .name {
            flex: 1;
            font-size: 14px;
        }

        .check-row .price {
            font-size: 14px;
            color: var(--muted);
            font-weight: 500;
        }

        .price-block {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            padding: 6px 2px 2px;
            margin-bottom: 14px;
        }

        .price-block .sub {
            font-size: 12px;
            color: var(--muted);
            margin-top: 4px;
            font-weight: 400;
        }

        .price-block .total {
            font-size: 26px;
            font-weight: 700;
        }

        .summary {
            width: 100%;
            height: 50px;
            padding: 0 24px;
            border: 0;
            border-radius: var(--btn-radius);
            background: linear-gradient(90deg, var(--gold-1) 0%, var(--gold-2) 100%);
            color: #ffffff;
            font-size: 17px;
            font-weight: 700;
            font-family: "Sora", sans-serif;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 8px 20px rgba(164, 115, 51, 0.35);
            transition: filter .15s ease, transform .1s ease;
        }

        .summary:hover {
            filter: brightness(1.05);
        }

        .summary:active {
            transform: translateY(1px);
        }

        @media (max-width: 640px) {

            #app {
                height: 60%;
            }

            .camera-switcher {
                top: 16px;
                left: 16px;
                bottom: auto;
                padding: 6px 8px;
                gap: 6px;
                border-radius: 14px;
            }

            .view-btn {
                width: 65px;
                height: 60px;
                padding: 4px 6px;
                border-radius: 10px;
            }

            .view-btn img {
                max-height: 28px;
            }

            .view-btn span {
                font-size: 11px;
            }

            .panel {
                top: auto;
                bottom: -5px;
                right: 0px;
                left: 0px;
                transform: none;
                width: auto;
                max-height: 42vh;
                border-radius: 5px;
                box-shadow: 0 12px 30px rgba(20, 25, 35, 0.18);
                transition: bottom 0.25s ease;
            }

            .panel-head {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 18px 18px 12px;
                margin: 0;
                border-bottom: 1px solid rgba(17, 17, 17, 0.16);
            }

            .panel-body {
                padding: 0 18px 16px;
                overflow-y: auto;
            }

            .panel-head h1 {
                font-size: 24px;
                line-height: 1.2;
                letter-spacing: -0.02em;
            }

            .panel-head p {
                font-size: 12px;
                line-height: 1.4;
                margin-top: 4px;
            }

            .bookmark {
                width: 38px;
                height: 38px;
                border-radius: 10px;
                border: 1px solid rgba(17, 17, 17, 0.45);
                background: rgba(255, 255, 255, 0.9);
                flex-shrink: 0;
            }

            .bookmark img {
                width: 18px;
                height: 18px;
            }

            .price-block {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 18px 0 12px;
                margin-bottom: 0;
            }

            .price-block .label {
                font-size: 14px;
                line-height: 1.4;
                letter-spacing: 0.06em;
                margin-bottom: 4px;
            }

            .price-block .sub {
                font-size: 11px;
                line-height: 1.5;
                margin-top: 0;
            }

            .price-block .total {
                font-size: 32px;
                line-height: 1;
            }

            .summary {
                height: 46px;
                font-size: 15px;
                margin-top: 8px;
            }

            .colors {
                gap: 8px;
            }
        }

        @media (min-width: 641px) and (max-width: 1024px) {
            .panel {
                width: 380px;
                right: 18px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            * {
                transition: none !important;
            }
        }