/* Round 476 (design v6, HQ and owner 23 Oct 2026, launch row 76): the one look of Octobooks is Daylight. White cards on a pale
   green ground, Figtree only with tabular figures. Two views per person, the same data, actions and colours: Full (dense sheets,
   the root below) and Simple (big rounded cards, html[data-view="simple"]). Spec: design/webapp/WEBAPP-BUILD-NOTES.md, section 2.
   One file for every surface: the web app links it before app.css, the sign in pages (door), the approval page, the lookup page
   and the panel beside the chat carry it inline; tests/test_design_system.py holds that no surface defines its own palette.
   Colour roles (owner): green only for actions, turquoise only for identified amounts, pink only as an accent; status, dates,
   ticks, charts and progress are ink or muted; no purple, yellow or brown. Borders and bars that must be seen use line-2 (3:1).
   The older names (accent, ident, ok, line-strong, control) are kept as the same colours so every sheet reads one palette. */
/* Round 717 (HQ design order round 4, owner 30 Oct 2026 15:13, the redesign; HQ design.md decision 4): blue and green. Blue for the
   main buttons, links and figures in progress (--act, --id, --blue), green for done and ticks (--ok, --green), amber rarely (a bank to
   reconnect, VAT unfiled for months), red almost never (--bad). Turquoise and the pink pill are gone; pink stays in the logo dots only
   (app.css --logo-pink). One palette for every surface: the web app, the door, the approval and lookup pages, the panel in Claude.
   Before (round 476, Daylight): a pale green ground, green actions, turquoise for identified amounts, pink accents. */
:root{
  --bg:#EEF2F5; --surface:#FFFFFF; --surface-2:#F5F8FA; --fg:#152430; --muted:#4A5A65; --faint:#5A6A75;
  --line:#DDE5EA; --line-2:#74848E; --hover:#EEF3F7; --sel:#E3F5F3;
  --act:#6B4FC4; --act-ink:#FFFFFF; --act-strong:#55399F; --act-text:#0B7A75; --act-soft:#EFEAFB; --id:#0B7A75; --id-soft:#E3F5F3; --pink:#0B7A75;
  --do:#0B7A75; --do-ink:#FFFFFF; --do-strong:#075E5A; --do-soft:#E3F5F3; --do-mark:#17A39B;
  --bar:#74848E; --grid:#E4EAEE; --scrim:rgba(14,24,32,.28);
  --shadow:0 1px 2px rgba(20,36,48,.05), 0 10px 26px -18px rgba(20,40,60,.22);
  --line-strong:#74848E; --control:#74848E; --accent:#0B7A75; --accent-strong:#075E5A; --accent-ink:#FFFFFF; --accent-soft:#E3F5F3;
  --ok:#2E7D32; --ok-soft:#E6F4E7; --ident:#0B7A75; --ident-soft:#E3F5F3; --dead:#152430; --bad:#B3352B; --bad-soft:#FBEAE8;
  --blue:#0B7A75; --blue-soft:#E3F5F3; --green:#2E7D32; --green-soft:#E6F4E7; --amber:#875810; --amber-soft:#FBF1DF;
  --swatch-green:#0B7A75; --swatch-turquoise:#0B7A75; --swatch-graphite:#1F2A33;
  --f:"Figtree","Segoe UI",system-ui,-apple-system,sans-serif; --r:12px; --rc:8px; --pad:16px; --fs:15px;
  color-scheme:light;
}
/* Round 728 (owner, 31 Oct 2026 14:15 and 14:20): the Octobooks colours of the website, and one button rule for the web app, the phone
   and the panel in Claude (docs/DESIGN-GUIDE.md, "Buttons"):
   1. Big action, the one main thing a screen or sheet is for (Post, Send, Confirm all, Approve, Issue invoice): filled purple --act
      #6B4FC4 (the website's --purple), white text, pressed --act-strong; a purple tint --act-soft. At most one per screen or sheet
      (.primary; static/nav.js keeps one per page, tests/test_r728 guards it).
   2. Action, any other button that does something (Match, Snap, Upload, Connect, Save as draft): filled turquoise --do #0B7A75 (the
      website's --turquoise), white text, pressed --do-strong #075E5A. A submit button of a form that writes, .btn.act, and a .primary
      inside a list row (each row's own verb).
   3. No action (links to pages, Back, Cancel, filters, tabs, Show more): white, a 1 px turquoise frame, turquoise text; a selected tab
      the soft fill --sel #E3F5F3.
   Links in text turquoise (--act-text); done and ticks green --ok #2E7D32 (a yellower green, never the turquoise); overdue amber; red only
   for Delete-like things. Contrast (AA): white on purple 5.9, white on turquoise 5.2, turquoise on white 5.2, green on white 5.1.
   Before (round 717): blue #2563C9 for main buttons, links and figures, green #14866D for done.
   Round 981 (owner order of 13 Nov 2026, rule N9): in the web app the big action is filled turquoise (app.css points --act at --do),
   one per page; every other action outside a list row is framed; purple (--ai) only for AI actions (Ask AI, Suggest). */
:root .btn.primary, :root button.primary, :root summary.btn.primary {
  background:var(--act); border-color:var(--act); color:var(--act-ink); }
