@import url('/assets/brand.css');

/* Tokens: every colour comes from the brand tokens, mixed for tints. */
:root {
  --bg: var(--brand-background);
  --text: var(--brand-text);
  --heading: var(--brand-heading);
  --surface: color-mix(in srgb, var(--brand-background) 40%, white);
  --surface-2: color-mix(in srgb, var(--brand-primary) 10%, var(--brand-background));
  --muted: color-mix(in srgb, var(--brand-text) 78%, var(--brand-background));
  --line: color-mix(in srgb, var(--brand-text) 14%, transparent);
  --accent: var(--brand-primary);
  --accent-ink: color-mix(in srgb, var(--brand-primary) 48%, black);
  --on-accent: var(--brand-button-text);
  --ok-bg: color-mix(in srgb, var(--brand-primary) 26%, var(--brand-background));
  --warn-ink: color-mix(in srgb, var(--brand-text) 90%, red);
  --danger-bg: color-mix(in srgb, red 10%, var(--brand-background));
  --danger-ink: color-mix(in srgb, red 55%, black);
  --shadow: 0 10px 30px color-mix(in srgb, var(--brand-text) 14%, transparent);
  --font: var(--brand-font-body);
  --font-head: var(--brand-font-heading);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --t-xs: .8125rem; --t-sm: .9375rem; --t-md: 1rem; --t-lg: 1.25rem; --t-xl: 1.75rem; --t-2xl: 2.25rem; --t-hero: clamp(2.5rem, 7vw, 4.25rem);
  --r: 14px; --r-sm: 10px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: color-mix(in srgb, var(--brand-text) 88%, black);
  --text: var(--brand-background);
  --heading: var(--brand-background);
  --surface: color-mix(in srgb, var(--brand-text) 92%, var(--brand-background));
  --surface-2: color-mix(in srgb, var(--brand-text) 80%, var(--brand-primary));
  --muted: color-mix(in srgb, var(--brand-background) 80%, var(--brand-text));
  --line: color-mix(in srgb, var(--brand-background) 18%, transparent);
  --accent-ink: var(--brand-primary);
  --ok-bg: color-mix(in srgb, var(--brand-primary) 22%, var(--brand-text));
  --warn-ink: color-mix(in srgb, var(--brand-background) 85%, red);
  --danger-bg: color-mix(in srgb, red 18%, var(--brand-text));
  --danger-ink: color-mix(in srgb, red 35%, white);
  --shadow: 0 10px 30px color-mix(in srgb, black 40%, transparent);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--t-md); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--s3); }
h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); }
p { margin: 0 0 var(--s3); }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.money, .price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 2 * var(--s4)); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s5); border-radius: 999px; border: 2px solid transparent; font: 700 var(--t-sm)/1 var(--font-head); cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn-primary { background: var(--brand-button-background); color: var(--brand-button-text); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { min-height: 44px; padding: 0 var(--s4); font-size: var(--t-xs); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-danger { background: var(--danger-bg); color: var(--danger-ink); border-color: color-mix(in srgb, red 30%, transparent); }
.link-btn { background: none; border: 0; padding: 0 var(--s1); min-height: 44px; color: var(--accent-ink); font: 600 var(--t-sm) var(--font); text-decoration: underline; cursor: pointer; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: var(--s4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--heading); font: 800 var(--t-md) var(--font-head); }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: var(--s1); margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; padding: 0 var(--s3); min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; font-weight: 600; font-size: var(--t-sm); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); }
.header-tools { display: flex; align-items: center; gap: var(--s2); }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; }
.menu-btn { display: none; }
.auth-slot { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); }
.auth-slot .who { font-weight: 700; }
@media (max-width: 820px) {
  .menu-btn { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s3); display: none; margin: 0; }
  .nav.open { display: flex; }
  .header-tools { margin-left: auto; }
  .auth-slot .who { display: none; }
}

/* Hero (photo) */
.hero { position: relative; min-height: min(86vh, 720px); display: grid; align-items: end; color: white; background-color: var(--brand-text); background-image: linear-gradient(0deg, color-mix(in srgb, black 78%, transparent) 0%, color-mix(in srgb, black 45%, transparent) 55%, color-mix(in srgb, black 20%, transparent) 100%), url('/assets/stock-1.webp'); background-size: cover; background-position: center; }
.hero-inner { padding: var(--s8) 0 var(--s7); max-width: 760px; }
.hero h1 { color: white; font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: var(--s4); }
.hero h1 em { font-style: normal; color: var(--brand-primary); }
.hero p.lead { font-size: var(--t-lg); color: white; max-width: 560px; margin-bottom: var(--s5); }
.hero .eyebrow { display: inline-flex; gap: var(--s2); align-items: center; font-weight: 700; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; background: color-mix(in srgb, black 45%, transparent); padding: var(--s1) var(--s3); border-radius: 999px; margin-bottom: var(--s4); color: white; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero .btn-ghost { color: white; border-color: color-mix(in srgb, white 70%, transparent); }
.trust-row { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s5); font-size: var(--t-sm); color: white; }
.trust-row span { display: inline-flex; gap: var(--s2); align-items: center; }

