/* SO CRM — taken from docs/mockups (SO CRM Screens.html). Tokens first, then components.
   Mobile first: the sidebar appears at 900px; below that a top bar + nav sheet. */

:root {
  --ink: #131A24;
  --ink-2: #3A4654;
  --muted: #5B6774;
  --faint: #8C96A3;
  --line: #DDE2E8;
  --line-2: #E8EBF0;
  --line-strong: #CDD4DD;
  --canvas: #F2F4F7;
  --canvas-2: #E8EBF0;
  --surface: #FFFFFF;
  --accent: #1F6F5C;           /* overridden per business on <body> */
  --accent-hover: #185646;
  --accent-tint: #E8F0ED;
  --good: #15803D;
  --warn: #B45309;
  --bad: #B91C1C;
  --tag: #EDEFF3;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Schibsted Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); font-family: var(--font); color: var(--ink); font-size: 17px; line-height: 1.4; }
@media (min-width: 900px) { body { font-size: 15px; } }
body { --accent-tint: color-mix(in srgb, var(--accent) 11%, #fff); --accent-hover: color-mix(in srgb, var(--accent) 80%, #000); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type helpers ---------- */
.mono { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.good { color: var(--good); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.h1 { font-family: var(--display); font-size: 29px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.h2 { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sub { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- shell ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.side { display: none; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.main { flex: 1 1 auto; min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.pagehead { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (min-width: 900px) {
  .app { flex-direction: row; }
  .topbar { display: none; }
  .side { display: flex; flex: 0 0 236px; position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 13px; flex-direction: column; gap: 18px; }
  .main { padding: 24px 26px; gap: 18px; }
}

.brand { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; padding-left: 8px; }
.navlist { display: flex; flex-direction: column; gap: 2px; }
.nav { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: 15px; color: var(--muted); }
.nav:hover { background: var(--canvas); color: var(--ink); }
.nav[aria-current="page"] { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.nav svg { flex: 0 0 auto; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.avatar.none { background: var(--muted); }

/* business switcher */
.switcher { position: relative; }
.switch-btn { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 46px; padding: 0 12px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; text-align: left; }
.switch-btn .name { font-family: var(--display); font-size: 16px; font-weight: 600; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: block; flex: 0 0 auto; }
.sd { width: 9px; height: 9px; border-radius: 3px; display: block; flex: 0 0 auto; }

/* ---------- buttons ---------- */
.btn { min-height: 44px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); white-space: nowrap; }
.btn:hover { background: var(--canvas); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; height: 56px; font-size: 17px; }
.btn.sm { min-height: 36px; padding: 0 10px; font-size: 13px; }
.iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.mv { min-height: 36px; padding: 0 9px; background: var(--canvas); border: 1px solid var(--line); border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
.mv:hover { background: var(--canvas-2); color: var(--ink); }

/* ---------- chips ---------- */
.chiprow { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip { flex: 0 0 auto; min-height: 44px; padding: 0 13px; background: transparent; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.chip[aria-pressed="true"] { color: #fff; font-weight: 600; }
.sgchip { flex: 0 0 auto; min-height: 42px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.sgchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.sgchip[aria-pressed="true"] .mono { color: #fff; }
.sgchip.add { border-style: dashed; color: var(--accent); }
.fchip { min-height: 40px; padding: 0 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: 14px; color: var(--ink); }
.ltag { display: inline-block; font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--tag); border-radius: 5px; padding: 3px 7px; margin: 1px 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--tag); color: var(--ink-2); }

/* ---------- panels, tables, lists ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.panel-pad { padding: 16px; }
.panel h2 { margin: 0 0 10px; }
.tablewrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); }
table.data th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { font-size: 15px; padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.data tr:hover td { background: #FAFBFC; }
.rowlist { display: flex; flex-direction: column; gap: 10px; }
.lcard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; color: var(--ink); }
.lcard:hover { color: var(--ink); border-color: var(--line-strong); }
.lcard .t { font-size: 17px; font-weight: 600; }
.lcard .s { font-size: 15px; color: var(--muted); margin-top: 3px; }
.only-desktop, .board.only-desktop, .actions.only-desktop { display: none; }
@media (min-width: 900px) { .only-desktop { display: block; } .board.only-desktop, .actions.only-desktop { display: flex; } .only-mobile { display: none !important; } }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }

/* ---------- board ---------- */
.board { flex: 1 1 auto; min-height: 0; display: flex; gap: 13px; overflow-x: auto; padding-bottom: 8px; }
.col { flex: 0 0 236px; border-radius: var(--r); padding: 11px 10px 12px; display: flex; flex-direction: column; gap: 9px; align-self: flex-start; background: #EFF2F6; border-top: 4px solid var(--stage, #8494A8); }
.col .cards { display: flex; flex-direction: column; gap: 9px; min-height: 40px; }
.chead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 3px; }
.cnm { font-size: 15px; font-weight: 600; }
.cct { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--stage, #8494A8); border-radius: 8px; padding: 11px 12px; cursor: grab; }
.card .cname { font-size: 15px; font-weight: 600; color: var(--ink); }
.card .csub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cnext { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-top: 8px; }
.cmore { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 2px 4px; }
.sortable-ghost { opacity: 0.4; }
.sortable-drag { box-shadow: 0 10px 24px rgba(19,26,36,0.18); transform: rotate(-1.2deg); }
.warm { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #EA580C; margin-left: 6px; vertical-align: middle; }

/* ---------- menus and sheets ---------- */
.menu { position: absolute; right: 8px; top: 44px; width: 220px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: 0 16px 36px rgba(19,26,36,0.22); padding: 6px; z-index: 30; }
.menu.left { left: 0; right: auto; top: 52px; width: 100%; min-width: 220px; }
.menu-label { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); padding: 6px 9px 7px; }
.mi { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 0 9px; background: transparent; border: none; border-radius: 7px; cursor: pointer; font-size: 14px; color: var(--ink); text-align: left; }
.mi:hover { background: var(--canvas); color: var(--ink); }
.mi[aria-current="true"] { background: var(--canvas); font-weight: 600; }
.menu-note { font-size: 12px; color: var(--muted); padding: 8px 9px 4px; border-top: 1px solid var(--line-2); margin-top: 5px; line-height: 1.45; }
.scrim { position: fixed; inset: 0; background: rgba(19,26,36,0.42); z-index: 40; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet { background: var(--surface); border-radius: 16px 16px 0 0; padding: 18px 16px 22px; max-height: 90vh; overflow-y: auto; }
.sheet .opt { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 52px; padding: 0 12px; background: transparent; border: none; border-radius: 9px; cursor: pointer; font-size: 17px; text-align: left; }
.sheet .opt[aria-current="true"] { background: var(--canvas); font-weight: 600; }
@media (min-width: 900px) {
  .scrim { justify-content: center; align-items: center; }
  .sheet { border-radius: 14px; width: 440px; }
}
.bottombar { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px 20px; margin: 0 -16px -16px; }
@media (min-width: 900px) { .bottombar { display: none; } }

/* ---------- filter bar ---------- */
.filters input, .filters select { min-height: 42px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: 16px; color: var(--ink); max-width: 100%; }
.filters input[type=search] { width: 100%; background: var(--canvas); }
.filters > span { flex: 1 1 150px; min-width: 0; }
.filters > span select { width: 100%; }
@media (min-width: 900px) { .filters input, .filters select { font-size: 14px; } .filters > span { flex: 0 1 auto; } }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field .help { font-size: 13px; color: var(--muted); }
.field .errorlist, .errorlist { list-style: none; margin: 0; padding: 0; color: var(--bad); font-size: 13px; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; font-size: 16px; /* 16px stops iOS zoom */
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.row2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 0; }
legend { font-weight: 600; padding: 0 6px; }

/* ---------- messages ---------- */
.flash { padding: 12px 14px; border-radius: var(--r); background: var(--accent-tint); color: var(--accent); font-size: 14px; }
.flash.error { background: #FDECEC; color: var(--bad); }
.flash.warning { background: #FEF3E2; color: var(--warn); }

/* ---------- dashboard (mockup 3) ---------- */
.tiles { display: flex; flex-wrap: wrap; gap: 13px; }
.tile { flex: 1 1 150px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 17px; }
.tlbl { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tval { font-family: var(--mono); font-size: 28px; font-weight: 700; margin-top: 5px; }
.bar { height: 11px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar > div { height: 100%; border-radius: 6px; }
.goal { flex: 1 1 300px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.big { font-family: var(--display); font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.drow { display: flex; align-items: center; gap: 13px; padding: 13px 17px; border-bottom: 1px solid var(--line); color: var(--ink); }
.drow:last-child { border-bottom: none; }
a.drow:hover { background: var(--canvas); color: var(--ink); }
.ddot { width: 9px; height: 9px; border-radius: 50%; display: block; flex: 0 0 auto; }

/* ---------- invoices (mockup 5) ---------- */
.tab { min-height: 44px; padding: 0 14px; background: transparent; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tab[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.tab[aria-current="page"] .mono { color: #fff; }
.status { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; padding: 4px 8px; border-radius: 5px; text-transform: uppercase; display: inline-block; white-space: nowrap; }
.status.draft { background: #EDEFF3; color: #5B6774; }
.status.issued { background: #ECF1F9; color: #3F6FB5; }
.status.overdue { background: #FEF3E2; color: #B45309; }
.status.paid { background: #E9F6EC; color: #15803D; }
.status.void { background: #EDEFF3; color: #8C96A3; text-decoration: line-through; }
.sumrow { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.timeline .tdot { width: 10px; height: 10px; border-radius: 3px; margin-top: 5px; background: var(--faint); }
.timeline .when { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--canvas); }
.auth .panel { width: 100%; max-width: 380px; padding: 24px 20px; }

/* ---------- settings (mockup 6) ---------- */
.settings { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.settings-nav { flex: 1 1 220px; max-width: 250px; display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 899px) { .settings-nav { max-width: none; flex-direction: row; overflow-x: auto; } .settings-nav .sgrp { display: none; } }
.settings-body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sgrp { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding: 0 13px; margin-bottom: 5px; }
.snav { display: flex; align-items: center; flex: 0 0 auto; min-height: 44px; padding: 0 13px; border-radius: 8px; font-size: 15px; color: var(--muted); white-space: nowrap; }
.snav:hover { background: var(--canvas-2); color: var(--ink); }
.snav[aria-current="page"] { background: var(--ink); color: #fff; font-weight: 600; }
.brow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.brow:last-child { border-bottom: none; }
.lbl { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.handle { cursor: grab; color: var(--faint); padding: 6px; touch-action: none; }
.sw { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 14px; background: var(--line); position: relative; cursor: pointer; border: none; flex: 0 0 auto; margin: 0; }
.sw:checked { background: var(--accent); }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .12s; }
.sw:checked::after { left: 23px; }

/* ---------- sequences (mockup 4) ---------- */
.stg { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.stg[aria-current="page"] { background: var(--accent-tint); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sthead { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.num { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.chan { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 8px; border-radius: 5px; background: var(--tag); }
.chan.sms { background: #E8F0ED; color: #1F6F5C; } .chan.email { background: #ECF1F9; color: #3F6FB5; } .chan.whatsapp { background: #E9F6EC; color: #15803D; }
.step .body { padding: 14px 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.tag { font-family: var(--mono); font-size: 14px; color: #4338CA; background: #EEEDFB; padding: 1px 4px; border-radius: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 14px; padding: 11px 16px; background: #F7F8FA; border-top: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.meta .over { color: var(--warn); }

/* ---------- director board (docs/mockups screen 7) ---------- */
.dboard { min-height: 100vh; background: var(--canvas); padding: 20px 16px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 900px) { .dboard { padding: 28px 32px; gap: 22px; } }
.board-month { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 3px; }
@media (min-width: 900px) { .board-month { font-size: 38px; } }
.combined { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 19px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .combined { padding: 24px 28px; } }
.combined .big { font-size: 36px; }
@media (min-width: 900px) { .combined .big { font-size: 52px; } }
.combined .of { font-family: var(--display); font-size: 17px; font-weight: 500; color: var(--muted); }
@media (min-width: 900px) { .combined .of { font-size: 23px; } }
.perday { font-family: var(--mono); font-size: 22px; font-weight: 700; margin-top: 6px; }
@media (min-width: 900px) { .perday { font-size: 30px; } }
.bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.bcard { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bcard > .stripe { height: 5px; }
.bbody { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 13px; }
@media (min-width: 900px) { .bbody { padding: 18px 20px 20px; gap: 15px; } }
.bname { font-family: var(--display); font-size: 18px; font-weight: 600; }
@media (min-width: 900px) { .bname { font-size: 20px; } }
.metric { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mval { font-family: var(--display); font-size: 18px; font-weight: 600; }
@media (min-width: 900px) { .mval { font-size: 20px; } }
.mof { color: var(--muted); font-weight: 500; }
.bcard .bar { height: 9px; margin-top: 7px; }
.rate { font-family: var(--mono); font-size: 12px; margin-top: 6px; }
.bstats { display: flex; flex-direction: column; gap: 5px; padding-top: 12px; border-top: 1px solid var(--line); }
.bstat { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 13px; }
.bstat .v { font-weight: 700; }
.bstgs { display: flex; gap: 2px; border-radius: 6px; overflow: hidden; }
.bstg { flex: 1 1 0; min-width: 0; background: var(--canvas); padding: 8px 6px; font-family: var(--mono); }
.bstgl { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bstgv { font-weight: 700; font-size: 12px; margin-top: 1px; }
.board-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.input:disabled, .field input:disabled, .field select:disabled { background: var(--canvas); color: var(--muted); }
