/*! Board — a Neuraft product
 *  Copyright (c) 2026 Neuraft Studio (Hossein Zandinejad). All rights reserved.
 *  Bundled typefaces are SIL OFL 1.1 — see NOTICE.md.
 */
/* Built on the Neuraft brand system, like Pulse: same typefaces, radii, offset
   shadow and obsidian/cream duality. Board's own colour is Lagoon Teal; amber
   and indigo stay for signals. No inline styles anywhere (CSP style-src 'self'). */

@font-face { font-family: "Space Grotesk"; src: url("/static/fonts/SpaceGrotesk-Variable.woff2") format("woff2-variations"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/static/fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/static/fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/static/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/static/fonts/IBMPlexSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --obsidian: #141822; --graphite: #1C2030; --slate: #2D3142; --warm-white: #E8E6E1; --silver: #8B8580;
  --cream: #F5EFE4; --paper: #FFFFFF; --sand: #D4CFC4; --ink: #1A1E2A; --stone: #6B6660;
  --amber: #E8A33D; --indigo: #6C5CE7; --teal: #17A898;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 14px; --radius-sm: 8px;

  --bg: var(--cream); --surface: var(--paper); --surface-2: #FAF7F1; --surface-3: #F1ECE2;
  --line: var(--sand); --line-soft: #E6E1D6; --text: var(--ink); --text-soft: #3D4354; --muted: var(--stone);
  --accent: var(--teal); --accent-text: #0B6F64; --accent-bg: #DDF3EF; --on-accent: #08201D;
  --indigo-text: #5B4BD6; --indigo-bg: #EDEAFC;
  --ok: #3D6E1F; --ok-bg: #E6F0DC; --attn: #964219; --attn-bg: #FBEBDA; --alert: #A12C7B; --alert-bg: #FAE4F1;
  --hard: var(--ink); --hover: rgba(26, 30, 42, .06); --focus: #0B6F64;
  --sidebar: 252px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--obsidian); --surface: var(--graphite); --surface-2: #232839; --surface-3: #2A3044;
    --line: var(--slate); --line-soft: #252A38; --text: var(--warm-white); --text-soft: #C7C4BE; --muted: #A49E98;
    --accent: #2CC2B0; --accent-text: #5CD6C6; --accent-bg: #133A36; --on-accent: #06201C;
    --indigo-text: #A397FF; --indigo-bg: #262445;
    --ok: #8BC867; --ok-bg: #22301A; --attn: #F0A060; --attn-bg: #3A2716; --alert: #E879C3; --alert-bg: #3B1E31;
    --hard: #000; --hover: rgba(232, 230, 225, .07); --focus: #5CD6C6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--obsidian); --surface: var(--graphite); --surface-2: #232839; --surface-3: #2A3044;
  --line: var(--slate); --line-soft: #252A38; --text: var(--warm-white); --text-soft: #C7C4BE; --muted: #A49E98;
  --accent: #2CC2B0; --accent-text: #5CD6C6; --accent-bg: #133A36; --on-accent: #06201C;
  --indigo-text: #A397FF; --indigo-bg: #262445;
  --ok: #8BC867; --ok-bg: #22301A; --attn: #F0A060; --attn-bg: #3A2716; --alert: #E879C3; --alert-bg: #3B1E31;
  --hard: #000; --hover: rgba(232, 230, 225, .07); --focus: #5CD6C6;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- colour classes for people and teams (no inline styles) ---------- */
.c0 { --pc: #17A898; } .c1 { --pc: #6C5CE7; } .c2 { --pc: #E8A33D; } .c3 { --pc: #E0607E; } .c4 { --pc: #3A86FF; }
.c5 { --pc: #2F9E44; } .c6 { --pc: #C2410C; } .c7 { --pc: #9B5DE5; } .c8 { --pc: #0EA5E9; } .c9 { --pc: #B45309; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--pc, var(--teal));
  color: #fff; font: 700 12px/1 var(--font-display); flex: none; letter-spacing: 0; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatar.lg { width: 44px; height: 44px; font-size: 16px; }
.dot { width: 10px; height: 10px; border-radius: 3px; background: var(--pc, var(--teal)); flex: none; display: inline-block; }
.swatch-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch-pick label { position: relative; cursor: pointer; }
.swatch-pick input { position: absolute; opacity: 0; inset: 0; }
.swatch-pick span { display: block; width: 28px; height: 28px; border-radius: 8px; background: var(--pc); border: 2px solid transparent; }
.swatch-pick input:checked + span { border-color: var(--text); box-shadow: inset 0 0 0 2px var(--surface); }
.swatch-pick input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- buttons, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; line-height: 1.2;
  text-decoration: none; transition: transform .14s var(--ease), box-shadow .14s var(--ease), background .14s; white-space: nowrap; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--hard); box-shadow: 3px 3px 0 var(--hard); }
.btn-primary:hover { background: var(--accent); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--hard); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { color: var(--alert); border-color: var(--alert); }
.btn-danger:hover { background: var(--alert-bg); }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { padding: 7px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label, .label { font-weight: 600; font-size: 13.5px; }
.field .hint, .hint { font-size: 12.5px; color: var(--muted); }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.pw-field { position: relative; display: block; }
.pw-field input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--accent-text); font-weight: 600; font-size: 13px; padding: 4px 8px; }
.trap { position: absolute; left: -5000px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .field { flex: 1; }

.flash { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; border: 1.5px solid; }
.flash-success { background: var(--ok-bg); color: var(--ok); border-color: currentColor; }
.flash-error { background: var(--alert-bg); color: var(--alert); border-color: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 5px; font: 500 11px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip-teal { color: var(--accent-text); border-color: var(--accent); background: var(--accent-bg); }
.chip-indigo { color: var(--indigo-text); border-color: currentColor; background: var(--indigo-bg); }
.chip-amber { color: var(--attn); border-color: currentColor; background: var(--attn-bg); }
.chip-red { color: var(--alert); border-color: currentColor; }

/* ---------- auth pages ---------- */
.auth { min-height: 100%; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1.5px solid var(--hard); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--accent); padding: 32px 30px 24px; }
.auth-card.wide { width: min(520px, 100%); }
.lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.lockup img { width: 48px; height: 48px; }
.lockup b { font: 700 22px/1 var(--font-display); letter-spacing: .02em; display: block; }
.lockup small { font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 5px; }
.auth h1 { font-size: 26px; margin: 4px 0 6px; }
.auth .intro { color: var(--muted); margin: 0 0 20px; }
.auth-alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.studio { margin-top: 18px; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.studio img { width: 18px; height: 18px; }
.invite-banner { display: flex; gap: 12px; align-items: center; background: var(--accent-bg); border: 1.5px solid var(--accent); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 18px; font-size: 14px; }
.team-tile { width: 40px; height: 40px; border-radius: 10px; background: var(--pc); color: #fff; display: grid; place-items: center; font: 700 16px var(--font-display); flex: none; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100%; }
.sidebar { background: var(--surface-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px; gap: 6px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand b { font: 700 17px/1 var(--font-display); letter-spacing: .03em; display: block; }
.brand small { font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 4px; }
.side-new { margin: 2px 4px 10px; }
.nav-label { font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; display: flex; justify-content: space-between; align-items: center; }
.nav-label button { border: 0; background: none; color: var(--muted); padding: 2px; border-radius: 6px; display: grid; }
.nav-label button:hover { color: var(--text); background: var(--hover); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-soft); font-weight: 500; text-decoration: none; min-width: 0; }
.nav a span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-bg); color: var(--accent-text); }
.nav .count { font: 12px var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.who { display: flex; align-items: center; gap: 10px; padding: 6px 8px; min-width: 0; }
.who div { min-width: 0; }
.who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { color: var(--muted); font-size: 12px; }
.side-links { display: flex; gap: 2px; flex-wrap: wrap; }
.side-links a, .side-links button { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 6px 8px; border-radius: 6px; display: inline-flex; gap: 6px; align-items: center; }
.side-links a:hover, .side-links button:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.side-links form { display: contents; }
.menu-btn { display: none; }

.main { min-width: 0; padding: 28px clamp(16px, 3.5vw, 44px) 64px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 34px); }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.page-head .grow { flex: 1; min-width: 220px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eyebrow { font: 500 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 0 12px; min-width: 0; width: 280px; }
.search:focus-within { border-color: var(--accent); }
.search input { border: 0; background: transparent; padding: 9px 0; box-shadow: none !important; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 9px 12px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
.section-title h2 { font-size: 18px; }
.section-title span { color: var(--muted); font-size: 13px; }

/* ---------- board cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-bottom: 36px; }
.bcard { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s var(--ease), transform .15s var(--ease); }
.bcard:hover { border-color: var(--hard); box-shadow: 5px 5px 0 var(--accent); transform: translate(-2px, -2px); }
.bcard > a { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.bthumb { aspect-ratio: 16/9; background: var(--bg); border-bottom: 1px solid var(--line-soft); display: grid; place-items: center; overflow: hidden; }
.bthumb svg { width: 100%; height: 100%; display: block; }
.bthumb .empty-thumb { font: 500 11px var(--font-mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.bmeta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bmeta b { font: 600 16px/1.25 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmeta .sub { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.bacts { position: absolute; right: 8px; top: 8px; display: flex; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 1px; }
.bacts button { border: 0; background: none; color: var(--muted); padding: 6px; border-radius: 6px; display: grid; }
.bacts button:hover { background: var(--hover); color: var(--text); }
.bacts .fav[aria-pressed="true"] { color: var(--amber); }
.bacts .fav[aria-pressed="true"] svg { fill: var(--amber); }
.lock { position: absolute; top: 10px; left: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 3px 8px; font-size: 11px;
  display: flex; gap: 4px; align-items: center; color: var(--muted); }
.new-card { border-style: dashed; display: grid; place-items: center; min-height: 200px; color: var(--muted); font-weight: 600; background: transparent; gap: 8px; text-align: center; padding: 20px; }
.new-card:hover { color: var(--accent-text); }
.empty { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 44px 24px; text-align: center; color: var(--muted); margin-bottom: 30px; }
.empty b { display: block; color: var(--text); font: 600 18px var(--font-display); margin-bottom: 6px; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 30px; }
.mini { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; min-width: 0; }
.mini:hover { border-color: var(--accent); text-decoration: none; }
.mini .mt { width: 54px; height: 36px; border-radius: 6px; background: var(--bg); overflow: hidden; flex: none; }
.mini .mt svg { width: 100%; height: 100%; display: block; }
.mini span { min-width: 0; display: flex; flex-direction: column; }
.mini b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini small { color: var(--muted); font-size: 12px; }
.members-row { display: flex; align-items: center; gap: 4px; }
.members-row .avatar { border: 2px solid var(--bg); margin-left: -8px; }
.members-row .avatar:first-child { margin-left: 0; }

/* ---------- dialog ---------- */
dialog { border: 1.5px solid var(--hard); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 0; box-shadow: 6px 6px 0 var(--accent);
  width: min(760px, calc(100% - 32px)); max-height: calc(100% - 32px); }
dialog.narrow { width: min(460px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(10, 12, 18, .55); }
.dlg-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 8px; }
.dlg-head h2 { font-size: 21px; }
.dlg-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.dlg-head .x { margin-left: auto; border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 6px; display: grid; }
.dlg-body { padding: 10px 22px; overflow: auto; }
.dlg-foot { padding: 14px 22px 20px; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 6px 0 16px; }
.tpl { position: relative; cursor: pointer; }
.tpl input { position: absolute; opacity: 0; }
.tpl .tc { display: flex; flex-direction: column; gap: 6px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px; background: var(--surface-2); height: 100%; transition: border-color .12s; }
.tpl .tt { aspect-ratio: 16/10; background: var(--bg); border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.tpl .tt svg { width: 100%; height: 100%; display: block; }
.tpl b { font: 600 14px var(--font-display); }
.tpl small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.tpl input:checked + .tc { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--accent-bg); }
.tpl input:focus-visible + .tc { outline: 2px solid var(--focus); outline-offset: 2px; }
.tpl:hover .tc { border-color: var(--accent); }

/* ---------- menus ---------- */
.menu { position: fixed; z-index: 60; min-width: 200px; background: var(--surface); border: 1.5px solid var(--hard); border-radius: 10px; box-shadow: 4px 4px 0 var(--hard); padding: 5px; }
.menu button, .menu a { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--text); text-decoration: none; }
.menu button:hover, .menu a:hover { background: var(--hover); text-decoration: none; }
.menu .danger { color: var(--alert); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px; }

/* ---------- panels, tables ---------- */
.panel { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.panel h2 { font-size: 18px; margin-bottom: 4px; }
.panel > p.muted { margin: 0 0 16px; font-size: 14px; }
.panel.danger-zone { border-color: var(--alert); }
.panel.accent { border-color: var(--hard); box-shadow: 5px 5px 0 var(--accent); }
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font: 500 11px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person b { display: block; font-weight: 600; }
.person small { color: var(--muted); }
.inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline select { width: auto; padding: 5px 8px; font-size: 13px; }
.linkbox { display: flex; gap: 8px; margin: 10px 0 4px; }
.linkbox input { font-family: var(--font-mono); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { font: 700 26px/1 var(--font-display); display: block; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.radio-cards { display: grid; gap: 8px; }
.radio-cards label { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; }
.radio-cards label:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); }
.radio-cards input { margin-top: 4px; accent-color: var(--accent); }
.radio-cards small { display: block; color: var(--muted); }
.temp-box { border: 1.5px solid var(--hard); box-shadow: 5px 5px 0 var(--amber); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); margin-bottom: 20px; }
.temp-box pre { font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); padding: 12px; border-radius: 8px; white-space: pre-wrap; margin: 10px 0; }

.legal { max-width: 760px; }
.legal h2 { font-size: 20px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text-soft); }
.error-page { max-width: 560px; margin: 8vh auto; text-align: center; }
.error-page .code { font: 700 64px/1 var(--font-display); color: var(--accent); }
.error-page h1 { font-size: 24px; margin: 10px 0; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(290px, 85vw); z-index: 50; transform: translateX(-102%); transition: transform .2s var(--ease); box-shadow: 8px 0 24px rgba(0,0,0,.2); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar-m { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; z-index: 30; }
  .topbar-m img { width: 30px; height: 30px; }
  .topbar-m b { font: 700 16px var(--font-display); }
  .cols { grid-template-columns: 1fr; }
  .search { width: 100%; }
}
@media (min-width: 901px) { .topbar-m { display: none; } }
/* reduced motion: see motion.css */
hr.sep { border: 0; border-top: 1px solid var(--line-soft); margin: 18px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--obsidian); color: var(--warm-white); padding: 10px 16px;
  border-radius: 10px; font-size: 14px; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100% - 32px); }