/* Sections */
.section { padding: var(--s8) 0; }
.section-head { max-width: 640px; margin-bottom: var(--s6); }
.section-head .kicker { color: var(--accent-ink); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: var(--t-xs); margin-bottom: var(--s2); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.step img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.step .body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.step .n { font: 800 var(--t-xl) var(--font-head); color: var(--accent-ink); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.chip { display: inline-flex; gap: var(--s1); align-items: baseline; padding: var(--s1) var(--s3); border-radius: 999px; background: var(--surface-2); font-size: var(--t-xs); font-weight: 700; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .section { padding: var(--s7) 0; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s5); background: var(--surface); font-size: var(--t-sm); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s5); }
.site-footer h4 { font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.site-footer a { color: var(--text); }
.trust { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s3); }
.trust span { display: inline-flex; align-items: center; gap: var(--s1); border: 1px solid var(--line); border-radius: 999px; padding: var(--s1) var(--s3); font-size: var(--t-xs); font-weight: 600; }
.foot-base { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); color: var(--muted); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }

/* App pages */
.page { padding: var(--s6) 0 var(--s8); min-height: 60vh; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s3); margin-bottom: var(--s5); }
.journey { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s5); padding: 0; list-style: none; }
.journey li { font-size: var(--t-xs); font-weight: 700; padding: var(--s1) var(--s3); border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.journey li[aria-current="step"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }

/* Forms */
.field { display: grid; gap: var(--s1); margin-bottom: var(--s4); position: relative; }
.field label, .label { font-weight: 700; font-size: var(--t-sm); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: var(--s3); border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.input:focus { border-color: var(--accent-ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 35%, transparent); }
.field-error { color: var(--danger-ink); font-size: var(--t-xs); font-weight: 600; min-height: 1em; }
.error-summary { background: var(--danger-bg); color: var(--danger-ink); border-radius: var(--r-sm); padding: var(--s3) var(--s4); margin-bottom: var(--s4); font-weight: 600; }
.notice { background: var(--surface-2); border-radius: var(--r-sm); padding: var(--s3) var(--s4); margin-bottom: var(--s4); }
.suggest { list-style: none; margin: 0; padding: var(--s1); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 2px; }
.suggest button { width: 100%; text-align: left; min-height: 44px; padding: var(--s2) var(--s3); border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.suggest button:hover, .suggest button:focus-visible { background: var(--surface-2); }
.attribution { font-size: var(--t-xs); color: var(--muted); }
.check-row { display: flex; gap: var(--s3); align-items: center; min-height: 44px; }
.check-row input { width: 22px; height: 22px; accent-color: var(--accent-ink); }

/* Answers, badges */
.answer { display: flex; gap: var(--s4); align-items: center; padding: var(--s5); border-radius: var(--r); border: 2px solid var(--line); margin: var(--s4) 0; }
.answer .big { font: 800 var(--t-2xl) var(--font-head); text-transform: uppercase; }
.answer.yes { background: var(--ok-bg); border-color: var(--accent); }
.answer.no { background: var(--danger-bg); }
.badge { display: inline-flex; align-items: center; gap: var(--s1); padding: 2px var(--s3); border-radius: 999px; font-size: var(--t-xs); font-weight: 700; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.badge.yes, .badge.connected, .badge.activated, .badge.paid { background: var(--ok-bg); }
.badge.no, .badge.expired, .badge.cancelled, .badge.faulty { background: var(--danger-bg); color: var(--danger-ink); }

/* Plan cards */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s4); }
.plan { display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--s2); background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: var(--s5); height: 100%; }
.plan[aria-pressed="true"], .plan.selected { border-color: var(--accent); box-shadow: var(--shadow); }
.plan h3 { margin: 0; }
.plan .price { font: 800 var(--t-xl) var(--font-head); color: var(--heading); }
.plan ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: var(--t-sm); }
.plan.unavailable { opacity: .6; }

/* Slots */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
.slot { min-height: 88px; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; display: grid; gap: var(--s1); align-content: center; text-align: center; }
.slot strong { font: 800 var(--t-lg) var(--font-head); }
.slot[aria-pressed="true"] { border-color: var(--accent); background: var(--ok-bg); }
.slot:disabled { cursor: not-allowed; opacity: .55; }

