/*
  1Auth site surfaces — the shared look across the three faces:
    home    (1auth.us)         marketing
    control (control.1auth.us) company console
  The web vault keeps its own stylesheet (extension/src/ui/oneauth.css); this
  file carries the same indigo tokens so the surfaces match. Single sign-on so
  switching between them feels like one product: the top bar and the product
  switcher are identical on every page here.
*/

:root {
  --indigo: #4f46e5; --indigo-600: #4f46e5; --indigo-700: #4338ca; --indigo-400: #818cf8;
  --bg: #ffffff; --bg-subtle: #f7f7fb; --card: #ffffff; --card-2: #fbfbfe;
  --text: #15131f; --muted: #5b5872; --faint: #8e8ba6;
  --border: #e9e8f2; --border-strong: #dddcec;
  --accent: #4f46e5; --accent-hover: #4338ca; --accent-soft: #eceafe; --accent-text: #ffffff;
  --ring: rgba(79, 70, 229, 0.28);
  --ok: #0f9d58; --ok-soft: #e4f6ec; --warn: #b45309; --warn-soft: #fdf1df; --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(23, 20, 51, 0.06);
  --shadow: 0 2px 4px rgba(23, 20, 51, 0.05), 0 18px 40px -20px rgba(67, 56, 202, 0.35);
  --shadow-lg: 0 2px 6px rgba(23, 20, 51, 0.06), 0 40px 80px -28px rgba(67, 56, 202, 0.45);
  --radius: 18px; --radius-sm: 12px; --radius-pill: 999px;
  --sky: radial-gradient(130% 90% at 50% -10%, #efeefe 0%, #f7f7fb 42%, var(--bg) 70%);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --indigo: #818cf8;
    --bg: #0c0b14; --bg-subtle: #121120; --card: #15131f; --card-2: #181626;
    --text: #f3f2fb; --muted: #aba8c6; --faint: #817ea0;
    --border: #221f33; --border-strong: #312c47;
    --accent: #818cf8; --accent-hover: #a5b4fc; --accent-soft: #211d4a; --accent-text: #0a0a0a;
    --ring: rgba(129, 140, 248, 0.4);
    --ok: #4ade80; --ok-soft: #10281c; --warn: #fbbf24; --warn-soft: #2a2110; --danger: #f87171;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 20px 48px -20px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.5), 0 48px 90px -28px rgba(0, 0, 0, 0.8);
    --sky: radial-gradient(130% 90% at 50% -10%, #1a1838 0%, #100f1d 45%, var(--bg) 72%);
  }
}
:root[data-theme="dark"] {
  --indigo: #818cf8;
  --bg: #0c0b14; --bg-subtle: #121120; --card: #15131f; --card-2: #181626;
  --text: #f3f2fb; --muted: #aba8c6; --faint: #817ea0;
  --border: #221f33; --border-strong: #312c47;
  --accent: #818cf8; --accent-hover: #a5b4fc; --accent-soft: #211d4a; --accent-text: #0a0a0a;
  --ring: rgba(129, 140, 248, 0.4);
  --ok: #4ade80; --ok-soft: #10281c; --warn: #fbbf24; --warn-soft: #2a2110; --danger: #f87171;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 20px 48px -20px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.5), 0 48px 90px -28px rgba(0, 0, 0, 0.8);
  --sky: radial-gradient(130% 90% at 50% -10%, #1a1838 0%, #100f1d 45%, var(--bg) 72%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
body.marketing { background: var(--sky) no-repeat var(--bg); background-size: 100% 900px; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 1000px; }

/* ---- Buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 0.94rem; padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-text); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.14); }
.btn.primary:hover { background: var(--accent-hover); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.14); }
.btn.ghost { border-color: var(--border-strong); color: var(--text); background: var(--card); }
.btn.ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn.subtle { background: var(--accent-soft); color: var(--indigo); }
.btn.subtle:hover { background: color-mix(in srgb, var(--accent-soft) 70%, var(--indigo) 12%); }
.btn.sm { padding: 7px 13px; font-size: 0.86rem; }
.btn.lg { padding: 13px 24px; font-size: 1rem; }
.btn svg { width: 17px; height: 17px; }

/* ---- Top bar + product switcher ------------------------------------------- */
header.topbar { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.6) blur(10px);
  background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--border); }
.topbar-row { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--text); }
.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.brand b { color: var(--indigo); font-weight: 800; }
.brand .brand-name { font-weight: 800; }
.topbar .nav-links { display: flex; gap: 20px; margin-left: 6px; }
.topbar .nav-links a { color: var(--muted); font-weight: 500; font-size: 0.92rem; }
.topbar .nav-links a:hover, .topbar .nav-links a.on { color: var(--text); }
.topbar-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* The switcher: a chip showing the current surface, opening a small menu to
   the other two. Pure CSS via <details>. */
