/**
 * QMF Lab Header — global Quizzman navigation
 * Clean SaaS chrome: discover capabilities, not in-app structure.
 */

:root {
    --qmf-header-h: 58px;
    /* Arc-like glass — floats over page content */
    --qmf-header-bg: rgba(255, 255, 255, 0.72);
    --qmf-header-border: rgba(15, 23, 42, 0.06);
    --qmf-header-blur: blur(20px) saturate(1.6);
    --qmf-header-shadow: 0 1px 0 rgba(15, 23, 42, 0.03), 0 8px 24px rgba(15, 23, 42, 0.06);
    --qmf-header-text: #0f172a;
    --qmf-header-muted: #64748b;
    --qmf-header-btn-bg: transparent;
    --qmf-header-btn-border: rgba(15, 23, 42, 0.08);
    --qmf-header-btn-hover-bg: rgba(15, 23, 42, 0.045);
    --qmf-header-btn-hover-color: #0f172a;
    --qm-color-border: rgba(15, 23, 42, 0.08);
    --qm-color-primary: #334155;
    --qm-color-accent: #4f46e5;
    --qm-color-accent-2: #7a5af8;
    --qm-color-accent-soft: rgba(79, 70, 229, 0.08);
    --qm-color-neutral-soft: rgba(100, 116, 139, 0.1);
    /* Eastern Lab brand hairline — gold → violet, ~45% opacity */
    --qmf-header-accent-line: linear-gradient(90deg, transparent 0%, rgba(197, 154, 58, 0.45) 18%, rgba(197, 154, 58, 0.35) 38%, rgba(122, 90, 248, 0.48) 62%, rgba(122, 90, 248, 0.28) 82%, transparent 100%);
}

[data-theme="dark"],
body.dark-mode {
    --qmf-header-bg: rgba(15, 23, 42, 0.62);
    --qmf-header-border: rgba(255, 255, 255, 0.07);
    --qmf-header-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.35);
    --qmf-header-text: #f1f5f9;
    --qmf-header-muted: #94a3b8;
    --qmf-header-btn-hover-bg: rgba(255, 255, 255, 0.06);
    --qmf-header-btn-hover-color: #f1f5f9;
    --qm-color-border: rgba(255, 255, 255, 0.08);
    --qm-color-primary: #e2e8f0;
    --qm-color-accent: #a5b4fc;
    --qm-color-accent-2: #c4b5fd;
    --qm-color-accent-soft: rgba(165, 180, 252, 0.12);
    --qm-color-neutral-soft: rgba(148, 163, 184, 0.14);
    --qmf-header-accent-line: linear-gradient(90deg, transparent 0%, rgba(212, 168, 67, 0.4) 18%, rgba(197, 154, 58, 0.3) 38%, rgba(167, 139, 250, 0.5) 62%, rgba(122, 90, 248, 0.28) 82%, transparent 100%);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Body offset only when header is fixed */
body.has-qmf-header:not(.lab-header--in-flow) {
    padding-top: var(--qmf-header-h);
}

body.has-qmf-header.lab-header--in-flow,
body:has(.qm-dictionary-mf).has-qmf-header {
    padding-top: 0;
}

.lab-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: var(--qmf-header-h);
    background: var(--qmf-header-bg);
    backdrop-filter: var(--qmf-header-blur);
    -webkit-backdrop-filter: var(--qmf-header-blur);
    border-bottom: 1px solid var(--qmf-header-border);
    box-shadow: var(--qmf-header-shadow);
    margin: 0;
    padding: 0;
    display: block;
}

/* Brand gradient hairline — Eastern Lab gold → violet */
.lab-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--qmf-header-accent-line);
    pointer-events: none;
}

.lab-header--in-flow {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    overflow: visible;
}

/* ── Flex layout ─────────────────────────────────────────── */
.lab-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 4px;
    padding: 0 18px;
}

.lab-header__brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--qmf-header-text);
    min-width: 0;
    max-width: min(240px, 32vw);
    margin-right: 4px;
    border-radius: 8px;
    transition: opacity 140ms ease;
}

.lab-header__brand:hover {
    opacity: 0.82;
}

.lab-header__logo {
    height: 26px;
    width: 26px;
    object-fit: contain;
    border-radius: 7px;
    flex-shrink: 0;
}

.lab-header__titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.12;
    min-width: 0;
    gap: 1px;
}