/* Lines */
.lines { width: 100%; border-collapse: collapse; }
.lines td { padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.lines td:last-child { text-align: right; }
.lines tr.total td { font-weight: 800; border-bottom: 0; font-size: var(--t-lg); }
.radio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.radio-grid label { display: flex; gap: var(--s2); align-items: center; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 0 var(--s3); cursor: pointer; font-weight: 600; font-size: var(--t-sm); }
.radio-grid input { accent-color: var(--accent-ink); width: 20px; height: 20px; }
@media (max-width: 480px) { .radio-grid { grid-template-columns: 1fr; } }

/* Progress and map */
.progress { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.progress li { padding: var(--s3); border-radius: var(--r-sm); background: var(--surface-2); font-size: var(--t-xs); font-weight: 700; display: grid; gap: var(--s1); }
.progress li.done { background: var(--accent); color: var(--on-accent); }
@media (max-width: 560px) { .progress { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.map { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.map svg { width: 100%; height: 100%; display: block; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.timeline li { border-left: 3px solid var(--accent); padding-left: var(--s3); }
.timeline time { font-size: var(--t-xs); color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); max-height: 70vh; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
table.data th, table.data td { padding: var(--s2) var(--s3); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
table.data th button { background: none; border: 0; color: inherit; font: 700 var(--t-xs) var(--font); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; min-height: 32px; padding: 0; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover { background: var(--surface-2); }
.table-tools { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; margin-bottom: var(--s3); }
.pager { display: flex; gap: var(--s2); align-items: center; margin-top: var(--s3); }

/* States */
.skeleton { height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; margin: var(--s2) 0; }
@keyframes sk { to { background-position: -200% 0; } }
.empty, .error-state { text-align: center; padding: var(--s6) var(--s4); border: 1px dashed var(--line); border-radius: var(--r); }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .btn { transition: none; } }

/* Toast */
.toasts { position: fixed; z-index: 100; bottom: var(--s4); left: 50%; transform: translateX(-50%); display: grid; gap: var(--s2); width: min(440px, 100% - 2 * var(--s4)); }
.toast { background: var(--brand-text); color: var(--brand-background); padding: var(--s3) var(--s4); border-radius: var(--r-sm); box-shadow: var(--shadow); font-weight: 600; font-size: var(--t-sm); }
[data-theme="dark"] .toast { background: var(--brand-background); color: var(--brand-text); }
.toast.error { border-left: 6px solid red; }

/* Sign-in card */
.signin-shell { min-height: 100vh; display: grid; place-items: center; padding: var(--s5) var(--s3); }
.signin-card { width: min(480px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: var(--s6) var(--s5); }
.signin-card .brand { margin-bottom: var(--s4); }
.choices { display: grid; gap: var(--s3); border: 0; padding: 0; margin: 0 0 var(--s4); }
.choices legend { font-weight: 700; margin-bottom: var(--s2); }
.choice { text-align: left; width: 100%; min-height: 64px; display: grid; gap: 2px; padding: var(--s3) var(--s4); border-radius: var(--r); border: 2px solid var(--line); background: var(--bg); color: var(--text); font: inherit; cursor: pointer; }
.choice strong { font: 800 var(--t-md) var(--font-head); }
.choice span { color: var(--muted); font-size: var(--t-sm); }
.choice.primary { min-height: 84px; border-color: var(--accent); background: var(--surface-2); }
.choice.primary strong { font-size: var(--t-lg); }
.choice:hover { border-color: var(--accent-ink); }
.band { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--surface-2); margin-bottom: var(--s3); }
.otp { display: flex; gap: var(--s2); margin: var(--s2) 0; border: 0; padding: 0; }
.otp legend { font-weight: 700; margin-bottom: var(--s2); }
.otp input { width: 48px; height: 56px; text-align: center; font: 800 var(--t-xl) var(--font-head); border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--bg); color: var(--text); min-width: 0; }
.otp input:focus { border-color: var(--accent-ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 35%, transparent); }
@media (max-width: 400px) { .otp input { width: 40px; height: 50px; } }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: var(--s5); border-top: 1px solid var(--line); padding-top: var(--s3); flex-wrap: wrap; }
.status-line { font-weight: 700; margin: var(--s3) 0; }
.under-card { text-align: center; margin-top: var(--s4); font-size: var(--t-sm); }

/* Admin shell */
.admin { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--brand-text); color: var(--brand-background); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s4); position: sticky; top: 0; height: 100vh; }
.sidebar .brand { color: var(--brand-background); }
.sidebar .console-tag { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--brand-primary); font-weight: 800; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { color: var(--brand-background); text-decoration: none; display: flex; gap: var(--s3); align-items: center; min-height: 44px; padding: 0 var(--s3); border-radius: var(--r-sm); font-weight: 600; font-size: var(--t-sm); }
.side-nav a:hover { background: color-mix(in srgb, var(--brand-background) 10%, transparent); }
.side-nav a[aria-current="page"] { background: var(--brand-primary); color: var(--brand-button-text); }
.topbar { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 10; min-height: 64px; }
.topbar .title { font: 800 var(--t-lg) var(--font-head); margin: 0; }
.topbar .spacer { flex: 1; }
.admin-main { padding: var(--s5); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s3); margin-bottom: var(--s5); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); }
.kpi .v { font: 800 var(--t-xl) var(--font-head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .l { font-size: var(--t-xs); color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.cols > * { min-width: 0; }
.stack { display: grid; gap: var(--s3); }
.job-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); display: grid; gap: var(--s2); }
.job-card .row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; justify-content: space-between; }
.chart { width: 100%; height: 220px; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .bar { fill: var(--accent); }
.admin-menu { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s; z-index: 50; }
  .sidebar.open { transform: none; }
  .admin-menu { display: inline-grid; }
  .cols { grid-template-columns: 1fr; }
  .admin-main { padding: var(--s3); }
  .topbar { padding: var(--s2) var(--s3); }
}
