/* /Layout/LabLayout.razor.rz.scp.css */
.lab-shell[b-zvh17esave] {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
    background: #0f0f1a;
    color: #e0e8f0;
}

.lab-header[b-zvh17esave] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 3rem;
    min-height: 3rem;
    background: linear-gradient(135deg, #052764 0%, #3a0647 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 10;
    flex-shrink: 0;
}

.lab-appname[b-zvh17esave] {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.lab-header-meta[b-zvh17esave] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.lab-body[b-zvh17esave] {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-nw65dzws6e] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-nw65dzws6e] {
    flex: 1;
}

.sidebar[b-nw65dzws6e] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-nw65dzws6e] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-nw65dzws6e]  a, .top-row[b-nw65dzws6e]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-nw65dzws6e]  a:hover, .top-row[b-nw65dzws6e]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-nw65dzws6e]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-nw65dzws6e] {
        justify-content: space-between;
    }

    .top-row[b-nw65dzws6e]  a, .top-row[b-nw65dzws6e]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-nw65dzws6e] {
        flex-direction: row;
    }

    .sidebar[b-nw65dzws6e] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-nw65dzws6e] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-nw65dzws6e]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-nw65dzws6e], article[b-nw65dzws6e] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

.build-version[b-nw65dzws6e] {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-right: auto;
    letter-spacing: 0.03em;
    font-family: monospace;
}

.device-badge[b-nw65dzws6e] {
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-weight: 600;
    margin-left: 0.75rem;
    letter-spacing: 0.02em;
}

.device-desktop[b-nw65dzws6e] {
    background: #e9ecef;
    color: #495057;
}

.device-tablet[b-nw65dzws6e] {
    background: #d1ecf1;
    color: #0c5460;
}

.device-phone[b-nw65dzws6e] {
    background: #d4edda;
    color: #155724;
}

/* ── Mobile / Tablet app layout ─────────────────────────────── */

.mobile-layout[b-nw65dzws6e] {
    display: flex;
    flex-direction: column;
    height: 100dvh; /* dynamic viewport height — respects browser chrome on mobile */
    overflow: hidden;
}

.mobile-header[b-nw65dzws6e] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 3.25rem;
    min-height: 3.25rem;
    background: linear-gradient(135deg, rgb(5, 39, 103) 0%, #3a0647 100%);
    color: white;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.mobile-title[b-nw65dzws6e] {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.mobile-meta[b-nw65dzws6e] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-meta .build-version[b-nw65dzws6e] {
    color: rgba(255,255,255,0.55);
}

.mobile-meta .device-badge[b-nw65dzws6e] {
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
}

.mobile-content[b-nw65dzws6e] {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    background: #f8f9fa;
}

@media (max-width: 640px) {
    .mobile-content[b-nw65dzws6e] {
        padding: 0.5rem 0.5rem;
    }
}

/* ── Bottom tab bar ──────────────────────────────────────────── */

.mobile-tab-bar[b-nw65dzws6e] {
    display: flex;
    height: 4rem;
    min-height: 4rem;
    background: #ffffff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 10;
    padding-bottom: env(safe-area-inset-bottom); /* iPhone notch/home bar */
}

.tab-item[b-nw65dzws6e] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c757d;
    gap: 0.15rem;
    transition: color 0.15s, background 0.15s;
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
}

.tab-item:hover[b-nw65dzws6e] {
    background: #f1f3f5;
    color: #343a40;
    text-decoration: none;
}

.tab-item.active[b-nw65dzws6e] {
    color: rgb(5, 39, 103);
    background: #eef1fb;
    font-weight: 600;
}

.tab-icon[b-nw65dzws6e] {
    font-size: 1.35rem;
    line-height: 1;
}

.tab-label[b-nw65dzws6e] {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-blvlp48uw2] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-blvlp48uw2] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-blvlp48uw2] {
    font-size: 1.1rem;
}

.bi[b-blvlp48uw2] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-blvlp48uw2] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-blvlp48uw2] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-blvlp48uw2] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-blvlp48uw2] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-blvlp48uw2] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-blvlp48uw2] {
        padding-bottom: 1rem;
    }

    .nav-item[b-blvlp48uw2]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-blvlp48uw2]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-blvlp48uw2]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-blvlp48uw2] {
        display: none;
    }

    .collapse[b-blvlp48uw2] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-blvlp48uw2] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/Experiments/BuildView.razor.rz.scp.css */