:root .btn.primary:hover, :root button.primary:hover, :root summary.btn.primary:hover,
:root .btn.primary:active, :root button.primary:active { background:var(--act-strong); border-color:var(--act-strong); color:var(--act-ink); filter:none; }
:root .btn.act, :root main form[method="post" i] :is(button:not([class]), button.btn):not([type="button"]):not(.primary):not(.quiet):not([aria-pressed]),
:root :is(li.job, table, .ja, .ra, .sr-a, .row, .b6, .settings) :is(.btn, button).primary {
  background:var(--do); border-color:var(--do); color:var(--do-ink); }
:root .btn.act:hover, :root main form[method="post" i] :is(button:not([class]), button.btn):not([type="button"]):not(.primary):not(.quiet):not([aria-pressed]):hover,
:root :is(li.job, table, .ja, .ra, .sr-a, .row, .b6, .settings) :is(.btn, button).primary:hover {
  background:var(--do-strong); border-color:var(--do-strong); color:var(--do-ink); filter:none; }
:root a.btn:not(.primary):not(.act), :root button.btn[type="button"]:not(.primary):not(.act), :root summary.btn:not(.primary):not(.act),
:root form:not([method="post" i]) button.btn:not(.primary), :root button.btn.quiet:not(.primary) {
  background:var(--surface); border:1px solid var(--do); color:var(--do); }
:root a.btn:not(.primary):not(.act):hover, :root button.btn[type="button"]:not(.primary):not(.act):hover, :root summary.btn:not(.primary):not(.act):hover,
:root button.btn.quiet:not(.primary):hover {
  background:var(--do-soft); color:var(--do-strong); }
:root a.btn[aria-current="page"], :root a.btn.on { background:var(--sel); }
/* Round 745: Post on an opened bank line is that card's one big action, not a row's verb */
/* Round 786 (UK month end walk): Confirm and Match on the opened line are that card's big action too, as Post; the rows keep turquoise */
#bank6 .b6-bookit.primary, #bank6 .b6-detail .b6-acts .b6-book.primary, #bank6 .b6-detail .b6-match-ok.primary { background:var(--act); border-color:var(--act); color:var(--act-ink); }
#bank6 .b6-bookit.primary:hover, #bank6 .b6-detail .b6-acts .b6-book.primary:hover, #bank6 .b6-detail .b6-match-ok.primary:hover { background:var(--act-strong); border-color:var(--act-strong); color:var(--act-ink); }
/* Round 728 (owner, 31 Oct 2026 12:45: "I don't think we need a dark mode"): light only. The dark palettes by the device's setting
   (round 305) and by choice (data-theme) are gone; every surface reads the one light palette above whatever the phone says. */
/* Simple: big rounded cards on shadow, radii 20 for cards and 12 for controls, base text 15 px. Round 584 (owner, 26 Oct 2026: "I like
   that Full has a bit less strong colours"): Simple keeps Full's calmer colours; only shape, size and shadow differ */
:root[data-view="simple"]{
  --shadow:0 18px 40px -22px rgba(15,60,40,.30); --r:20px; --rc:12px; --fs:15px}
/* Round 584 (owner, 26 Oct 2026): colour schemes per person (html[data-scheme]). Round 717: two, the blue and green root above and
   Graphite, calm grey with ink buttons and blue links (its pink links went with the pink pill); a person who chose Turquoise reads
   the root. Round 728: light only, and no longer applied (one light theme for everyone). */
:root[data-scheme="graphite"]{
  --bg:#F1F2F3; --surface-2:#F7F8F9; --fg:#16191D; --muted:#4A5058; --faint:#5C636B;
  --line:#DFE2E5; --line-2:#7A828A; --hover:#EEF0F2; --sel:#E9ECEF; --grid:#E6E9EC; --bar:#7A828A;
  --act:#1F2A33; --act-ink:#FFFFFF; --act-text:#2563C9; --act-soft:#ECEEF0; --id:#2563C9; --id-soft:#E6EEFB;
  --line-strong:#7A828A; --control:#7A828A; --accent:#1F2A33; --accent-strong:#2563C9; --accent-ink:#FFFFFF; --accent-soft:#ECEEF0;
  --ok:#1F2A33; --ok-soft:#ECEEF0; --ident:#2563C9; --ident-soft:#E6EEFB; --dead:#16191D}
[hidden]{display:none!important}

/* owner, 4 Nov 2026: the password rule under a new password, ticked green as it is met */
.pw-checks{list-style:none;margin:8px 0 4px;padding:0;font-size:13px;color:var(--line-strong)}
.pw-checks li{display:flex;align-items:center;gap:8px;transition:color .15s}
.pw-checks li::before{content:"";flex:none;width:16px;height:16px;box-sizing:border-box;border-radius:4px;border:1.5px solid var(--control);background:var(--control) url("tick.svg") center/12px no-repeat;transition:background-color .15s,border-color .15s}
.pw-checks li.pw-strength::before{display:none}
.pw-checks li.ok{color:var(--ok)}
.pw-checks li.ok::before{border-color:var(--ok);background:var(--ok) url("tick.svg") center/12px no-repeat}
.pw-checks li.need{color:var(--amber);font-weight:600}
.pw-checks li.need::before{border-color:var(--amber)}
.door-help{text-align:center;font-size:13px;color:var(--muted);margin:18px 0 0}
.door-help a{font-weight:600}
.door .pitch{margin:-4px 0 18px;text-align:center;font-weight:600;color:var(--accent-strong)}
