/* ============================================================================
   Panel v3 - admin design system
   Linear/Vercel-ish ops console, matches the BEM markup rendered by
   pages/_layout_head.php + the pages that live under pages/.

   Palette : warm near-black neutral (Zinc/Stone) + electric orange accent.
   Dials   : variance 3, motion 2, density 7.
   Theme   : light default, dark via prefers-color-scheme OR [data-theme="dark"].
   ========================================================================= */

/* ----- Design tokens ---------------------------------------------------- */
:root {
    --bg:            #fafaf9;
    --surface:       #ffffff;
    --surface-elev:  #f4f4f3;
    --surface-sunk:  #efedec;
    --border:        #e7e5e4;
    --border-strong: #d6d3d1;
    --text:          #0c0a09;
    --text-dim:      #44403c;
    --text-muted:    #78716c;

    --accent:        #ea580c;
    --accent-hover:  #c2410c;
    --accent-weak:   rgba(234, 88, 12, 0.10);
    --accent-ring:   rgba(234, 88, 12, 0.22);

    --success:       #15803d;
    --success-weak:  rgba(21, 128, 61, 0.10);
    --danger:        #b91c1c;
    --danger-weak:   rgba(185, 28, 28, 0.10);
    --warn:          #a16207;
    --warn-weak:     rgba(161, 98, 7, 0.12);
    --info:          #1d4ed8;
    --info-weak:     rgba(29, 78, 216, 0.10);

    --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
                 "Liberation Mono", monospace;

    --radius-sm:   4px;
    --radius:      6px;
    --radius-lg:   10px;
    --radius-pill: 999px;

    --nav-w:   220px;
    --topbar-h: 48px;

    --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
    --shadow:    0 2px 8px rgba(28, 25, 23, 0.06);
    --shadow-lg: 0 12px 32px rgba(28, 25, 23, 0.10);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:            #0b0c0e;
        --surface:       #111214;
        --surface-elev:  #17181b;
        --surface-sunk:  #0e0f11;
        --border:        rgba(255, 255, 255, 0.06);
        --border-strong: rgba(255, 255, 255, 0.11);
        --text:          #ebecee;
        --text-dim:      #a1a5ad;
        --text-muted:    #71757e;

        --accent:        #f97316;
        --accent-hover:  #fb923c;
        --accent-weak:   rgba(249, 115, 22, 0.14);
        --accent-ring:   rgba(249, 115, 22, 0.30);

        --success:       #22c55e;
        --success-weak:  rgba(34, 197, 94, 0.14);
        --danger:        #ef4444;
        --danger-weak:   rgba(239, 68, 68, 0.14);
        --warn:          #eab308;
        --warn-weak:     rgba(234, 179, 8, 0.14);
        --info:          #60a5fa;
        --info-weak:     rgba(96, 165, 250, 0.14);

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow:    0 2px 10px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);

        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg:            #0b0c0e;
    --surface:       #111214;
    --surface-elev:  #17181b;
    --surface-sunk:  #0e0f11;
    --border:        rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.11);
    --text:          #ebecee;
    --text-dim:      #a1a5ad;
    --text-muted:    #71757e;

    --accent:        #f97316;
    --accent-hover:  #fb923c;
    --accent-weak:   rgba(249, 115, 22, 0.14);
    --accent-ring:   rgba(249, 115, 22, 0.30);

    --success:       #22c55e;
    --success-weak:  rgba(34, 197, 94, 0.14);
    --danger:        #ef4444;
    --danger-weak:   rgba(239, 68, 68, 0.14);
    --warn:          #eab308;
    --warn-weak:     rgba(234, 179, 8, 0.14);
    --info:          #60a5fa;
    --info-weak:     rgba(96, 165, 250, 0.14);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow:    0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);

    color-scheme: dark;
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ----- App shell -------------------------------------------------------- */
.app {
    display: grid;
    grid-template-columns: var(--nav-w) 1fr;
    min-height: 100dvh;
}

/* ----- Sidebar (.nav) --------------------------------------------------- */
.nav {
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow-y: auto;
}

.brand {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
    width: 24px; height: 24px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    display: grid; place-items: center;
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
}
.brand-name {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: -0.01em;
    color: var(--text);
}

.nav__items {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-height: 0;
}

.nav__group {
    padding: 14px 10px 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.nav__group:first-child { padding-top: 6px; }

.nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 5px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: background .12s, color .12s;
}
.nav__item:hover {
    background: var(--surface-elev);
    color: var(--text);
    text-decoration: none;
}
.nav__item.is-active {
    background: var(--accent-weak);
    color: var(--accent);
}

.nav__right {
    margin-top: auto;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    position: sticky;
    bottom: 0;
}
.nav__user { flex: 1; min-width: 0; }
.nav__user-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav__user-role {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1px;
}

/* ----- Main + topbar ---------------------------------------------------- */
.main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    height: var(--topbar-h);
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar__crumbs {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.005em;
}
.topbar__spacer { flex: 1; }