.build-view[b-vs4dwchvzj] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
    background: #0f0f1a;
    color: #c8d8e8;
}

.build-header h3[b-vs4dwchvzj] {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
    color: #a0c8f0;
}

.build-header p[b-vs4dwchvzj] {
    margin: 0;
    font-size: 0.82rem;
    color: #4a6a8a;
}

/* ── Checklist ────────────────────────────────────────────────── */
.build-checklist[b-vs4dwchvzj] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.build-topic-block[b-vs4dwchvzj] {
    background: #161628;
    border: 1px solid #1e2a40;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.build-topic-label[b-vs4dwchvzj] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.5rem;
}

.build-topic-name[b-vs4dwchvzj] {
    font-weight: 700;
    font-size: 0.95rem;
    color: #e0e8f8;
}

/* custom checkbox square (topic level) */
.build-checkbox[b-vs4dwchvzj] {
    width: 18px;
    height: 18px;
    border: 2px solid #3a5a7a;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
}

.build-checkbox.checked[b-vs4dwchvzj] {
    background: #c0392b;
    border-color: #e74c3c;
}

.build-checkbox.checked[b-vs4dwchvzj]::after {
    content: '✓';
    color: white;
    font-size: 12px;
    line-height: 1;
}

.build-checkbox.partial[b-vs4dwchvzj] {
    background: rgba(192, 57, 43, 0.35);
    border-color: #e74c3c;
}

.build-checkbox.partial[b-vs4dwchvzj]::after {
    content: '–';
    color: #e74c3c;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
}

.build-experiments[b-vs4dwchvzj] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    padding-left: 0.4rem;
}

.build-exp-label[b-vs4dwchvzj] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #80f0a0;
    cursor: pointer;
    user-select: none;
    padding: 3px 8px 3px 4px;
    border-radius: 5px;
    transition: background 0.1s;
}

.build-exp-label:hover[b-vs4dwchvzj] {
    background: rgba(0, 180, 80, 0.1);
}

.build-exp-label input[type="checkbox"][b-vs4dwchvzj] {
    accent-color: #2ecc71;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ── Action bar ───────────────────────────────────────────────── */
.build-actions[b-vs4dwchvzj] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.build-btn[b-vs4dwchvzj] {
    padding: 0.6rem 1.6rem;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    letter-spacing: 0.04em;
}

.build-btn:hover:not(:disabled)[b-vs4dwchvzj] {
    opacity: 0.88;
    transform: translateY(-1px);
}

.build-btn:disabled[b-vs4dwchvzj] {
    opacity: 0.35;
    cursor: not-allowed;
}

.build-btn-sec[b-vs4dwchvzj] {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    background: #1a2540;
    color: #8ab;
    border: 1px solid #2a3a55;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s;
}

.build-btn-sec:hover[b-vs4dwchvzj] {
    background: #233060;
    color: #cdf;
}

/* ── QR result ────────────────────────────────────────────────── */
.build-result[b-vs4dwchvzj] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: #0a0a18;
    border: 1px solid rgba(0, 180, 80, 0.3);
    border-radius: 12px;
}

.build-qr-box[b-vs4dwchvzj] {
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    display: inline-block;
}

.build-url[b-vs4dwchvzj] {
    font-size: 0.72rem;
    color: #4a6a8a;
    word-break: break-all;
    text-align: center;
    font-family: monospace;
    max-width: 340px;
}

.build-hint[b-vs4dwchvzj] {
    margin: 0;
    font-size: 0.8rem;
    color: #2a7a4a;
    text-align: center;
}
/* /Pages/Experiments/DoppelspaltCanvas.razor.rz.scp.css */
.ds-wrapper[b-9zfeklr0wx] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.4rem 0.6rem;
    height: 100%;
    background: #070d1a;
    overflow-y: auto;
}

/* ── Controls ─────────────────────────────────────────────────────── */
.ds-controls[b-9zfeklr0wx] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: #0d1b2a;
    border: 1px solid #1e3050;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
}

.ds-slit-row[b-9zfeklr0wx] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ds-label[b-9zfeklr0wx] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #8ab4d4;
    font-size: 0.78rem;
    min-width: 100px;
    white-space: nowrap;
}