.lab-header__title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.lab-header__name,
.lab-header__brand-title {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--qmf-header-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Brand badge — small workspace pill (LAB / Beta / Experimental) */
.lab-header__badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
    background: linear-gradient(120deg, #c59a3a, #7a5af8);
    box-shadow: 0 1px 2px rgba(122, 90, 248, 0.22);
    white-space: nowrap;
}

[data-theme="dark"] .lab-header__badge,
body.dark-mode .lab-header__badge {
    color: #0b1120;
}

.lab-header__sub,
.lab-header__brand-subtitle {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--qmf-header-muted);
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lab-header__nav {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: clamp(10px, 1.6vw, 30px);
    padding-left: clamp(6px, 1vw, 18px);
    border-left: 1px solid var(--qmf-header-border);
    overflow: visible;
}

.lab-header__spacer {
    flex: 1 1 auto;
    min-width: 12px;
}

.lab-header__spacer--end {
    flex: 1 1 auto;
    min-width: 0;
}

.lab-header__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    padding-left: 12px;
    margin-left: 2px;
    position: relative;
}

/* Faint separator between search zone and the utilities cluster */
.lab-header__actions::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background: var(--qmf-header-border);
}

/*
 * Utilities rhythm:
 *   Language  |  Theme · Bell  |  Avatar ▼
 * Soft dividers; role/title live inside the avatar dropdown — not in the bar.
 */
.lab-header__actions > .lab-lang-selector {
    order: 20;
    margin-right: 4px;
    padding-right: 8px;
    border-right: 1px solid var(--qmf-header-border);
}

.lab-header__actions > .lab-header__btn,
.lab-header__actions > .qmf-settings-float,
.lab-header__actions > [data-qmf-theme],
.lab-header__actions > .theme-toggle {
    order: 35;
}

.lab-header__notification-slot {
    order: 50;
}

.lab-header__actions > .qmf-auth-wrap,
.lab-header__actions > .qmf-auth-login,
.lab-header__actions > .lah-wrap,
.lab-header__actions > .lah-login {
    order: 100;
    margin-left: 4px;
    padding-left: 8px;
    border-left: 1px solid var(--qmf-header-border);
}

/* Compact avatar chip — hide badges that clutter the bar */
.lab-header__actions .qmf-auth-chip {
    height: 32px;
    padding: 0 6px;
    gap: 2px;
    border-radius: 8px;
    background: transparent;
    border-color: transparent;
}

.lab-header__actions .qmf-auth-chip:hover {
    background: var(--qmf-header-btn-hover-bg);
    border-color: transparent;
}

.lab-header__actions .qmf-auth-tier,
.lab-header__actions .qmf-auth-lumen {
    display: none !important;
}

.lab-header__actions .qmf-auth-avatar-wrap {
    width: 28px;
    height: 28px;
}

.lab-header__actions .qmf-auth-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.68rem;
}

/* ── Global search — command-palette glass ───────────────── */
.lab-header__search {
    display: none;
    align-items: center;
    position: relative;
    height: 34px;
    flex: 0 1 400px;
    min-width: 200px;
    max-width: 440px;
    padding: 0 10px 0 34px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.035);
    border: 1px solid transparent;
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: none;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.lab-header__search:hover {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(122, 90, 248, 0.14);
    box-shadow: 0 0 0 3px rgba(122, 90, 248, 0.06), 0 4px 14px -6px rgba(197, 154, 58, 0.18);
}

@media (min-width: 900px) {
    .lab-header__search {
        display: inline-flex;
    }
}

.lab-header__search:focus-within {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(122, 90, 248, 0.35);
    box-shadow: 0 0 0 3px rgba(122, 90, 248, 0.12), 0 8px 22px -10px rgba(122, 90, 248, 0.35);
}

[data-theme="dark"] .lab-header__search,
body.dark-mode .lab-header__search {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .lab-header__search:focus-within,
body.dark-mode .lab-header__search:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.lab-header__search-label {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    color: var(--qmf-header-muted);
    pointer-events: none;
    transition: color 150ms ease;
}

.lab-header__search:focus-within .lab-header__search-label {
    color: var(--qm-color-accent);
}

/* AI sparkle — signals smart/command search */
.lab-header__search-ai {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    color: var(--qm-color-accent-2);
    opacity: 0.75;
    transition: opacity 150ms ease, transform 200ms ease;
}

.lab-header__search:hover .lab-header__search-ai,
.lab-header__search:focus-within .lab-header__search-ai {
    opacity: 1;
    transform: scale(1.05);
}

.lab-header__search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: none;
    background: transparent;
    outline: none;
    font: inherit;
    font-size: 13px;
    font-weight: 450;
    color: var(--qmf-header-text);
    padding: 0;
}