.switcher { position: relative; }
.switcher > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px 7px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--card); color: var(--text); font-weight: 600; font-size: 0.86rem; }
.switcher > summary::-webkit-details-marker { display: none; }
.switcher > summary:hover { border-color: var(--indigo); }
.switcher .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); flex: none; }
.switcher .chev { width: 15px; height: 15px; color: var(--faint); transition: transform .15s; }
.switcher[open] .chev { transform: rotate(180deg); }
.switcher .menu { position: absolute; right: 0; top: calc(100% + 8px); width: 272px; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 7px; z-index: 50; }
.switcher .menu .head { font-size: 0.7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); padding: 7px 10px 4px; }
.switcher .opt { display: flex; gap: 11px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; }
.switcher .opt:hover { background: var(--bg-subtle); }
.switcher .opt.current { background: var(--accent-soft); }
.switcher .opt .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--indigo); }
.switcher .opt .ic svg { width: 17px; height: 17px; }
.switcher .opt .t { font-weight: 650; font-size: 0.9rem; }
.switcher .opt .d { font-size: 0.78rem; color: var(--muted); margin-top: 1px; }
.switcher .opt .now { margin-left: auto; align-self: center; font-size: 0.68rem; font-weight: 700; color: var(--indigo); }

.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--indigo), #a855f7);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.82rem; }

/* ---- Marketing: hero & sections ------------------------------------------- */
.hero { text-align: center; padding: 72px 0 36px; }
.heromark { width: 76px; height: 76px; border-radius: 20px; box-shadow: var(--shadow-lg); margin-bottom: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--indigo);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--indigo) 22%, transparent);
  padding: 5px 13px; border-radius: var(--radius-pill); }
h1.display { font-size: clamp(2.2rem, 6vw, 3.7rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin: 18px 0; }
.grad { background: linear-gradient(100deg, var(--indigo) 0%, #a855f7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.02rem, 2.4vw, 1.22rem); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.reassure { margin-top: 16px; font-size: 0.84rem; color: var(--faint); }

.platforms { display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap; align-items: center;
  padding: 24px 0 8px; color: var(--faint); font-size: 0.82rem; font-weight: 600; }
.platforms span { display: inline-flex; align-items: center; gap: 7px; }
.platforms svg { width: 16px; height: 16px; opacity: .85; }

section.block { padding: 56px 0; }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 42px; }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -0.03em; font-weight: 800; margin: 0 0 12px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.feature .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--indigo); margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Two audiences side by side (personal vault vs company console) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; background: linear-gradient(180deg, var(--card), var(--card-2)); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.panel.accent { background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 60%, var(--card)), var(--card)); border-color: color-mix(in srgb, var(--indigo) 24%, var(--border)); }
.panel .kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--indigo); }
.panel h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -0.02em; margin: 8px 0 8px; font-weight: 800; }
.panel > p { color: var(--muted); margin: 0 0 16px; }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.95rem; }
.ticks svg { width: 18px; height: 18px; color: var(--indigo); flex: none; margin-top: 2px; }
.panel .foot { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.protocol-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 0; }
.badge { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; color: var(--indigo); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--indigo) 20%, transparent); padding: 7px 12px; border-radius: 10px; }

.band { background: linear-gradient(135deg, #312e81 0%, #4f46e5 60%, #6d28d9 100%); color: #fff; border-radius: 26px;
  padding: 48px 40px; text-align: center; box-shadow: var(--shadow-lg); }
.band h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -0.03em; margin: 0 0 12px; font-weight: 800; }
.band p { color: rgba(255,255,255,.82); max-width: 580px; margin: 0 auto 10px; }
.band .row { display: flex; gap: 14px 34px; justify-content: center; flex-wrap: wrap; margin-top: 22px; font-weight: 600; font-size: 0.92rem; }
.band .row span { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.95); }
.band .row svg { width: 17px; height: 17px; }

/* Download grid */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dl { display: flex; gap: 13px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow-sm); transition: border-color .15s, transform .05s; }
.dl:hover { border-color: var(--indigo); }
.dl:active { transform: translateY(1px); }
.dl .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--indigo); flex: none; }
.dl .ic svg { width: 22px; height: 22px; }
.dl .t { font-weight: 700; font-size: 0.96rem; }
.dl .d { font-size: 0.8rem; color: var(--faint); }
.dl .soon { font-size: 0.68rem; font-weight: 700; color: var(--warn); background: var(--warn-soft); padding: 2px 7px; border-radius: 999px; margin-left: auto; }

.final { text-align: center; }
.final h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); letter-spacing: -0.03em; font-weight: 800; margin: 0 0 14px; }
.final p { color: var(--muted); font-size: 1.08rem; margin: 0 0 26px; }

footer.site { border-top: 1px solid var(--border); padding: 34px 0 48px; color: var(--faint); font-size: 0.88rem; margin-top: 40px; }
.foot-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }

/* ---- Console shell (control) ---------------------------------------------- */
body.console { background: var(--bg-subtle); }
.console-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--card); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 18px 18px 10px; }
.side .org { margin: 4px 12px 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; display: flex; gap: 10px; align-items: center; }
.side .org .mono { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--indigo), #a855f7); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.82rem; flex: none; }
.side .org .n { font-weight: 700; font-size: 0.9rem; }
.side .org .r { font-size: 0.74rem; color: var(--faint); }
.side nav { padding: 6px 10px; overflow-y: auto; flex: 1; }
.side .group { font-size: 0.68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 5px; }
.side nav a { display: flex; gap: 11px; align-items: center; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-weight: 550; font-size: 0.9rem; }
.side nav a svg { width: 18px; height: 18px; flex: none; }
.side nav a:hover { background: var(--bg-subtle); color: var(--text); }
.side nav a.on { background: var(--accent-soft); color: var(--indigo); font-weight: 650; }
.side .side-foot { border-top: 1px solid var(--border); padding: 12px; }

.console-main { min-width: 0; display: flex; flex-direction: column; }
.console-top { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 26px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30; }
.console-top .crumbs { font-size: 0.9rem; color: var(--muted); font-weight: 550; }
.console-top .crumbs b { color: var(--text); }
.console-top .spacer { margin-left: auto; }
.console-body { padding: 28px 26px 60px; max-width: 980px; width: 100%; }

.preview-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; font-weight: 600; color: var(--warn);
  background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); padding: 4px 10px; border-radius: 999px; }
.preview-chip svg { width: 13px; height: 13px; }

.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 1.5rem; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 5px; }
.page-head p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.page-head .row { display: flex; align-items: flex-end; gap: 14px; }
.page-head .row .spacer { margin-left: auto; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.stat .k { font-size: 0.78rem; color: var(--faint); font-weight: 600; display: flex; gap: 7px; align-items: center; }
.stat .k svg { width: 15px; height: 15px; }
.stat .v { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.stat .v small { font-size: 0.9rem; font-weight: 600; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 18px; }
.card .card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card .card-head h2 { font-size: 1.02rem; font-weight: 700; margin: 0; }
.card .card-head p { font-size: 0.84rem; color: var(--muted); margin: 2px 0 0; }
.card .card-head .spacer { margin-left: auto; }
.card .card-body { padding: 18px 20px; }
.card .card-body.flush { padding: 0; }

/* Tables (members, etc.) */
table.grid-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.grid-table th { text-align: left; font-size: 0.72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 11px 20px; border-bottom: 1px solid var(--border); }
table.grid-table td { padding: 13px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.grid-table tr:last-child td { border-bottom: none; }
table.grid-table tr:hover td { background: var(--bg-subtle); }
.person { display: flex; gap: 11px; align-items: center; }
.person .avatar { width: 30px; height: 30px; font-size: 0.76rem; }
.person .n { font-weight: 650; }
.person .e { font-size: 0.8rem; color: var(--faint); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.warn { color: var(--warn); background: var(--warn-soft); }
.pill.muted { color: var(--faint); background: var(--bg-subtle); }
.chip { display: inline-flex; align-items: center; font-size: 0.78rem; font-weight: 600; color: var(--muted); background: var(--bg-subtle); border: 1px solid var(--border); padding: 3px 10px; border-radius: 8px; }
.chip.role { color: var(--indigo); background: var(--accent-soft); border-color: color-mix(in srgb, var(--indigo) 18%, transparent); }
.rowact { color: var(--faint); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; }
.rowact:hover { background: var(--bg-subtle); color: var(--text); }

/* Provider rows (SSO) */
.provider { display: flex; gap: 14px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.provider:last-child { border-bottom: none; }
.provider .logo { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-subtle); border: 1px solid var(--border); flex: none; font-weight: 800; color: var(--text); }
.provider .logo svg { width: 20px; height: 20px; }
.provider .meta { min-width: 0; }
.provider .meta .t { font-weight: 650; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.provider .meta .d { font-size: 0.82rem; color: var(--muted); }
.provider .act { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.84rem; font-weight: 650; margin-bottom: 6px; }
.field .hint { font-size: 0.8rem; color: var(--faint); margin: 5px 0 0; }
.field input[type=text], .field input[type=url], .field input[type=email], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.92rem; color: var(--text); background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 10px 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--ring); }
.field .ro { font-family: var(--mono); font-size: 0.84rem; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.field .ro code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--text); }
.field .ro .copy { color: var(--faint); flex: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.switch { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.switch:last-child { border-bottom: none; }
.switch .t { font-weight: 650; font-size: 0.92rem; }
.switch .d { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.switch .toggle { margin-left: auto; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .15s; }
.switch .toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch .toggle.on { background: var(--accent); }
.switch .toggle.on::after { transform: translateX(18px); }

.banner { display: flex; gap: 11px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; font-size: 0.88rem; }
.banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.banner.info { background: var(--accent-soft); color: var(--indigo); }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner a { text-decoration: underline; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-subtle); display: grid; place-items: center; margin: 0 auto 12px; color: var(--faint); }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .downloads { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .console-shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: column; }
  .side nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .side .group { width: 100%; }
}
@media (max-width: 620px) {
  .topbar .nav-links { display: none; }
  .grid, .downloads, .two-col, .stats { grid-template-columns: 1fr; }
  .band { padding: 36px 22px; }
  .switcher .menu { width: 248px; }
  .console-body, .console-top { padding-left: 16px; padding-right: 16px; }
}
