/* Cedar: calm, product-first. Stone neutrals with a copper signature. One family: Schibsted Grotesk. */
:root {
  --page: #f5f4f2;
  --surface: #ffffff;
  --raised: #ffffff;
  --sunken: #eceae6;
  --hover: #efedea;
  --ink: #1c1a18;
  --ink-2: #57524c;
  --ink-3: #6d6760;
  --line: #e2dfda;
  --line-strong: #8c857d;
  --copper: #a3461f;
  --copper-hover: #8a3816;
  --on-copper: #ffffff;
  --copper-text: #9a421c;
  --copper-soft: #f6e7dd;
  --ok: #276b43;
  --ok-soft: #e1f1e7;
  --warn: #845300;
  --warn-soft: #fbefd6;
  --danger: #b3261e;
  --danger-soft: #fbe3e1;
  --shadow-1: 0 1px 2px rgb(28 26 24 / .06), 0 1px 1px rgb(28 26 24 / .04);
  --shadow-2: 0 12px 32px -12px rgb(28 26 24 / .18), 0 2px 6px rgb(28 26 24 / .06);
  --frame-glow: none;
  --theme-color: #f5f4f2;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --dur-fast: 100ms;
  --dur-base: 180ms;
  --ease-out: cubic-bezier(.25, 1, .5, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #121110;
  --surface: #1a1917;
  --raised: #22201d;
  --sunken: #0d0c0b;
  --hover: #262421;
  --ink: #eeeae4;
  --ink-2: #b2aaa1;
  --ink-3: #a0978d;
  --line: #2e2b27;
  --line-strong: #6f675f;
  --copper: #ef9a6a;
  --copper-hover: #f6b28b;
  --on-copper: #1f130c;
  --copper-text: #f2a578;
  --copper-soft: #3a2519;
  --ok: #7cc79a;
  --ok-soft: #1c3226;
  --warn: #e9b65a;
  --warn-soft: #3a2c12;
  --danger: #f08d84;
  --danger-soft: #3d1c1a;
  --shadow-1: 0 0 0 1px rgb(255 255 255 / .03);
  --shadow-2: 0 0 0 1px rgb(255 255 255 / .05), 0 24px 60px -20px rgb(0 0 0 / .7);
  --frame-glow: radial-gradient(60% 50% at 70% 0%, rgb(239 154 106 / .16), transparent 70%);
  --theme-color: #121110;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.55 "Schibsted Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Tabular figures only where numbers line up; this face also makes punctuation tabular. */
.queue .num, .table td:first-child { font-variant-numeric: tabular-nums; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-m);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast), transform var(--dur-fast);
}
.btn:hover { background: var(--hover); border-color: var(--line-strong); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--copper); border-color: var(--copper); color: var(--on-copper); }
.btn-primary:hover { background: var(--copper-hover); border-color: var(--copper-hover); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; border-radius: var(--radius-s); }

/* Theme switch: three-way */
.theme-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.theme-switch button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--hover); color: var(--ink); }
.theme-switch .i { width: 16px; height: 16px; }