.lab-header__search-input::placeholder {
    color: var(--qmf-header-muted);
    opacity: 0.75;
}

.lab-header__search-kbd {
    flex: 0 0 auto;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-bottom-width: 2px;
    background: rgba(255, 255, 255, 0.85);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--qmf-header-muted);
    opacity: 0.85;
}

[data-theme="dark"] .lab-header__search-kbd,
body.dark-mode .lab-header__search-kbd {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.lab-header__search:focus-within .lab-header__search-kbd {
    display: none;
}

/* Notification slot */
.lab-header__notification-slot {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 32px;
    min-height: 32px;
}

@media (min-width: 721px) {
    body.authenticated .lab-header__notification-slot,
    .lab-header__notification-slot[data-legatus-auth="1"] {
        display: inline-flex;
    }
}

.lab-header__notification-slot legatus-bell {
    display: inline-flex;
}

.lab-header__mobile-menu,
.lab-header__menu-btn {
    flex: 0 0 auto;
    display: none;
}

/* ── Nav links — slim Figma-style pills ──────────────────── */
.lab-header__nav-link,
.lab-header__nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--qmf-header-muted);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

/* Section glyph — inherits link color, brightens on hover/active */
.lab-header__nav-ico {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 140ms ease, transform 140ms ease;
}

.lab-header__nav-text {
    line-height: 1;
}

/* Home is an icon-only portal: always available without adding another label. */
.lab-header__nav-link--compact {
    width: 32px;
    padding: 0;
    justify-content: center;
    margin-right: 3px;
}

.lab-header__nav-link--compact .lab-header__nav-ico {
    width: 17px;
    height: 17px;
}

.lab-header__nav-link:hover,
.lab-header__nav-trigger:hover {
    color: var(--qmf-header-text);
    background: var(--qmf-header-btn-hover-bg);
}

.lab-header__nav-link:hover .lab-header__nav-ico,
.lab-header__nav-trigger:hover .lab-header__nav-ico {
    opacity: 0.9;
}

.lab-header__nav-link.is-active,
.lab-header__nav-trigger.is-active,
.lab-header__nav-item--dropdown.is-active > .lab-header__nav-trigger {
    color: var(--qm-color-accent);
    background: var(--qm-color-accent-soft);
    font-weight: 650;
    box-shadow: none;
}

.lab-header__nav-link.is-active .lab-header__nav-ico,
.lab-header__nav-trigger.is-active .lab-header__nav-ico,
.lab-header__nav-item--dropdown.is-active > .lab-header__nav-trigger .lab-header__nav-ico {
    opacity: 1;
}

.lab-header__nav-item {
    position: relative;
    flex-shrink: 0;
}

.lab-header__nav-item--dropdown {
    display: flex;
    align-items: center;
}

.lab-header__nav-chevron {
    opacity: 0.4;
    flex-shrink: 0;
    transition: transform 160ms ease, opacity 140ms ease;
}

.lab-header__nav-item--dropdown.is-open .lab-header__nav-chevron,
.lab-header__nav-item--dropdown:hover .lab-header__nav-chevron {
    transform: rotate(180deg);
    opacity: 0.7;
}

.lab-header__nav-link:focus-visible,
.lab-header__nav-trigger:focus-visible {
    outline: 2px solid var(--qm-color-accent);
    outline-offset: 2px;
}

/* ── Mega menu ───────────────────────────────────────────── */
.lab-header__mega {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 300px;
    max-width: min(520px, calc(100vw - 24px));
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--qm-color-border);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.03),
        0 12px 28px rgba(15, 23, 42, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
    z-index: 1200;
}

.lab-header__mega--wide {
    min-width: 440px;
}

.lab-header__mega--align-right {
    left: auto;
    right: 0;
}

[data-theme="dark"] .lab-header__mega,
body.dark-mode .lab-header__mega {
    background: rgba(15, 23, 42, 0.98);
}

.lab-header__nav-item--dropdown.is-open .lab-header__mega,
.lab-header__nav-item--dropdown:hover .lab-header__mega,
.lab-header__nav-item--dropdown:focus-within .lab-header__mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lab-header__mega-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.lab-header__mega--wide .lab-header__mega-grid {
    grid-template-columns: 1fr 1fr;
}