.slit-tag[b-9zfeklr0wx] {
    display: inline-block;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 1px 5px;
    border-radius: 4px;
    min-width: 20px;
    text-align: center;
}
.slit-tag.s1[b-9zfeklr0wx]         { background: #1a5c38; color: #80f8a0; }
.slit-tag.s2[b-9zfeklr0wx]         { background: #1a3a5c; color: #80c8f8; }
.slit-tag.speed[b-9zfeklr0wx]      { background: #3a2a10; color: #f0c040; }
.slit-tag.mode-tag[b-9zfeklr0wx]   { background: #2a1a40; color: #c090ff; }
.slit-tag.screen-tag[b-9zfeklr0wx] { background: #1a2a3a; color: #80c8f8; }

/* ── Mode toggle switch ───────────────────────────────────────────── */
.ds-mode-switch[b-9zfeklr0wx] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.ds-mode-label[b-9zfeklr0wx] {
    font-size: 0.75rem;
    color: #4a6a8a;
    transition: color 0.2s;
}
.ds-mode-label.active[b-9zfeklr0wx]       { color: #80c8f8; font-weight: 600; }
.ds-mode-label.active.light[b-9zfeklr0wx] { color: #60ff90; }

.ds-toggle[b-9zfeklr0wx] {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 18px;
    flex-shrink: 0;
}
.ds-toggle input[b-9zfeklr0wx] { display: none; }
.ds-toggle-slider[b-9zfeklr0wx] {
    position: absolute;
    inset: 0;
    background: #1a3a5c;
    border-radius: 18px;
    cursor: pointer;
    transition: background 0.2s;
}
.ds-toggle-slider[b-9zfeklr0wx]::before {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    left: 3px; top: 3px;
    background: #80c8f8;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}
.ds-toggle input:checked + .ds-toggle-slider[b-9zfeklr0wx] { background: #1a4a2a; }
.ds-toggle input:checked + .ds-toggle-slider[b-9zfeklr0wx]::before {
    transform: translateX(18px);
    background: #60ff90;
}

.slit-pct[b-9zfeklr0wx] {
    color: #4af0a0;
    font-variant-numeric: tabular-nums;
    min-width: 32px;
    text-align: right;
}

.ds-slider[b-9zfeklr0wx] {
    flex: 1;
    accent-color: #00cc77;
    height: 3px;
    cursor: pointer;
}

/* ── Canvas area ──────────────────────────────────────────────────── */
.ds-canvas-area[b-9zfeklr0wx] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ds-canvas-area canvas[b-9zfeklr0wx] {
    display: block;
    border-radius: 5px;
    border: 1px solid #1a3050;
}

/* ── Info bar ─────────────────────────────────────────────────────── */
.ds-info[b-9zfeklr0wx] {
    text-align: center;
    font-size: 0.75rem;
    padding: 0.15rem;
}

.ds-hint[b-9zfeklr0wx] {
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.75rem;
}
.ds-hint.closed[b-9zfeklr0wx] { background: #2a1010; color: #f08080; }
.ds-hint.single[b-9zfeklr0wx] { background: #2a2010; color: #f0d080; }
.ds-hint.double[b-9zfeklr0wx] { background: #0d2a1a; color: #60f0a0; }
/* /Pages/Experiments/PlaceholderCanvas.razor.rz.scp.css */
.placeholder-canvas[b-4odkc9imeq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
}

.placeholder-icon[b-4odkc9imeq] {
    font-size: 3.5rem;
    opacity: 0.6;
}

.placeholder-title[b-4odkc9imeq] {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4a7a9b;
    letter-spacing: 0.05em;
}

.placeholder-sub[b-4odkc9imeq] {
    font-size: 0.95rem;
    color: #2a3a55;
    font-style: italic;
}
/* /Pages/Experiments/QrCodeView.razor.rz.scp.css */
.qr-view[b-1kjlsyu3j7] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #0f0f1a;
}

.qr-view-inner[b-1kjlsyu3j7] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.qr-view-inner h3[b-1kjlsyu3j7] {
    color: #a0c8f0;
    font-size: 1.4rem;
    margin: 0;
}

.qr-view-inner p[b-1kjlsyu3j7] {
    color: #556;
    margin: 0;
    font-size: 0.9rem;
}

#qrcode-lab[b-1kjlsyu3j7] {
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    display: inline-block;
}

.qr-url[b-1kjlsyu3j7] {
    font-size: 0.78rem;
    color: #556;
    font-family: monospace;
    word-break: break-all;
    max-width: 280px;
}
/* /Pages/Lab.razor.rz.scp.css */
/* ── Shared ───────────────────────────────────────────────────── */
.lab-page[b-77md18203l] {
    display: flex;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* ── Topic sidebar / bar ─────────────────────────────────────── */
.lab-topics[b-77md18203l] {
    display: flex;
    flex-direction: column;
    background: #0a0a18;
    border-right: 1px solid #1e2a40;
    padding: 8px 6px 8px;
    gap: 5px;
    flex-shrink: 0;
}

.topic-tab[b-77md18203l] {
    background: rgba(160, 30, 30, 0.75);
    color: #ffd0d0;
    border: 1px solid rgba(220, 60, 60, 0.5);
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

.topic-tab:hover[b-77md18203l] {
    background: rgba(200, 50, 50, 0.9);
    color: #fff;
}

.topic-tab.active[b-77md18203l] {
    background: #c0392b;
    color: #fff;
    border-color: #e74c3c;
    box-shadow: 0 0 10px rgba(220, 60, 60, 0.6);
}

.topics-spacer[b-77md18203l] {
    flex: 1;
}

.qr-tab[b-77md18203l] {
    background: rgba(40, 40, 70, 0.8);
    border-color: rgba(100, 100, 160, 0.5);
    color: #aab;
}

.qr-tab:hover[b-77md18203l] {
    background: rgba(60, 60, 100, 0.9);
    color: #dde;
}

.qr-tab.active[b-77md18203l] {
    background: #2c3e6e;
    color: #fff;
    border-color: #4a6aaf;
    box-shadow: 0 0 10px rgba(80, 120, 200, 0.5);
}

.build-tab[b-77md18203l] {
    background: rgba(40, 70, 40, 0.8);
    border-color: rgba(80, 140, 80, 0.5);
    color: #aba;
}

.build-tab:hover[b-77md18203l] {
    background: rgba(60, 100, 60, 0.9);
    color: #dfd;
}

.build-tab.active[b-77md18203l] {
    background: #2d5a2d;
    color: #fff;
    border-color: #4aaf4a;
    box-shadow: 0 0 10px rgba(80, 200, 80, 0.4);
}

/* ── Main experiment area ────────────────────────────────────── */
.lab-main[b-77md18203l] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

/* ── Experiment tabs (green horizontal) ─────────────────────── */
.lab-exp-tabs[b-77md18203l] {
    display: flex;
    flex-direction: row;
    background: #0d1420;
    border-bottom: 2px solid rgba(0, 180, 80, 0.35);
    padding: 6px 10px 0;
    gap: 4px;
    overflow-x: auto;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.lab-exp-tabs[b-77md18203l]::-webkit-scrollbar { display: none; }

.exp-tab[b-77md18203l] {
    background: rgba(20, 100, 50, 0.5);
    color: #80f0a0;
    border: 1px solid rgba(0, 180, 80, 0.35);
    border-bottom: none;
    border-radius: 7px 7px 0 0;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.exp-tab:hover[b-77md18203l] {
    background: rgba(30, 140, 70, 0.75);
    color: #c0ffd0;
}

.exp-tab.active[b-77md18203l] {
    background: rgba(20, 160, 70, 0.95);
    color: #fff;
    border-color: rgba(0, 220, 100, 0.7);
    box-shadow: 0 0 8px rgba(0, 200, 80, 0.4);
}

/* ── Canvas region ───────────────────────────────────────────── */
.lab-canvas-area[b-77md18203l] {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #0f0f1a;
    position: relative;
}

/* ── Prompt (nothing selected) ──────────────────────────────── */
.lab-prompt[b-77md18203l] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.4rem;
    color: #2a3a55;
    font-weight: 600;
    letter-spacing: 0.04em;
    user-select: none;
}

/* ══ DESKTOP layout (SVG-style) ═════════════════════════════════ */
.lab-desktop[b-77md18203l] {
    flex-direction: row;
}

.lab-desktop .lab-topics[b-77md18203l] {
    width: 150px;
}

/* ══ MOBILE / TABLET layout ═════════════════════════════════════ */
.lab-mobile[b-77md18203l] {
    flex-direction: column;
}

.lab-mobile .lab-topics[b-77md18203l] {
    flex-direction: row;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #1e2a40;
    padding: 6px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
}

.lab-mobile .lab-topics[b-77md18203l]::-webkit-scrollbar { display: none; }

.lab-mobile .topic-tab[b-77md18203l] {
    padding: 7px 14px;
    font-size: 0.78rem;
    width: auto;
    flex-shrink: 0;
}

.lab-mobile .topics-spacer[b-77md18203l] {
    display: none;
}

.lab-mobile .qr-tab[b-77md18203l] {
    flex-shrink: 0;
}