/* ---------- Homepage ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--page) 92%, transparent); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; gap: 22px; font-size: 15px; color: var(--ink-2); }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.nav-theme { display: none; }

.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; margin: 0 0 22px; max-width: 12ch; }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 34em; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 16px 0 0; color: var(--ink-3); font-size: 14px; }

/* The memorable thing: a working miniature dashboard */
.frame { position: relative; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-2); overflow: hidden; }
.frame::before { content: ""; position: absolute; inset: 0; background: var(--frame-glow); pointer-events: none; }
.frame-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.frame-dots { display: flex; gap: 6px; margin-right: 8px; }
.frame-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.frame-body { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }
.mini-side { border-right: 1px solid var(--line); padding: 14px 10px; font-size: 13px; color: var(--ink-2); background: var(--page); }
.mini-server { display: flex; align-items: center; gap: 8px; padding: 6px; margin-bottom: 12px; font-weight: 600; color: var(--ink); }
.mini-server b { width: 24px; height: 24px; border-radius: 7px; background: #3f6f68; color: #fff; display: grid; place-items: center; font-size: 12px; }
.mini-side a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; text-decoration: none; }
.mini-side a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.mini-side .i { width: 15px; height: 15px; }
.mini-side .count { margin-left: auto; font-size: 11px; background: var(--copper); color: var(--on-copper); border-radius: 999px; padding: 0 6px; font-weight: 700; }
.mini-main { padding: 18px 20px; }
.mini-main h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.01em; }
.mini-main .sub { margin: 0 0 16px; color: var(--ink-3); font-size: 13px; }
.queue { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.queue li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 13px; background: var(--surface); }
.queue li:first-child { border-top: 0; }
.queue .num { font-weight: 600; color: var(--ink-3); }
.queue .t { font-weight: 600; color: var(--ink); }
.queue .m { display: block; color: var(--ink-3); font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-wait { background: var(--warn-soft); color: var(--warn); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-new { background: var(--copper-soft); color: var(--copper-text); }
.pill-off { background: var(--sunken); color: var(--ink-3); }
.queue li.enter { animation: rowIn 420ms var(--ease-out); }
@keyframes rowIn { from { background: var(--copper-soft); } to { background: var(--surface); } }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mini-stats div { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 10px 12px; font-size: 12px; color: var(--ink-3); }
.mini-stats b { display: block; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }

.proof { padding: 28px 0 8px; }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.proof div { padding: 22px 0; color: var(--ink-3); font-size: 14px; }
.proof b { display: block; color: var(--ink); font-size: 28px; font-weight: 600; letter-spacing: -.02em; }

.section { padding: 96px 0; }
.section h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; margin: 0 0 14px; max-width: 18ch; }
.section .intro { color: var(--ink-2); font-size: 18px; max-width: 36em; margin: 0 0 44px; }

/* Module index: list on the left, live preview on the right */
.modules { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.module-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.module-list button { width: 100%; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; color: var(--ink-2); font-size: 17px; font-weight: 500; }
.module-list button:hover { color: var(--ink); }
.module-list button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.module-list button[aria-selected="true"] .i:first-child { color: var(--copper-text); }
.module-list .i:last-child { opacity: 0; transition: opacity var(--dur-fast), transform var(--dur-base) var(--ease-out); transform: translateX(-4px); }
.module-list button[aria-selected="true"] .i:last-child { opacity: 1; transform: none; }
.module-panel { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); padding: 28px; min-height: 420px; box-shadow: var(--shadow-1); }
.module-panel[hidden] { display: none; }
.module-panel h3 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.02em; }
.module-panel > p { color: var(--ink-2); margin: 0 0 22px; max-width: 40em; }
.demo { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--page); padding: 18px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 600; font-size: 15px; }
.row .m { color: var(--ink-3); font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); font-size: 13px; color: var(--ink-2); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }

/* Switch */
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--sunken); border: 1px solid var(--line-strong); transition: background var(--dur-fast), border-color var(--dur-fast); }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-3); transition: transform var(--dur-base) var(--ease-out), background var(--dur-fast); }
.switch input:checked + span { background: var(--copper); border-color: var(--copper); }
.switch input:checked + span::after { transform: translateX(16px); background: var(--on-copper); }
.switch input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }

.ladder { display: grid; gap: 8px; }
.ladder div { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.ladder .bar { height: 8px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.ladder .bar i { display: block; height: 100%; background: var(--copper); border-radius: 99px; }
.spark { width: 100%; height: 140px; display: block; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: s; }
.steps li { list-style: none; padding: 28px 28px 0 0; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--ink-2); }

.free { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); padding: 44px; }
.free h2 { margin-bottom: 10px; }
.free p { color: var(--ink-2); max-width: 38em; margin: 0 0 20px; }
.free img { width: 200px; height: 200px; object-fit: contain; filter: drop-shadow(0 18px 24px rgb(28 26 24 / .12)); }
:root[data-theme="dark"] .free img { filter: drop-shadow(0 0 40px rgb(239 154 106 / .25)); }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; margin-left: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Dashboard ---------- */
.app { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--page); overflow-y: auto; }
.side .brand { padding: 4px 8px 14px; font-size: 18px; }
.server-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); cursor: pointer; text-align: left; box-shadow: var(--shadow-1); }
.server-btn b { width: 32px; height: 32px; border-radius: 9px; background: #3f6f68; color: #fff; display: grid; place-items: center; font-size: 14px; flex: none; }
.server-btn span { flex: 1; min-width: 0; line-height: 1.25; }
.server-btn strong { display: block; font-size: 14px; }
.server-btn small { color: var(--ink-3); font-size: 12px; }
.server-pop { position: absolute; z-index: 30; margin-top: 6px; width: 232px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--raised); box-shadow: var(--shadow-2); padding: 6px; }
.server-pop[hidden] { display: none; }
.server-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; background: none; border-radius: var(--radius-s); cursor: pointer; text-align: left; font-size: 14px; }
.server-pop button:hover { background: var(--hover); }
.server-pop b { width: 24px; height: 24px; border-radius: 7px; color: #fff; display: grid; place-items: center; font-size: 12px; }
.nav-group { margin-top: 18px; }
.nav-group > span { display: block; padding: 0 10px 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-s); color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; transition: background var(--dur-fast), color var(--dur-fast); }
.nav-link:hover { background: var(--hover); color: var(--ink); }
.nav-link[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.nav-link[aria-current="page"] .i { color: var(--copper-text); }
.nav-link .count { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--copper); color: var(--on-copper); border-radius: 999px; padding: 0 7px; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; border-top: 1px solid var(--line); font-size: 13px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 28px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--page) 94%, transparent); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.crumbs strong { color: var(--ink); font-weight: 600; }
.crumbs .i { width: 14px; height: 14px; }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; width: 280px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); color: var(--ink-3); font-size: 14px; }
.search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; }
.search kbd { font: 600 11px/1 "Schibsted Grotesk", sans-serif; border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; color: var(--ink-3); }
.content { padding: 32px 28px 120px; max-width: 1240px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -.025em; font-weight: 600; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }
.page-head .btn { margin-left: auto; }
.view[hidden] { display: none; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-1); }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; }
.panel-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.panel-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 13px; }
.panel-head .btn, .panel-head a.link { margin-left: auto; }
.panel-body { padding: 16px 20px 20px; }
.link { color: var(--copper-text); font-weight: 600; font-size: 14px; text-decoration: none; }
.link:hover { text-decoration: underline; }

.attention { list-style: none; margin: 0; padding: 0; }
.attention li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.attention li:first-child { border-top: 0; padding-top: 0; }
.attention .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.attention .t { font-weight: 600; font-size: 15px; }
.attention .m { color: var(--ink-3); font-size: 13px; }
.attention .btn { margin-left: auto; }

.health-top { display: flex; align-items: center; gap: 16px; }
.ring { --p: 66; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--copper) calc(var(--p) * 1%), var(--sunken) 0); display: grid; place-items: center; flex: none; }
.ring::after { content: attr(data-label); width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.checklist { list-style: none; margin: 16px 0 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--ink-2); }
.checklist li.done { color: var(--ink-3); }
.checklist .box { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.checklist li.done .box { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.checklist .box .i { width: 13px; height: 13px; stroke-width: 2.5; }
.checklist li.next { color: var(--ink); font-weight: 600; }

.module-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mod { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--page); }
.mod-top { display: flex; align-items: center; gap: 10px; }
.mod-top .i { color: var(--ink-2); }
.mod-top strong { font-size: 15px; }
.mod-top .switch { margin-left: auto; }
.mod p { margin: 0; color: var(--ink-3); font-size: 13px; flex: 1; }
.mod a { font-size: 13px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); margin-bottom: 20px; box-shadow: var(--shadow-1); }
.stat-row div { padding: 16px 20px; border-left: 1px solid var(--line); }
.stat-row div:first-child { border-left: 0; }
.stat-row span { color: var(--ink-3); font-size: 13px; }
.stat-row b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.stat-row em { font-style: normal; font-size: 13px; color: var(--ok); font-weight: 600; }
.stat-row em.down { color: var(--danger); }