.main__inner {
    padding: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ----- Page scaffolding ------------------------------------------------- */
.page {
    padding: 24px 24px 56px;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-title {
    margin: 0 0 2px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text);
}
.page-sub {
    color: var(--text-dim);
    font-size: 12.5px;
}
.page-sub strong { color: var(--text); font-weight: 600; }

.page-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

/* ----- Buttons ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 5px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.5;
    transition: background .12s, border-color .12s, color .12s, transform .08s;
}
.btn:hover {
    background: var(--surface-elev);
    text-decoration: none;
}
.btn:active { transform: translateY(0.5px); }

.btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-dim);
    padding: 4px 8px;
}
.btn--ghost:hover {
    background: var(--surface-elev);
    color: var(--text);
}

.btn--sm { padding: 3px 8px; font-size: 11px; }

/* ----- Flash messages --------------------------------------------------- */
.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 24px 0;
}
.flash {
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.flash::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.flash--success { background: var(--success-weak); border-color: transparent; color: var(--success); }
.flash--error   { background: var(--danger-weak);  border-color: transparent; color: var(--danger); }
.flash--warn    { background: var(--warn-weak);    border-color: transparent; color: var(--warn); }
.flash--info    { background: var(--info-weak);    border-color: transparent; color: var(--info); }

/* ----- Stat grid -------------------------------------------------------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}
.stat {
    padding: 14px 16px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 72px;
}
.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.stat-value {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
}
.stat-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}
.stat-sub.up   { color: var(--success); }
.stat-sub.down { color: var(--danger); }

/* ----- Filter strip + chips -------------------------------------------- */
.filter-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-dim);
    font-size: 11.5px;
    cursor: pointer;
    text-decoration: none;
    transition: background .12s, color .12s, border-color .12s;
}
.chip:hover {
    background: var(--surface-elev);
    color: var(--text);
    text-decoration: none;
}
.chip.is-active {
    background: var(--accent-weak);
    color: var(--accent);
    border-color: transparent;
}
.chip .count,
.chip__count {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    opacity: 0.7;
    font-size: 10.5px;
}

.filter-right {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: var(--surface-elev);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    min-width: 220px;
}
.search-field input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    padding: 2px 0;
}
.search-field input::placeholder { color: var(--text-muted); }
.search-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

/* ----- Data tables ----------------------------------------------------- */
.table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.table-inner { overflow-x: auto; }

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}
table.data th {
    padding: 8px 14px;
    text-align: left;
    font-weight: 500;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: var(--surface-elev);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
table.data th.num { text-align: right; }

table.data td {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface-elev); }

table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.mono,
.mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}
table.data td.mono { font-size: 11.5px; }

.cell-dim { color: var(--text-muted); }
.cell-key { color: var(--text); word-break: break-all; }

/* ----- Badges ---------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    border-radius: var(--radius-pill);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    line-height: 1.6;
    white-space: nowrap;
}
.badge::before {
    content: "";
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.badge--active  { background: var(--success-weak); color: var(--success); }
.badge--expired { background: var(--danger-weak);  color: var(--danger); }
.badge--pending { background: var(--warn-weak);    color: var(--warn); }
.badge--accent  { background: var(--accent-weak);  color: var(--accent); }
.badge--info    { background: var(--info-weak);    color: var(--info); }
.badge--none {
    background: var(--surface-elev);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.badge--none::before { display: none; }

/* ----- Row actions ----------------------------------------------------- */
.row-actions {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ----- Cards (settings/forms) ------------------------------------------ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px 20px;
    box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }

.card__head {
    margin-bottom: 14px;
}
.card__title {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.card__sub {
    margin: 0;
    font-size: 12px;
    color: var(--text-dim);
}

/* ----- Forms ----------------------------------------------------------- */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.field label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 7px 10px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    transition: border-color .12s, box-shadow .12s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
}
.field input:disabled {
    background: var(--surface-elev);
    color: var(--text-muted);
    cursor: not-allowed;
}

.field textarea { font-family: var(--font-mono); min-height: 72px; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.field-row--end {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.field-help {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ----- Drawer ---------------------------------------------------------- */
.drawer-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 50;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: var(--surface);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.2s cubic-bezier(0.3, 0.7, 0.4, 1);
    z-index: 51;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.drawer-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 18px;
    line-height: 1;
}
.drawer-close:hover { background: var(--surface-elev); color: var(--text); }

.drawer-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.drawer-foot {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    background: var(--surface);
}

body.drawer-open { overflow: hidden; }

/* ----- Auth shell (login / register) ----------------------------------- */
body.auth-page {
    background:
        radial-gradient(900px 500px at 10% -10%, var(--accent-weak), transparent 60%),
        var(--bg);
    min-height: 100dvh;
}

.auth-shell {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}

.auth-card__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.auth-card__title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.015em;
}
.auth-card__sub {
    margin: 0 0 20px;
    font-size: 12.5px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ----- Key inspector (find_key page) ----------------------------------- */
.inspector {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.inspector__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.inspector__key {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
}

.inspector__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.inspector__cell {
    background: var(--surface);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.inspector__cell-label {
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.inspector__cell-value {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}
.inspector__hwids {
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--surface-sunk);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-dim);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    word-break: break-all;
}
.inspector__hwid {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
    color: var(--text);
}

.empty-state {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
}
.empty-state strong { color: var(--text); display: block; margin-bottom: 4px; font-weight: 600; font-size: 14px; }

/* ----- Responsive ------------------------------------------------------ */
@media (max-width: 1024px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .app { grid-template-columns: 1fr; }
    .nav {
        position: fixed;
        left: 0; top: 0; bottom: 0;
        width: 260px;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform .2s;
        box-shadow: var(--shadow-lg);
    }
    .nav.is-open { transform: translateX(0); }
    .page { padding: 16px 14px 48px; }
    .field-row { grid-template-columns: 1fr; }
    .drawer { width: 100vw; }
    .search-field { min-width: 0; width: 100%; }
    .filter-right { margin-left: 0; width: 100%; }
    .page-head { flex-direction: column; align-items: flex-start; }
    .page-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .inspector__grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .drawer,
    .drawer-scrim,
    .nav,
    .btn,
    .chip,
    .nav__item,
    .field input,
    .field select,
    .field textarea { transition: none; }
}