.lab-header__mega-card {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 120ms ease;
}

.lab-header__mega-card:hover,
.lab-header__mega-card:focus-visible {
    background: rgba(15, 23, 42, 0.04);
    outline: none;
}

.lab-header__mega-card.is-active {
    background: var(--qm-color-accent-soft);
}

.lab-header__mega-card--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lab-header__mega-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--qm-color-neutral-soft);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--qmf-header-text);
}

.lab-header__mega-icon--img {
    padding: 4px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.03);
}

.lab-header__mega-icon--img picture,
.lab-header__mega-icon--img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lab-header__mega-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lab-header__mega-title {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--qmf-header-text);
}

.lab-header__mega-desc {
    font-size: 12px;
    line-height: 1.35;
    color: var(--qmf-header-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Legacy qm-group (product chrome without global nav) */
.lab-header__qm-group {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--qmf-header-text);
}

.lab-header__qm-logo {
    height: 24px;
    width: auto;
}

.lab-header__qm-name {
    font-size: 14px;
    font-weight: 600;
}

.lab-header__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--qmf-header-btn-border);
    background: var(--qmf-header-btn-bg);
    color: var(--qmf-header-muted);
    cursor: pointer;
    transition: background 140ms ease;
    text-decoration: none;
    font-family: inherit;
    padding: 0;
}

/* Mobile menu */
.lab-header__menu-btn,
.lab-header__mobile-menu {
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--qmf-header-muted);
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
}

.lab-header__menu-btn:hover,
.lab-header__mobile-menu:hover {
    background: var(--qmf-header-btn-hover-bg);
    color: var(--qmf-header-text);
}

/* Drawer */
.lab-header__drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1198;
}

.lab-header__drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 92vw);
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-left: 1px solid var(--qm-color-border);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.1);
    z-index: 1199;
    transform: translateX(100%);
    transition: transform 200ms ease;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .lab-header__drawer,
body.dark-mode .lab-header__drawer {
    background: rgba(15, 23, 42, 0.98);
}

.lab-header--drawer-open .lab-header__drawer {
    transform: translateX(0);
}

body.lab-header-drawer-open {
    overflow: hidden;
}

.lab-header__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--qm-color-border);
}

.lab-header__drawer-title {
    font-size: 14px;
    font-weight: 650;
}

.lab-header__drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--qmf-header-text);
    cursor: pointer;
}

.lab-header__drawer-close:hover {
    background: var(--qmf-header-btn-hover-bg);
}

.lab-header__drawer-body {
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lab-header__drawer-extras {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid var(--qm-color-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lab-header__drawer-link {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--qmf-header-text);
    font-size: 14px;
    font-weight: 550;
    transition: background 120ms ease;
}

.lab-header__drawer-link:hover,
.lab-header__drawer-link.is-active {
    background: var(--qmf-header-btn-hover-bg);
}

.lab-header__drawer-section {
    border-radius: 12px;
    overflow: hidden;
}

.lab-header__drawer-section-head {
    padding: 4px 10px 8px;
}

.lab-header__drawer-section-label {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--qmf-header-muted);
}

.lab-header__drawer-section-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lab-header__drawer-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 120ms ease;
}

.lab-header__drawer-item:hover,
.lab-header__drawer-item.is-active {
    background: var(--qmf-header-btn-hover-bg);
}

.lab-header__drawer-item--disabled {
    opacity: 0.5;
}

.lab-header__drawer-item-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--qmf-header-text);
}

.lab-header__drawer-item-desc {
    font-size: 12px;
    color: var(--qmf-header-muted);
    line-height: 1.35;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 720px) {
    .lab-header--has-nav .lab-header__nav {
        display: none !important;
    }

    .lab-header--has-nav .lab-header__mobile-menu,
    .lab-header--has-nav .lab-header__menu-btn {
        display: inline-flex;
    }

    .lab-header__brand {
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .lab-header__inner {
        padding: 0 10px;
        gap: 4px;
    }

    .lab-header__brand {
        max-width: 36px;
    }

    .lab-header__titles {
        display: none;
    }

    .lab-header__mega--wide {
        min-width: 280px;
    }

    .lab-header__mega--wide .lab-header__mega-grid {
        grid-template-columns: 1fr;
    }
}

/* Compat: old dropdown class names still used by some consumers */
.lab-header__dropdown {
    display: none;
}