.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.field label { font-weight: 600; font-size: 14px; }
.field .hint { color: var(--ink-3); font-size: 13px; }
.select, .input, .textarea { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); font-size: 14px; }
.textarea { height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.toggle-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.toggle-row .grow { flex: 1; }
.toggle-row .t { font-weight: 600; font-size: 14px; }
.toggle-row .m { color: var(--ink-3); font-size: 13px; }
.perm-warn { display: flex; gap: 8px; align-items: center; margin-top: 6px; color: var(--warn); font-size: 13px; font-weight: 500; }
.perm-warn .i { width: 15px; height: 15px; }
.perm-warn button { margin-left: 4px; border: 0; background: none; color: var(--copper-text); font-weight: 600; cursor: pointer; padding: 0; font-size: 13px; text-decoration: underline; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.who { display: flex; align-items: center; gap: 10px; }
.who .avatar { width: 26px; height: 26px; font-size: 11px; }

.chart-wrap { position: relative; height: 240px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.empty { text-align: center; padding: 56px 20px; }
.empty img { width: 150px; height: 150px; object-fit: contain; margin: 0 auto 16px; }
.empty h2 { margin: 0 0 6px; font-size: 20px; }
.empty p { margin: 0 auto 18px; color: var(--ink-2); max-width: 30em; }

/* Discord-style save bar */
.savebar { position: fixed; left: calc(256px + 28px); right: 28px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: var(--radius-m); background: var(--ink); color: var(--page); box-shadow: var(--shadow-2); transform: translateY(140%); transition: transform 240ms var(--ease-out); }
.savebar.show { transform: none; }
.savebar p { margin: 0; flex: 1; font-weight: 500; font-size: 15px; }
.savebar .btn-ghost { color: var(--page); }
.savebar .btn-ghost:hover { background: rgb(127 127 127 / .2); }
.toast { position: fixed; right: 28px; bottom: 24px; z-index: 50; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--radius-m); background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-2); font-weight: 600; font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out); pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.toast .i { color: var(--ok); }
.concept-note { font-size: 12px; color: var(--ink-3); padding: 0 10px 8px; }

.mobile-bar { display: none; }

@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .site-nav, .header-actions .btn:not(.btn-primary):not(.menu-btn), .header-actions .theme-switch { display: none; }
  .menu-btn { display: inline-flex; }
  .site-nav .nav-theme { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 4px; color: var(--ink-2); }
  .site-header.open .site-nav { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--page); border-bottom: 1px solid var(--line); padding: 8px 28px 16px; }
  .site-header.open .site-nav a { padding: 12px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .proof .wrap { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .free { grid-template-columns: 1fr; padding: 28px; }
  .free img { width: 140px; height: 140px; }
  .frame-body { grid-template-columns: 1fr; }
  .mini-side { display: none; }

  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform 240ms var(--ease-out); box-shadow: var(--shadow-2); background: var(--page); }
  .app.drawer .side { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 55; background: rgb(0 0 0 / .4); }
  .scrim[hidden] { display: none; }
  .mobile-bar { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .search, .crumbs > span, .crumbs > .i { display: none; }
  .topbar .theme-switch { margin-left: auto; }
  .savebar p { font-size: 14px; }
  .content { padding: 22px 16px 120px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row div:nth-child(3) { border-left: 0; }
  .stat-row div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .form-cols { grid-template-columns: 1fr; }
  .savebar { left: 16px; right: 16px; }
  .page-head { flex-wrap: wrap; }
  .table .hide-m { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 64px 0; }
  .module-panel { padding: 18px; }
  .site-footer nav { margin-left: 0; flex-wrap: wrap; }
  .header-actions .btn-primary { padding: 0 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .btn:active { transform: none; }
  .switch span::after, .savebar, .side, .toast, .module-list .i:last-child { transition-property: opacity, background, color !important; }
}