.sub-h { font-size: 15px; margin: 18px 0 8px; }

/* ---- email code sign-up (1.2) ---- */
.steps { list-style: none; display: flex; gap: 6px; margin: 14px 0 18px; padding: 0; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted);
  padding-top: 10px; border-top: 3px solid var(--line-soft); }
.steps li i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 11px; background: var(--line-soft); color: var(--text-soft); }
.steps li.on { color: var(--accent-text); border-top-color: var(--accent); }
.steps li.on i { background: var(--accent); color: var(--on-accent); }
.steps li.done { color: var(--text-soft); border-top-color: var(--accent); }
.steps li.done i { background: var(--accent-bg); color: var(--accent-text); }
.code-input { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 30px; letter-spacing: .5em; text-align: center;
  padding: 12px 8px 12px calc(8px + .5em); font-weight: 700; }
.code-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; margin: 14px 0 4px; }
.code-actions form { margin: 0; }
.linklike { background: none; border: 0; padding: 4px 0; color: var(--accent-text); font: inherit; font-weight: 600; font-size: 13.5px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { text-decoration-thickness: 2px; }
.badge-ok { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--accent-text);
  background: var(--accent-bg); border-radius: 99px; padding: 2px 9px; }
.badge-warn { display: inline-flex; font-size: 12px; font-weight: 600; color: #8a5a00; background: #fbefd6; border-radius: 99px; padding: 2px 9px; }
.mail-status { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; margin: 8px 0 12px; }
.mail-status dt { color: var(--muted); } .mail-status dd { margin: 0; word-break: break-all; }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduced"]) .steps li.on i { animation: stepPop .35s cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes stepPop { from { transform: scale(.4); } to { transform: scale(1); } }
}
