.lab-page {
            --bg-color: #000000;
            --text-color: #ffffff;
            --secondary-text: #8e8e93;
            --accent-color: #0071e3;
            --border-color: rgba(255, 255, 255, 0.1);
            --card-bg: rgba(28, 28, 30, 0.7);
            --glass: rgba(255, 255, 255, 0.05);
            --sidebar-width: 260px;
        }

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

        .lab-page {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background:
                radial-gradient(circle at 18% 12%, rgba(0, 113, 227, 0.18), transparent 32rem),
                radial-gradient(circle at 88% 28%, rgba(124, 60, 255, 0.16), transparent 34rem),
                linear-gradient(180deg, #05070b 0%, var(--bg-color) 42%);
            color: var(--text-color);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .app-container {
            display: grid;
            grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
            align-items: start;
            flex: 1;
            min-height: 100vh;
        }

        .app-container[hidden],
        .password-gate[hidden] {
            display: none;
        }

        .password-gate {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 32px 20px;
        }

        .password-card {
            width: min(100%, 420px);
            padding: 34px;
            background: rgba(28, 28, 30, 0.86);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
        }

        .password-kicker {
            margin-bottom: 8px;
            color: var(--accent-color);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1.6px;
            text-transform: uppercase;
        }

        .password-card h1 {
            margin-bottom: 10px;
        }

        .password-card p {
            margin-bottom: 24px;
            color: var(--secondary-text);
            font-size: 14px;
        }

        .password-row {
            display: flex;
            gap: 10px;
        }

        .password-row input {
            min-width: 0;
            flex: 1;
            height: 42px;
            padding: 0 14px;
            color: var(--text-color);
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            outline: none;
            font-size: 14px;
        }

        .password-row input:focus {
            border-color: rgba(66, 245, 255, 0.58);
            box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16);
        }

        .password-error {
            min-height: 20px;
            margin-top: 12px;
            color: #ff453a;
            font-size: 13px;
        }

        .lab-page aside {
            position: sticky;
            top: 72px;
            width: var(--sidebar-width);
            height: calc(100vh - 72px);
            padding: 32px 18px;
            overflow-y: auto;
            background:
                linear-gradient(180deg, rgba(10, 14, 22, 0.92), rgba(0, 0, 0, 0.78)),
                rgba(255, 255, 255, 0.03);
            border-right: 1px solid var(--border-color);
            z-index: 10;
        }

        .nav-label {
            margin: 0 12px 16px;
            color: var(--secondary-text);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .nav-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .nav-item {
            position: relative;
            display: flex;
            align-items: center;
            min-height: 46px;
            padding: 12px 14px;
            color: rgba(255, 255, 255, 0.78);
            background:
                linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            cursor: pointer;
            user-select: none;
            overflow: hidden;
            transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
        }

        .nav-item::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 18% 50%, rgba(66, 245, 255, 0.22), transparent 42%),
                linear-gradient(90deg, rgba(0, 113, 227, 0.18), transparent 58%);
            opacity: 0;
            transition: opacity 0.18s ease;
            pointer-events: none;
        }

        .nav-item span,
        .nav-item i {
            position: relative;
            z-index: 1;
        }

        .nav-item:hover {
            color: #fff;
            transform: translateX(4px);
            border-color: rgba(66, 245, 255, 0.42);
            box-shadow: 0 10px 28px rgba(0, 113, 227, 0.14);
        }

        .nav-item:hover::before {
            opacity: 1;
        }

        .nav-item.active {
            color: #fff;
            background:
                linear-gradient(135deg, rgba(0, 113, 227, 0.38), rgba(66, 245, 255, 0.12));
            border-color: rgba(66, 245, 255, 0.58);
            box-shadow:
                inset 0 0 0 1px rgba(255, 255, 255, 0.08),
                0 0 24px rgba(0, 113, 227, 0.24);
        }

        .nav-item.active::before {
            opacity: 1;
        }

        /* Main Content */
        .lab-page main {
            flex-grow: 1;
            padding: 112px 60px 64px;
            max-width: 1600px;
        }

        .room-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 40px;
        }

        h1 {
            font-size: 32px;
            font-weight: 700;
            letter-spacing: -1px;
        }

        .btn {
            background: var(--accent-color);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.2s;
        }

        .btn:hover {
            filter: brightness(1.2);
            transform: scale(1.02);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--accent-color);
            color: var(--accent-color);
        }

        /* Grid System */
        .grid {
            display: grid;
            grid-template-columns: 1fr 320px 320px;
            gap: 24px;
            align-items: start;
        }

        .card {
            background: rgba(28, 28, 30, 0.86);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 32px;
            box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
        }

        .card-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--secondary-text);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Image Gallery */
        .image-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 16px;
        }

        .image-container {
            border-radius: 12px;
            overflow: hidden;
            background: #1c1c1e;
            border: 1px solid var(--border-color);
            cursor: zoom-in;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .image-container img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: transform 0.3s ease;
        }

        .image-container:hover img {
            transform: scale(1.02);
        }

        .no-image {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: var(--secondary-text);
            font-size: 12px;
        }

        /* Design Iterations */
        .iteration-card {
            border-left: 3px solid var(--accent-color);
            background: rgba(255, 255, 255, 0.02);
        }

        .iteration-meta {
            font-size: 12px;
            color: var(--secondary-text);
            margin-bottom: 12px;
        }

        .badge-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 16px;
        }

        .badge {
            background: rgba(0, 113, 227, 0.1);
            color: var(--accent-color);
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            border: 1px solid rgba(0, 113, 227, 0.2);
        }

        /* Todo List */
        .todo-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .todo-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            background: rgba(255, 255, 255, 0.03);
            padding: 12px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            transition: border-color 0.2s;
        }

        .todo-item:hover {
            border-color: rgba(66, 245, 255, 0.26);
            background: rgba(255, 255, 255, 0.045);
        }

        .todo-checkbox {
            appearance: none;
            width: 20px;
            height: 20px;
            border: 2px solid var(--secondary-text);
            border-radius: 50%;
            cursor: pointer;
            margin-top: 2px;
            flex-shrink: 0;
            transition: all 0.2s;
        }

        .todo-checkbox:checked {
            background: var(--accent-color);
            border-color: var(--accent-color);
        }

        .todo-text {
            flex-grow: 1;
            font-size: 14px;
            outline: none;
        }

        .completed .todo-text {
            color: var(--secondary-text);
            text-decoration: line-through;
        }

        .round-selector {
            background: rgba(0, 113, 227, 0.15);
            color: var(--accent-color);
            border: 1px solid rgba(0, 113, 227, 0.3);
            border-radius: 6px;
            font-size: 10px;
            font-weight: 700;
            padding: 2px 8px;
            cursor: pointer;
            outline: none;
            transition: all 0.2s;
            appearance: none;
            -webkit-appearance: none;
            text-align: center;
        }

        .round-selector:hover {
            background: var(--accent-color);
            color: white;
            border-color: var(--accent-color);
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
        }


        /* Save Modal */
        #saveModal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: #1c1c1e;
            padding: 40px;
            border-radius: 20px;
            width: 90%;
            max-width: 600px;
            border: 1px solid var(--border-color);
        }

        /* Image Viewer Modal */
        #viewerModal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.95);
            z-index: 3000;
            cursor: zoom-out;
            align-items: center;
            justify-content: center;
            padding: 40px;
        }

        #viewerModal img {
            max-width: 100%;
            max-height: 100%;
            border-radius: 8px;
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
            object-fit: contain;
        }

        .viewer-close {
            position: absolute;
            top: 30px;
            right: 30px;
            color: white;
            font-size: 24px;
            opacity: 0.5;
            transition: opacity 0.2s;
        }

        .viewer-close:hover {
            opacity: 1;
        }

        pre {
            background: #000;
            padding: 20px;
            border-radius: 12px;
            overflow: auto;
            max-height: 60vh;
            margin: 20px 0;
            font-size: 12px;
            font-family: monospace;
            color: #39d98a;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        @media (max-width: 1100px) {
            .app-container {
                display: block;
            }

            .lab-page aside {
                position: sticky;
                top: 72px;
                width: 100%;
                height: auto;
                max-height: calc(100vh - 72px);
                padding: 18px;
                border-right: 0;
                border-bottom: 1px solid var(--border-color);
            }

            .nav-list {
                flex-direction: row;
                overflow-x: auto;
                padding-bottom: 4px;
            }

            .nav-item {
                flex: 0 0 auto;
                min-width: 150px;
            }

            .lab-page main {
                margin-left: 0;
                padding: 32px 20px 48px;
            }

            .grid {
                grid-template-columns: 1fr;
            }

            .password-card {
                padding: 28px 22px;
            }

            .password-row {
                flex-direction: column;
            }
        }
