/* Octobooks web app. Colour, type, space and motion are the tokens of
   docs/design/mockups/tokens.css (design principles, round 11), copied here because the
   app serves its own files. The frame is the one of docs/DESIGN-2026-10-07-interface.md: a rail
   on the left and dense rows (mockup B) for every page, and for the first screen two views, the
   Accounting Cockpit (B) and the Workflow View (mockup A, one thing at a time from mockup C).
   Turquoise and purple are accents only: an edge, the one primary button, the mark of a suggestion. */

/* Round 1091 (owner order of 20 Nov 2026 part C6): the layers in order, the first the weakest. ux-feel (the end of this sheet) gives
   every clickable thing its hover, pressed state and focus ring; any rule of a component, layered or not, still wins over it. */
@layer ux-feel, ux-align, ux-setup, ux-n15;

/* round 391 (launch row 0b): one look with the Cowork panel of design v7.5.1: Figtree for words and numbers, tabular figures,
   the panel's green and its calm grey green ground */
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("figtree-latin-var.woff2") format("woff2");
}

:root {
  /* round 415 (feature 545): the palette is the one design system (ds.css, linked first); these are its names in this sheet */
  --surface-sunken: var(--bg); --surface-hover: var(--hover); --surface-selected: var(--accent-soft);
  --control-line: var(--control);
  --ink: var(--fg); --ink-2: var(--muted); --ink-3: var(--faint); --ink-on-accent: var(--accent-ink);
  --turquoise: var(--accent); --turquoise-strong: var(--accent-strong); --turquoise-soft: var(--accent-soft); --turquoise-mark: var(--ident);
  /* round 476 (design v6, owner colour roles): no purple, yellow, brown or blue; what was purple (identified) is turquoise, what was
     amber or blue (a date near, still to do) is ink on the second surface */
  --purple: var(--id); --purple-soft: var(--id-soft); --purple-mark: var(--id);
  --logo-turquoise: #2ec9d0; --logo-pink: #dd3fb0;
  /* round 554: the eight product group colours (th.pgrp-0 to pgrp-7 on the product table) are tokens here, no raw colour in a rule */
  --group-0: #2ec9d0; --group-1: #2f7d4f; --group-2: #0f6f75; --group-3: #dd3fb0;
  --group-4: #6b8f2a; --group-5: #3d6fb4; --group-6: #b4573d; --group-7: #7a6a55;
  --good: var(--ok); --good-soft: var(--ok-soft); --warn: var(--fg); --warn-soft: var(--surface-2);
  /* round 272 (owner, 17 Oct, b8): blue = still to do and fine; amber (warn) = urgent, a date near or past; red (bad) = a real
     problem, rarely; green = done */
  --todo: var(--fg); --todo-soft: var(--surface-2);
  --font: var(--f);
  /* round 461 (design decision 6, owner 20 Oct 2026): body 14px, tables 13px, nothing under 12px; rows 36px, dense 30px */
  /* round 476 (design v6): base text 14.5 px in Full and 15 px in Simple (ds.css --fs); page titles 30 and 34 px; nothing under 12 px */
  /* round 978 (owner order of 13 Nov 2026, design rule N2): five text sizes only, 12, 13, 15, 20 and 24 px. Page title 20, body 15,
     tables 13. Every font size of this sheet (and of the pages' own CSS) is one of the five tokens below; the older names stay as
     aliases of them, so a rule that says --text-l or --text-3xl lands on one of the five */
  --t12: 0.75rem; --t13: 0.8125rem; --t15: 0.9375rem; --t20: 1.25rem; --t24: 1.5rem;
  --text-xs: var(--t12); --text-s: var(--t13); --text-m: var(--t15); --text-l: var(--t15); --text-xl: var(--t24); --text-2xl: var(--t24);
  --text-fig: var(--t24); --text-3xl: var(--t24);
  /* round 538 (owner rule 5 of 25 Oct 2026): one size per header level, on every page; a view or the phone sets the level, never a page */
  --h1: var(--t20); --h2: var(--t15); --h3: var(--t15); --th: var(--t12);
  --weight-regular: 400; --weight-medium: 500; --weight-strong: 600;
  --line-tight: 1.25; --line-normal: 1.45;
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem;
  --row: 2.25rem; --row-dense: 1.875rem;
  --radius-s: 4px; --radius-m: var(--rc); --radius-l: var(--r);
  --shadow-pop: 0 6px 24px rgba(22, 25, 29, 0.10), 0 1px 2px rgba(22, 25, 29, 0.06);
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
  --fast: 80ms; --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* round 728 (owner, 31 Oct 2026): light only; the dark mode of round 305 is gone */
:root { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: var(--text-m); line-height: var(--line-normal);
  color: var(--ink); background: var(--surface-sunken);
  font-variant-numeric: tabular-nums lining-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--turquoise); text-decoration: none; }
a:hover { color: var(--turquoise-strong); text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-s); }
h1 { font-size: var(--h1); font-weight: var(--weight-strong); line-height: var(--line-tight); margin: var(--s1) 0 var(--s4); }
h2 { font-size: var(--h2); font-weight: var(--weight-strong); margin: var(--s5) 0 var(--s2); }
h3 { font-size: var(--h3); font-weight: var(--weight-strong); }
p { margin: 0 0 var(--s3); }
/* round 978 (N2): the browser's "smaller" of small, sub and sup made 10 and 11 px; they are the smallest of the five sizes */
small, sub, sup { font-size: var(--t12); }

/* --- frame (round 476, design v6, WEBAPP-BUILD-NOTES.md sections 1, 4 and 6) ---------------------------------------------
   A top menu in both views (Simple: Home, Bank, Sales, Reports, Tax; Full adds Month end and More), the company switch, the
   search, Upload receipt, the Simple and Full switch and the avatar in the header. Under the header the pages of the hub shown
   stand in one quiet row (the rail of before, now a row); More (and All pages in the avatar menu) opens every page at once.
   The phone has a bar at the bottom: Home, Bank, Reports, Search, More. */
body { background: var(--bg); }
h1 { font-size: var(--h1); font-weight: 700; letter-spacing: -.015em; }
:root[data-view="simple"] { --h1: var(--t20); }
:root[data-view="simple"] h1 { font-weight: 800; letter-spacing: -.025em; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.work { display: contents; }                    /* the header, then the row of the hub's pages, then the page */
header.topbar { order: 1; }
.rail { order: 2; }
main { order: 3; }
header.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
:root[data-view="simple"] header.topbar { background: var(--bg); border-bottom: 0; }
.top { display: flex; align-items: center; gap: 14px; padding: 0 32px; min-height: 64px; max-width: 1504px; margin: 0 auto; }
:root[data-view="simple"] .top { gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: none; font-weight: 800; font-size: var(--text-l); color: var(--fg); padding: 4px 6px; }
.brand:hover { text-decoration: none; color: var(--fg); }
/* round 37: the logo of octobooks.ai. Two dots, turquoise in front and pink behind; the two o's of "books" in the same two colours */
.brand i { position: relative; display: inline-block; flex: none; width: 1.38rem; height: .9rem; margin-right: .45rem; }
.brand i::before, .brand i::after { content: ""; position: absolute; top: 0; width: .9rem; height: .9rem; border-radius: 50%; }
.brand i::before { right: 0; background: var(--logo-pink); }
.brand i::after { left: 0; background: var(--logo-turquoise); }
.brand b { font-weight: 700; letter-spacing: -.02em; }
.brand .o1 { color: var(--logo-turquoise); }
.brand .o2 { color: var(--logo-pink); }
td.acts form, .bar form { display: inline-block; margin: 0 var(--s2) var(--s1) 0; }
td.acts input { width: 9rem; }
td.w { min-width: 11rem; }
button.btn.primary { background: var(--act); border-color: var(--act); color: var(--act-ink); }
button.btn.primary:hover { filter: brightness(1.06); }
/* the company switch (round 589): the company's number and name with a chevron; a numbered list of the companies and the groups
   opens under it, Groups only and All companies on top, a group's booked share of this month's bank lines at its end */
details.cosw { position: relative; flex: none; margin: 0; }
details.cosw > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 28px 4px 8px; border-radius: var(--rc);
                         font-weight: 700; font-size: var(--text-m); color: var(--fg); cursor: pointer; max-width: 18rem; position: relative; }
details.cosw > summary::-webkit-details-marker { display: none; }
details.cosw > summary:hover { background: var(--hover); }
details.cosw > summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid var(--muted);
                                border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
details.cosw .nm { min-width: 0; }
details.cosw > summary .nm { line-height: 1.15; }      /* a long name wraps to a second line on the desk, never cut */
details.cosw .no { flex: none; min-width: 1.6em; padding: 0 5px; border-radius: 6px; background: var(--sel); color: var(--fg); font-size: var(--text-xs); font-weight: 700;
                   line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
details.cosw .no:empty { visibility: hidden; }
details.cosw .pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: max-content; min-width: 18rem; max-width: min(28rem, calc(100vw - 32px));
                    max-height: calc(100vh - 96px); overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px;
                    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
details.cosw .show { display: inline-flex; align-self: flex-start; border: 1px solid var(--line-2); border-radius: var(--rc); overflow: hidden; }
details.cosw .show button { border: 0; border-radius: 0; background: var(--surface); color: var(--muted); padding: 0 12px; min-height: 32px; height: auto; font-weight: 600; }
details.cosw .show button + button { border-left: 1px solid var(--line-2); }
details.cosw .show button[aria-pressed="true"] { background: var(--sel); color: var(--fg); font-weight: 700; }
details.cosw form { margin: 0; }
details.cosw ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
/* round 1063: companies of other accounts the person was added to, under a line */
details.cosw ul.away { list-style: none; margin: 0; padding: 6px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
details.cosw li > form > button,
details.cosw li > button, details.cosw li > a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; height: auto; padding: 4px 8px; border: 0;
                                               border-radius: var(--rc); background: none; color: var(--fg); font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
details.cosw li > button:hover, details.cosw li > a:hover { background: var(--hover); text-decoration: none; }
details.cosw li.on > button { background: var(--sel); box-shadow: inset 0 0 0 1.5px var(--fg); }
details.cosw li .nm { flex: 1 1 auto; white-space: normal; }
details.cosw li small { color: var(--muted); font-weight: 400; }
details.cosw li.grp .no { background: var(--fg); color: var(--bg); }
details.cosw .pct { flex: none; font-size: var(--text-xs); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
details.cosw .pct:empty { display: none; }
details.cosw .pop.groups-only li.co { display: none; }
details.cosw .edit { font-size: var(--text-s); font-weight: 600; color: var(--act-text); padding: 2px 8px; }
/* round 799 (item 4): the invoice sent beside the next one in Octobooks */
.takeover .two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 12px 0; }
.takeover figure { margin: 0; }
.takeover figcaption { font-weight: 600; margin-bottom: 6px; }
.takeover .page-shot { display: block; width: 100%; max-width: 520px; height: auto; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; background: #fff; }
.takeover ul { margin: 4px 0 12px; padding-left: 1.2em; }
/* round 799 (item 6): the business name, changed in the switch */
details.cosw .co-rename { display: grid; gap: 4px; padding: 8px; border-top: 1px solid var(--line, #e5e7eb); margin-top: 4px; }
details.cosw .co-rename label { font-size: var(--text-s); color: var(--muted, #6b7280); }
details.cosw .co-rename .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
details.cosw .co-rename input { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
html:not(.js) details.cosw .show { display: none; }
/* the top menu: Full, an ink underline under the page shown; Simple, an ink pill */
nav.topnav { display: flex; gap: 2px; align-self: stretch; min-width: 0; margin-left: 12px; }
nav.topnav a { display: flex; align-items: center; gap: 6px; padding: 0 11px; color: var(--muted); font-weight: 600; white-space: nowrap;
               border-top: 2px solid transparent; border-bottom: 2px solid transparent; text-decoration: none; }
nav.topnav a:hover { color: var(--fg); text-decoration: none; }
nav.topnav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); font-weight: 700; }
:root[data-view="simple"] nav.topnav { align-self: center; margin: 0 auto; gap: 4px; padding: 5px; background: var(--surface); border-radius: 999px; box-shadow: 0 1px 0 var(--line); }
:root[data-view="simple"] nav.topnav a { border: 0; padding: 8px 16px; border-radius: 999px; font-weight: 700; }
:root[data-view="simple"] nav.topnav a:hover { background: var(--hover); }
:root[data-view="simple"] nav.topnav a[aria-current="page"] { background: var(--fg); color: var(--bg); }
nav.topnav .n, nav.tabbar .n { font-size: var(--text-xs); font-weight: 700; color: var(--fg); border: 1.5px solid var(--pink); border-radius: 999px; padding: 0 6px;
                               line-height: 16px; background: var(--surface); font-variant-numeric: tabular-nums; }
nav.topnav .n:empty, nav.tabbar .n:empty { display: none; }
:root[data-view="simple"] nav.topnav a[aria-current="page"] .n { color: var(--fg); }
/* the tools on the right: search (app.js puts it before them), Upload receipt, the view switch, the avatar */
.top .find { margin-left: auto; }
.who { display: flex; align-items: center; gap: 8px; flex: none; color: var(--muted); font-size: var(--text-s); }
.top .find + .who { margin-left: 0; }
.top > .who:first-of-type { margin-left: auto; }
.who form { display: flex; align-items: center; gap: var(--s2); margin: 0; }
.who .sync { display: none; }
/* round 1005: Upgrade to paid while the trial runs, calm: outlined, the accent's text, one line (never a second filled button, N9) */
.who a.btn.upgrade { background: var(--surface); color: var(--accent-strong, var(--accent)); border: 1px solid var(--accent); white-space: nowrap; font-weight: 600; }
.who a.btn.upgrade:hover { background: var(--accent-soft); text-decoration: none; }
/* round 1005: Have a code? on Account, Plan and payment, open while the trial runs: the label above, the field and Apply in one row */
#have-code form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
#have-code label { flex: 1 0 100%; margin: 0; font-weight: 600; }
#have-code input { flex: 1 1 10rem; max-width: 20rem; min-width: 0; text-transform: uppercase; }
#receipt-form .btn { min-height: 38px; height: auto; font-weight: 600; cursor: pointer; }
#receipt-form .phone { display: none; }
/* the Simple and Full switch: selected is the selection fill with a 1.5 px ink ring, never a solid black block */
.vsw { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; gap: 2px; background: var(--surface); }
.vsw button { border: 0; background: none; border-radius: 6px; padding: 0 12px; min-height: 34px; height: auto; font-weight: 600; color: var(--muted); white-space: nowrap; }
.vsw button[aria-pressed="true"] { background: var(--sel); color: var(--fg); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--fg); }
:root[data-view="simple"] .vsw { border-radius: 999px; }
:root[data-view="simple"] .vsw button { border-radius: 999px; }
/* the avatar: Profile, every page, the first screen's view, explanations, Feedback, language, another device, sign out */
details.me { position: relative; }
details.me > summary { list-style: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sel); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center;
                       font-weight: 800; cursor: pointer; }
details.me > summary:hover { background: var(--hover); }
details.me > summary .gear { display: block; }      /* round 589: Settings is a gear, not the first letter of the name */
details.me > summary::-webkit-details-marker { display: none; }
details.me .pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 17rem; display: flex; flex-direction: column; align-items: stretch; gap: 10px;
                  padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--fg); }
details.me .pop > a { font-weight: 600; color: var(--act-text); }
details.me .pop form { flex-wrap: wrap; }
details.me .pop .signed { color: var(--muted); font-size: var(--text-s); }
.who form.langtop { gap: 0; border: 1px solid var(--line-2); border-radius: var(--rc); overflow: hidden; align-self: flex-start; }
.who form.langtop button { border: 0; border-radius: 0; background: var(--surface); color: var(--muted); padding: 0 var(--s2); font-size: var(--text-s); min-width: 2.25rem; }
.who form.langtop button[aria-pressed="true"] { background: var(--sel); color: var(--fg); font-weight: 700; }
form.viewpick { display: flex; align-items: stretch; gap: var(--s3); flex-wrap: wrap; margin: 0 0 var(--s4); }
form.viewpick > b { align-self: center; }
form.viewpick button { display: grid; gap: 2px; text-align: left; height: auto; min-height: 44px; padding: 8px 14px; border-radius: var(--rc); max-width: 20rem; }
form.viewpick button span { color: var(--muted); font-weight: 400; font-size: var(--text-s); }
form.viewpick button[aria-pressed="true"] { background: var(--sel); box-shadow: inset 0 0 0 1.5px var(--fg); }
form.viewpick .muted { flex-basis: 100%; }
form.langpick { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin: 0 0 var(--s4); }
form.langpick button[aria-pressed="true"] { background: var(--sel); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
/* the switch between the two first screens (Cockpit, Workflow), now in the avatar menu */
.views { display: inline-flex; margin: 0; border: 1px solid var(--line-2); border-radius: var(--rc); overflow: hidden; align-self: flex-start; }
.views button { border: 0; border-radius: 0; background: var(--surface); color: var(--muted); padding: 0 var(--s3); }
.views button + button { border-left: 1px solid var(--line-2); }
.views button.on { background: var(--sel); color: var(--fg); font-weight: 700; }
/* the pages of the hub shown, one quiet row under the header (the rail of rounds 237 to 474) */
.rail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
:root[data-view="simple"] .rail { background: none; border: 0; padding: 0 32px; max-width: 1300px; margin: 0 auto; width: 100%; }
.rail:not(:has(.sub.open)):not(:target):not(.shown) { display: none; }
.rail > .brand, .rail > .co, .rail h6, .rail .menu, .rail .bottom, .rail > .close { display: none; }
.rail .sub { display: none; flex-wrap: wrap; gap: 4px; }
.rail .sub.open { display: flex; }
.rail a[data-nav] { display: inline-flex; align-items: center; gap: var(--s2); min-height: 32px; padding: 0 10px; color: var(--muted); font-weight: 600; border-radius: var(--rc); white-space: nowrap; }
.rail a[data-nav]:hover { background: var(--hover); text-decoration: none; color: var(--fg); }
.rail a[data-nav].on { background: var(--sel); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
.rail a .n { font-variant-numeric: tabular-nums; font-size: var(--text-xs); color: var(--muted); }
.rail a kbd { display: none; }
/* More: every page at once, as a sheet over the page (the address #menu); no script needed */
.rail:is(:target, .shown) { position: fixed; z-index: 40; top: 72px; right: 16px; left: auto; width: min(60rem, calc(100vw - 32px)); max-height: calc(100vh - 88px); overflow-y: auto;
               display: block; columns: 4 12rem; column-gap: 20px; padding: 16px 20px 20px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.rail:is(:target, .shown) > .close { display: grid; place-items: center; position: sticky; top: 0; float: right; width: 32px; height: 32px; margin: -6px -8px 0 0;
                        font-size: var(--text-fig); font-weight: 700; color: var(--muted); border-radius: var(--rc); }
.rail:is(:target, .shown) > .close:hover { background: var(--hover); text-decoration: none; }
.rail:is(:target, .shown) h6 .n { display: none; }
.rail .bottom .keys { position: static; border: 0; box-shadow: none; padding: 0; background: none; z-index: auto; }
.rail:is(:target, .shown) > .co { display: block; column-span: all; padding: 0 0 8px; }
.rail:is(:target, .shown) > .co b { display: block; font-weight: 700; }
.rail:is(:target, .shown) > .co small { color: var(--muted); font-size: var(--text-xs); }
.rail:is(:target, .shown) h6 { display: block; margin: 10px 0 2px; break-after: avoid; font-size: var(--text-s); }
.rail:is(:target, .shown) h6 a.grp { color: var(--fg); font-weight: 700; }
.rail:is(:target, .shown) .sub, .rail:is(:target, .shown) .sub.open { display: flex; flex-direction: column; align-items: flex-start; gap: 0; break-inside: avoid; }
.rail:is(:target, .shown) a[data-nav] { min-height: 30px; }
.rail:is(:target, .shown) a kbd { display: inline; margin-left: 6px; border: 0; background: none; color: var(--faint); padding: 0; font-weight: 400; }
.rail:is(:target, .shown) .menu { display: flex; column-span: all; flex-direction: column; gap: 2px; margin: 12px 0 0; }
.rail:is(:target, .shown) .menu small, .rail:is(:target, .shown) .bottom { color: var(--muted); font-size: var(--text-xs); }
.rail:is(:target, .shown) .bottom { display: block; column-span: all; margin-top: 8px; }
.rail .bottom form.lang { display: inline; margin-left: var(--s2); }
.rail .bottom form.lang button { font: inherit; color: var(--act-text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; height: auto; }
/* the page: Full 28 32 64 up to 1440 wide, Simple 10 32 60 up to 1300 */
main { padding: 28px 32px 64px; min-width: 0; width: 100%; max-width: 1504px; margin: 0 auto; }
:root[data-view="simple"] main { padding: 10px 32px 60px; max-width: 1364px; }
nav.tabbar { display: none; }
/* round 628 (HQ order of 29 Oct 2026): the company line at the foot of every page; on the phone above the bottom bar (body padding) */
footer.co-foot { order: 4; width: 100%; max-width: 1504px; margin: 0 auto; padding: 0 32px 24px; color: var(--faint); font-size: var(--text-xs); }
body.door footer.co-foot, body.lookup footer.co-foot, body.ap-plain footer.co-foot { padding: 1.25rem 0 0; text-align: center; max-width: none; }
@media (max-width: 56rem) { .shell footer.co-foot { padding: 0 16px 16px; } }
/* the phone: company, the switch and the avatar on top (44 px each); Home, Bank, Reports, Search and More at the bottom, 56 px */
@media (max-width: 56rem) {
  .top, :root[data-view="simple"] .top { padding: 0 10px 0 8px; gap: 8px; min-height: 60px; }
  .brand, nav.topnav { display: none; }
  details.cosw { flex: 1 1 0; min-width: 5.5rem; position: static; }
  details.cosw > summary { max-width: 100%; padding-left: 4px; }
  details.cosw > summary .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* the phone: one line, the list shows it whole */
  details.cosw .pop { left: 8px; right: 8px; width: auto; max-width: none; min-width: 0; top: 64px; }
  details.cosw li > button, details.cosw li > a { min-height: 44px; }
  .who { gap: 6px; flex: 0 1 auto; min-width: 0; justify-content: flex-end; }
  .vsw button { min-height: 44px; min-width: 44px; padding: 0 10px; }
  details.me .pop > a, details.me .pop button { min-height: 44px; display: flex; align-items: center; }   /* round 484: 44 px targets */
  .b6-tabs [data-tab] { min-height: 44px; }
  details.me > summary { width: 44px; height: 44px; }
  #receipt-form .btn { min-height: 44px; padding: 0 10px; }
  #receipt-form .desk { display: none; }
  #receipt-form .phone { display: inline; }
  .top .find { display: none; }
  html.searching .top .find { display: block; position: absolute; left: 8px; right: 8px; top: 64px; margin: 0; }
  html.searching .top .find input { width: 100%; }
  .rail, :root[data-view="simple"] .rail { flex-wrap: nowrap; overflow-x: auto; padding: 6px 12px; }
  .rail .sub.open { flex-wrap: nowrap; }
  .rail:is(:target, .shown) { position: fixed; inset: 0 0 calc(56px + env(safe-area-inset-bottom)) 0; top: 0; width: auto; max-height: none; border-radius: 0; columns: 1; }
  main, :root[data-view="simple"] main { padding: 16px; }
  .rail:is(:target, .shown) a kbd, .rail .bottom .keys { display: none; }
  :root { --h1: var(--t20); }
  :root[data-view="simple"] { --h1: var(--t20); }
  nav.tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
               background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  nav.tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 56px; min-width: 44px;
                 font-size: var(--text-xs); font-weight: 600; color: var(--muted); text-decoration: none; }
  nav.tabbar a[aria-current="page"] { color: var(--fg); font-weight: 800; }
  nav.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 2px; background: var(--fg); }
  nav.tabbar .n { position: absolute; top: 4px; left: calc(50% + 10px); font-size: var(--text-xs); padding: 0 5px; line-height: 14px; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* round 471 (design decision 9): lists are tables on a computer and cards on the phone (nav.js names each cell's column) */
@media (max-width: 56rem) {
  table.cards, table.cards tbody, table.cards tr, table.cards td, table.cards th { display: block; width: auto; }
  table.cards tr.head, table.cards thead { display: none; }
  table.cards tr { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); margin: 0 0 var(--s2); padding: var(--s2) var(--s3); }
  table.cards td { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); height: auto; border: 0; padding: .15rem 0; text-align: right; overflow-wrap: anywhere; }
  table.cards td::before { content: attr(data-label); flex: none; max-width: 45%; color: var(--ink-3); font-size: var(--text-xs); text-align: left; }
  table.cards td:empty { display: none; }
  table.cards td .pill, table.cards td .st { white-space: normal; }
  .scroll:has(> table.cards) { background: none; border: 0; overflow: visible; }
}
/* what the server drew is hidden while the script draws the page itself */
html.js[data-app] main > .plain { display: none; }
html:not(.js) #app, html:not([data-app]) #app { display: none; }

/* --- surfaces and tables --------------------------------------------------------------- */
.card.empty { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }     /* round 464 */
.card.empty p { margin: 0; }
p.kit-empty, div.kit-empty { color: var(--ink-3); margin: var(--s2) 0 var(--s4); }          /* round 1093: an empty table's line, no card (rule 7.13) */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); margin: 0 0 var(--s4); }
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); margin: 0 0 var(--s4); }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 0 var(--s3); height: var(--row); font-size: var(--text-s); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { background: var(--surface-sunken); color: var(--ink-2); font-weight: var(--weight-medium); font-size: var(--th); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
/* round 1015 (owner decision 7 of 18 Nov 2026): a header cell's label sits at the top of its cell, never mid field in a tall row */
th { vertical-align: top; padding-top: .5rem; }
tr:last-child > td { border-bottom: 0; }
tr.total > td { font-weight: var(--weight-strong); border-top: 1px solid var(--line-strong); }
tr.section > td { font-weight: var(--weight-strong); color: var(--ink); background: var(--surface-sunken); }
.plain td, .plain th { vertical-align: top; padding-top: .35rem; padding-bottom: .35rem; height: auto; }
.num, td.num, th.num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum", "lnum", "cv11", "ss01"; text-align: right; white-space: nowrap; }
.neg { color: inherit; }
.muted { color: var(--ink-3); } .label { color: var(--ink-2); }
.bad { color: var(--bad); } .good { color: var(--good); }
code { overflow-wrap: anywhere; }      /* round 462: a long address breaks at the phone's edge instead of widening the page */
.mono { font-feature-settings: "tnum", "zero", "ss02"; font-size: var(--text-s); word-break: break-all; color: var(--ink-2); }
.pill, .st { display: inline-block; font-size: var(--text-xs); font-weight: var(--weight-medium); padding: .1rem .4rem; border-radius: 99px; white-space: nowrap; color: var(--good); background: var(--good-soft); }
.pill.p, .src { color: var(--act-strong); background: var(--purple-soft); }
.pill.bad, .st-bad { color: var(--bad); background: var(--bad-soft); }
.pill.good { color: var(--good); background: var(--good-soft); }
.pill.todo, .st-todo { color: var(--todo); background: var(--todo-soft); }
.pill.warn, .st-warn { color: var(--warn); background: var(--warn-soft); }
.st-amber { color: var(--amber); background: var(--amber-soft); }      /* round 902: a return past its due date, amber never red */
.todo { color: var(--todo); } .warn { color: var(--warn); }
.st-plain { color: var(--ink-2); background: var(--surface-hover); }
.src { font-size: var(--text-xs); font-weight: var(--weight-medium); padding: .1rem .4rem; border-radius: 99px; white-space: nowrap; }
/* text written by outsiders is data and looks like it */
.untrusted, .outsider { font-feature-settings: "tnum", "zero", "ss02"; color: var(--ink-2); background: var(--surface-sunken); border-left: 2px solid var(--line-strong); padding: 0 var(--s2); word-break: break-word; }
.untrusted { display: block; white-space: pre-wrap; padding: var(--s1) var(--s2); }
/* round 30, the page Paid: a document number stays on one line, a party keeps room to be read on a phone */
td.keep .untrusted { white-space: nowrap; }
/* round 583: a bank line's account and date stay on one line */
td.nw { white-space: nowrap; }
td.party { min-width: 9rem; }
.bar { display: flex; gap: var(--s2) var(--s4); align-items: end; flex-wrap: wrap; margin: 0 0 var(--s4); }
.bar label { display: block; font-size: var(--text-s); color: var(--ink-2); margin: 0 0 .15rem; }
.chips { display: flex; gap: var(--s2); flex-wrap: wrap; margin: 0 0 var(--s4); }
.chips a { padding: .15rem .6rem; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); color: var(--ink-2); font-size: var(--text-s); }
.chips a:hover { background: var(--surface-hover); text-decoration: none; color: var(--ink); }
.chips a.on { border-color: var(--turquoise); color: var(--ink); background: var(--surface-selected); }
input, select, button { font: inherit; height: 2rem; padding: 0 var(--s2); border: 1px solid var(--control-line); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); }
button { cursor: pointer; border-color: var(--line-strong); font-weight: var(--weight-medium); } button:hover { background: var(--surface-hover); }
a.btn, .btn { display: inline-flex; align-items: center; gap: var(--s2); height: 2rem; padding: 0 var(--s3); font-weight: var(--weight-medium); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-m); white-space: nowrap; }
a.btn:hover, .btn:hover { background: var(--surface-hover); text-decoration: none; color: var(--ink); }
dl { display: grid; grid-template-columns: 12rem 1fr; gap: var(--s1) var(--s4); margin: 0; } dt { color: var(--ink-2); } dd { margin: 0; }
pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; }
/* round 416 (feature 545, tidy walk): no field is wider than the page on a phone (an input of size 60 was 71 px too wide) */
input, select, textarea { max-width: 100%; }
kbd { font-family: var(--font); font-size: var(--text-xs); font-weight: var(--weight-medium); line-height: 1; display: inline-block; min-width: 1.25rem; padding: .2rem .3rem; text-align: center; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: var(--radius-s); }

/* --- the app: rows that open -------------------------------------------------------------- */
#app table { table-layout: auto; }
#app td, #app th { height: var(--row-dense); }
tr.x { cursor: pointer; }
tr.x:hover > td, tr.x:focus-visible > td { background: var(--surface-hover); }
tr.x:focus-visible { box-shadow: none; }
tr.x:focus-visible > td:first-child { box-shadow: inset 2px 0 0 var(--turquoise); }
tr.x.open > td { background: var(--surface-selected); }
tr.x > td:first-child::before { content: ""; display: inline-block; width: 0; height: 0; margin-right: .45rem; border-left: 5px solid var(--ink-3); border-top: 4px solid transparent; border-bottom: 4px solid transparent; vertical-align: .05em; }
tr.x.open > td:first-child::before { transform: rotate(90deg); border-left-color: var(--turquoise); }
tr.sub > td { padding: 0 0 0 var(--s5); height: auto; background: var(--surface); }
.drill { border-left: 2px solid var(--turquoise-soft); margin: 0 0 var(--s1); }
.drill table { font-size: var(--text-m); }
.drill th { background: none; border-bottom: 1px solid var(--line); }
.drill td, .drill th { height: var(--row-dense); }
/* Lists inside an opened row have fixed columns: the browser then lays out two hundred rows of long text
   without measuring every cell, and a long narration is cut with an ellipsis instead of widening the page. */
.of-months > table, .of-years > table, .of-lines > table, .of-entry > table, .of-items > table,
.of-entries > table, .of-docs > table, .of-tb > table, .of-sections > table { table-layout: fixed; }
.of-entries > table > thead th:nth-child(1) { width: 6rem; } .of-entries > table > thead th:nth-child(2) { width: 7.5rem; } .of-entries > table > thead th:nth-child(3) { width: 8rem; }
.of-entries > table > thead th:nth-child(5) { width: 9.5rem; }
/* round 611 (design check 608: the journal on the phone ran off the right edge): an entry is a card, number, date and debits on
   its first line, the narration in full under them; an opened entry spreads below as before */
@media (max-width: 40rem) {
  .of-entries { overflow: visible; }
  .of-entries > table, .of-entries > table > tbody { display: block; table-layout: auto; }
  .of-entries > table > thead { display: none; }
  .of-entries > table > tbody > tr.x { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "no date amt" "narr narr narr" "type type type";
    gap: 0 var(--s3); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); }
  .of-entries > table > tbody > tr.x > td { border: 0; padding: 0; height: auto; white-space: normal; overflow: visible; }
  .of-entries > table > tbody > tr.x > td:nth-child(1) { grid-area: no; } .of-entries > table > tbody > tr.x > td:nth-child(2) { grid-area: date; }
  .of-entries > table > tbody > tr.x > td:nth-child(3) { grid-area: type; color: var(--ink-3); font-size: var(--text-xs); }
  .of-entries > table > tbody > tr.x > td:nth-child(4) { grid-area: narr; } .of-entries > table > tbody > tr.x > td:nth-child(5) { grid-area: amt; }
  .of-entries > table > tbody > tr.sub { display: block; } .of-entries > table > tbody > tr.sub > td { display: block; }
}
.of-docs > table > thead th:nth-child(1) { width: 6rem; } .of-docs > table > thead th:nth-child(2) { width: 10rem; } .of-docs > table > thead th:nth-child(3) { width: 7.5rem; }
.of-docs > table > thead th:nth-child(4) { width: 28%; } .of-docs > table > thead th:nth-child(6) { width: 9.5rem; } .of-docs > table > thead th:nth-child(7) { width: 6rem; }
.of-docs > table > thead th:nth-child(8) { width: 11rem; }
.of-tb > table > thead th:nth-child(1) { width: 10rem; } .of-tb > table > thead th:nth-child(n+3) { width: 10rem; }
/* round 1127 (Embercroft review, item 32: "dense"): heads of weight, amounts on the right, a head and a total per account type */
.of-tb > table > thead th { font-weight: var(--weight-strong); color: var(--ink); border-bottom: 1.5px solid var(--fg); }
.of-tb > table th.num, .of-tb > table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.of-tb > table > tbody > tr.tb-grp > th { background: transparent; color: var(--ink); font-weight: var(--weight-strong); text-transform: none;
  letter-spacing: 0; font-size: var(--text-s, .875rem); padding-top: var(--s3); text-align: left; }
.of-tb > table > tbody > tr.tb-sub > td { font-weight: var(--weight-strong); border-top: 1px solid var(--line-strong); }
.of-tb > table > tbody > tr.tb-all > td { border-top: 1.5px solid var(--fg); }
.of-sections > table > thead th:nth-child(1) { width: 10rem; } .of-sections > table > thead th:nth-child(3) { width: 12rem; }
.of-entries > table > tbody > tr > td, .of-docs > table > tbody > tr > td, .of-tb > table > tbody > tr:not(.sub) > td,
.of-sections > table > tbody > tr:not(.sub) > td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-entries td.clip, .of-docs td.clip { max-width: none; }
.of-entries > table > tbody > tr.sub > td, .of-docs > table > tbody > tr.sub > td { white-space: normal; overflow: visible; }
.of-months th:nth-child(1), .of-years th:nth-child(1) { width: 34%; } .of-months th:nth-child(2), .of-years th:nth-child(2) { width: 12%; }
.of-lines th:nth-child(1) { width: 7.5rem; } .of-lines th:nth-child(2) { width: 5.5rem; } .of-lines th:nth-child(4), .of-lines th:nth-child(5) { width: 9rem; }
.of-entry th:nth-child(1) { width: 3.5rem; } .of-entry th:nth-child(2) { width: 9rem; } .of-entry th:nth-child(3) { width: 22%; }
.of-entry th:nth-child(4), .of-entry th:nth-child(5) { width: 8.5rem; } .of-entry th:nth-child(6) { width: 11rem; }
.of-items th:nth-child(1) { width: 5rem; } .of-items th:nth-child(2) { width: 19rem; } .of-items th:nth-child(4) { width: 7.5rem; } .of-items th:nth-child(5) { width: 13rem; }
.of-months td, .of-years td, .of-lines td, .of-entry td, .of-items td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-lines td.clip, .of-entry td.clip, .of-items td.clip { max-width: none; }
.drill .note { padding: var(--s1) var(--s3); color: var(--ink-3); font-size: var(--text-s); }
.facts { display: flex; gap: var(--s1) var(--s4); flex-wrap: wrap; padding: var(--s2) var(--s3); color: var(--ink-2); font-size: var(--text-s); }
.facts b { font-weight: var(--weight-medium); color: var(--ink); }
/* round 1127 (ship stop of 22 Nov, tools/align.sh on /journal/N): on the entry page the facts stand on the text edge of their section
   (Lines), one line of words, not boxes side by side; 20 px as the ALIGN block's table in a section (rule 2 there) */
#entry-lines .facts { display: block; padding: var(--s2) 20px; }
#entry-lines .facts > * { display: inline; margin-right: var(--s4); }
/* round 1010b (review LOW 4): a VAT return's table is drawn text first (table.figs); its second column, the box or Kz, stays narrow at
   every width; the old 21rem of the text column holds only for a table still drawn code first */
.vat table:not(.figs) td:nth-child(2) { min-width: 21rem; white-space: normal; }
td.pick a { color: inherit; display: block; } td.pick a:hover { color: var(--turquoise-strong); }
td.pick { cursor: pointer; } td.pick:hover { background: var(--surface-hover); } td.pick.on { background: var(--surface-selected); box-shadow: inset 0 -2px 0 var(--turquoise); }
td.clip { max-width: 34rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* round 1030b (the /vat findings 4 px past a 1280 window with the demo of the day: the Kind words and the payee, both on one line, grew
   the table to 1,019 px, Kind 205, Payee 306, Receipt 218 with its Attach form; figure tables keep to 960 px, rule of round 1010): the
   Kind and the other words wrap, the payee is cut at 12rem with its whole name on hover, the figures stay on one line */
#vat-findings table td:not(.num):not(.clip), #vat-findings .vat-kind { white-space: normal; }
#vat-findings table td.clip { max-width: 12rem; }
.lede { color: var(--ink-2); margin: 0 0 var(--s3); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); gap: var(--s4); align-items: start; }

/* --- search and the state of the local copy -------------------------------------------------- */
.find { position: relative; flex: 1 1 10rem; max-width: 16rem; min-width: 9rem; }
.find input { width: 100%; padding-right: 3.2rem; }
.find kbd { position: absolute; right: .35rem; top: .4rem; }
.hits { position: absolute; z-index: 5; left: 0; right: 0; top: 2.3rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-m); box-shadow: var(--shadow-pop); max-height: 70vh; overflow: auto; }
.hits .g { padding: var(--s1) var(--s3); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .02em; color: var(--ink-3); background: var(--surface-sunken); }
.hits a { display: flex; gap: var(--s3); justify-content: space-between; padding: .3rem var(--s3); color: var(--ink); }
.hits a.on, .hits a:hover { background: var(--surface-selected); text-decoration: none; }
.hits a span:last-child { color: var(--ink-3); white-space: nowrap; }
.hits a span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync { font-size: var(--text-xs); color: var(--ink-3); white-space: nowrap; }
.sync.bad { color: var(--bad); }
.keys { position: fixed; right: var(--s4); bottom: var(--s4); z-index: 6; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-l); box-shadow: var(--shadow-pop); padding: var(--s3) var(--s4); }
.keys div { display: flex; gap: var(--s3); justify-content: space-between; padding: .15rem 0; }
.keys b { display: block; margin: var(--s2) 0 var(--s1); font-size: var(--text-xs); color: var(--ink-3); }      /* round 627: This page, Everywhere */
.keys b:first-child { margin-top: 0; }

/* --- Accounting Cockpit: a strip of figures, then blocks whose rows open (mockup B) ---------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-m); margin: 0 0 var(--s4); overflow: hidden; }
.stat { display: block; padding: var(--s2) var(--s4); border-right: 1px solid var(--line); color: var(--ink); }
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--surface-hover); text-decoration: none; color: var(--ink); }
.stat small { display: block; font-size: var(--text-xs); color: var(--ink-3); }
.stat b { font-size: var(--text-l); font-weight: var(--weight-strong); font-variant-numeric: tabular-nums lining-nums; }
.stat em { font-style: normal; color: var(--ink-3); font-size: var(--text-s); margin-left: var(--s2); }
.panes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; }
@media (min-width: 72rem) { .panes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pane.wide { grid-column: 1 / -1; } }
.sheet h2 { display: flex; gap: var(--s2); align-items: baseline; justify-content: space-between; margin: 0; font-size: var(--h2); font-weight: var(--weight-strong); }
.sheet h2 span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: var(--text-s); }
.note { color: var(--ink-3); }
.of-filings td, .of-vatpos td, .of-needs td.num { white-space: nowrap; }
/* turnover per month: one series, from nil, thin bars with rounded ends; the figures are a row below */
.chart { padding: var(--s2) var(--s3) var(--s1); border-bottom: 1px solid var(--line); }
.readout { font-size: var(--text-s); color: var(--ink-2); font-variant-numeric: tabular-nums lining-nums; min-height: 1.2rem; }
.mbars { display: flex; align-items: flex-end; gap: 2px; height: 5.5rem; margin-top: var(--s1); }
.mbar { flex: 1 1 0; max-width: 2.5rem; display: flex; flex-direction: column; align-items: center; height: 100%; color: var(--ink-3); font-size: var(--text-xs); }
.mbar .col { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line-strong); }
.mbar i { display: block; width: 62%; max-width: 1rem; background: var(--turquoise-mark); border-radius: 4px 4px 0 0; }
.mbar:hover { text-decoration: none; color: var(--ink); } .mbar:hover i, .mbar:focus-visible i { background: var(--turquoise); }
.mbar .m { padding-top: 2px; }

/* --- Workflow View: one column, a sentence, what is next, then the rest in order (mockup A) -------- */
.sheet { max-width: 56rem; margin: 0 auto; padding: var(--s5) 0 var(--s7); }
.eyebrow { font-size: var(--text-s); color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.eyebrow a { text-transform: none; letter-spacing: 0; }
.sheet h1, .plain .sheet + h1 { letter-spacing: -.02em; margin: var(--s2) 0 var(--s3); }
.lead { font-size: var(--text-l); color: var(--ink-2); max-width: 42rem; }
.lead b { color: var(--ink); font-weight: var(--weight-medium); }
.mode { color: var(--ink-2); } .mode b { color: var(--ink); font-weight: var(--weight-medium); }
.sheet h2 { margin: var(--s6) 0 0; padding-bottom: var(--s2); border-bottom: 1px solid var(--ink); }
.next { margin: var(--s5) 0 0; padding: var(--s4); border: 1px solid var(--line-strong); border-radius: var(--radius-m); box-shadow: inset 2px 0 0 var(--turquoise); }
.next small, .half small { display: block; font-size: var(--text-xs); color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--s1); }
.next .what { font-size: var(--text-xl); font-weight: var(--weight-strong); line-height: var(--line-tight); }
.next p { color: var(--ink-2); margin: var(--s1) 0 0; max-width: 42rem; }
.acts { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; margin-top: var(--s3); }
.acts .fig, .needs .fig { font-size: var(--text-l); font-weight: var(--weight-medium); }
a.btn.primary { background: var(--turquoise); border-color: var(--turquoise); color: var(--ink-on-accent); }
a.btn.primary:hover { background: var(--turquoise-strong); border-color: var(--turquoise-strong); color: var(--ink-on-accent); }
a.btn.primary kbd { background: none; border-color: currentColor; color: var(--ink-on-accent); }
.needs { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.sheet ol.needs[start="2"] { counter-reset: n 1; }
.needs li { counter-increment: n; display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto auto; gap: var(--s3); align-items: baseline; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.needs li::before { content: counter(n); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.needs .what { font-size: var(--text-l); }
.needs .what small { display: block; font-size: var(--text-m); color: var(--ink-2); margin-top: .15rem; }
.needs .fig { min-width: 7rem; text-align: right; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 0 var(--s6); }
.sheet .scroll, .sheet .lines { border: 0; border-radius: 0; }
/* one open item: what it is about beside what is suggested or booked */
.halves { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); border: 1px solid var(--line-strong); border-radius: var(--radius-m); margin-top: var(--s4); }
.half { padding: var(--s4); min-width: 0; }
.half + .half { border-left: 1px solid var(--line); }
.half.says { background: var(--surface-sunken); }
.half .big { font-size: var(--text-xl); font-weight: var(--weight-strong); text-align: left; margin-bottom: var(--s2); }
dl.kv { grid-template-columns: 7.5rem minmax(0, 1fr); } dl.kv dd { overflow-wrap: anywhere; }
.cmp table td, .cmp table th { height: var(--row-dense); } .cmp td:first-child { color: var(--ink-3); width: 5.5rem; }
.cmp .same { color: var(--good); font-size: var(--text-xs); font-weight: var(--weight-medium); }
.cmp .near { color: var(--warn); font-size: var(--text-xs); font-weight: var(--weight-medium); }
.bar-acts { padding-bottom: var(--s2); }
.behind { border-top: 0; }

@media (prefers-reduced-motion: no-preference) { a, .btn, tr.x > td, nav a, .mbar i { transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); } }
/* round 465 (design decision 8): a click is answered in the same frame: every button and link shows it is pressed, with no
   tap delay on a phone; a page that waits more than 300 ms shows grey rows in the shape of what comes, never a spinner; a new
   page comes in with one short fade; with less motion asked for by the device, nothing moves */
a, button, .btn, summary, label.btn { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:active, button:active, .btn:active, summary:active { filter: brightness(0.92); }
button:active, .btn:active { transform: translateY(1px); }
.skel { opacity: 0; animation: skel-show 0s linear 300ms forwards; margin: 0 0 var(--s4); }
.skel i { display: block; height: calc(var(--row-dense) - 0.5rem); margin: 0.5rem 0; border-radius: var(--radius-s); background: var(--surface-sunken); }
.skel i:nth-child(3n+2) { width: 82%; } .skel i:nth-child(3n) { width: 64%; }
.skel .skel-say { margin: var(--s2) 0 0; color: var(--ink-3); font-size: var(--text-s); }
@keyframes skel-show { to { opacity: 1; } }
@keyframes skel-pulse { 50% { opacity: 0.55; } }
@keyframes page-in { from { opacity: 0.6; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .skel i { animation: skel-pulse 1.4s ease-in-out 300ms infinite; }
  #app > *, main > .plain { animation: page-in 120ms var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  button:active, .btn:active { transform: none; }
}
@media (max-width: 40rem) { dl { grid-template-columns: 1fr; } main { padding: var(--s3); } .top { padding-left: var(--s3); padding-right: var(--s3); } }

/* round 24, coverage: every bank line of a month by state, one bar. Turquoise: in the books. Purple: identified, not booked yet. */
.covbar { display: block; width: 100%; min-width: 9rem; height: .55rem; border-radius: 3px; background: var(--surface-sunken); }
.covcell { min-width: 10rem; width: 22%; }
.cov-booked { fill: var(--turquoise-mark); background: var(--turquoise-mark); }
.cov-in_books { fill: var(--turquoise-mark); background: var(--turquoise-mark); opacity: .45; }
.cov-ready { fill: var(--purple-mark); background: var(--purple-mark); }
.cov-identified { fill: var(--purple-mark); background: var(--purple-mark); opacity: .45; }
.cov-unidentified { fill: var(--line-strong); background: var(--line-strong); }
.covkey { display: inline-block; width: .6rem; height: .6rem; border-radius: 2px; margin: 0 .3rem 0 .6rem; vertical-align: baseline; }
.covlegend { margin: 0 0 var(--s2); font-size: var(--text-s); }
.covline { display: flex; height: .5rem; border-radius: 3px; overflow: hidden; background: var(--surface-sunken); min-width: 6rem; }
.covline i { display: block; height: 100%; }
form.inline { display: inline; margin: 0; }
.card.good { color: var(--fg); border-color: var(--line-2); }      /* round 484 (v6 colour roles): status is ink, green is for actions */
.card.bad { border-left: 3px solid var(--bad); }
.card.todo { border-left: 3px solid var(--todo); }
.card.warn { border-left: 3px solid var(--warn); }
.card.warn.reconciled-ahead { background: var(--warn-soft); }        /* round 715: the reconciled period is a warning, not a message */
.card.provisional { border-left: 3px solid var(--purple-mark); }
td.prov, .prov, tr.section > td.prov, tr.total > td.prov { color: var(--purple); }
.covmonth { white-space: nowrap; }
tr.provitem > td { color: var(--ink-3); font-size: var(--text-s); white-space: normal; height: auto; padding-top: 0; padding-bottom: var(--s1); border-top: 0; }

/* round 27: what happened at the door, above the first screen; the invite link on People */
.door-notes{margin:0 0 14px;display:flex;flex-direction:column;gap:6px}
.door-notes[hidden]{display:none}
.door-notes .note{display:flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--line,#dfe3e8);border-left:3px solid var(--purple);border-radius:6px;background:var(--surface)}
.door-notes .note.ask{border-left-color:var(--ident)}
.door-notes .note span{flex:1}
.door-notes .note form{margin:0}
input.wide{width:100%;box-sizing:border-box}
label.inline{display:inline-block;margin-right:12px}

/* --- add another device (round 28): the QR code beside what to do with it ------------------------- */
.device { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--s5); align-items: start; max-width: 46rem; padding: var(--s5); }
.device h2 { margin-top: 0; }
.device .qr { border: 1px solid var(--line); border-radius: var(--radius-l); padding: var(--s2); background: var(--surface); line-height: 0; }
.device .qr svg { width: 100%; height: auto; display: block; }
.device-code { font-size: var(--text-2xl); font-weight: var(--weight-strong); letter-spacing: .08em; font-variant-numeric: tabular-nums; margin: 0 0 var(--s4); }
@media (max-width: 40rem) { .device { grid-template-columns: minmax(0, 1fr); } .device .qr { max-width: 14rem; } }

/* round 37: the mini preview of a document (peek.js) and the pages of a stored PDF as pictures */
.peek { position: absolute; z-index: 60; width: 17.5rem; max-width: calc(100vw - 1rem); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-l); box-shadow: var(--shadow-pop); padding: var(--s3); font-size: var(--text-s); line-height: var(--line-normal); pointer-events: none; }
.peek-title { font-weight: var(--weight-strong); font-size: var(--text-m); text-transform: capitalize; overflow-wrap: anywhere; }
.peek-facts { color: var(--ink-2); margin: .1rem 0 var(--s2); overflow-wrap: anywhere; }
.peek-foot { color: var(--ink-3); font-size: var(--text-xs); margin-top: var(--s2); }
.peek-page { display: block; width: 100%; height: auto; min-height: 8rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-sunken); }
.peek-lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.peek-lines td { padding: .1rem 0; border: 0; vertical-align: top; height: auto; }
.peek-lines td.q { color: var(--ink-3); padding-right: var(--s2); white-space: nowrap; }
.peek-lines td.d { overflow-wrap: anywhere; } .peek-lines td.more { color: var(--ink-3); }
.peek-lines td.n { text-align: right; white-space: nowrap; padding-left: var(--s2); }
.peek-lines tr.sum > td { border-top: 1px solid var(--line); padding-top: .25rem; }
.peek-lines tr.total > td { font-weight: var(--weight-strong); }
img.pdfpage { display: block; width: 100%; max-width: 50rem; height: auto; margin: 0 auto var(--s3); border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); box-shadow: var(--shadow-pop); }
.invcard dl { margin-bottom: var(--s3); }
@media (hover: none) { .peek { display: none; } }

/* round 38: a reason somebody wrote keeps a readable width in a table, and a form field never leaves the screen */
td.why { min-width: 14rem; }
.bar input, .bar select { max-width: 100%; }

/* round 43: the questionnaire of the company profile */
form.profile .ask { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
form.profile .opts { margin: var(--s2) 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
form.profile label.tick { display: inline-flex; gap: .35rem; align-items: center; font-weight: var(--weight-regular); }
form.profile input:not([type=checkbox]), form.profile select { max-width: 100%; min-width: min(24rem, 100%); }

/* round 44: the form that writes a document */
form.write table input, form.write table select { width: 100%; min-width: 5rem; }
form.write td:first-child { min-width: 16rem; }

/* round 44: a form row never pushes the page wider than the phone */
.bar > div, .bar > details { max-width: 100%; min-width: 0; }   /* round 772: a details in a bar, its selects no wider than the page at 390 */
form.write .scroll { max-width: 100%; }
/* round 925 (BR-319c): statement against books per bank account on Home, a quiet line, never red */
.h7-stdiff { margin: 8px 0 0; color: var(--ink-2); } .h7-stdiff p { margin: 2px 0; }
/* round 925 (BR-298f): a mileage trip is a row of fields that wraps; one line between trips */
.trips .trip-row { margin: 0; padding: var(--s2) 0; } .trips .trip-row + .trip-row { border-top: 1px solid var(--line); }
.logo-shown { max-width: 240px; max-height: 80px; border: 1px solid var(--line, #ddd); padding: 8px; background: #fff; }
.card.note { border-left: 3px solid var(--warn); }

/* round 238: a button only a browser without scripts needs */
.js .nojs { display: none; }

/* round 244: what most people never need, folded */
details.more { margin-top: var(--s4); }
details.more > summary { cursor: pointer; color: var(--ink-2); font-weight: var(--weight-medium); }

/* round 246: the receipt button of the top bar; its file field is the button itself */
#receipt-form label.btn { position: relative; cursor: pointer; }
#receipt-form input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.js #receipt-form input[type=file] { font-size: 0; }
/* round 912 (BR-295c, round 721 gap): without a script the upload form carries its own Upload button; the top bar breaks onto a
   second line rather than squeeze the chips and the search (at 960 it ran 46 px past its width), and the hidden file field's
   "No file chosen" no longer runs past its button */
:root:not(.js) .top, :root:not(.js)[data-view="simple"] .top { flex-wrap: wrap; row-gap: 6px; padding-top: 6px; padding-bottom: 6px; }
:root:not(.js) #receipt-form input[type=file] { font-size: 0; }

/* round 248: hub names as written, not in capitals (the old group headers were) */
.rail h6 a.grp { text-transform: none; letter-spacing: 0; font-size: var(--text-m); }


/* round 277 (owner, 17 Oct 2026): explanations behind the E button */
html.expl-off .expl { display: none; }
.expl-btn { font-weight: 600; }
.expl-btn.small { min-width: 2.2em; padding: 0 .5em; }
.expl-btn[aria-pressed="true"] { background: var(--todo-soft, #e8f0fe); }
/* round 285 (feature 407): the suggestions card on Home */
.suggestions{border:1px solid var(--line);border-radius:8px;margin:12px 0}
.suggestions h2{margin:0 0 6px}
.suggestions p{margin:4px 0}
button.linkish{background:none;border:0;padding:0 4px;color:var(--ink-3);text-decoration:underline;cursor:pointer;font:inherit;font-size:var(--text-xs)}
/* round 295 (feature 380): where the answer stands, a made up sample of the tax office's letter beside the question */
details.letter{margin:4px 0 0;font-size:var(--text-xs)}
details.letter summary{cursor:pointer;color:var(--ink-3)}
details.letter .sample{margin:6px 0 0;padding:10px 12px;border:1px solid var(--line, #dedcd1);border-radius:8px;background:var(--paper, #fff);color:#16191d;font-family:Georgia,serif;max-width:520px}
details.letter .sample .muted{color:#4f5c63}
details.letter mark{background:#fff3b0;padding:0 2px}
.card.bad.warn-big { border: 2px solid var(--bad); font-size: var(--text-l); }

/* round 314: Feedback, as a dialog on the page and as a page of its own */
.feedback-dialog { border: 1px solid var(--line-strong); border-radius: var(--radius-l); padding: var(--s5); max-width: 32rem; width: calc(100% - 2rem); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); }
.feedback-dialog::backdrop { background: rgba(0, 0, 0, .35); }
form.feedback { display: flex; flex-direction: column; gap: var(--s3); max-width: 32rem; }
form.feedback h2 { margin: 0; }
form.feedback textarea { width: 100%; font: inherit; padding: var(--s2); border: 1px solid var(--control-line); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); }
form.feedback .kinds { display: flex; flex-wrap: wrap; gap: var(--s3); }
form.feedback .shot { display: flex; flex-direction: column; gap: var(--s1); align-items: flex-start; }
form.feedback .good { color: var(--good); font-weight: var(--weight-medium); }
form.feedback select, form.feedback input:not([type]) { font: inherit; padding: var(--s1) var(--s2); border: 1px solid var(--control-line); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); }
form.feedback .broken-only { display: flex; flex-direction: column; gap: var(--s1); }
form.feedback .broken-only[hidden] { display: none; }

/* round 330 (feature 474): receipts dropped anywhere on a page */
html.dropping::after { content: attr(data-drop); position: fixed; inset: 0.75rem; z-index: 1000; display: flex; align-items: center; justify-content: center;
  border: 3px dashed var(--turquoise); border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--turquoise);
  font-size: var(--text-fig); font-weight: 600; pointer-events: none; }
/* round 373 (feature 531): the phone's Snap page */
.snap{display:flex;flex-direction:column;gap:12px;max-width:420px}
.snap .btn.big{display:flex;align-items:center;justify-content:center;height:auto;min-height:56px;text-align:center;padding:14px 16px;font-size:var(--text-l);border-radius:12px;white-space:normal}  /* round 519: the words sat on the bottom edge (a 2rem button with 18px padding) */
ul.snaps{list-style:none;padding:0;margin:0}
ul.snaps li{padding:10px 0;border-bottom:1px solid var(--line, #e6e3da);display:flex;flex-direction:column;gap:2px}
ul.snaps li.good span{color:var(--good, #2f7d4f)}

/* round 391 (launch row 0b): the panel's brief, and its figures */
.brief { font-size: var(--text-l); font-weight: var(--weight-medium); line-height: 1.4; margin: 0 0 var(--s4); max-width: 70ch; }
.stats .stat b { font-size: var(--text-xl); font-weight: var(--weight-strong); }
/* round 544: a figure never runs past its box on a phone: the figure a step smaller, what it is beside on a line of its own */
.stat { min-width: 0; }
.stat em { display: inline-block; }
@media (max-width: 56rem) {
  .stats .stat b { font-size: var(--text-fig); }
  .stat em { display: block; margin-left: 0; }
}

/* round 404 (feature 544): hold to approve; the fill runs for the second the button is held */
button.hold { position: relative; overflow: hidden; }
button.hold::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: currentColor; opacity: .6; }
button.hold.holding::after { width: 100%; transition: width 1s linear; }
@media (prefers-reduced-motion: reduce) { button.hold.holding::after { transition: none; } }
/* round 594: a form button held for a second (rowacts.js, data-hold): Lock, Unlock, Book and make a rule */
button[data-hold] { position: relative; overflow: hidden; }
button[data-hold]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: currentColor; opacity: .6; }
button[data-hold].holding::after { width: 100%; transition: width 1s linear; }
@media (prefers-reduced-motion: reduce) { button[data-hold].holding::after { transition: none; } }
.second-way summary { font-size: var(--text-s); color: var(--ink-3); cursor: pointer; }
.word-step { display: inline-flex; gap: var(--s2); align-items: center; }

/* round 407 (HQ review 21 Oct 2026, part 3 items 6 and 7): the phone. The header in two short rows (the view switch and search,
   then receipt, company and sign out); explanations, a second device and "signed in as" wait on a computer. Every control a
   thumb presses is at least 44 px high. */
@media (max-width: 40rem) {
  .top { gap: var(--s2); padding-top: var(--s1); padding-bottom: var(--s1); }
  .who { gap: var(--s2); margin-left: 0; width: 100%; }
  #expl, #add-device-form, #signout span, .who form.langtop { display: none; }   /* round 418: EN/DE on a phone: Profile and the menu foot */
  .top #company { max-width: 7.5rem; }
  .who .btn, .who button, .who label.btn { padding-left: var(--s2); padding-right: var(--s2); }
}
@media (pointer: coarse) {
  .top input, .top select, .top button, .top .btn, button, .btn, select,
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]) { min-height: 44px; }
  nav.rail a, .rail a[data-nav], .rail a.grp { min-height: 44px; display: flex; align-items: center; }
  .chips a { min-height: 44px; display: inline-flex; align-items: center; }   /* round 416: the filter chips too */
}

/* round 407: on a phone each invoice line is a card, every field in full width with its name above it (nothing off screen) */
@media (max-width: 40rem) {
  form.write .scroll { overflow: visible; }
  form.write table, form.write tbody, form.write tr, form.write td { display: block; width: 100%; }
  form.write table tr:first-child { display: none; }
  form.write tr { border: 1px solid var(--line); border-radius: var(--radius-m); padding: var(--s2); margin-bottom: var(--s2); background: var(--surface); }
  form.write td { border: 0; padding: var(--s1) 0; min-width: 0; }
  form.write td:first-child { min-width: 0; }
  form.write td::before { display: block; font-size: var(--text-xs); color: var(--ink-3); }
  form.write td[data-label]::before { content: attr(data-label); }      /* round 608: the column's own name (Discount came in between) */
  form.write td[data-amount-of]:empty { display: none; }
  form.write tr.pick-add td::before { content: none; }
}

/* round 419 (feature 537, HQ review item 27): Undo. What just happened at the foot of the page, ten seconds, then it goes */
/* round 1073b (design review 1, item 40: Bank's toast bottom left, the bills' bottom centre): one place, bottom left, as Bank's */
.toast { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s2) var(--s2) var(--s4); background: var(--fg); color: var(--bg); border-radius: var(--radius-l); box-shadow: var(--shadow-pop);
  font-size: var(--text-m); max-width: calc(100vw - 2rem); animation: toast-go 0.2s var(--ease) 10s forwards; }
.toast form { margin: 0; }
.toast button { background: none; border: 1px solid currentColor; color: inherit; border-radius: var(--radius-m); padding: var(--s1) var(--s3); font-weight: var(--weight-strong); cursor: pointer; }
@keyframes toast-go { to { opacity: 0; visibility: hidden; } }
.toast.short { animation-delay: 5s; bottom: calc(16px + 56px); }      /* round 728: Undo for 5 seconds after one tap */
@media (prefers-reduced-motion: reduce) { .toast { animation-duration: 0s; } }
/* round 470 (design decision 5): the one next action on the first screen; what is done today stands ticked off */
.next-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: 0 0 var(--s4); }   /* round 633: buttons wrap on a phone (/bills was 492 wide) */
.next-act span { color: var(--ink-2); }
ul.ticked { list-style: none; padding: 0; margin: 0 0 var(--s4); }
ul.ticked li { display: flex; gap: var(--s2); align-items: baseline; color: var(--ink-3); padding: var(--s1) 0; }
ul.ticked .tick { color: var(--turquoise); font-weight: var(--weight-strong); }

/* ===== round 481 (design v6, launch row 76): Reports, the profit and loss month by month (WEBAPP-BUILD-NOTES.md 4 and 5) ===== */
.r6-eyebrow { margin: 0; color: var(--muted); font-size: var(--text-s); font-weight: 600; }
.r6-title { margin: 2px 0 4px; }
.r6-sub { margin: 0 0 var(--s3); color: var(--muted); font-size: var(--text-m); }
.r6-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 var(--s4); }
.r6-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--rc, 8px); overflow: hidden; }
.r6-seg a { padding: 6px 12px; color: var(--muted); text-decoration: none; font-weight: 600; }
.r6-seg a.on { background: var(--sel); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
/* round 789: the period in one click; on a phone the five choices scroll sideways in their box, never cut off */
.r6-seg.st-period { max-width: 100%; overflow-x: auto; }
.r6-seg.st-period a { white-space: nowrap; flex: none; }
.r6-tools a.r6-year { padding: 6px 10px; border-radius: var(--rc, 8px); color: var(--muted); text-decoration: none; }
.r6-tools a.r6-year.on { color: var(--fg); background: var(--sel); }
/* round 581: Margins: the margin in % is the first and biggest figure */
.stats.mg-figs .stat:first-child b { font-size: var(--text-3xl); }
/* round 581: the three statements on one page: which statement, a year back and on, the downloads at the end of the row */
.st-step { display: inline-flex; align-items: center; gap: 6px; }
.st-step b { min-width: 9em; text-align: center; font-weight: 600; }
.st-step .btn { min-width: 36px; padding: 4px 8px; justify-content: center; }
.st-step .btn.off { opacity: .35; pointer-events: none; }
.st-dl { display: inline-flex; gap: 8px; margin-left: auto; }
.st-asof { display: inline-flex; gap: 6px; align-items: center; margin: 0; }   /* round 878 (B63): As of an earlier day */
.st-asof input[type=date] { width: auto; }
.r6-note a.st-tb { white-space: nowrap; }
.r6-rep { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.r6-rep.split { grid-template-columns: minmax(0, 1fr) 440px; }
.r6-tbl { padding: 0; overflow: hidden; }
.r6-scroll { overflow-x: auto; }
table.r6-pl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: var(--text-s); font-variant-numeric: tabular-nums; }
table.r6-pl th, table.r6-pl td { padding: 0 6px; height: 42px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
table.r6-pl thead th { font-size: var(--th); color: var(--muted); font-weight: 600; text-align: right; height: 54px; vertical-align: bottom; padding-bottom: 8px;
  line-height: 1.25; border-bottom: 1.5px solid var(--fg); }
table.r6-pl thead th small { font-weight: 600; }
table.r6-pl tbody th, table.r6-pl thead th:first-child { position: sticky; left: 0; z-index: 1; text-align: left; min-width: 196px; width: 196px;
  white-space: normal; padding-left: 20px; font-weight: 500; }table.r6-pl td { text-align: right; min-width: 66px; }
table.r6-pl tr > *:last-child { padding-right: 16px; }
table.r6-pl .x { background: var(--surface-2); }
table.r6-pl tr.tot th, table.r6-pl tr.tot td { font-weight: 700; }
table.r6-pl tr.big th, table.r6-pl tr.big td { border-top: 1px solid var(--fg); }
table.r6-pl tr.fin th, table.r6-pl tr.fin td { border-bottom: 3px double var(--fg); }
/* round 1141 (order of 22 Nov 2026, item 28: the bottom line was hard to spot): the final profit line tinted, 15 px */
table.r6-pl tr.fin th, table.r6-pl tr.fin td, table.r6-plm tr.fin th, table.r6-plm tr.fin td { background: var(--accent-soft); font-size: var(--text-m); font-weight: 700; }
/* round 1141 (item 7): Month end, the posted entries' head and the credit side said in a line of the form */
.me-sub { margin: 8px 0 4px; color: var(--muted); font-size: var(--text-xs); }
.me-cr { display: inline-block; padding-top: 22px; }
.me-cr .acn, .me-lines .acn, .me-shape .acn { color: var(--faint); font-size: var(--text-xs); margin-left: 4px; }
table.r6-pl tr.hd th { font-weight: 700; }
table.r6-pl tr.hd:hover th, table.r6-pl tr.hd:hover td { background: var(--hover); }
table.r6-pl tr.det th { padding-left: 44px; font-weight: 400; }
table.r6-pl tr.mg th, table.r6-pl td.r6-margin { color: var(--muted); font-weight: 400; font-size: var(--text-xs); }
table.r6-pl .acn, .r6-made .acn { color: var(--faint); font-size: var(--text-xs); margin-right: 8px; }
table.r6-pl td.cur { box-shadow: inset 0 0 0 2px var(--fg); }
.r6-grp { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--fg); cursor: pointer; text-align: left; }
.r6-grp .chev { display: inline-block; margin-right: 6px; color: var(--muted); transition: transform .16s; }
.r6-grp[aria-expanded="true"] .chev { transform: rotate(90deg); }
.r6-fig { background: none; border: 0; padding: 3px 3px; min-height: 30px; border-radius: 4px; font: inherit; color: inherit; cursor: pointer; font-variant-numeric: tabular-nums; }
.r6-fig:hover { background: var(--sel); }
.r6-zero { color: var(--faint); }
.r6-pane { position: sticky; top: var(--s4); padding: 16px 20px 20px; max-height: calc(100vh - 120px); overflow: auto; }
.r6-phead { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.r6-crumbs { margin: 0; color: var(--muted); font-size: var(--text-xs); }
.r6-x { background: none; border: 0; font-size: var(--text-fig); line-height: 1; min-width: 32px; min-height: 32px; cursor: pointer; color: var(--fg); }
.r6-pane h3.r6-ptitle { margin: 6px 0 2px; }      /* round 548: the pane's title, one level under the sections */
.r6-amt { margin: 0 0 12px; font-size: var(--text-fig); font-weight: 700; font-variant-numeric: tabular-nums; }
table.r6-made { width: 100%; border-collapse: collapse; font-size: var(--text-s); font-variant-numeric: tabular-nums; }
table.r6-made th, table.r6-made td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.r6-made th.num, table.r6-made td.num { text-align: right; white-space: nowrap; }
table.r6-made thead th { color: var(--muted); font-size: var(--th); font-weight: 600; border-bottom: 1.5px solid var(--fg); }
table.r6-made tr.tot td { font-weight: 700; border-top: 1px solid var(--fg); }
table.r6-made button.quiet { text-align: left; padding: 0; }
.r6-note { margin: 4px 0 var(--s4); color: var(--muted); font-size: var(--text-s); }
.r6-chartcard > .kit-head { align-items: center; flex-wrap: wrap; }       /* round 548: a kit section, the legend as its aside */
.kit-sec.r6-chartcard > svg.r6-chart { margin: 0; padding: 0 20px 16px; box-sizing: border-box; }
.r6-legend { display: flex; gap: 4px 14px; align-items: center; font-size: var(--text-s); color: var(--muted); font-weight: 600; }
.r6-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.r6-legend i.b { background: var(--bar); }
.r6-legend i.l { background: var(--fg); height: 3px; width: 14px; }
svg.r6-chart { width: 100%; height: auto; display: block; margin-top: 8px; }
svg.r6-chart .r6-bar { fill: var(--bar); cursor: pointer; }
svg.r6-chart .r6-bar:hover, svg.r6-chart .r6-bar:focus { fill: var(--fg); outline: none; }
svg.r6-chart .r6-line { fill: none; stroke: var(--fg); stroke-width: 2; }
svg.r6-chart .r6-dot { fill: var(--fg); }
svg.r6-chart .r6-axis { stroke: var(--line-2); stroke-width: 1; }
svg.r6-chart .r6-lab { fill: var(--muted); font-size: var(--t12); text-anchor: middle; }
.r6-phone { display: none; padding: 12px 14px; }
.r6-mswitch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.r6-mswitch .btn { min-width: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-fig); }
table.r6-plm { width: 100%; border-collapse: collapse; font-size: var(--text-m); font-variant-numeric: tabular-nums; }
table.r6-plm th, table.r6-plm td { padding: 0 3px; height: 48px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.r6-plm tbody th { text-align: left; font-weight: 500; white-space: normal; }
table.r6-plm thead th { font-size: var(--th); color: var(--muted); font-weight: 600; height: 34px; border-bottom: 1.5px solid var(--fg); }
table.r6-plm td { width: 96px; }
table.r6-plm td .r6-fig { min-height: 44px; min-width: 44px; padding: 4px 6px; }
table.r6-plm tr.big th, table.r6-plm tr.big td { border-top: 1px solid var(--fg); font-weight: 700; }
table.r6-plm tr.fin th, table.r6-plm tr.fin td { border-bottom: 3px double var(--fg); }
table.r6-plm tr.mg th, table.r6-plm tr.mg td { color: var(--muted); font-size: var(--text-xs); }
html[data-view="simple"] table.r6-pl { font-size: var(--text-m); }
html[data-view="simple"] table.r6-pl tbody th, html[data-view="simple"] table.r6-pl tbody td { height: 54px; }
html[data-view="simple"] table.r6-pl tbody th { font-weight: 700; }
html[data-view="simple"] table.r6-pl tbody tr:first-child th { font-weight: 600; }
@media (max-width: 56rem) {
  .r6-tbl { display: none; }
  .r6-phone { display: block; }
  .r6-rep, .r6-rep.split { grid-template-columns: minmax(0, 1fr); }
  .r6-pane { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 78vh; z-index: 30; border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .35); margin: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .r6-x { min-width: 44px; min-height: 44px; }
  .r6-tools a, .r6-tools .btn, .r6-seg a { min-height: 44px; display: inline-flex; align-items: center; }
  .st-dl { margin-left: 0; }
  .st-which { width: 100%; }
  .st-which a { flex: 1; justify-content: center; padding: 6px 8px; }
  svg.r6-chart .r6-lab.odd { display: none; }
  svg.r6-chart .r6-lab { font-size: 38px; }
}
/* round 481: the report's headers keep their own case and ground (the app's th is small capitals on a sunken ground) */
table.r6-pl th, table.r6-plm th, table.r6-made th { text-transform: none; letter-spacing: normal; }
table.r6-pl tbody th, table.r6-plm tbody th { font-size: inherit; color: var(--fg); background: var(--surface); }
table.r6-pl tbody tr.mg th, table.r6-plm tbody tr.mg th { color: var(--muted); }
table.r6-pl tbody th.x, table.r6-plm thead th, table.r6-made thead th { background: transparent; }
table.r6-made button.quiet { border: 0; background: none; color: var(--act-text); font: inherit; cursor: pointer; min-height: 0; }
table.r6-made button.quiet:hover { text-decoration: underline; }
.r6-pane > .r6-pbody > button.quiet { border: 0; background: none; color: var(--act-text); padding: 0; margin: 0 0 8px; cursor: pointer; font: inherit; }

/* === round 480: design v6 Bank (launch row 76). Full desk: list beside detail; Simple and the phone: the focus card ===== */
.b6 { display: grid; gap: 16px; margin: 0 0 28px; }
.b6-eyebrow { margin: 0; color: var(--muted); font-size: var(--text-s); font-weight: 600; }
.b6-bal { margin: 0; color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.b6-tabs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.b6-tabs [data-tab] { border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); border-radius: 8px; padding: 6px 14px; min-height: 36px; font: inherit; font-weight: 600; cursor: pointer; }
.b6-tabs [data-tab][aria-selected="true"] { background: var(--sel); box-shadow: inset 0 0 0 1.5px var(--fg); }
.b6-tabs b { font-variant-numeric: tabular-nums; margin-left: 4px; }
.b6-keys-link, .b6-link { border: 0; background: none; color: var(--act-text); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 6px 4px; min-height: 36px; }
.b6-keys-link { margin-left: auto; }
.b6-prog { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: var(--text-s); }
.b6-prog b { color: var(--fg); }
.b6-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 20px; align-items: start; }
.b6-grid.simple { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); }
.b6-side, .b6-focuscol { display: grid; gap: 12px; position: sticky; top: 80px; }
.b6-listcard { padding: 0; overflow: hidden; }
.b6-list { list-style: none; margin: 0; padding: 4px 0; }
.b6-line { display: grid; grid-template-columns: 28px 56px minmax(0, 1fr) 116px 72px; gap: 2px 12px; align-items: baseline; padding: 9px 12px; min-height: 58px;
           border-bottom: 1px solid var(--line); cursor: pointer; transition: opacity .15s, transform .15s; }
.b6-line:hover { background: var(--hover); }
.b6-line.focus { background: var(--sel); box-shadow: inset 3px 0 0 var(--fg); }
.b6-line .ckl { align-self: center; display: grid; place-items: center; }
.b6-line .p { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b6-line .b6-rc { font-weight: 400; font-size: var(--text-xs); }
.b6-line .num { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.b6-line .q { border: 0; background: none; color: var(--act-text); font: inherit; font-weight: 600; cursor: pointer; text-align: right; padding: 2px 4px; }
.b6-line .pr { grid-column: 3 / 6; font-size: var(--text-s); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b6-line.leaving, .b6-detail.leaving { opacity: 0; transform: translateX(16px); }
.b6-detail { display: grid; gap: 12px; padding: 22px; }
.b6-meta, .b6-raw { margin: 0; font-size: var(--text-s); color: var(--faint); }
.b6-top { display: flex; justify-content: space-between; gap: 8px 16px; align-items: baseline; flex-wrap: wrap; }
.b6-payee { font-size: var(--text-fig); font-weight: 700; letter-spacing: -.01em; }
.b6-big { font-size: var(--text-xl); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.b6-prop { border-top: 1.5px solid var(--fg); padding-top: 12px; display: grid; gap: 6px; }
.b6-prop h3 { margin: 0; color: var(--muted); font-weight: 700; }
.b6-prop .what { margin: 0; font-size: var(--text-l); font-weight: 700; }
.b6-prop .why { margin: 0; color: var(--muted); }
/* round 791: Two ways to book this, closed by default, each way a plain line, none marked */
.b6-ways > summary, .ways-fold > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--fg); list-style: none; }
.b6-ways > summary::-webkit-details-marker, .ways-fold > summary::-webkit-details-marker { display: none; }
.b6-ways > summary::before, .ways-fold > summary::before { content: "+"; font-weight: 700; width: 1em; text-align: center; }
.b6-ways[open] > summary::before, .ways-fold[open] > summary::before { content: "\2212"; }
.b6-ways ul, .ways-fold ul { margin: 4px 0 6px; padding-left: 1.2em; display: grid; gap: 4px; }
.b6-suggest { display: grid; gap: 6px; margin-top: 12px; }
.b6-suggest p { margin: 0; }
.b6-match { display: grid; gap: 6px; border-top: 1.5px solid var(--fg); padding-top: 12px; }
.b6-match h3 { margin: 0; color: var(--muted); font-weight: 700; }
.b6-match .what { margin: 0; font-size: var(--text-l); font-weight: 700; }
.b6-acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.b6-err { color: var(--bad); font-weight: 600; margin: 8px 0 0; }                         /* round 826: why Post did not post, beside the button */
.b6-acts .btn.primary, .b6-selbar .btn.primary, .b6-fields .btn.primary { background: var(--act); border-color: var(--act); color: var(--act-ink); min-height: 44px; padding: 0 22px; font-weight: 700; }
.btn.hold.holding { box-shadow: inset 0 -3px 0 var(--act-ink); filter: brightness(1.08); }
.b6-hint { font-size: var(--text-s); }
.b6-fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.b6-fields input { min-height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; font: inherit; background: var(--surface); color: var(--fg); }
.b6-fields .btn { grid-column: 2; justify-self: start; }
.b6-fields.b6-create { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.b6-create .btn { grid-column: auto; }
.b6-mode { display: flex; gap: 16px; flex-wrap: wrap; }
.b6-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 8px 12px; }
.b6-row label { display: block; color: var(--muted); }
.b6-row input, .b6-trpart select { width: 100%; }
.b6-split { display: grid; gap: 10px; }
.b6-sline { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem 2rem; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.b6-sline .b6-ldesc { grid-column: 1; }
.b6-sline select, .b6-sline .pick-select { grid-column: 2 / 4; }
.b6-sline input, .b6-sline select { width: 100%; min-height: 36px; box-sizing: border-box; }
.b6-sline .b6-amt { text-align: right; }
.b6-total { margin: 0; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.b6-rule { color: var(--muted); }
.mt-warn { color: var(--bad, inherit); font-weight: 700; }
.b6-selbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--fg); }
.b6-selbar .id { color: var(--id); font-weight: 700; font-variant-numeric: tabular-nums; }
.b6-toast { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--fg); color: var(--bg); padding: 10px 12px 10px 16px; border-radius: 8px; }
.b6-toast .btn { background: transparent; color: var(--bg); border-color: var(--bg); }
.b6-next h3 { margin: 0 0 6px; font-weight: 700; }
.b6-next { padding: 16px 0 6px; } .b6-next h3 { padding: 0 16px; }
.b6-keys { margin: 0; font-size: var(--text-s); }
.b6-empty { padding: 22px; display: grid; gap: 12px; justify-items: start; }
.b6-more { margin-top: 8px; }
/* round 620: Cash coding, one table of the lines to explain, and the Matched tab's search */
.cg { padding: 14px 16px; display: grid; gap: 10px; }
.cg-scroll { overflow-x: auto; }
.cg-grid { width: 100%; border-collapse: collapse; }
.cg-grid th, .cg-grid td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.cg-grid th.num, .cg-grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.cg-grid input:not([type=checkbox]), .cg-grid select { min-height: 32px; box-sizing: border-box; max-width: 15rem; }
.cg-grid .cg-payee { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
.cg-grid .cg-ref { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; }
/* round 733 (feature 148): the sortable heads read as heads; the bar that codes the ticked lines; Find and fix */
.cg-grid th .cg-sort { all: unset; cursor: pointer; font-weight: 600; color: var(--do, #0B7A75); }
.cg-grid th .cg-sort:focus-visible { outline: 2px solid var(--do, #0B7A75); outline-offset: 2px; }
.cg-grid th[aria-sort=ascending] .cg-sort::after { content: " \2191"; }
.cg-grid th[aria-sort=descending] .cg-sort::after { content: " \2193"; }
.cg-set { padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; }
/* the coding card holds a wide grid: it scrolls inside its own box, the page never wider than the phone */
.cg { grid-template-columns: minmax(0, 1fr); }
.cg > * { min-width: 0; }
.cg-filter input, .cg-set input, .cg-set select { max-width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { .cg-filter > div, .cg-set > div { flex: 1 1 100%; } .cg-filter input, .cg-set input, .cg-set select { width: 100%; } }
.ff-grid { width: 100%; border-collapse: collapse; }
.ff-grid th, .ff-grid td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ff-grid th.num, .ff-grid td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ff-change { margin-top: 10px; align-items: flex-end; }
.ff-filed, .ff-locked { font-size: var(--t12); margin-left: 6px; }
.ai-privacy td, .ai-privacy th { padding: 6px 8px; vertical-align: middle; }
/* round 840: the one setting Standard, Careful, Private as three rows of the Settings card, the per kind switches folded under it */
fieldset.ai-level { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin: 0 0 var(--s3); padding: 4px 0; }
fieldset.ai-level legend { font-weight: 600; padding: 0 6px; margin-left: 10px; }
fieldset.ai-level .ai-level-pos { display: flex; align-items: flex-start; gap: 10px; padding: 8px 16px; }
fieldset.ai-level .ai-level-pos + .ai-level-pos { border-top: 1px solid var(--line); }
fieldset.ai-level .ai-level-pos input { margin-top: 4px; }
details.ai-kinds { margin: 0 0 var(--s3); }
details.ai-kinds > summary { cursor: pointer; font-weight: 600; }

.cg-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.b6-pager { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 0; }
.b6-ms { margin: 0 0 8px; }
:root[data-view="simple"] .b6-detail { border-radius: 20px; padding: 26px; }
:root[data-view="simple"] .b6-big { font-size: var(--text-3xl); font-weight: 800; }
:root[data-view="simple"] .b6-payee { font-size: var(--text-fig); font-weight: 800; }
@media (max-width: 56rem) {
  .b6-grid, .b6-grid.simple { grid-template-columns: minmax(0, 1fr); }
  .b6-side, .b6-focuscol { position: static; }
  .b6-selbar { position: sticky; top: 0; z-index: 3; }
  .b6-line { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 10px 8px; min-height: 56px; }
  /* round 544: the date stays on the phone, under the payee beside Book; the proposal (where there is one) below them */
  .b6-line .d { grid-column: 2; grid-row: 2; font-size: var(--text-s); color: var(--muted); }
  .b6-line .pr { grid-column: 2 / 4; grid-row: 3; white-space: normal; }
  .b6-line .pr:empty { display: none; }
  .b6-line .q { grid-column: 3; grid-row: 2; min-height: 44px; margin: -10px 0; }
  .b6-line .ckl { min-width: 44px; min-height: 44px; margin: -8px; }
  :root[data-view="simple"] .b6-big, .b6-big { font-size: var(--text-2xl); }
  .b6-acts .btn.primary { width: 100%; }
  .b6-keys-link, .b6-hint { display: none; }
  .b6-link { min-height: 44px; }
  .b6-fields { grid-template-columns: minmax(0, 1fr); }
  .b6-fields .btn { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .b6-line, .b6-detail { transition: none; } }

/* --- Home (round 479, design v6 step 2, WEBAPP-BUILD-NOTES.md sections 4 and 5) ------------------------------------------
   Full: dense sheets, card radius 12; Simple: big rounded cards on shadow, radius 20, larger figures. Colour roles: green only
   for actions, turquoise only for identified amounts, pink only as an accent, everything else ink or muted. */
.h6 { display: grid; gap: 20px; max-width: 1440px; }
.h6-simple { gap: 22px; max-width: 1300px; }
.h6-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.h6-head .tt { display: grid; gap: 4px; min-width: 0; }
.h6-head h1 { margin: 0; }
.h6-head p { margin: 0; color: var(--muted); font-size: var(--text-m); }
.h6-simple .h6-head p { font-size: var(--text-l); }
.h6-eb { color: var(--muted); font-size: var(--text-s); font-weight: 600; }
.h6-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.h6-acts .btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: var(--rc, 8px); font-weight: 700; }
.h6-acts a.btn.primary { background: var(--act); border-color: var(--act); color: var(--act-ink); }
.h6-toast { margin: 0; padding: 10px 14px; border-radius: var(--rc, 8px); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--fg); font-weight: 600; }
.h6-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: start; }
.h6-simple .h6-grid { gap: 22px; }
.h6-s12 { grid-column: span 12; } .h6-s7 { grid-column: span 7; } .h6-s6 { grid-column: span 6; } .h6-s5 { grid-column: span 5; }
.h6-slot { display: grid; gap: 20px; min-width: 0; }
.h6-pair { display: grid; gap: 20px; min-width: 0; }
.h6-simple .h6-card { border: 0; border-radius: 20px; }
.h6-simple .h6-card > header { padding: 20px 22px 8px; }
.h6-simple .h6-card > header h2 { font-weight: 800; }
.h6-wait { padding: 20px; }
.h6-in { padding: 2px 20px 18px; display: grid; gap: 14px; }
.h6-simple .h6-in { padding: 4px 22px 22px; }
.h6-note { margin: 0; color: var(--muted); font-size: var(--text-s); }
.h6-note.pad { padding: 0 20px 18px; }
/* This month's books */
.h6-bar { display: flex; gap: 3px; height: 12px; border-radius: 999px; overflow: hidden; min-width: 0; }
.h6-bar.big { height: 18px; }
.h6-bar i { display: block; min-width: 0; height: 100%; }
.h6-bar i.b, .h6 .k.b { background: var(--fg); }
.h6-bar i.i, .h6 .k.i { background: var(--id); }
.h6-bar i.o, .h6 .k.o { background: repeating-linear-gradient(135deg, var(--line-2) 0 3px, var(--surface) 3px 6px); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.h6 .k { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.h6-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.h6-lg { border: 0; background: var(--surface-2); border-radius: var(--rc, 8px); text-align: left; padding: 12px 14px; display: grid; gap: 3px; min-height: 44px; min-width: 0;
  color: var(--fg); text-decoration: none; font: inherit; cursor: pointer; }
.h6-lg:hover { background: var(--hover); }
.h6-lg .lb { color: var(--muted); font-size: var(--text-s); font-weight: 600; }
.h6-lg b { font-size: var(--text-fig); font-weight: 700; letter-spacing: -.01em; text-align: left; }
.h6-lg b.idamt { color: var(--id); }
.h6-lg small { color: var(--muted); font-size: var(--text-s); }
.h6-lg[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--fg); }
.h6-more { justify-self: start; min-height: 44px; }
.h6-groups { display: grid; gap: 14px; }
.h6-groups[hidden] { display: none; }
.h6-groups.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h6-groups.cols .h6-idf { grid-column: 1 / -1; }
.h6-g { display: grid; gap: 6px; align-content: start; min-width: 0; }
.h6-g h4 { font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0; display: flex; gap: 8px; }
.h6-g h4 span { color: var(--fg); }
.h6-g ul, .h6-cos, .h6-rows, .h6-did { list-style: none; margin: 0; padding: 0; }
.h6-g li { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.h6-row { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; color: var(--fg); text-decoration: none; padding: 10px 4px; min-height: 52px; }
.h6-row:hover { background: var(--hover); }
.h6-row .tx { flex: 1; min-width: 0; display: grid; }
.h6-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h6-row small { color: var(--muted); font-size: var(--text-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h6-row .num { font-weight: 700; white-space: nowrap; }
.h6-none { margin: 0; color: var(--muted); font-size: var(--text-s); padding: 8px 0; border-top: 1px solid var(--line); }
/* Your companies, Consolidation */
.h6-co { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; padding: 12px 20px; display: grid; gap: 7px; min-height: 44px;
  color: var(--fg); text-decoration: none; font: inherit; cursor: pointer; }
.h6-cos li:first-child .h6-co { border-top: 0; }
.h6-co:hover { background: var(--hover); }
.h6-co .hd { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.h6-co .hd b { font-weight: 700; }
.h6-co .cur { color: var(--muted); font-size: var(--text-s); }
.h6-co .here { margin-left: auto; font-size: var(--text-xs); font-weight: 700; border: 1.5px solid var(--pink); border-radius: 999px; padding: 0 8px; }
.h6-co .miss { color: var(--muted); font-size: var(--text-s); }
.h6-cl { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: var(--text-s); color: var(--muted); }
.h6-cons { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; border: 1px solid var(--line-2); border-radius: var(--rc, 8px);
  background: var(--surface); padding: 12px 14px; text-align: left; min-height: 44px; width: 100%; color: var(--fg); font: inherit; cursor: pointer; }
.h6-cons:hover { background: var(--hover); }
.h6-cons .t { display: grid; gap: 2px; min-width: 0; }
.h6-cons small { color: var(--muted); font-size: var(--text-s); }
.h6-steps8 { display: inline-flex; gap: 3px; }
.h6-steps8 i { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.h6-steps8 i.on { background: var(--fg); box-shadow: none; }
.h6-stepl { list-style: none; margin: 0; padding: 0; display: grid; }
.h6-stepl[hidden] { display: none; }
.h6-stepl li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; }
.h6-stepl .st { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: var(--text-xs); font-weight: 700; border: 1.5px solid var(--line-2); }
.h6-stepl li.ok .st { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.h6-stepl .tx { display: grid; gap: 2px; justify-items: start; min-width: 0; }
.h6-stepl .tx b { font-weight: 600; }
.h6-stepl .tx small { color: var(--muted); font-size: var(--text-s); }
.h6-stepl li.ok .tx b { color: var(--muted); }
/* figures row (Full), cash card (Simple) */
/* round 548: the row is the kit's figures (div.stats > a.stat: small, b, em); h6-figs gives Home its own grid */
.h6-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r, 12px); box-shadow: var(--shadow); overflow: hidden; margin: 0; }
.h6-fig { display: grid; gap: 4px; padding: 16px 20px; color: var(--fg); text-decoration: none; border-left: 1px solid var(--line); border-right: 0; min-width: 0; }
.h6-fig:first-child { border-left: 0; }
.h6-fig:hover { background: var(--hover); color: var(--fg); }
.h6-figs .h6-fig > small { display: block; color: var(--muted); font-size: var(--text-s); font-weight: 600; }
.h6-figs .h6-fig > b { font-size: var(--text-fig); font-weight: 700; letter-spacing: -.01em; }
.h6-figs .h6-fig > em { display: block; margin-left: 0; font-style: normal; color: var(--muted); font-size: var(--text-s); }
.h6-cash { display: grid; gap: 12px; padding: 4px 22px 22px; }
.h6-cfig { display: grid; gap: 2px; color: var(--fg); text-decoration: none; }
.h6-cfig b { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.h6-cfig small { color: var(--muted); font-size: var(--text-s); }
.h6-chart { position: relative; height: 150px; margin: 4px 6px 26px; border-bottom: 1px solid var(--grid); }
.h6-chart .ln { position: absolute; inset: 0; background: var(--fg); }
.h6-chart .pt { position: absolute; width: 9px; height: 9px; margin: -3.5px 0 0 -4.5px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--fg); }
.h6-chart .pt::after { content: ""; position: absolute; inset: -17.5px; }      /* a 44 px target around a small dot */
.h6-chart .pt:hover, .h6-chart .pt:focus-visible, .h6-chart .pt.lo { background: var(--fg); }
.h6-chart .lb { position: absolute; bottom: -22px; transform: translateX(-50%); color: var(--muted); font-size: var(--text-xs); white-space: nowrap; }
.h6-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.h6-tile { display: grid; gap: 2px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; color: var(--fg); text-decoration: none; min-height: 44px; }
.h6-tile:hover { background: var(--hover); }
.h6-tile span { color: var(--muted); font-size: var(--text-s); font-weight: 600; }
.h6-tile b { font-size: var(--text-fig); font-weight: 800; }
/* rows: Waits for you, Deadlines, What Octobooks did */
.h6-rows li { border-top: 1px solid var(--line); }
.h6-rows .h6-row { padding: 10px 20px; min-height: 60px; }
.h6-rows .nb { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: var(--text-xs); font-weight: 700; flex: none; }
.h6-rows .ti { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.h6-rows .ch { color: var(--faint); }
.h6-rows .dt { width: 92px; flex: none; font-weight: 700; font-size: var(--text-s); }
.h6-did li { display: flex; gap: 12px; align-items: baseline; padding: 10px 20px; border-top: 1px solid var(--line); }
.h6-did a { display: grid; color: var(--fg); text-decoration: none; min-width: 0; }
.h6-did a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h6-did small { color: var(--muted); font-size: var(--text-s); }
.h6-did .tk { color: var(--fg); font-weight: 700; }
.h6-sofar table { width: 100%; }
/* the drop zone (desk only) */
.h6-dropw { display: grid; }
.h6-drop { display: flex; gap: 14px; align-items: center; border: 1.5px dashed var(--line-2); border-radius: var(--r, 12px); padding: 16px 18px; background: var(--surface);
  color: var(--muted); cursor: pointer; min-height: 72px; }
.h6-simple .h6-drop { border-radius: 20px; }
.h6-drop .ic { font-size: var(--text-fig); color: var(--fg); }
.h6-drop b { display: block; color: var(--fg); font-weight: 700; }
.h6-drop small { font-size: var(--text-s); }
.h6-drop:hover, .h6-drop.over, .h6-drop:focus-visible { border-color: var(--fg); background: var(--hover); }
.h6-all { margin: 0; font-size: var(--text-s); }
.h6 b.num, .h6 .h6-fig b, .h6 .h6-lg b, .h6 .h6-cfig b, .h6 .h6-tile b { text-align: left; }
button.h6-lg, button.h6-cons, button.h6-co { height: auto; align-content: start; }
.h6-card .card.empty { border: 0; margin: 0; box-shadow: none; border-radius: 0; padding: 4px 20px 18px; background: none; }
@media (max-width: 56rem) {
  .h6, .h6-simple { gap: 16px; }
  .h6-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .h6-grid > * { grid-column: auto; }
  .h6-head { align-items: stretch; }
  .h6-acts .btn { flex: 1; justify-content: center; }
  .h6-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h6-fig { border-left: 0; border-top: 1px solid var(--line); }
  .h6-figs .h6-fig > b { font-size: var(--text-fig); }
  .h6-legend { grid-template-columns: minmax(0, 1fr); }
  .h6-groups.cols { grid-template-columns: minmax(0, 1fr); }
  .h6-cfig b { font-size: var(--text-2xl); }
  .h6-lg, .h6-co, .h6-cons, .h6-row, .h6-tile, .h6-more { min-height: 44px; }
  .h6-rows .dt { width: 72px; }
}

/* round 485 (design v6 walk on Demo Foods Ltd): 44 px targets on the phone, last in the file so no earlier rule wins */
@media (max-width: 56rem) {
  .b6-tabs [data-tab] { min-height: 44px; }
  .b6-line .ckl { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .h6-sofar a { display: inline-flex; align-items: center; min-height: 44px; }
  main details > summary { min-height: 44px; display: flex; align-items: center; }
  /* round 486: the rows of What Octobooks did and links inside table cells (Bank's Matched documents) */
  .h6-did a { min-height: 44px; align-content: center; }
  main td a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
}

/* round 486 (design v6, the header): in Simple the find box is a round button that opens into the field when used */
:root[data-view="simple"]:not(.searching) .top .find:not(:focus-within) { flex: 0 0 44px; max-width: 44px; min-width: 44px; }
:root[data-view="simple"]:not(.searching) .top .find:not(:focus-within) input { height: 44px; border-radius: 999px; padding: 0; color: transparent; cursor: pointer; }
:root[data-view="simple"]:not(.searching) .top .find:not(:focus-within) input::placeholder { color: transparent; }
:root[data-view="simple"] .top .find kbd { display: none; }
:root[data-view="simple"]:not(.searching) .top .find:not(:focus-within)::before { content: ""; position: absolute; left: 14px; top: 13px; width: 12px; height: 12px;
  border: 2px solid var(--fg); border-radius: 50%; pointer-events: none; }
:root[data-view="simple"]:not(.searching) .top .find:not(:focus-within)::after { content: ""; position: absolute; left: 25px; top: 28px; width: 7px; height: 2px;
  background: var(--fg); transform: rotate(45deg); pointer-events: none; }

/* round 488 (HQ point 4): the cash chart 13 back and 6 ahead, Held by Amazon, what is left out */
.h6-chart6 .ln.fc { background: repeating-linear-gradient(90deg, var(--fg) 0 6px, transparent 6px 10px); }
.h6-chart6 .now { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--line-2); }
.h6-chart6 .pt.ah { border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--fg); background: var(--surface); }
.h6-chart6 .pt.ah.lo, .h6-chart6 .pt.ah:hover { background: var(--fg); }
.h6-wk { list-style: none; margin: 0 6px 10px; padding: 0; font-size: var(--text-s); }
.h6-wk li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.h6-wk li.hd { font-weight: 700; }
.h6-apart { margin: 0 6px 8px; font-size: var(--text-s); color: var(--muted); }
.h6-apart a { color: var(--muted); }
.h6-figslot, .h6-amz { display: contents; }
.h6-figb { text-align: left; font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
.h6-parts { list-style: none; margin: 0; padding: 8px 20px 12px; grid-column: 1 / -1; font-size: var(--text-s); }
.h6-parts li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.h6-parts li.sub { padding-left: 14px; color: var(--muted); }
@media (max-width: 56rem) { .h6-wk li, .h6-parts li, .h6-apart a { min-height: 44px; align-items: center; } }


/* round 490 (WEBAPP-BUILD-NOTES 7): German labels are about 30 percent longer; in Full on a desk up to 1600 px the top menu keeps
   every item: closer items, and the find box is the round button of Simple until it is used */
@media (min-width: 56.01rem) and (max-width: 100rem) {
  :root[lang="de"]:not([data-view="simple"]) nav.topnav a { padding: 0 8px; }
  :root[lang="de"]:not([data-view="simple"]):not(.searching) .top .find:not(:focus-within) { flex: 0 0 44px; max-width: 44px; min-width: 44px; }
  :root[lang="de"]:not([data-view="simple"]):not(.searching) .top .find:not(:focus-within) input { height: 44px; border-radius: 999px; padding: 0; color: transparent; cursor: pointer; }
  :root[lang="de"]:not([data-view="simple"]):not(.searching) .top .find:not(:focus-within) input::placeholder { color: transparent; }
  :root[lang="de"]:not([data-view="simple"]):not(.searching) .top .find:not(:focus-within) kbd { display: none; }
  :root[lang="de"]:not([data-view="simple"]):not(.searching) .top .find:not(:focus-within)::before { content: ""; position: absolute; left: 14px; top: 13px; width: 12px;
    height: 12px; border: 2px solid var(--fg); border-radius: 50%; pointer-events: none; }
  :root[lang="de"]:not([data-view="simple"]):not(.searching) .top .find:not(:focus-within)::after { content: ""; position: absolute; left: 25px; top: 28px; width: 7px;
    height: 2px; background: var(--fg); transform: rotate(45deg); pointer-events: none; }
}
/* round 490: on a phone a row's title wraps (UVA Sep 2026 (AT) ist fällig am 16.11.) rather than ending in an ellipsis */
@media (max-width: 56rem) { .h6-row b { white-space: normal; overflow-wrap: anywhere; } }
/* round 521 (owner order 24 Oct 2026): the approval list as cards: what the release does, why and by whom, Release and Not now */
.ap-books { font-weight: 600; margin: 0 0 var(--s3); }
.ap-jump { margin: 0 0 var(--s3); }
.ap-card > header { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.ap-card > header b { font-size: var(--text-l); overflow-wrap: anywhere; }
.ap-what { margin: var(--s2) 0 var(--s1); }
.ap-why { color: var(--muted); margin: 0 0 var(--s2); overflow-wrap: anywhere; }
.ap-do { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: flex-start; }
.ap-do form { display: contents; }
.ap-do .approve-step, .ap-all .approve-step { order: 9; flex: 1 1 100%; font-size: var(--text-xs); color: var(--muted); }
.ap-all { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.ap-all p { margin: 0; flex: 1 1 100%; }
.ap-aside > summary { cursor: pointer; margin: var(--s2) 0; color: var(--muted); }
@media (max-width: 56rem) { .ap-do > .btn, .ap-do button:not([type="button"]), .ap-all button:not([type="button"]) { flex: 1 1 100%; justify-content: center; } }

/* round 538 (owner rules 3 and 8 of 25 Oct 2026): Back above the title of every page but Home, drawn by the frame */
main > a.back { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0 0 var(--s2); padding: 0 10px 0 6px; border-radius: var(--rc);
  color: var(--muted); font-weight: 600; font-size: var(--text-s); }
main > a.back::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
main > a.back:hover { color: var(--fg); background: var(--hover); text-decoration: none; }
main > a.back + .plain > h1, main > a.back + #app > h1 { margin-top: 0; }
/* the pager under a long list: Previous, where one is, Next, and the rows per page */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: var(--s3) 0; font-size: var(--text-s); color: var(--muted); }
.pager .of { font-variant-numeric: tabular-nums; min-width: 8rem; text-align: center; }
.pager .rows { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.pager .rows select { width: auto; }
.pager button[disabled] { opacity: .45; cursor: default; }
@media (max-width: 56rem) {
  main > a.back { min-height: 44px; }
  .pager .btn, .pager select { min-height: 44px; }
  .pager .rows { margin-left: 0; }
}
/* the top bar at 1280: the menu keeps every item, nothing lies over it; the find box is the round button until it is used, the gaps
   are closer and a long company name ends in an ellipsis. Narrower than that the menu scrolls inside itself, never under the find box */
nav.topnav { flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
nav.topnav::-webkit-scrollbar { display: none; }
@media (min-width: 56.01rem) and (max-width: 90rem) {
  .top { gap: 10px; padding: 0 20px; }
  details.cosw > summary { max-width: 13rem; }
  :root:not(.searching) .top .find:not(:focus-within) { flex: 0 0 44px; max-width: 44px; min-width: 44px; }
  :root:not(.searching) .top .find:not(:focus-within) input { height: 44px; border-radius: 999px; padding: 0; color: transparent; cursor: pointer; }
  :root:not(.searching) .top .find:not(:focus-within) input::placeholder { color: transparent; }
  :root:not(.searching) .top .find:not(:focus-within) kbd { display: none; }
  :root:not(.searching) .top .find:not(:focus-within)::before { content: ""; position: absolute; left: 14px; top: 13px; width: 12px; height: 12px;
    border: 2px solid var(--fg); border-radius: 50%; pointer-events: none; }
  :root:not(.searching) .top .find:not(:focus-within)::after { content: ""; position: absolute; left: 25px; top: 28px; width: 7px; height: 2px;
    background: var(--fg); transform: rotate(45deg); pointer-events: none; }
  .top .find:focus-within { position: absolute; right: 20px; width: 22rem; max-width: 22rem; z-index: 5; }
  /* round 552 (demo walk): in German at 1280 the last item (Mehr) lay under the find button; a shorter company name and closer items */
  :root[lang="de"]:not([data-view="simple"]) details.cosw > summary { max-width: 9.5rem; }
  :root[lang="de"]:not([data-view="simple"]) nav.topnav a { padding: 0 6px; }
}
/* round 538 (design review 537): on a phone a long value in a table cell (a hash, an address) wraps rather than pushing the page sideways */
@media (max-width: 56rem) { main .plain td:not(.num), main .plain caption { overflow-wrap: anywhere; } }

/* round 539: the frame's Excel button under the tables of a page (nav.js), like the server's own download link */
main form.xlsx { margin: var(--s3) 0 0; }

/* round 540 (owner rule 7 of 25 Oct 2026): a section after the page's first is one line, its title and key number (nav.js) */
[data-fold="shut"] > :not(.fold-head) { display: none !important; }
[data-fold] > .fold-head { cursor: pointer; }
.fold-btn { appearance: none; -webkit-appearance: none; border: 0; background: none; padding: 0; margin: 0 var(--s2) 0 0; width: 1.25em; height: 1.25em;
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; color: var(--muted); cursor: pointer; flex: none; }
.fold-btn::before { content: ""; width: 0.42em; height: 0.42em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform 0.12s; }
[data-fold="open"] > .fold-head .fold-btn::before { transform: rotate(45deg) translate(-0.1em, -0.1em); }
.fold-key:not([data-n]), [data-fold="open"] > .fold-head .fold-key { display: none; }
.fold-key::after { content: attr(data-n); margin-left: var(--s2); color: var(--muted); font-weight: 400; font-size: var(--text-s); }
.fold-sec[data-fold="shut"] > h2 { margin: var(--s3) 0; }
.fold-sec[data-fold="shut"] + .fold-sec[data-fold="shut"] > h2 { margin-top: 0; }
.sheet h2.fold-head { justify-content: flex-start; }
.sheet h2.fold-head > span:not(.fold-key) { margin-left: auto; }
/* round 541: the trust ladder's Change folds like a chart account's Rename */
details.edit > summary { cursor: pointer; }
@media (max-width: 56rem) { [data-fold] > .fold-head { min-height: 44px; } .fold-btn { width: 44px; height: 44px; margin: -12px 0 -12px -12px; } }

/* round 540: the chart of accounts, renamed and added in place */
table.accounts details.edit > summary { list-style: none; cursor: pointer; }
table.accounts details.edit > summary::-webkit-details-marker { display: none; }
table.accounts details.edit > summary::after { content: "\270E"; margin-left: var(--s2); color: var(--muted); }
table.accounts details.edit[open] > summary { display: none; }
table.accounts details.edit form { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
details.add > summary { list-style: none; display: inline-flex; margin: 0 0 var(--s3); }
details.add > summary::-webkit-details-marker { display: none; }
details.add[open] > summary { display: none; }

/* ===== round 543 (owner rule 1 of 25 Oct 2026, fix 1 of the round 537 review): the page kit =====================================
   The parts every page body is built from (octobooks/kit.py on the server, K in app.js). A page carries no style attribute, font
   size or colour of its own: its look is this block, on the tokens of ds.css. tests/test_page_kit.py holds the moved pages to it. */
.kit-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin: 0 0 var(--s4); min-width: 0; overflow: hidden; }
/* round 706 (walk 703 I02: the More popover was cut by its card, Merge out of reach): an open More stands over the card's edge */
.kit-sec:has(details.kit-more[open]) { overflow: visible; }
.panes > .kit-sec, .h6-grid .kit-sec, .h6-pair > .kit-sec, .h6-slot > .kit-sec { margin: 0; }
.kit-sec > .kit-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); padding: 14px 20px 10px; }
.kit-sec > .kit-head > h2 { margin: 0; font-size: var(--h2); font-weight: 700; display: flex; align-items: baseline; }
.kit-aside { color: var(--muted); font-size: var(--text-s); font-weight: 400; text-align: right; }
.kit-sec[data-fold="shut"] > .kit-head { padding-bottom: 14px; }
.kit-sec:not(.h6-card):not(.aside-stays)[data-fold="shut"] .kit-aside { display: none; }      /* Home's cards keep their few words while folded */
/* round 544: a section whose few words are its standing (the books against the bank: agrees) keeps them while folded too */
.kit-sec > .kit-head.fold-head > h2 { flex: 1 1 auto; }
/* what a section holds sits 20 px in from its edge; its tables run from edge to edge under a line */
.kit-sec:not(.h6-card) > :is(p, form, .chips, .bar, .card, details, .note, .pager, ul, ol, dl, h3, .facts, .stats, .readout, div:not(.scroll):not(.lines)) { margin-left: 20px; margin-right: 20px; }
.kit-sec:not(.h6-card) > :last-child:not(.kit-head):not(.scroll):not(.lines) { margin-bottom: var(--s4); }
.kit-sec:not(.h6-card) :is(.scroll, .lines) { border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 0; background: none; }
.kit-sec > div > .scroll:first-child, .kit-sec > div:not(.scroll) > .note, .kit-sec > div:not(.scroll) > p { margin-top: 0; }
.kit-sec:not(.h6-card) > div:not(.scroll):has(> .scroll, > .lines) { margin-left: 0; margin-right: 0; }
.kit-sec:not(.h6-card) > div:not(.scroll):has(> .scroll, > .lines) > :not(.scroll):not(.lines) { margin-left: 20px; margin-right: 20px; }
.kit-sec:not(.h6-card) .note, .kit-sec:not(.h6-card) .pad { padding: var(--s2) 0; margin-left: 0; margin-right: 0; }
.kit-sec:not(.h6-card) > .note, .kit-sec:not(.h6-card) > p.pad { margin: 0 20px; }
.kit-sec > .lines > table > tbody > tr > td, .kit-sec > div > .lines > table > tbody > tr > td { overflow: hidden; text-overflow: ellipsis; }
/* a row of key numbers, a progress bar, the next action */
.bar > .chips { margin: 0; }
progress.kit-bar { appearance: none; -webkit-appearance: none; flex: 1; height: 6px; max-width: 420px; border: 0; border-radius: 99px; overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg); }
progress.kit-bar::-webkit-progress-bar { background: var(--surface); border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); }
progress.kit-bar::-webkit-progress-value { background: var(--fg); border-radius: 99px; }
progress.kit-bar::-moz-progress-bar { background: var(--fg); border-radius: 99px; }
dd.num { text-align: left; }
@media (max-width: 56rem) {
  .kit-sec > .kit-head { padding: 12px 14px 8px; }
  .kit-sec[data-fold="shut"] > .kit-head { padding-bottom: 12px; }
  .kit-sec:not(.h6-card) > :is(p, form, .chips, .bar, .card, details, .note, .pager, ul, ol, dl, h3, .facts, .stats, .readout, div:not(.scroll):not(.lines)) { margin-left: 14px; margin-right: 14px; }
  .kit-sec:not(.h6-card) > div:not(.scroll):has(> .scroll, > .lines) > :not(.scroll):not(.lines) { margin-left: 14px; margin-right: 14px; }
  .kit-sec:not(.h6-card) > .note, .kit-sec:not(.h6-card) > p.pad { margin: 0 14px; }
}
/* round 545: a section on a sheet (Tasks, one item at a time) is the kit's section without its card: a ruled title, the body under it */
.sheet .kit-sec { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; margin: 0; }
.sheet .kit-sec > .kit-head, .sheet .kit-sec[data-fold="shut"] > .kit-head { padding: 0 0 var(--s2); margin: var(--s6) 0 0; border-bottom: 1px solid var(--ink); }
.sheet .kit-sec > .kit-head > h2 { margin: 0; padding: 0; border: 0; justify-content: flex-start; gap: var(--s2); }
.sheet .kit-sec.kit-sec[data-fold="shut"] .kit-aside { display: inline; }
.sheet .kit-sec:not(.h6-card) > :is(p, form, .chips, .bar, .card, details, .note, .pager, ul, ol, dl, h3, .facts, .stats, .readout, div:not(.scroll):not(.lines)),
.sheet .kit-sec:not(.h6-card) > div:not(.scroll):has(> .scroll, > .lines) > :not(.scroll):not(.lines) { margin-left: 0; margin-right: 0; }
.sheet .kit-sec:not(.h6-card) > :last-child:not(.kit-head):not(.scroll):not(.lines) { margin-bottom: 0; }
.sheet .kit-sec:not(.h6-card) :is(.scroll, .lines) { border-top: 0; }
.sheet .kit-sec .kit-aside { text-transform: none; letter-spacing: 0; }
.kit-sec:not(.h6-card) .card.note { padding: var(--s3) var(--s4); }          /* a note card keeps its own padding inside a section */
/* round 548: the code blocks of the developer text on the page Developers (the connector's own page keeps its inline look) */
pre.dev-code { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); color: inherit; border-radius: 8px; padding: 10px 12px;
  font-size: var(--text-s); }
code.dev-key { overflow-wrap: anywhere; }

/* the door (sign in, sign up, two step, passkey, invite, handoff, device): one card in the middle of the page */
body.door { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem 3rem;
  font-size: var(--text-l); line-height: 1.55; color: var(--muted); background: var(--bg); font-feature-settings: "cv11", "ss01", "calt"; }
.door .logo { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 0 0 1.5rem; font-weight: 600; font-size: var(--text-fig); letter-spacing: -.01em; color: var(--fg); }
.door .logo img { display: block; width: 2.5rem; height: 2.5rem; }
.door .logo .o1 { color: var(--logo-turquoise); } .door .logo .o2 { color: var(--logo-pink); }
.door main { width: 100%; max-width: 26rem; margin: 0; padding: 2.25rem 2rem 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); text-align: center; }
.door h1 { font-size: var(--h1); line-height: 1.15; font-weight: 650; letter-spacing: -.02em; margin: 0 0 .6rem; color: var(--fg); }
.door p { margin: 0 0 1rem; } .door .lead { color: var(--muted); margin-bottom: 1.5rem; }
.door .muted { color: var(--faint); font-size: var(--text-s); margin: 1.25rem 0 0; }
.door .note { text-align: left; font-size: var(--text-m); padding: .7rem .85rem; border-radius: 8px; margin: 0 0 1.25rem; background: var(--accent-soft); color: var(--accent-strong); border: 1px solid var(--line); }
.door .note.bad { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.door button, .door .button { display: block; width: 100%; height: auto; min-height: 3rem; padding: .7rem 1.2rem; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent);
  color: var(--accent-ink); font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; transition: background 80ms cubic-bezier(.2, 0, 0, 1); }
.door button:hover, .door .button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); text-decoration: none; }
.door button[disabled] { opacity: .55; cursor: default; }
.door .button.quiet { background: var(--surface); color: var(--fg); border-color: var(--line-strong); margin-top: .6rem; } .door .button.quiet:hover { background: var(--hover); border-color: var(--line-strong); }
.door label { display: block; text-align: left; font-size: var(--text-s); color: var(--muted); margin: 0 0 .3rem; }
.door input { display: block; width: 100%; height: auto; min-height: 3rem; padding: .6rem .8rem; margin: 0 0 1rem; font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--control); border-radius: 10px; }
.door select { display: block; width: 100%; height: auto; min-height: 3rem; padding: .6rem 2.2rem .6rem .8rem; margin: 0 0 1rem; font: inherit; font-size: var(--text-l); color: var(--fg); background-color: var(--surface);
  border: 1px solid var(--control); border-radius: 10px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.3rem, calc(100% - .8rem) 1.3rem; background-size: .35rem .35rem; background-repeat: no-repeat; }
.door label.tick { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; font-size: var(--text-m); color: var(--fg); cursor: pointer; }
.door label.tick input { flex: none; width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); }
.door details.code { text-align: left; margin: .4rem 0 1.25rem; font-size: var(--text-m); } .door details.code summary { cursor: pointer; color: var(--accent); }
.door details.code label { margin-top: .6rem; }
.door .picks { text-align: left; margin: -.5rem 0 1rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.door .picks button.pick { display: block; width: 100%; min-height: 0; padding: .55rem .8rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface);
  color: var(--fg); text-align: left; font-weight: 400; font-size: var(--text-m); }
.door .picks button.pick:hover { background: var(--hover); } .door .picks button.pick span { display: block; color: var(--faint); font-size: var(--text-s); }
.door .picks p.picked { margin: .5rem .8rem; font-size: var(--text-s); }
/* round 1055 (AI review runs 2 to 5, item 27: the suggestions pushed the form off a phone's screen): the list is at most about four
   names high and scrolls; Not listed stays in sight at its foot */
#ch-picks { max-height: 21rem; overflow-y: auto; }      /* round 1142 (item 33): six whole rows before it scrolls */
#ch-picks button.pick-typed { position: sticky; bottom: 0; border-top: 1px solid var(--line); }
.door input.code { text-align: center; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
/* Google's own button keeps Google's colours (their brand rules) */
.door .button.google { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 3.5rem; background: #fff; color: #1f1f1f; border-color: #747775; font-size: var(--text-l); }
.door .button.google:hover { background: #f1f3f5; border-color: #1f1f1f; color: #1f1f1f; text-decoration: none; } .door .button.google svg { flex: none; width: 1.375rem; height: 1.375rem; }
/* round 762 (owner order of 2 Nov 2026, A3): at the door the big action is teal like Sign in and the site's Start free trial, Google white with its G as Google's branding asks; Back and the like white with a turquoise frame; the sign up page has room for its side panel */
.door button.big, .door .button.big { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 3.5rem; margin: 0 0 .75rem; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-size: var(--text-l); }
.door button.big:hover, .door .button.big:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.door .button.google.big { background: #fff; border-color: #747775; color: #1f1f1f; }
.door .button.google.big:hover { background: #f1f3f5; border-color: #1f1f1f; color: #1f1f1f; }
.door button.quiet, .door .button.quiet { background: var(--surface); color: var(--accent-strong); border-color: var(--accent); margin-top: .6rem; }
.door button.quiet:hover, .door .button.quiet:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
body.door-wide main { max-width: 52rem; }
.door .signup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.door .signup-go .muted { margin-top: .5rem; } .door form > p.muted { margin: 0 0 1rem; } .door .signup-side { text-align: left; }
.door .signup-side { padding: 1.25rem; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-soft); color: var(--fg); font-size: var(--text-m); }
.door .signup-side p:last-child { margin-bottom: 0; }
@media (max-width: 40rem) { .door .signup-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; } }
ul.sign-in-emails { list-style: none; margin: 0 0 .75rem; padding: 0; } ul.sign-in-emails li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.door button.plain { display: inline; width: auto; min-height: 0; padding: 0; border: 0; background: none; color: var(--accent); font-weight: 400; font-size: inherit; }
.door button.plain:hover { background: none; color: var(--accent-strong); text-decoration: underline; }
.door form.quiet { margin: 0; }
.door a { color: var(--accent); } .door a:hover { color: var(--accent-strong); }
@media (max-width: 30rem) { body.door { justify-content: flex-start; padding-top: 2.5rem; } .door main { padding: 1.75rem 1.25rem 1.5rem; } }
/* round 1005 (owner, 17 Nov 2026: Your business looked terrible): one control height and one control font on the screen; the drop
   downs took 15 px beside 16 px fields on a phone, and Create account stood 8 px taller than the fields */
.door form[data-business] select { font-size: inherit; }
.door form[data-business] button.big { min-height: 3rem; }
@media (max-width: 56rem) { .door form[data-business] select { font-size: 16px; } }

/* the lookup page (/r/{code}): one invoice for whoever holds its code */
body.lookup { background: var(--surface); font-size: var(--text-l); }
main.lookup { max-width: 34rem; margin: 3rem auto; padding: 0 16px; }
main.lookup dl { display: grid; grid-template-columns: 6rem 1fr; gap: .3rem 1rem; }
main.lookup dt { color: var(--muted); }
main.lookup .muted { color: var(--muted); font-size: var(--text-s); }
main.lookup .btn { display: inline-block; height: auto; padding: .5rem 1rem; border-radius: var(--r); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* the approval page without the frame (welcome, refusals, the connector's errors) */
body.ap-plain { max-width: 60rem; margin: 2rem auto; padding: 0 1rem; background: var(--surface); }
body.ap-plain h1 { font-size: var(--h1); }
body.ap-plain .bar { justify-content: space-between; align-items: center; }
body.ap-plain .card { border-color: var(--line-strong); }
body.ap-plain label { display: block; margin: .6rem 0 .2rem; }
body.ap-plain button { margin-right: .5rem; }

/* round 545 (page kit): what pages carried as a style attribute until now, as classes */
th.pgrp-0 { border-top: 4px solid var(--group-0); } th.pgrp-1 { border-top: 4px solid var(--group-1); } th.pgrp-2 { border-top: 4px solid var(--group-2); }
th.pgrp-3 { border-top: 4px solid var(--group-3); } th.pgrp-4 { border-top: 4px solid var(--group-4); } th.pgrp-5 { border-top: 4px solid var(--group-5); }
th.pgrp-6 { border-top: 4px solid var(--group-6); } th.pgrp-7 { border-top: 4px solid var(--group-7); }
img.shot-s { max-width: 160px; }
img.shot-m { max-width: 220px; margin: 2px; }
textarea.full { width: 100%; }

/* round 587 (owner 26 Oct 2026 23:22): Write: the form on the left, the document as it will look on the right (below it on a
   phone); one bar of buttons (kit.actions); Send and Mark as sent open their small form under the bar */
.write-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 25rem); gap: var(--s5); align-items: start; }
.write-main { min-width: 0; }
.doc-preview { position: sticky; top: var(--s4); margin: 0; }
.doc-preview img { display: block; width: 100%; height: auto; background: white; border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow); }
.doc-preview p { margin: var(--s2) 0 0; }
form.write[aria-busy] ~ .doc-preview img, .write-split:has(form[aria-busy]) .doc-preview img { opacity: .75; transition: opacity .2s; }
form.write .bar > .wide { flex: 1 1 20rem; }
form.write .bar > .wide input { width: 100%; }
/* round 1034 (AI review run 1, blocker 5: the new customer block floated beside and above the Customer box): its own row right under
   Customer, the fields in one compact grid, Save and Cancel under them */
form.write .bar > .w-newcust { flex: 1 0 100%; order: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: var(--s2) var(--s4);
  align-items: end; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-m); }
form.write .bar > .w-newcust[hidden] { display: none; }
form.write .bar > .w-newcust input, form.write .bar > .w-newcust select { width: 100%; box-sizing: border-box; }
form.write .bar > .w-newcust > .tick, form.write .bar > .w-newcust > p, form.write .bar > .w-newcust > div:has(#wn-add) { grid-column: 1 / -1; }
/* round 1055 (AI review runs 2 to 5, item 36): the panel titled, on the page's own surface; the Customer field wide enough for a name */
form.write .bar > .w-newcust { background: var(--surface); }
form.write .bar > .w-newcust > .wn-head { margin: 0; font-weight: 600; }
form.write .bar #w-customer-find { width: min(14rem, 100%); }
form.write .bar > div:has(> #w-customer-find) { flex: 0 1 14rem; position: relative; }
/* round 1124 (Embercroft review, item 22: the header in one row): the New customer panel, when asked for, opens under the row */
form.write .bar > .w-newcust { order: 50; }
@media (max-width: 40rem) {
  form.write .bar #w-customer-find { width: 100%; }
  form.write .bar > div:has(> #w-customer-find) { flex: 1 1 100%; }
}
form.write .bar > .w-from-last { order: 40; }
form.write td input.w-tax-pick { text-overflow: ellipsis; }
ul.pick-list.pick-full { min-width: min(24rem, calc(100vw - 8px)) !important; }
ul.pick-list.pick-full li .pick-name { white-space: normal; }
form.write .bar > div > select#w-customer.pick-behind { left: 0; top: 0; width: 1px !important; min-width: 0 !important; max-width: 1px !important; }
form.write .bar > div:has(> #w-number) input { width: 8rem; }
.w-total { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2) var(--s4); margin: var(--s2) 0; font-variant-numeric: tabular-nums; }
.w-total b { font-weight: 600; }
.w-issuing { margin: var(--s2) 0 0; }
@media (max-width: 64rem) {
  .write-split { grid-template-columns: minmax(0, 1fr); }
  .doc-preview { position: static; max-width: 32rem; }
}
.kit-actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: flex-start; margin: var(--s3) 0; }
.act-panel { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.act-panel > .card { margin: 0; }
.send-form textarea { width: 100%; max-width: 40rem; font: inherit; }
.send-form input[type="email"] { width: min(28rem, 100%); }
.send-form > div { margin: 0 0 var(--s2); }
.send-form label { display: block; font-size: var(--text-s); color: var(--ink-2); margin: 0 0 .15rem; }
.sent-line { margin: var(--s1) 0; }
.design-bar input[type="color"] { width: 3.5rem; min-height: 2.5rem; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.write-split form.write td:first-child { min-width: 11rem; }
.kit-sec label.tick { display: inline-flex; gap: .35rem; align-items: center; margin: 0 0 var(--s2); }
/* --- round 584 (owner, 26 Oct 2026): the menu on the left -------------------------------------------------------------------
   One block, so it can be taken back in one place. The main menu stands in its own row under the Octobooks logo, starting at
   the logo's left edge; the pages of the hub shown stand in the row beneath it, on the same left edge, on every screen width
   (before: the main menu in the middle of the header, the row of pages at the window's edge). More opens a large panel under
   the menu, from the same left edge. Both views draw the menus alike: Simple keeps its rounded shapes, Full its square ones;
   the page shown is the selection fill in both (no solid black pill). In Simple the menu has its own band. */
:root { --edge: max(32px, calc((100% - 1504px) / 2 + 32px)); }
:root[data-view="simple"] { --edge: max(32px, calc((100% - 1364px) / 2 + 32px)); }
@media (min-width: 56.01rem) {
  .top, :root[data-view="simple"] .top { flex-wrap: wrap; row-gap: 0; max-width: none; padding: 0 var(--edge); }
  .top > .brand { margin-left: -6px; }
  .top > .find + .who:first-of-type { margin-left: 0; }          /* the search stands beside the tools on the right, not between */
  nav.topnav, :root[data-view="simple"] nav.topnav { order: 10; flex: 1 0 100%; margin: 0 0 0 -11px; align-self: auto; gap: 2px; padding: 0 0 6px;
                                                     background: none; border-radius: 0; box-shadow: none; }
  nav.topnav a, :root[data-view="simple"] nav.topnav a { min-height: 36px; padding: 0 11px; border: 0; border-radius: var(--rc); font-weight: 600; color: var(--muted); }
  nav.topnav a:hover, :root[data-view="simple"] nav.topnav a:hover { background: var(--hover); color: var(--fg); }
  nav.topnav a[aria-current="page"], :root[data-view="simple"] nav.topnav a[aria-current="page"] { background: var(--sel); color: var(--fg); font-weight: 700; }
  :root[data-view="simple"] nav.topnav a { border-radius: 999px; }
  .rail, :root[data-view="simple"] .rail { max-width: none; margin: 0; padding: 6px var(--edge) 8px calc(var(--edge) - 10px); }
  .rail .sub.open { margin-left: 0; }
  /* Simple: the header and the row of pages are one band of their own, white on the tinted ground */
  :root[data-view="simple"] header.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
  :root[data-view="simple"] .rail { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px -16px rgba(15, 60, 40, .35); }
  :root[data-view="simple"] main { padding-top: 24px; }
  /* More: a large panel under the menu, from its left edge */
  .rail:is(:target, .shown) { top: 112px; left: calc(var(--edge) - 12px); right: auto; width: min(76rem, calc(100vw - 2 * var(--edge) + 24px)); columns: 5 12rem; }
}
/* the colour picker on the profile page: each button shows its own colour */
form.schemepick { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin: 0 0 var(--s4); }
form.schemepick button { display: inline-flex; align-items: center; gap: var(--s2); }
form.schemepick button i { width: 1rem; height: 1rem; border-radius: 50%; background: var(--swatch-green); }
form.schemepick button[data-swatch="turquoise"] i { background: var(--swatch-turquoise); }
form.schemepick button[data-swatch="graphite"] i { background: var(--swatch-graphite); }
form.schemepick button[aria-pressed="true"] { background: var(--sel); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
/* round 584 (owner, 26 Oct 2026): Cockpit or Tasks, on the front of Home: large, one click, kept for the person */
form.views.front { display: none; }
html:not(.js) form.views.front.on-home, main:has(> #app[data-page="cockpit"]) > form.views.front,
main:has(> #app[data-page="workflow"]) > form.views.front { display: inline-flex; }
form.views.front { gap: 4px; padding: 4px; margin: 0 0 var(--s4); border: 1px solid var(--line); border-radius: calc(var(--rc) + 4px); background: var(--surface); overflow: visible; }
form.views.front button { display: grid; gap: 0; justify-items: start; height: auto; min-height: 48px; padding: 6px 18px; border: 0; border-radius: var(--rc);
                          background: none; color: var(--muted); text-align: left; }
form.views.front button + button { border-left: 0; }
form.views.front button b { font-size: var(--text-l); font-weight: 700; color: var(--fg); }
form.views.front button small { font-size: var(--text-xs); color: var(--muted); }
form.views.front button:hover { background: var(--hover); }
form.views.front button.on { background: var(--sel); box-shadow: inset 0 0 0 1.5px var(--fg); }
/* round 605: the AI front beside Cockpit and To do, a link (the kept first screen stays Cockpit or To do) */
form.views.front.on-ai { display: inline-flex; }
form.views.front a.front-link { display: grid; gap: 0; justify-items: start; align-content: center; min-height: 48px; padding: 6px 18px; border-radius: var(--rc);
                                color: var(--muted); text-decoration: none; }
form.views.front a.front-link b { font-size: var(--text-l); font-weight: 700; color: var(--fg); }
form.views.front a.front-link small { font-size: var(--text-xs); color: var(--muted); }
form.views.front a.front-link:hover { background: var(--hover); }
form.views.front a.front-link.on { background: var(--sel); box-shadow: inset 0 0 0 1.5px var(--fg); }
.card.ai-line, .card.ai-idle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.card.ai-line .btn, .card.ai-idle .btn { margin-left: auto; }
label.schedule-label { display: block; margin: 0 0 4px; }
textarea.schedule-text { width: 100%; max-width: 46rem; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--rc); background: var(--surface); color: var(--fg); resize: vertical; }
.btn.big { min-height: 48px; padding: 0 22px; font-size: var(--text-l); }
.round-summary { white-space: pre-line; }
@media (max-width: 56rem) {
  form.views.front.on-ai { display: flex; }
  form.views.front a.front-link { flex: 1 1 0; min-height: 52px; }
  html:not(.js) form.views.front.on-home, main:has(> #app[data-page="cockpit"]) > form.views.front,
  main:has(> #app[data-page="workflow"]) > form.views.front { display: flex; }
  form.views.front button { flex: 1 1 0; min-height: 52px; }
}
/* round 584 (owner, 26 Oct 2026, review of round 584): the task list over the page's whole width, in the kit's table and cards.
   The sheet of the Workflow (round 11) and of one item at a time is as wide as every other page now (was 56rem in the middle). */
.sheet, .sheet.tasks { max-width: none; margin: 0; padding: 0 0 var(--s7); }
.tasks .stats.tasks-figs { margin: 0 0 var(--s4); }
.tasks .tasks-list { margin: 0 0 var(--s4); }
.of-tasks table { width: 100%; }
.of-tasks tr.grp th { height: auto; padding: var(--s3) var(--s3) var(--s1); font-size: var(--th); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
                      color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); text-align: left; }
.of-tasks td { height: auto; padding-top: var(--s2); padding-bottom: var(--s2); vertical-align: middle; }
.of-tasks td.no { width: 2.5rem; color: var(--faint); }
.of-tasks td.what b { display: block; font-size: var(--text-m); font-weight: 600; }
.of-tasks td.what small { display: block; color: var(--muted); font-size: var(--text-s); margin-top: 2px; }
.of-tasks td.act { width: 1%; white-space: nowrap; text-align: right; }
.of-tasks td.act .btn { min-width: 8.5rem; justify-content: center; }
.of-tasks tr.first td.what b { font-weight: 700; }
.of-tasks tr.first { box-shadow: inset 3px 0 0 var(--do); }
@media (max-width: 56rem) {
  .of-tasks table, .of-tasks tbody, .of-tasks tr, .of-tasks td, .of-tasks th { display: block; width: auto; }
  .of-tasks thead { display: none; }
  .of-tasks tr.grp th { padding: var(--s3) 0 var(--s1); background: none; border: 0; }
  .of-tasks tr.task { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s3); padding: var(--s3); margin: 0 0 var(--s2);
                      background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
  .of-tasks td { padding: 0; border: 0; height: auto; text-align: left; }
  .of-tasks td.no, .of-tasks td:empty { display: none; }
  .of-tasks td.what { flex: 1 1 100%; }
  .of-tasks td.num { flex: 0 0 auto; font-weight: 600; }
  .of-tasks td.act { flex: 1 1 100%; width: auto; margin-top: var(--s2); }
  .of-tasks td.act .btn { width: 100%; min-height: 44px; }
  .scroll.of-tasks { background: none; border: 0; }
}
/* round 584 (owner, 26 Oct 2026: "explanations don't work"): the switch in the header, always named; while on, each page says in
   one line what it is for, under Back, in a quiet tinted box */
.who .expl-btn { min-height: 38px; height: auto; font-weight: 600; color: var(--muted); }
.who .expl-btn[aria-pressed="true"] { background: var(--sel); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
p.page-expl { margin: 0 0 var(--s4); padding: var(--s2) var(--s3); max-width: 60rem; background: var(--act-soft); border-radius: var(--rc);
              color: var(--fg); box-shadow: inset 3px 0 0 var(--do); }
@media (max-width: 40rem) {
  .who #expl { display: inline-flex; align-items: center; font-size: 0; min-width: 44px; justify-content: center; padding: 0; line-height: 1; }
  .who #expl::before { content: "?"; font-size: var(--text-l); font-weight: 700; }
}
/* round 584 (owner, 26 Oct 2026): the page's header: its title, and the Excel button top right, the same place on every page */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin: var(--s1) 0 var(--s4); }
.page-head > h1 { margin: 0; min-width: 0; }
/* round 1133 (DESIGN-RULES 15.10): a page from its stored picture: one quiet grey word beside the title, then "as of 15:32", then gone */
.kit-fresh { font-size: var(--text-s); line-height: 1; font-weight: 400; color: var(--faint); white-space: nowrap; align-self: center; }
.page-head > .kit-fresh { margin-right: auto; }
.page-head > form.xlsx, .page-head > a.xl-btn { margin: 0 0 0 auto; }
.xl-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.xl-mark { flex: none; }
.xl-mark .xl-box { fill: var(--do-soft); stroke: var(--do); stroke-width: 1.3; }
.xl-mark .xl-x { fill: none; stroke: var(--do); stroke-width: 1.8; stroke-linecap: round; }
/* round 586: the action area at the end of a bank row (rowacts.py, static/rowacts.js): the one button, More, For Claude */
.ra { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: var(--s2); white-space: nowrap; }
.ra form { display: inline-flex; margin: 0; }
td.ra-cell { width: 1%; text-align: right; white-space: nowrap; }
.js .ra-receipt .ra-send { display: none; }
.ra .ra-go { height: 1.9rem; }
.ra details { position: relative; }
.ra details > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; height: 1.9rem; padding: 0 var(--s3);
  border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); font-weight: var(--weight-medium); }
.ra details > summary::-webkit-details-marker { display: none; }
/* round 754: every line of a co-packer's delivery note, one form each */
.cp-lines { margin: 0 0 var(--s4); }
.cp-line { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.cp-line form { margin: 0; }
.cp-line p { margin: var(--s2) 0 0; }
.cp-line.done p { margin: 0; }
/* round 754 (button rule, DESIGN-GUIDE): a row's verb behind a summary (VAT: Not needed) is an action, solid turquoise like Attach beside it */
.ra details.ra-verb > summary { border-color: var(--do); background: var(--do); color: var(--do-ink); }
.ra details.ra-verb > summary:hover { border-color: var(--do-strong); background: var(--do-strong); }
.ra details.ra-verb > summary::after { color: var(--do-ink); }
.ra details > summary::after { content: "▾"; margin-left: .35rem; color: var(--muted); }
.ra .ra-claude > summary { border-color: var(--ident); color: var(--ident); }
.ra .ra-claude.on > summary { background: var(--ident-soft); }
.ra .ra-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column; align-items: stretch; gap: var(--s2);
  min-width: 17rem; max-width: 24rem; padding: var(--s3); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-m);
  box-shadow: var(--shadow); white-space: normal; text-align: left; }
.ra .ra-pop form { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: flex-end; }
.ra .ra-pop form.ra-row label { display: flex; flex-direction: column; gap: 2px; flex: 1 1 8rem; font-size: var(--text-s); color: var(--muted); }
.ra .ra-pop button, .ra .ra-pop a { text-align: left; }
.ra .ra-pop > form > button:only-of-type { width: 100%; }
.ra .ra-chip { width: 100%; text-align: left; white-space: normal; height: auto; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--surface-2); color: var(--ink); cursor: pointer; }
.ra .ra-chip:hover { border-color: var(--ident); }
.ra .ra-note { display: flex; flex-direction: column; gap: 2px; width: 100%; font-size: var(--text-s); color: var(--muted); }
.ra .ra-say { margin: 0; font-size: var(--text-s); color: var(--muted); }
.ra-receipt { position: relative; }
.ra-receipt label.btn { position: relative; cursor: pointer; }
.ra-receipt .ra-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ra-receipt .ra-send { margin-left: var(--s1); }
.fc-chip { display: inline-flex; align-items: center; gap: .35rem; padding: 0 var(--s3); height: 2rem; border: 1px solid var(--ident); border-radius: 99px;
  color: var(--ident); background: var(--surface); text-decoration: none; font-weight: var(--weight-medium); }
.fc-chip .n { color: var(--ident); }
.open-group .kind-todo { margin: 0 0 var(--s2); }
.ra-bulk { border-color: var(--ident); color: var(--ident); }
button[disabled].btn { opacity: .55; cursor: not-allowed; }
@media (max-width: 56rem) { .ra { justify-content: flex-start; flex-wrap: wrap; } .ra .ra-pop { left: 0; right: auto; } td.ra-cell { text-align: left; } }
.b6-matched .b6-line { grid-template-columns: 28px 56px minmax(0, 1fr) 116px auto; }
.b6-matched .ra-holder, .b6-detail .ra-holder { justify-self: end; }
.b6-detail .ra-holder { display: flex; justify-content: flex-end; margin-top: var(--s2); }
@media (max-width: 56rem) { .b6-matched .b6-line { grid-template-columns: 34px minmax(0, 1fr) auto; } .b6-matched .ra-holder { grid-column: 1 / -1; justify-self: start; } }

/* --- New journal (round 590, owner 27 Oct 2026: "keep it narrow so that one can fit a few lines") -------------------------
   Xero's manual journal: Date, Narration, Reference above; narrow lines of Account, Description, Tax rate, Debit, Credit;
   numbers right aligned; the totals row and the difference live; Add a line, Save as draft, Post. On a phone each line is
   two rows: Account and Description, then Tax rate, Debit, Credit. The pick list (static/pick.js) floats under its field. */
form.jn { max-width: 64rem; }
.jn-head { align-items: end; }
.jn-head input[type=date] { width: 10rem; }
.jn-head .jn-narr { flex: 1 1 18rem; } .jn-head .jn-narr input { width: 100%; box-sizing: border-box; }
.jn-head #jn-ref, .jn-head #jn-rev { width: 10rem; }
table.jn-lines { table-layout: fixed; }
table.jn-lines th:nth-child(1) { width: 30%; } table.jn-lines th:nth-child(2) { width: 26%; } table.jn-lines th:nth-child(3) { width: 17%; }
table.jn-lines th:nth-child(4), table.jn-lines th:nth-child(5) { width: 11%; } table.jn-lines th:nth-child(6) { width: 2.25rem; }
/* round 828 (walk 25: with cost centre, project and contact the Credit column was clipped at 1400): nine columns share the width */
form.jn:has(table.jn-lines th:nth-child(8)) { max-width: 84rem; }
table.jn-lines:has(th:nth-child(8)) th { width: 9%; }
table.jn-lines:has(th:nth-child(8)) th:nth-child(1) { width: 19%; } table.jn-lines:has(th:nth-child(8)) th:nth-child(2) { width: 15%; }
table.jn-lines:has(th:nth-child(8)) th:nth-child(3) { width: 12%; }
table.jn-lines:has(th:nth-child(8)) th:nth-last-child(2), table.jn-lines:has(th:nth-child(8)) th:nth-last-child(3) { width: 10%; }
table.jn-lines:has(th:nth-child(8)) th:nth-last-child(1) { width: 2.25rem; }
/* round 832 (walk 25 failure 24: the Credit column clipped at 1400): with the Contact column the grid has seven columns; the sixth
   is Credit, not the remove button */
table.jn-lines:has(th:nth-child(7)):not(:has(th:nth-child(8))) th:nth-child(1) { width: 26%; }
table.jn-lines:has(th:nth-child(7)):not(:has(th:nth-child(8))) th:nth-child(2) { width: 21%; }
table.jn-lines:has(th:nth-child(7)):not(:has(th:nth-child(8))) th:nth-child(3) { width: 15%; }
table.jn-lines:has(th:nth-child(7)):not(:has(th:nth-child(8))) th:nth-child(4) { width: 13%; }
table.jn-lines:has(th:nth-child(7)):not(:has(th:nth-child(8))) th:nth-child(5),
table.jn-lines:has(th:nth-child(7)):not(:has(th:nth-child(8))) th:nth-child(6) { width: 11%; }
table.jn-lines:has(th:nth-child(7)):not(:has(th:nth-child(8))) th:nth-child(7) { width: 2.25rem; }
table.jn-lines td { padding: 3px 4px; height: auto; }
table.jn-lines th { padding: 0 calc(4px + var(--s2) + 1px); }
table.jn-lines td:first-child { padding-left: var(--s3); } table.jn-lines th:first-child { padding-left: calc(var(--s3) + var(--s2) + 1px); }
table.jn-lines input, table.jn-lines select { width: 100%; box-sizing: border-box; height: 1.875rem; min-width: 0; }
table.jn-lines td.num input { text-align: right; font-variant-numeric: tabular-nums; }
table.jn-lines tr.jn-bad td { background: var(--bad-soft); }
table.jn-lines tr.jn-line input:not(.pick-select)::placeholder { color: transparent; }   /* the column heads say it; a phone shows the words */
table.jn-lines tr.jn-total td, table.jn-lines tr.jn-diff td { height: var(--row); padding-right: calc(4px + var(--s2) + 1px); }
table.jn-lines tr.jn-diff td { color: var(--bad); font-weight: var(--weight-medium); border-bottom: 0; }
table.jn-lines button.jn-remove { width: 1.875rem; height: 1.875rem; padding: 0; border-color: transparent; background: none; color: var(--ink-3); font-size: var(--text-l); line-height: 1; }
table.jn-lines button.jn-remove:hover { color: var(--bad); border-color: var(--line); }
.jn-acts { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.jn-acts .jn-gap { flex: 1 1 auto; }
ul.pick-list { position: fixed; z-index: 60; margin: 0; padding: var(--s1) 0; list-style: none; max-height: 16rem; max-width: min(28rem, calc(100vw - 8px));
  overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-m); box-shadow: var(--shadow); }
ul.pick-list li { display: flex; gap: var(--s2); align-items: baseline; padding: .3rem var(--s3); font-size: var(--text-s); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
ul.pick-list li .pick-no { color: var(--ink-3); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }      /* round 984 (N8): grey, after the name */
ul.pick-list li .pick-name { overflow: hidden; text-overflow: ellipsis; }
ul.pick-list li:has(.pick-ex) { flex-wrap: wrap; }
ul.pick-list li .pick-ex { flex: 1 0 100%; color: var(--ink-3); font-size: var(--text-s); white-space: normal; }   /* round 739: the card's examples */
ul.pick-list li[aria-selected="true"], ul.pick-list li:hover { background: var(--surface-selected); }
ul.pick-list li.pick-none { color: var(--ink-3); cursor: default; }
/* round 959 (BR-319b): a list that became a find field stays in the form beside it, out of sight, still sending and still set by script */
select.pick-behind { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; overflow: hidden; }
/* round 912 (W-TAX-18): the heading of a group of rarer rates (Other tax rates, OSS), as the select's optgroup without script */
ul.pick-list li.pick-head { color: var(--ink-3); cursor: default; font-size: var(--text-xs); font-weight: var(--weight-medium); border-top: 1px solid var(--line);
  margin-top: var(--s1); padding-top: var(--s2); }
ul.pick-list li.pick-head:hover { background: none; }
/* round 982 (N13): a suggestion's reason after its name; the line that typing searches everything */
ul.pick-list li .pick-why { margin-left: auto; padding-left: var(--s2); color: var(--ink-3); font-size: var(--text-xs); }
ul.pick-list li.pick-hint { color: var(--ink-3); cursor: default; font-size: var(--text-xs); border-top: 1px solid var(--line); margin-top: var(--s1); padding-top: var(--s2); }
ul.pick-list li.pick-hint:hover { background: none; }
@media (max-width: 40rem) {
  .scroll:has(> table.jn-lines) { background: none; border: 0; overflow: visible; }
  table.jn-lines, table.jn-lines tbody { display: block; }
  table.jn-lines tr:first-child { display: none; }
  table.jn-lines tr.jn-line { display: grid; grid-template-columns: 1fr 1fr 1fr 2.25rem; gap: 4px; padding: var(--s2); margin: 0 0 var(--s2);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
  table.jn-lines tr.jn-line td { display: block; padding: 0; border: 0; }
  table.jn-lines tr.jn-line td.jn-acc { grid-column: 1 / 4; } table.jn-lines tr.jn-line td.jn-x { grid-column: 4; grid-row: 1; }
  table.jn-lines tr.jn-line td.jn-desc { grid-column: 1 / 5; }
  table.jn-lines tr.jn-line td.jn-tax { grid-column: 1; }
  /* round 832 (walk 25 failure 24): with Contact the fourth box (Credit) fell into the narrow remove column; tax and contact on one
     row, Debit and Credit on the next, each box as wide as its words */
  /* round 1021: a space was missing before td, so the four rules never applied and Credit stood 36 px wide ("Cr") */
  table.jn-lines tr.jn-line:has(td:nth-child(7)):not(:has(td:nth-child(8))) > td.jn-tax { grid-column: 1 / 3; }
  table.jn-lines tr.jn-line:has(td:nth-child(7)):not(:has(td:nth-child(8))) > td:nth-child(4) { grid-column: 3 / 5; }
  table.jn-lines tr.jn-line:has(td:nth-child(7)):not(:has(td:nth-child(8))) > td:nth-child(5) { grid-column: 1 / 3; }
  table.jn-lines tr.jn-line:has(td:nth-child(7)):not(:has(td:nth-child(8))) > td:nth-child(6) { grid-column: 3 / 5; }
  table.jn-lines tr.jn-line input, table.jn-lines tr.jn-line select { height: 2.5rem; }
  table.jn-lines tr.jn-line input:not(.pick-select)::placeholder { color: var(--ink-3); }
  table.jn-lines tr.jn-total, table.jn-lines tr.jn-diff { display: grid; grid-template-columns: 1fr 1fr 1fr 2.25rem; padding: 0 var(--s2); }
  table.jn-lines tr.jn-total td, table.jn-lines tr.jn-diff td { display: block; border: 0; padding: var(--s1) 4px; height: auto; }
  table.jn-lines tr.jn-total td:nth-child(2), table.jn-lines tr.jn-total td:nth-child(3), table.jn-lines tr.jn-diff td:nth-child(2), table.jn-lines tr.jn-diff td:nth-child(3) { display: none; }
  table.jn-lines tr.jn-diff[hidden] { display: none; }
  .jn-acts .btn { min-height: 44px; }
}
/* round 591 (HQ feature 551): the product list under a line's Description (static/pick.js) and the small form that adds one */
ul.pick-list li.pick-product { justify-content: space-between; gap: var(--s4); }
ul.pick-list li small { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
ul.pick-list li.pick-extra { color: var(--act-text); font-weight: var(--weight-medium); border-top: 1px solid var(--line); }
form.write td.w-desc textarea[data-grow] { display: block; width: 100%; min-width: 14em; resize: vertical; font: inherit; line-height: 1.35; overflow: hidden; }
form.write td.w-desc small.w-item { display: block; font-size: var(--text-xs); margin-top: 2px; }
form.write td.w-desc input.w-opos { display: block; margin-top: 4px; width: 100%; }
form.write td.w-desc input.w-opos[hidden] { display: none; }
form.write td[data-amount-of] { white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 5rem; }
form.write td[data-amount-of] small.w-vat { display: block; font-size: var(--text-xs); }
form.write tr.pick-add td { background: var(--surface-2); }
form.write tr.pick-add .bar { align-items: flex-end; }
form.write tr.pick-add .bar input, form.write tr.pick-add .bar select { width: auto; min-width: 0; }
form.write tr.pick-add .acts { display: flex; gap: var(--s2); }
@media (max-width: 40rem) { ul.pick-list li { min-height: 44px; align-items: center; } }
/* round 593 (owner, 27 Oct 2026): My Claude and To do for AI beside the company, Quick access after the menu, the AI button */
.aib { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.aib .btn.my-claude { min-height: 32px; height: auto; padding: 0 10px; font-weight: 600; font-size: var(--text-s); white-space: nowrap; }
details.todo-btn, details.ai-btn { position: relative; }
details.todo-btn > summary, details.ai-btn > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  min-height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--fg); font-weight: 600; font-size: var(--text-s); }
details.todo-btn > summary::-webkit-details-marker, details.ai-btn > summary::-webkit-details-marker { display: none; }
details.todo-btn > summary .n { font-size: var(--text-xs); font-weight: 700; border: 1.5px solid var(--pink); border-radius: 999px; padding: 0 6px; line-height: 16px; font-variant-numeric: tabular-nums; }
details.ai-btn > summary { min-width: 40px; min-height: 40px; justify-content: center; font-weight: 800; }
details.ai-btn > summary small { font-weight: 600; color: var(--muted); }
details.todo-btn .pop, details.ai-btn .pop { position: absolute; top: calc(100% + 8px); z-index: 30; min-width: 18rem; max-width: 24rem; display: flex; flex-direction: column;
  align-items: stretch; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--fg);
  font-size: var(--text-s); white-space: normal; }
details.todo-btn .pop { left: 0; }
details.ai-btn .pop { right: 0; }
details.todo-btn .pop > a:not(.btn), details.ai-btn .pop > a:not(.btn) { font-weight: 600; color: var(--act-text); }
details.todo-btn .pop small, details.ai-btn .pop small { color: var(--muted); }
details.ai-btn .pop p { margin: 0; }
.ai-pick { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.ai-pick button { flex: 1 1 0; }
ol.todo-ai { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 6px; }
ol.todo-ai li small { display: block; }
nav.pins { display: flex; align-items: center; gap: 5px; flex: none; margin-left: 6px; }
nav.pins[hidden] { display: none; }
a.pin, span.pin { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pin, var(--do)); color: #fff;
  font-size: var(--text-xs); font-weight: 800; letter-spacing: .02em; text-decoration: none; flex: none; }
a.pin:hover { text-decoration: none; filter: brightness(1.1); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--pin, var(--do)); }
.page-head > .pin-btn, .h6-acts > .pin-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; padding: 0 8px; }
.page-head > .pin-btn { margin-left: auto; }
.page-head > .pin-btn + form.xlsx, .page-head > .pin-btn + a.xl-btn { margin-left: 0; }
.pin-btn svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.pin-btn[aria-pressed="true"] { background: var(--sel); box-shadow: inset 0 0 0 1.5px var(--fg); }
.pin-btn[aria-pressed="true"] .pin-head { fill: currentColor; }
.hits div.miss { display: flex; padding: .3rem var(--s3); color: var(--ink-3); font-style: italic; }
.card.aipick, .card.quickpick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.card.aipick button[aria-pressed="true"] { background: var(--sel); box-shadow: inset 0 0 0 1.5px var(--fg); font-weight: 700; }
.card.quickpick b, .card.aipick b { margin-right: var(--s2); }
ol.pinlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; width: 100%; }
ol.pinlist li { display: flex; align-items: center; gap: var(--s2); }
ol.pinlist form { display: inline-flex; gap: 4px; margin: 0 0 0 auto; }
@media (min-width: 56.01rem) and (max-width: 90rem) { .aib .btn.my-claude { padding: 0 8px; } nav.pins { gap: 3px; margin-left: 2px; } nav.pins a.pin { width: 26px; height: 26px; } }
/* the phone: the company keeps its room (at 390 the header holds no more); To do for AI stays on Home's front (the chip) */
@media (max-width: 56rem) { .aib, nav.pins, details.ai-btn { display: none; } }
/* round 589 (owner, 27 Oct 2026 07:20): Settings, behind the gear. The sections in a list on the left, one shown at a time
   (boot.js; the address names it); without a script every section stands on the page. On the phone the list is a row on top. */
.settings { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 24px; align-items: start; }
.set-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--surface);
           border: 1px solid var(--line); border-radius: var(--r); }
.set-nav a { display: flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: var(--rc); color: var(--muted); font-weight: 600; text-decoration: none; }
.set-nav a:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
.set-nav a[aria-current="true"] { background: var(--sel); color: var(--fg); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--fg); }
.set-panels { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
html.js .settings.shown .set-panel:not(.on) { display: none; }
.set-panel form.views { display: inline-flex; margin: 0; }
.set-panel .viewpick, .set-panel .schemepick, .set-panel .langpick, .set-panel .explpick { margin: 0 0 var(--s3); }
.explpick { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.explpick button[aria-pressed="true"] { background: var(--sel); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
details.me .pop > a.set-link { font-weight: 800; color: var(--fg); }
@media (max-width: 56rem) {
  .settings { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* round 612 (gap of round 611): the six sections wrap into lines on a phone, nothing scrolls sideways */
  .set-nav { position: static; flex-direction: row; flex-wrap: wrap; overflow: visible; padding: 4px; }
  .set-nav a { white-space: nowrap; min-height: 44px; }
}

/* round 596 (owner, 27 Oct 2026): the investor report draft on Management, Investor report, drawn as paper in both themes, the
   accent of the scheme it was saved with; its charts are inline SVG with their own colours (investor_report.fragment) */
.irp { --acc: #127A4B; --irp-ink: #1D2329; --irp-ink2: #4B5563; --irp-muted: #7A828C; --irp-line: #E3E6EA; --irp-soft: #F4F5F7;
  color: var(--irp-ink); background: #fff; max-width: 760px; margin: var(--s4, 1rem) 0; padding: 2.25rem 2.5rem 1.5rem; border: 1px solid var(--line);
  border-top: 4px solid var(--acc); border-radius: 8px; font-size: var(--text-m); line-height: 1.5; }
.irp-turquoise { --acc: #0A7480; } .irp-graphite { --acc: #1F2A33; } .irp-custom { --acc: #1F2A33; }
.irp header { margin: 0 0 1.5rem; }
.irp .co { font-size: var(--text-xl); font-weight: 700; margin: 0; line-height: 1.2; color: var(--irp-ink); }
.irp .ttl { font-size: var(--text-l); font-weight: 600; margin: .25rem 0 0; color: var(--acc); }
.irp .ttl span { color: var(--irp-ink); }
.irp .sub, .irp .note { font-size: var(--text-xs); color: var(--irp-muted); margin: .35rem 0 0; }
.irp .ir-block { margin: 0 0 1.75rem; }
.irp .bt { font-size: var(--text-l); font-weight: 700; margin: 0 0 .75rem; padding: 0 0 .35rem; border-bottom: 1px solid var(--irp-line); color: var(--irp-ink); }
.irp .st { font-size: var(--text-s); font-weight: 600; color: var(--irp-ink2); margin: 1rem 0 .35rem; }
.irp .text { margin: 0; padding: .75rem 1rem; background: var(--irp-soft); border-left: 3px solid var(--acc); border-radius: 0 6px 6px 0; white-space: pre-line; color: var(--irp-ink); }
.irp svg.irc { width: 100%; height: auto; display: block; margin: 0 0 .35rem; }
.irp table.irt { width: 100%; font-size: var(--text-s); color: var(--irp-ink); background: #fff; }
.irp table.irt th { color: var(--irp-muted); font-weight: 500; }
.irp table.irt td, .irp table.irt th { border-color: var(--irp-soft); }
.irp table.irt tr.strong td { font-weight: 700; border-top: 1px solid var(--irp-line); }
.irp footer { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; margin-top: 1.5rem; padding-top: .6rem;
  border-top: 1px solid var(--irp-line); font-size: var(--text-xs); color: var(--irp-muted); }
.irp footer svg.irc { width: 18px; margin: 0; }
.irp .warn { font-size: var(--text-s); padding: .5rem .75rem; border-radius: 6px; background: #FFF4E5; color: #8A4B00; }
.irp-pick { display: grid; grid-template-columns: 3.5rem 1fr; gap: .35rem .75rem; align-items: center; margin: 0 0 var(--s4, 1rem); }
.irp-pick input[type="number"] { width: 3.25rem; }
@media (max-width: 560px) { .irp { padding: 1.25rem 1rem; } }
.irp svg.narrow { display: none; }
@media (max-width: 560px) { .irp svg.wide { display: none; } .irp svg.narrow { display: block; } }

/* round 602: To do, one queue of jobs. A card: the owner mark, what (amount right), the basis in grey, then the buttons.
   Owner marks in the scheme: Octobooks neutral, AI the accent, You strong. */
.todo-tabs a .n { color: var(--ink-2); margin-left: var(--s1); }
.todo-tabs a.on .n { color: var(--ink); }
p.jk { font-size: var(--text-s); font-weight: var(--weight-medium); color: var(--ink-2); margin: var(--s4) 0 var(--s2); }
li.job small.over { color: var(--amber); }      /* round 727 (HQ round 5, item 2): overdue is amber; red almost never */
ol.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
ol.jobs li.job { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: var(--s2) var(--s3); align-items: start; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
li.job .owner { display: inline-block; justify-self: start; font-size: var(--text-xs); font-weight: var(--weight-medium); padding: .1rem .45rem; border-radius: 99px; white-space: nowrap; }
li.job.o-octo .owner { color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }
li.job.o-ai .owner { color: var(--turquoise-strong); background: var(--turquoise-soft); }
li.job.o-you .owner { color: var(--surface); background: var(--ink); }
li.job .jw { min-width: 0; }
li.job .jl { margin: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s2); align-items: baseline; }
li.job .jl .num { margin-left: auto; font-variant-numeric: tabular-nums; }
li.job small { display: block; color: var(--ink-2); font-size: var(--text-s); }
li.job small.lease { color: var(--turquoise-strong); }
li.job .fwd { display: flex; gap: var(--s2); align-items: center; margin-top: var(--s1); max-width: 100%; }
li.job .fwd-line { flex: 1 1 auto; min-width: 0; font-family: var(--mono, monospace); font-size: var(--text-s); }   /* round 606: the forward rule line */
li.job .ja { display: flex; flex-wrap: wrap; gap: var(--s1); justify-content: flex-end; align-items: center; }
li.job .ja form.inline { display: inline-flex; margin: 0; }
li.job .ja .btn { white-space: nowrap; }
li.job .job-hold .second-way { display: none; }
@media (max-width: 40rem) {
  ol.jobs li.job { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  li.job .ja { justify-content: flex-start; }
}
/* round 604: Bookkeeping, the progress of the books. One block per company (groups show their companies inside), one row per
   month, one bar per part; a bar is a link that opens its parts and jobs under the month. A parent job's gates and due date. */
form.views.front a.vlink { display: grid; gap: 0; justify-items: start; min-height: 48px; padding: 6px 18px; border-radius: var(--rc); color: var(--muted);
                           text-decoration: none; }
form.views.front a.vlink b { font-size: var(--text-l); font-weight: 700; color: var(--fg); }
form.views.front a.vlink small { font-size: var(--text-xs); color: var(--muted); }
form.views.front a.vlink:hover { background: var(--hover); }
form.views.front a.vlink.on { background: var(--sel); box-shadow: inset 0 0 0 1.5px var(--fg); }
html form.views.front.on-front { display: inline-flex; }
.bk-nav { margin: 0 0 var(--s3); }
.bk-co { padding: var(--s2) 0 var(--s3); }
.bk-co + .bk-co { border-top: 1px solid var(--line); }
.bk-name { margin: 0 0 var(--s2); }
.bk-month { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--s2) var(--s3); align-items: start; padding: var(--s2) 0; }
.bk-m { margin: 0; padding-top: 6px; font-weight: var(--weight-medium); white-space: nowrap; }
.bk-bars { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: var(--s2); }
.bk-bar.s-na { display: grid; gap: 4px; padding: 6px 10px 8px; border: 1px dashed var(--line); border-radius: var(--rc); color: var(--muted); min-height: 44px; }
.bk-bar.s-na .bk-l { font-size: var(--text-s); }
.bk-bar.s-na .bk-n { font-size: var(--text-xs); }
a.bk-bar { display: grid; gap: 4px; padding: 6px 10px 8px; border: 1px solid var(--line); border-radius: var(--rc); color: var(--fg); text-decoration: none;
           background: var(--surface); min-height: 44px; }
a.bk-bar:hover { background: var(--hover); }
a.bk-bar.on { box-shadow: inset 0 0 0 1.5px var(--fg); background: var(--sel); }
a.bk-bar .bk-l { font-size: var(--text-s); font-weight: var(--weight-medium); }
a.bk-bar .bk-meter { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
a.bk-bar .bk-meter i { display: block; height: 100%; background: var(--ink-2); border-radius: 99px; }
a.bk-bar.s-done .bk-meter i { background: var(--good); }
a.bk-bar .bk-n { font-size: var(--text-xs); color: var(--ink-2); font-variant-numeric: tabular-nums; }
a.bk-bar.s-done .bk-n { color: var(--good); }
a.bk-bar.s-none { color: var(--muted); }
.bk-open { grid-column: 1 / -1; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--rc); background: var(--surface); }
ul.bk-parts { list-style: none; margin: 0 0 var(--s2); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
ul.bk-parts li.ok { color: var(--good); }
.bk-open .job-hold .second-way, .parent-job .job-hold .second-way { display: none; }
small.gates { display: flex !important; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
small.gates .gate, small.gates .due { display: inline-block; font-size: var(--text-xs); padding: .1rem .5rem; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; }
small.gates .gate.ok { color: var(--good); border-color: transparent; background: var(--good-soft); }
small.gates a.gate { color: var(--fg); }
small.gates .due { font-weight: var(--weight-medium); color: var(--fg); }
/* round 612 (150 word rule on To do): the gates passed fold into one chip; with Explanations on each shows and the chip goes */
html.expl-off small.gates .gate.expl { display: none; }
html:not(.expl-off) small.gates .gate-sum { display: none; }
.card.more-setup { display: flex; flex-wrap: wrap; gap: var(--s2); }
small.gates .due.over { color: var(--amber); border-color: var(--amber); }
li.job small.mode .pill { color: var(--ink-2); background: var(--surface-2); margin-right: 4px; }
li.job small.mode.m-show .pill { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); background: none; }
.parent-job .jl { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: baseline; margin: 0; }
.parent-job small { display: block; color: var(--ink-2); }
@media (max-width: 64rem) and (min-width: 40.01rem) {
  .bk-bars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  html form.views.front.on-front { display: flex; }
  form.views.front { flex-wrap: wrap; }
  form.views.front a.vlink { flex: 1 1 0; min-height: 44px; padding: 6px 10px; }
  form.views.front button, form.views.front a.vlink, form.views.front a.front-link { min-width: 0; min-height: 44px; padding: 6px 10px; }
  form.views.front button small, form.views.front a.vlink small, form.views.front a.front-link small { display: none; }
  form.views.front button b, form.views.front a.front-link b { font-size: var(--text-s); }
  form.views.front button, form.views.front a.front-link { padding: 6px 6px; justify-items: center; }
  form.views.front .fc-chip { flex: 1 0 100%; justify-content: center; }
  .bk-month { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .bk-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-bar.s-na { display: none; }
}
.due-strip { margin: 0 0 var(--s3); padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--rc); background: var(--surface); }
.due-strip p.jk:first-child { margin-top: var(--s3); }
.due-strip .job-hold .second-way { display: none; }
.jk-all { margin: 0 0 var(--s2); }
.jk-all .job-hold .second-way { display: none; }

/* round 610: Home holds one next action and the pin; on a phone both are 44 px targets */
@media (max-width: 56rem) { .h6-acts > .pin-btn { min-width: 44px; } }

/* --- New bill (round 611, Xero's bill form): Description, Quantity, Unit price, Account, Tax rate, Amount, Asset life; on a phone
   each line a card: Description, then Quantity, Unit price and Amount, then Account, then Tax rate and Asset life. */
form.bl { max-width: 72rem; }
.bl-head #bl-ref { width: 12rem; }
table.jn-lines.bl-lines th:nth-child(1) { width: 25%; } table.jn-lines.bl-lines th:nth-child(2) { width: 7%; }
table.jn-lines.bl-lines th:nth-child(3) { width: 11%; } table.jn-lines.bl-lines th:nth-child(4) { width: 21%; }
table.jn-lines.bl-lines th:nth-child(5) { width: 15%; } table.jn-lines.bl-lines th:nth-child(6) { width: 10%; }
table.jn-lines.bl-lines th:nth-child(7) { width: 8%; } table.jn-lines.bl-lines th:nth-child(8) { width: 2.25rem; }
table.bl-lines td.bl-amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-right: calc(4px + var(--s2) + 1px); }
table.bl-lines tr.total td { height: var(--row); padding-right: calc(4px + var(--s2) + 1px); }
table.bl-lines tr.bl-total td { font-weight: var(--weight-medium); }
/* round 1140 (Greyfinch review of 22 Nov 2026, item 12): without Asset life the description and account take its room; the line grid
   is borderless until a field is pointed at or typed in */
form.bl-no-life table.jn-lines.bl-lines th:nth-child(1) { width: 29%; } form.bl-no-life table.jn-lines.bl-lines th:nth-child(4) { width: 25%; }
/* round 1140 (Brackenly order item 17: "years" clipped): the Asset life column, when shown, holds 18m or 4 years whole */
form:not(.bl-no-life) table.jn-lines.bl-lines th:nth-child(7) { width: 6.5rem; } table.jn-lines.bl-lines td.bl-life input { min-width: 4.5rem; }
table.jn-lines.bl-lines tr.jn-line :is(input, select):not(:focus):not(:hover) { border-color: transparent; background-color: transparent; box-shadow: none; }
table.jn-lines.bl-lines tr.jn-line td { border-bottom: 1px solid var(--line); }
/* round 1140 (Hartsgill item 22): New invoice's More is a plain list, never a stack of buttons; 540 fits the quantity */
.write-acts .kit-more > .acts-pop .btn { background: none; border-color: transparent; box-shadow: none; color: var(--ink); font-weight: var(--weight-normal, 400); }
.write-acts .kit-more > .acts-pop .btn:hover { background: var(--hover, rgba(0,0,0,.05)); }
/* round 1140 (Hartsgill item 6): a stop at Issue is said in red beside the button */
form.w-inv #w-stop:not([hidden]) { color: var(--bad); }
/* round 1140 (Hartsgill item 23): the day the goods came shows once Accrue until the invoice arrives is ticked */
.bl-accrue { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bl-accrue:not(:has(#bl-accrue:checked)) #bl-rec-box { display: none; }
#bl-rec-box { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 40rem) {
  table.jn-lines.bl-lines tr.jn-line td.bl-desc { grid-column: 1 / 4; grid-row: 1; } table.jn-lines.bl-lines tr.jn-line td.jn-x { grid-column: 4; grid-row: 1; }
  table.jn-lines.bl-lines tr.jn-line td.bl-q { grid-column: 1; grid-row: 2; } table.jn-lines.bl-lines tr.jn-line td.bl-p { grid-column: 2; grid-row: 2; }
  table.jn-lines.bl-lines tr.jn-line td.bl-amt { grid-column: 3; grid-row: 2; align-self: center; }
  table.jn-lines.bl-lines tr.jn-line td.jn-acc { grid-column: 1 / 5; grid-row: 3; }
  table.jn-lines.bl-lines tr.jn-line td.jn-tax { grid-column: 1 / 3; grid-row: 4; } table.jn-lines.bl-lines tr.jn-line td.bl-life { grid-column: 3 / 5; grid-row: 4; }
  table.jn-lines.bl-lines tr.jn-line td.jn-dim { grid-column: 1 / 5; grid-row: 5; }      /* round 860: the cost centre of a bill line */
  table.jn-lines.bl-lines tr.total { display: flex; justify-content: space-between; padding: 0 var(--s2); }
  table.jn-lines.bl-lines tr.total td { display: block; border: 0; padding: var(--s1) 4px; height: auto; }
  table.jn-lines.bl-lines tr.total td:empty { display: none; }
}

/* Round 620: Spend money and Receive money lines (bank_pages.py), Reconcile figures and lines */
table.bm-lines { width: 100%; table-layout: fixed; }
table.bm-lines th:nth-child(1) { width: 30%; } table.bm-lines th:nth-child(2) { width: 32%; } table.bm-lines th:nth-child(3) { width: 22%; } table.bm-lines th:nth-child(4) { width: 16%; }
table.bm-lines td input, table.bm-lines td select { width: 100%; box-sizing: border-box; min-width: 0; }
form.rc .rc-figs .good { color: var(--good, #13795b); } form.rc .rc-figs .bad { color: var(--bad, #b42318); }
form.rc td.rc-box { text-align: center; } form.rc td.rc-box input { width: 1.2rem; height: 1.2rem; }
.b6-manage { margin: 0 0 var(--s2, 8px); }
@media (max-width: 56rem) { table.bm-lines, table.bm-lines tbody, table.bm-lines tr, table.bm-lines td { display: block; width: 100%; } table.bm-lines tr:first-child { display: none; } table.bm-lines tr.bm-line { padding: 6px 0; border-bottom: 1px solid var(--line, #ddd); } }
form.rc td:first-child, form.rc td:nth-child(9) { white-space: nowrap; }
/* round 626: an account's edit fold (name, section, default tax rate, Archive) wraps on a phone; nothing runs off the card */
details.edit form.inline, details.edit label.inline { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; max-width: 100%; }
details.edit input, details.edit select { max-width: 100%; min-width: 0; }
@media (max-width: 640px) {
  table.accounts details.edit, table.accounts details.edit form, table.accounts details.edit label.inline { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
  table.accounts details.edit input, table.accounts details.edit select { width: 100%; box-sizing: border-box; }
}

/* Round 626: the contact and product forms (masterdata_pages.py): fields share the row and shrink on a phone, two to a row */
form.md-contact .bar > div, form.md-product .bar > div { flex: 1 1 11rem; }
form.md-contact .bar input, form.md-contact .bar select, form.md-product .bar input, form.md-product .bar select { width: 100%; }
dl.md-facts { display: grid; grid-template-columns: minmax(7rem, 12rem) 1fr; gap: .2rem var(--s4); margin: 0 0 var(--s4); }
dl.md-facts dt { color: var(--ink-2); }
dl.md-facts dd { margin: 0; overflow-wrap: anywhere; }
/* round 1044 (task 22): one contact person block; Add person opens the next two */
details.md-more-persons > summary { list-style: none; display: inline-flex; margin: var(--s2) 0; }
details.md-more-persons > summary::-webkit-details-marker { display: none; }
details.md-more-persons[open] > summary { display: none; }
form.md-terms { align-items: end; margin: 0 0 var(--s4); }
form.md-terms > div:first-child { flex: 0 0 auto; }
@media (max-width: 600px) {
  form.md-contact .bar > div, form.md-product .bar > div { flex: 1 1 9rem; }
  dl.md-facts { grid-template-columns: 1fr; }
  dl.md-facts dd { margin-bottom: .3rem; }
}
/* round 685 (HQ design order item 13): New invoice: three buttons (Save as draft, Issue, Issue and send) and More; the line table
   fits its width (fixed columns, fields fill their cell) and the preview takes the right only on a wide screen */
.kit-actions .acts-more { position: relative; }
.kit-actions .acts-more > summary { list-style: none; cursor: pointer; }
.kit-actions .acts-more > summary::-webkit-details-marker { display: none; }
.kit-actions .acts-more > summary::after { content: "▾"; margin-left: .35rem; color: var(--muted); }
.kit-actions .acts-pop { position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column; align-items: stretch; gap: var(--s2);
  min-width: 13rem; padding: var(--s3); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-m); box-shadow: var(--shadow); }
.kit-actions .acts-pop .btn { text-align: left; width: 100%; }
@media (min-width: 40.01rem) {
  form.write table.w-lines { width: 100%; table-layout: fixed; }
  form.write table.w-lines td:first-child, .write-split form.write table.w-lines td:first-child { min-width: 0; }
  form.write table.w-lines th:nth-child(1) { width: auto; }
  form.write table.w-lines input, form.write table.w-lines select { width: 100%; min-width: 0; box-sizing: border-box; }
  form.write table.w-lines th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  form.write table.w-lines th:nth-child(2) { width: 5.75rem; }
  form.write table.w-lines th:nth-child(3) { width: 6.5rem; }
  form.write table.w-lines.w-disc th:nth-child(4) { width: 5.5rem; }
  /* round 1124 (Embercroft review, items 1 and 22: VAT and Account too narrow to read): the VAT box wide enough for a rate's name */
  form.write table.w-lines th:nth-last-child(3) { width: 15rem; }
  form.write table.w-lines th:nth-last-child(2) { width: 12rem; }
  form.write table.w-lines th:last-child { width: 6.5rem; }
  form.write table.w-lines.w-novat th:nth-last-child(3) { width: 6.5rem; }   /* round 816: no VAT column for a seller charging none */
}
.write-split { grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem); }
@media (max-width: 90rem) {
  .write-split { grid-template-columns: minmax(0, 1fr); }
  .doc-preview { position: static; max-width: 32rem; }
}
/* round 1119 (order P1.5; HQ look findings I1, I2; the order's mock 6.4): New invoice. The form left, the invoice as it will look right and
   sticky from 1200 px (7 to 5), a Preview toggle under the form below that; customer, dates and number on one row, the customer's address
   under it; account and discount columns only with More fields open; one filled button; the check's one grey line under it */
.write-split.w-inv-split { grid-template-columns: minmax(0, 1fr); gap: var(--s3) var(--s5); }
.w-inv-split .w-design-box { min-width: 0; }
@media (min-width: 75rem) {
  /* finisher: 2 to 1 (was 7 to 4), so the 15 rem VAT box of round 1124 leaves the description room at 1280 */
  .write-split.w-inv-split { grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr); grid-template-rows: auto 1fr; align-items: start; }
  .w-inv-split > .write-main { grid-column: 1; grid-row: 1; }
  .w-inv-split > .w-design-box { grid-column: 1; grid-row: 2; align-self: start; }
  .w-inv-split > .doc-preview { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(48px + var(--s4)); max-width: none; }
  .w-inv-split > .doc-preview > img { max-height: calc(100vh - 48px - 2 * var(--s4)); width: auto; max-width: 100%; object-fit: contain; }
  .w-inv-split .w-pv-btn { display: none; }
}
@media (min-width: 40.01rem) {
  form.w-inv table.w-lines th:nth-child(2) { width: 4rem; }
  form.w-inv table.w-lines th:nth-child(3) { width: 6rem; }
  form.w-inv table.w-lines.w-disc th:nth-child(4) { width: 5.5rem; }
  /* round 1124 (Embercroft review, item 1) wins over 1119's 9 rem: the VAT box wide enough for a rate's name (15 rem) */
  form.w-inv table.w-lines th:nth-last-child(3) { width: 15rem; }
  form.w-inv table.w-lines th:nth-last-child(2) { width: 9rem; }
  form.w-inv table.w-lines th:last-child { width: 6rem; }
  form.w-inv table.w-lines.w-novat th:nth-last-child(3) { width: 5.5rem; }
  form.w-inv td.w-desc textarea[data-grow] { min-width: 0; }
  /* More fields open: account and discount join each line; the lines scroll inside their box, the page and the preview stay put */
  form.w-inv.w-more-on table.w-lines { min-width: 50rem; }
  form.w-inv.w-more-on table.w-lines th:nth-child(2) { width: 4rem; }
  form.w-inv.w-more-on table.w-lines th:nth-child(3) { width: 5.5rem; }
  form.w-inv.w-more-on table.w-lines.w-disc th:nth-child(4) { width: 5rem; }
  form.w-inv.w-more-on table.w-lines th:nth-last-child(3) { width: 15rem; }
  form.w-inv.w-more-on table.w-lines th:nth-last-child(2) { width: 8rem; }
  form.w-inv.w-more-on table.w-lines th:last-child { width: 6rem; }
  form.w-inv .scroll:has(> table.w-lines) { overflow-x: auto; }
}
/* round 1145: in ux-feel, not ux-align (round 1119 afa1d05a): the one rule set of ux-align holds tokens only; ux-feel's !important beats ux-n15's N17 too */
@layer ux-feel {
  :root body:not(.door) form.w-inv .w-head .datefield, :root body:not(.door) form.w-inv .w-head .datefield .datefield-text { width: 100% !important; max-width: 100%; }
}
@media (max-width: 74.99rem) {
  .w-inv-split .doc-preview { position: static; max-width: 40rem; }
  .w-inv-split .doc-preview:not(.open) > img, .w-inv-split .doc-preview:not(.open) > p { display: none; }
}
/* the head row and the address row share one grid of four columns (customer twice the width of a date), so their edges line up */
form.w-inv .w-head, form.w-inv .w-addr { display: grid; grid-template-columns: minmax(10rem, 1fr) repeat(3, 7.75rem); gap: var(--s2) var(--s3);
  align-items: end; margin: 0 0 var(--s3); }
form.w-inv .w-head > div { min-width: 0; position: relative; }
form.w-inv .w-addr > .w-a-line1 { grid-column: span 2; }
form.w-inv .w-addr:has(> .w-a-vat-number) > .w-a-line1 { grid-column: span 1; }
form.w-inv .w-head label, form.w-inv .w-addr label { display: block; font-size: var(--text-s); color: var(--ink-2); margin: 0 0 .15rem; white-space: nowrap; }
form.w-inv .w-head input, form.w-inv .w-head select:not(.pick-behind), form.w-inv .w-addr input { width: 100%; min-width: 0; box-sizing: border-box; }
form.w-inv .w-head #w-customer-find { width: 100%; }
form.w-inv .w-head select#w-customer.pick-behind { left: 0; top: 0; width: 1px !important; min-width: 0 !important; max-width: 1px !important; }
form.w-inv .w-head > div:has(> #w-number) input { width: 100%; }
form.w-inv .w-addr > div { min-width: 0; }
@media (max-width: 40rem) {
  form.w-inv .w-head, form.w-inv .w-addr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  form.w-inv .w-head > .w-cust, form.w-inv .w-addr > .w-a-line1, form.w-inv .w-addr:has(> .w-a-vat-number) > .w-a-line1 { grid-column: 1 / -1; }
  /* a line on the phone: the description across, quantity and unit price side by side, VAT and amount side by side */
  form.w-inv table.w-lines tr[data-line] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s2); }
  form.w-inv table.w-lines tr[data-line][hidden] { display: none; }
  form.w-inv table.w-lines tr[data-line] > td.w-desc { grid-column: 1 / -1; }
  form.w-inv .w-tools > button, form.w-inv .w-tools > a { min-height: 44px; }
}
form.w-inv .w-addr[hidden], form.w-inv .w-more[hidden] { display: none; }
form.w-inv .w-np-bar:not(:has(> .w-newcust:not([hidden]))) { display: none; }
form.w-inv .w-np-bar:has(> .w-newcust:not([hidden])) ~ .w-addr { display: none; }
form.w-inv .w-np-bar { margin: 0 0 var(--s3); }
form.w-inv:not(.w-more-on) table.w-lines.w-disc tr > :nth-child(4),
form.w-inv:not(.w-more-on) table.w-lines tr > :nth-last-child(2) { display: none; }
form.w-inv .w-tools { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); align-items: baseline; margin: var(--s2) 0 var(--s3); }
form.w-inv .w-tools > [hidden] { display: none; }
form.w-inv .w-tools > .linkish { font-size: var(--text-s); font-weight: var(--weight-medium); color: var(--accent); }
form.w-inv .w-more { margin: 0 0 var(--s3); display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--s2) var(--s3); align-items: end; }
form.w-inv .w-more > div { min-width: 0; }
form.w-inv .w-more > .wide { grid-column: span 2; }
form.w-inv .w-more input:not([type=checkbox]), form.w-inv .w-more select { width: 100%; min-width: 0; box-sizing: border-box; }
form.w-inv .write-acts { margin: var(--s3) 0 0; }
form.w-inv .w-stop { margin: var(--s2) 0 0; color: var(--ink-2); font-size: var(--text-s); }
form.w-inv .w-stop[hidden] { display: none; }
form.w-inv [aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.w-inv-split .w-pv-btn { margin: 0 0 var(--s2); }
.w-inv-split .w-pv-said { margin: var(--s2) 0 0; color: var(--ink-2); font-size: var(--text-s); }
/* round 685 (HQ design order item 14): a New customer or New supplier form shows only when its button opened it (#new-customer) */
section.add-form:not(:target) { display: none; }
section.add-form:target { border: 1px solid var(--line-strong); border-radius: var(--radius-m); box-shadow: var(--shadow); }
/* round 692 (owner, 30 Oct 2026, "Never more than 10 things for a person"): To do lists at most ten sections, each opening its list */
ol.sections { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
ol.sections li a { display: flex; align-items: center; gap: var(--s4); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--rc);
  background: var(--surface); color: var(--fg); text-decoration: none; }
ol.sections li a:hover { background: var(--hover); }
ol.sections .st { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
ol.sections .st small { color: var(--muted); }
ol.sections .st small .bad { color: var(--amber); font-weight: 600; }
ol.sections .n { font-variant-numeric: tabular-nums; font-weight: 800; font-size: var(--text-l); min-width: 2.5rem; text-align: right; }
ol.sections li.sec-filed a { border-style: dashed; }
.sec-back { margin: 0 0 var(--s2); }
/* round 689 (owner 30 Oct 2026, "Our own design, easy to work with"): the page budget of the frame (nav.js, octobooksBudget).
   More holds what is beyond one main button and two beside it; a form opens from its button as a sheet beside the page */
.kit-more { position: relative; display: inline-block; }
.kit-more > summary, .kit-sheet > summary { list-style: none; cursor: pointer; }
.kit-more > summary::-webkit-details-marker, .kit-sheet > summary::-webkit-details-marker { display: none; }
.kit-more > summary::after { content: "▾"; margin-left: .35rem; color: var(--muted); }
.kit-more > .acts-pop { position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column; align-items: stretch; gap: var(--s2);
  min-width: 13rem; padding: var(--s3); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-m); box-shadow: var(--shadow); }
.kit-more > .acts-pop .btn, .kit-more > .acts-pop button { text-align: left; width: 100%; }
.kit-more > .acts-pop form { margin: 0; }
/* round 1009 (pass 3 finding 28): a page's files in one group Download at the end of its More, each named by its format */
.acts-pop > .dl-group { display: flex; flex-direction: column; align-items: stretch; gap: var(--s2); margin-top: var(--s1); padding-top: var(--s2); border-top: 1px solid var(--line); }
.acts-pop > .dl-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.acts-pop > .dl-group > .dl-h { font-size: var(--text-s); color: var(--muted); }
.acts-pop > .dl-group form { margin: 0; }
/* round 808 (walk: the If late lines of a deadline ran past the window's right edge): the menu of the last column opens leftwards */
#deadlines td:last-child .kit-more > .acts-pop { left: auto; right: 0; width: min(26rem, 85vw); }
#deadlines .dl-late { margin: 0; white-space: normal; font-size: var(--text-s); }
/* round 813 (round 808: /calendar cramped at 390): on a phone each deadline is a card: its name across, due and state side by side,
   the amount and More below; a section head across; the row's note behind More (shown once, not in the card) */
#deadlines .dl-note-more { display: none; }
@media (max-width: 40rem) {
  table.stack.cal > tbody > tr.group { display: block; padding: 10px 0 2px; border-bottom: 0; }
  table.stack.cal > tbody > tr.group > th { display: block; text-align: left; padding: 0; }
  table.stack.cal > tbody > tr > td:last-child { flex: 0 0 auto; align-self: end; }
  table.stack.cal > tbody > tr > td.num { text-align: left; }
  table.stack.cal .dl-note { display: none; }
  table.stack.cal br:has(+ .dl-note) { display: none; }
  #deadlines .dl-note-more { display: block; }
  #notices ul.notices li { overflow-wrap: anywhere; }
}
.kit-sheet { display: inline-block; }
.kit-sheet > .sheet-body { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(30rem, 100%); overflow-y: auto; padding: var(--s4);
  background: var(--surface); border-left: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.kit-sheet > .sheet-body .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: 0 0 var(--s3); font-size: var(--text-l); }
.kit-sheet > .sheet-body .sheet-x { border: 0; background: none; font-size: var(--text-xl); line-height: 1; cursor: pointer; color: var(--muted); padding: 0 var(--s2); }
.kit-sheet > .sheet-body form { display: flex; flex-direction: column; align-items: stretch; gap: var(--s3); }
.kit-sheet > .sheet-body form > div { display: flex; flex-direction: column; align-items: stretch; gap: var(--s2); }
/* round 706 (walk 703 A17: the rule editor ran past the 1280 window): a sheet's fields wrap inside its width, never past it */
.kit-sheet > .sheet-body fieldset { min-width: 0; margin: 0; padding: var(--s2) var(--s3); }
.kit-sheet > .sheet-body .bar { flex-wrap: wrap; min-width: 0; }
.kit-sheet > .sheet-body .bar > div { min-width: 0; max-width: 100%; }
/* round 754 (contact Edit at 1280: four fields 728 px tall): form > div above makes a column, where the 11rem basis of md-contact .bar > div became each field's
   height; these forms keep their row, two fields a line, at their own height */
.kit-sheet > .sheet-body form.md-contact > .bar, .kit-sheet > .sheet-body form.md-product > .bar { flex-direction: row; align-items: end; gap: var(--s2) var(--s3); margin: 0; }
.kit-sheet > .sheet-body form.md-contact > .bar > div, .kit-sheet > .sheet-body form.md-product > .bar > div { flex: 1 1 11rem; gap: 0; }
.kit-sheet > .sheet-body form.md-contact > .bar input, .kit-sheet > .sheet-body form.md-contact > .bar select,
.kit-sheet > .sheet-body form.md-product > .bar input, .kit-sheet > .sheet-body form.md-product > .bar select { width: 100%; }
.kit-sheet > .sheet-body form.md-contact > h3, .kit-sheet > .sheet-body form.md-product > h3 { margin: var(--s2) 0 0; }
.kit-sheet > .sheet-body select, .kit-sheet > .sheet-body input:not([type=checkbox]):not([type=radio]), .kit-sheet > .sheet-body textarea { max-width: 100%; }
/* round 736: on a phone the tab bar stood above an open sheet and took the tap on its last button */
body:has(details.kit-sheet[open]) nav.tabbar { display: none; }
.ask-ai-form { display: inline; margin: 0; }
.ai-on { color: var(--accent); font-size: var(--text-s); white-space: nowrap; }
.ai-on b { font-weight: 600; }
.page-head > .ask-ai-form, .page-head > .ai-on { margin-left: auto; }
.page-head > .ask-ai-form ~ .pin-btn, .page-head > .ai-on ~ .pin-btn, .page-head > .ask-ai-form ~ form.xlsx, .page-head > .ask-ai-form ~ a.xl-btn,
.page-head > .ai-on ~ form.xlsx, .page-head > .ai-on ~ a.xl-btn { margin-left: 0; }
/* round 694: the months of the Replay proof, ticked in a row */
#replay-months label.tick { display: inline-flex; gap: .35rem; align-items: center; margin: 0 var(--s4) var(--s2) 0; font-weight: var(--weight-regular); }
/* round 695 (feature 580): the AI button's guide to connect Claude: two tabs without a script, three numbered pictures, the address */
details.ai-btn .pop:has(.ai-guide) { min-width: min(34rem, calc(100vw - 32px)); max-width: min(34rem, calc(100vw - 32px)); }
.ai-guide { display: flex; flex-direction: column; gap: 8px; }
.ai-guide .ai-steps, .ai-guide .ai-prompts { display: flex; flex-direction: column; gap: 8px; }
.ai-guide [hidden] { display: none !important; }
.ai-status { font-weight: 700; color: var(--muted); }
.ai-status.on { color: var(--good, #1f8a4c); }
.ai-status.on::before { content: "\25CF  "; }
.ai-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ai-tabs > input.ai-tab { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ai-tabs > label { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-weight: 600; }
.ai-tabs > input.ai-tab:checked + label { background: var(--sel); box-shadow: inset 0 0 0 1.5px var(--fg); }
.ai-tabs > input.ai-tab:focus-visible + label { outline: 2px solid var(--do); outline-offset: 2px; }
ol.ai-pics { display: none; order: 9; width: 100%; margin: 4px 0 0; padding: 0; list-style: none; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ai-tab-web:checked ~ ol.ai-pics-web, .ai-tab-phone:checked ~ ol.ai-pics-phone { display: grid; }
ol.ai-pics li { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-xs); }
ol.ai-pics img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
ol.ai-pics-phone img { max-width: 120px; }
.ai-url, .ai-prompt { display: flex; gap: 6px; margin: 0; }
.ai-url input, .ai-prompt input { flex: 1 1 auto; min-width: 0; font-family: var(--mono, monospace); }

/* === round 717: the side menu frame (HQ design order round 4; owner 30 Oct 2026 15:13 "very good, very nice, very pretty"; HQ design.md
   "Owner decisions on the top end proposals" 1, 2, 4, 5, 6). The top menu rows go: a side menu on the left with the eight points (Home,
   To do, Bank, Sales, Purchases, Reports, Tax, Settings), the open point unfolding its pages below it, the company switch under the logo.
   The top bar: one search box (Cmd K) and the status chips Claude N on it (blue), You N (green), a bank to reconnect (amber, only
   while one is). On the phone the side menu is a drawer (Menu in the top bar and in the bottom bar). Blue and green on ds.css tokens. */
nav.pins { display: none !important; }                       /* round 717: pins are Home's sections now (Edit Home), not marks in a bar */
.status-chips { display: flex; align-items: center; gap: 8px; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: var(--text-s); font-weight: 600;
        white-space: nowrap; text-decoration: none; }
.chip:hover { text-decoration: none; filter: brightness(.97); }
.chip b { font-weight: 800; font-variant-numeric: tabular-nums; }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
a.menu-btn { display: none; flex: none; width: 44px; height: 44px; border-radius: var(--rc); align-content: center; justify-items: center; gap: 4px; }
a.menu-btn i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--fg); }
a.menu-btn:hover { background: var(--hover); }
.me-view { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
nav.tabbar .n, .rail .n { border-color: var(--blue); }
/* the side menu, on every width the same parts: logo, company, the points, the pages of the open point, Simple or Full menu, the keys */
:root .rail > .brand { display: flex; padding: 2px 8px 10px; }
:root .rail .rail-co, :root .rail > .co { display: block; padding: 0 2px 10px; }
:root .rail .rail-co details.cosw > summary { max-width: 100%; color: var(--muted); font-size: var(--text-s); }
:root .rail .rail-co details.cosw .pop { top: calc(100% + 4px); }
/* round 799: the side menu scrolls, so its box cuts what stands out of it; the switch's list and the business name fit the menu's width */
:root .rail .rail-co details.cosw .pop { left: 0; right: 0; width: auto; min-width: 0; max-width: none; }
:root .rail h6 { display: block; margin: 0; font-size: var(--text-m); break-after: auto; }
:root .rail h6 a.grp { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border-radius: var(--rc);
                       color: var(--fg); font-weight: 600; font-size: var(--text-m); text-decoration: none; }
:root .rail h6 a.grp:hover { background: var(--hover); }
:root .rail h6 a.grp.on { background: var(--blue-soft); color: var(--blue); }
:root .rail h6 .n { display: inline; border: 0; padding: 0; background: none; color: var(--muted); font-size: var(--text-xs); font-weight: 700; }
:root .rail .sub, :root .rail:is(:target, .shown) .sub { display: none; }
:root .rail .sub.open, :root .rail:is(:target, .shown) .sub.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 2px 0 6px 16px; padding: 0; flex-wrap: nowrap; }
:root .rail .sub a[data-nav] { display: flex; justify-content: space-between; min-height: 30px; padding: 2px 10px; border-radius: 0; border-left: 2px solid var(--line);
                               color: var(--muted); font-weight: 500; background: none; box-shadow: none; white-space: normal; }
:root .rail .sub a[data-nav]:hover { color: var(--fg); background: var(--hover); }
:root .rail .sub a[data-nav].on { color: var(--blue); border-left-color: var(--blue); font-weight: 650; background: none; box-shadow: none; }
:root .rail .sub a .n { border: 0; padding: 0; }
/* Round 985 (owner order of 13 Nov 2026, N10 and N11: "they just look like words ... icons or something ... gives the feeling it is a
   menu point"): nine points, each with a line icon before its name; a point with pages under it has a chevron that folds them, the
   same way for every point; at most six rows under a point, no More. The page shown is one filled pill: its row, or the point itself
   when the point's own page is shown; the point that holds the page shown is named in the ink colour, unfilled. */
:root .rail h6.has-fold { display: flex; align-items: center; gap: 2px; }
:root .rail h6.has-fold a.grp { flex: 1 1 auto; min-width: 0; }
:root .rail h6 a.grp { justify-content: flex-start; border-radius: 99px; }
:root .rail h6 a.grp .gw { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root .rail h6 a.grp svg.ti { width: 18px; height: 18px; flex: 0 0 18px; color: var(--muted); }
:root .rail h6 a.grp.on { background: none; color: var(--fg); }
:root .rail h6 a.grp.on svg.ti { color: var(--blue); }
:root .rail h6 a.grp.lead { background: var(--blue-soft); color: var(--blue); }
:root .rail h6 a.grp.lead svg.ti { color: var(--blue); }
:root .rail h6 button.fold { flex: 0 0 28px; width: 28px; height: 28px; min-height: 28px; padding: 0; margin: 0; border: 0; border-radius: 99px; background: none;
  box-shadow: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
:root .rail h6 button.fold::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -3px; }
:root .rail h6 button.fold[aria-expanded="true"]::before { transform: rotate(-135deg); margin-top: 3px; }
:root .rail h6 button.fold:hover { background: var(--hover); color: var(--fg); }
:root .rail .sub.open, :root .rail:is(:target, .shown) .sub.open { margin: 2px 0 6px 28px; }
:root .rail .sub a[data-nav] { border-left: 0; border-radius: 99px; padding: 2px 12px; }
:root .rail .sub a[data-nav].on { color: var(--blue); background: var(--blue-soft); font-weight: 650; }
@media (max-width: 56rem) { :root .rail h6 button.fold { flex-basis: 44px; width: 44px; height: 44px; min-height: 44px; } }
/* round 985: the tabs of a merged page (Receivables, Shops and payouts) and the list of a point's own page */
.chips.page-tabs { margin: 0 0 var(--s3); }
ul.hub-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
ul.hub-list li { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 4px 16px; align-items: center; min-height: 52px; padding: 6px 4px;
  border-bottom: 1px solid var(--line); font-size: var(--text-m); }      /* round 1126: a page's name at the size of every list row (a 13 px row read as a sub line) */
ul.hub-list li a { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 56rem) { ul.hub-list li { grid-template-columns: 1fr; } }
/* round 995 (addendum B8): Reports, a star before each report; the starred ones on top */
ul.hub-list li:has(> form.hub-star) { grid-template-columns: 32px minmax(200px, 280px) 1fr; }
@media (max-width: 56rem) { ul.hub-list li:has(> form.hub-star) { grid-template-columns: 32px 1fr; } ul.hub-list li:has(> form.hub-star) > span { grid-column: 2; } }
form.hub-star { margin: 0; display: inline; }
button.hub-star-b { width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--muted); font-size: var(--text-l); line-height: 1; cursor: pointer; border-radius: 6px; }
button.hub-star-b:hover { background: var(--hover); color: var(--fg); }
button.hub-star-b.on { color: var(--amber); }
ul.hub-list li.starred { background: var(--surface-2); }
:root .rail .menu { display: flex; flex-direction: column; gap: 2px; margin: 12px 0 0; padding: 0 10px; font-size: var(--text-xs); color: var(--muted); }
:root .rail .bottom { display: block; margin-top: auto; padding: 12px 10px 0; font-size: var(--text-xs); color: var(--muted); }
:root .rail .bottom .keys { display: inline; position: static; border: 0; box-shadow: none; padding: 0; background: none; }
@media (min-width: 56.01rem) {
  .shell:not(.bare) { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; }
  .shell:not(.bare) > .work { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
  :root .shell > .rail, :root .shell > .rail:is(:target, .shown), :root[data-view="simple"] .shell > .rail {
    display: flex !important; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 1px; order: 0; position: sticky; top: 0; left: auto; right: auto;
    z-index: 21; width: auto; height: 100vh; max-height: none; overflow-y: auto; margin: 0; padding: 18px 12px 14px; columns: auto;
    background: var(--surface-2); border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  :root .rail > .close { display: none !important; }
  :root .top, :root[data-view="simple"] .top { flex-wrap: nowrap; max-width: none; margin: 0; padding: 0 24px; min-height: 60px; gap: 12px; }
  :root .top > .brand { display: none; }
  :root .top .find, :root:not(.searching) .top .find:not(:focus-within), :root[data-view="simple"]:not(.searching) .top .find:not(:focus-within),
  :root[lang="de"]:not([data-view="simple"]):not(.searching) .top .find:not(:focus-within) { flex: 1 1 22rem !important; max-width: 36rem !important; min-width: 12rem !important; margin: 0 auto 0 0; }
  :root .top .find input, :root:not(.searching) .top .find:not(:focus-within) input { height: 38px !important; border-radius: var(--rc) !important; padding: 0 3.6rem 0 12px !important;
    color: var(--fg) !important; cursor: text !important; background: var(--surface-2); }
  :root .top .find:not(:focus-within) input::placeholder { color: var(--faint) !important; }
  :root .top .find kbd { display: inline !important; top: 8px; }
  :root .top .find::before, :root .top .find::after { content: none !important; }
  .top .status-chips { margin-left: 0; }
  main, :root[data-view="simple"] main { max-width: 1240px; margin: 0 auto; padding: 24px 28px 64px; width: 100%; }
  .shell footer.co-foot { max-width: 1240px; padding: 0 28px 24px; }
}
@media (max-width: 56rem) {
  :root .rail, :root[data-view="simple"] .rail { display: none !important; }
  :root .rail:is(:target, .shown) { display: flex !important; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 1px; position: fixed; z-index: 45;
    inset: 0 auto 0 0; width: min(300px, 86vw); height: 100vh; max-height: none; overflow-y: auto; padding: 14px 12px calc(70px + env(safe-area-inset-bottom));
    background: var(--surface); border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: 0 0 0 100vmax var(--scrim); columns: auto; }
  :root .rail:is(:target, .shown) > .close { display: grid; place-items: center; position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; float: none; margin: 0; }
  :root .rail h6 a.grp, :root .rail .sub a[data-nav] { min-height: 44px; }
  a.menu-btn { display: grid; }
  :root .top > .brand { display: flex; padding: 4px 2px; }
  :root .top > .brand b { display: none; }
  .chip { min-height: 36px; padding: 0 10px; }
  .chip .w { display: none; }
  .top .status-chips { margin-left: auto; gap: 6px; }
  .top .status-chips + nav.pins + .who, .top .status-chips ~ .who { margin-left: 0; }
}
:root .rail h6 .n ~ .n { display: none; }                    /* round 717: a point shows one count, its first page's */
/* round 717: Customers. The overdue pill (amber by days, green On time), revenue by customer with its gross margin */
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: var(--text-xs); font-weight: 700; white-space: nowrap; }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.green { background: var(--green-soft); color: var(--green); }
.rv-head, .rv-row { display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr) 7rem 6rem; gap: 10px; align-items: center; padding: 4px 0; }
.rv-head { font-size: var(--text-xs); color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.rv-row .rv-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-row .rv-gm { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
progress.rv-bar { width: 100%; height: 12px; appearance: none; border: 0; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
progress.rv-bar::-webkit-progress-bar { background: var(--surface-2); border-radius: 6px; }
progress.rv-bar::-webkit-progress-value { background: var(--blue); border-radius: 6px; }
progress.rv-bar::-moz-progress-bar { background: var(--blue); border-radius: 6px; }
@media (max-width: 56rem) { .rv-head, .rv-row { grid-template-columns: minmax(0, 1fr) 6rem 4rem; } .rv-head > :nth-child(2), progress.rv-bar { display: none; } }
/* round 717: Home (HQ design order round 4, item 4). Set aside for tax, four figures with a trend line, the months in a row filling to a
   green tick, Waiting for you beside Done by Claude today, the sections pinned (Edit Home) */
.h7 { display: flex; flex-direction: column; gap: 16px; }
.h7-head h1 { margin: 0; }
.h7-figs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }   /* round 1021: five cards one width (Set aside stood 408 beside 326) */
.h7-fig { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
          color: var(--fg); text-decoration: none; }
a.h7-fig:hover { text-decoration: none; border-color: var(--line-2); }
/* round 996 (BR-994a): Sales this month, a box of two links: the month to this month's P&L, its Last month line to last month's */
.h7-go:hover { border-color: var(--line-2); }
.h7-go > a.h7-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: inherit; text-decoration: none; }
.h7-go > a.h7-prior-a { color: inherit; text-decoration: none; }
.h7-go > a.h7-prior-a:hover small { color: var(--act-text); text-decoration: underline; }
/* round 1031 (kit.split, Xero's "New bill ▾"): the page's main button with its kin under the arrow beside it */
.kit-split { display: inline-flex; align-items: stretch; vertical-align: middle; position: relative; }
.kit-split > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.kit-split > .kit-split-more { display: flex; }
.kit-split > .kit-split-more[open] { flex: 0 0 auto; }
.kit-split > .kit-split-more > summary.btn { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; padding-left: .55rem; padding-right: .55rem; }
.kit-split > .kit-split-more > summary::after { margin-left: 0; }
.kit-split > .kit-split-more > .acts-pop, .kit-split > .kit-split-more[open] > .acts-pop { position: absolute; left: auto; right: 0; top: calc(100% + 4px); width: auto; min-width: 13rem; box-shadow: var(--shadow, 0 6px 24px rgba(0,0,0,.12)); }
/* round 996 (BR-994a): New on Home, the records one starts most */
.h7-new { position: relative; }
.h7-new > .acts-pop { left: auto; right: 0; min-width: 12rem; }
.h7-fig small { font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.h7-fig b { font-size: var(--text-fig); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.h7-fig em { font-style: normal; font-size: var(--text-s); color: var(--muted); }
.h7-taxbox { background: var(--blue-soft); border-color: transparent; }
button.h7-tax, summary.h7-tax { all: unset; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
button.h7-tax:focus-visible, summary.h7-tax:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
button.h7-tax b, summary.h7-tax b { font-size: var(--text-fig); font-weight: 800; color: var(--do-strong); font-variant-numeric: tabular-nums; }
button.h7-tax small, summary.h7-tax small { font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
button.h7-tax em, summary.h7-tax em { font-style: normal; font-size: var(--text-s); color: var(--muted); }
button.h7-tax em::after, summary.h7-tax em::after { content: " ›"; color: var(--blue); }
.h7-split { list-style: none; margin: 6px 0 0; padding: 6px 0 0; border-top: 1px solid var(--line); font-size: var(--text-s); }
summary.h7-tax::-webkit-details-marker { display: none; }
summary.h7-tax { list-style: none; }      /* round 721: the server's Home opens the split with details and summary */
.h7-split li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.h7-spark { position: relative; height: 26px; margin: 2px 0; }
.h7-spark > i { position: absolute; inset: 0; background: var(--blue); }
.h7-monthbox { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.h7-mhead { font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
ol.h7-months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); gap: 8px; }
.h7-mlink { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; color: var(--fg);
             text-decoration: none; font-weight: 700; }
.h7-mlink:hover { text-decoration: none; border-color: var(--line-2); }
.h7-month.done .h7-mlink { background: var(--green-soft); border-color: transparent; color: var(--green); }
.h7-month small { font-size: var(--text-xs); font-weight: 600; color: var(--muted); }
.h7-month.done small { color: var(--green); }
.h7-tick { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--surface); font-weight: 800; }
progress.h7-mbar { width: 100%; max-width: 4.5rem; height: 8px; margin: 9px 0; appearance: none; border: 0; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
progress.h7-mbar::-webkit-progress-bar { background: var(--grid); border-radius: 4px; }
progress.h7-mbar::-webkit-progress-value { background: var(--blue); border-radius: 4px; }
progress.h7-mbar::-moz-progress-bar { background: var(--blue); border-radius: 4px; }
.h7-two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; align-items: start; }
.h7-two > section.kit-sec { margin: 0; }
ol.h7-rows { list-style: none; margin: 0; padding: 0; }
ol.h7-rows > li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; }
ol.h7-rows > li + li { border-top: 1px solid var(--line); }
ol.h7-rows .who { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: var(--text-xs); font-weight: 800; }
ol.h7-rows .who.you { background: var(--fg); color: var(--surface); }
ol.h7-rows .who.ai { background: var(--blue-soft); color: var(--blue); }
ol.h7-rows .tx { display: flex; flex-direction: column; min-width: 0; }
ol.h7-rows .tx b { font-weight: 600; overflow-wrap: anywhere; }
ol.h7-rows .tx small, ol.h7-rows .tx a { font-size: var(--text-s); color: var(--muted); }
a.h7-verb, button.h7-verb { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: var(--rc); background: var(--blue); color: var(--act-ink);
                            font-weight: 700; font-size: var(--text-s); text-decoration: none; border: 1px solid var(--blue); white-space: nowrap; cursor: pointer; }
a.h7-verb:hover { text-decoration: none; filter: brightness(1.06); }
button.h7-verb.quiet { background: var(--surface); color: var(--fg); border-color: var(--line-2); }
.h7-none { color: var(--muted); margin: 6px 0; }
.h7-all { margin: 8px 0 0; font-size: var(--text-s); }
.h7-pins { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 12px; }
.h7-pin { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 12px 14px; min-width: 0; overflow: hidden; }
.h7-pinhead { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 700; }
.h7-pinhead a { color: var(--fg); flex: 1 1 auto; min-width: 0; }
.h7-grip { display: none; color: var(--faint); cursor: grab; }
.h7-x { display: none; border: 0; background: none; color: var(--muted); font-size: var(--text-l); min-height: 32px; min-width: 32px; cursor: pointer; }
.h7-pins.editing .h7-grip, .h7-pins.editing .h7-x { display: inline-block; }
.h7-pins.editing .h7-pin { border-style: dashed; cursor: grab; }
.h7-pin.drag { opacity: .5; }
.h7-pinbody { max-height: 22rem; overflow: auto; font-size: var(--text-s); }
.h7-pinbody .scroll { max-width: 100%; }
.h7-editbar { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: var(--text-s); color: var(--muted); }
.pin-btn.pin-sec { min-height: 28px; height: 28px; width: 28px; padding: 0; margin-left: auto; border-color: transparent; background: none; opacity: .55; }
.pin-btn.pin-sec:hover, .pin-btn.pin-sec[aria-pressed="true"] { opacity: 1; }
@media (max-width: 70rem) { .h7-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .h7-taxbox { grid-column: 1 / -1; } }
@media (max-width: 56rem) {
  .h7-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .h7-fig { padding: 12px; }
  .h7-fig b, button.h7-tax b, summary.h7-tax b { font-size: var(--text-l); }
  .h7-two { grid-template-columns: minmax(0, 1fr); }
  ol.h7-months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  a.h7-verb, button.h7-verb { min-height: 44px; }
  .pin-btn.pin-sec { min-height: 44px; height: 44px; width: 44px; }
}
.h7-fig b .cur, button.h7-tax b .cur, summary.h7-tax b .cur { font-size: var(--text-s); font-weight: 700; color: var(--muted); letter-spacing: 0; }
.top .find kbd { font-size: var(--text-xs); }
@media (min-width: 56.01rem) { :root .top .find:focus-within { position: relative; right: auto; width: auto; max-width: 36rem; z-index: 25; } }
ol.sections .st { background: none; color: inherit; padding: 0; border-radius: 0; font-size: inherit; font-weight: inherit; white-space: normal; }
ol.sections .verb { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: var(--rc); background: var(--blue); color: var(--act-ink);
                    font-weight: 700; font-size: var(--text-s); }
p.jk.grp-head { margin: var(--s4) 0 var(--s2); font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
/* round 717 (owner decision 4: red almost never; a situation is managed, not alarmed): a card that warns is amber, calm */
.card.bad { color: var(--fg); background: var(--surface); border-color: var(--line); box-shadow: inset 3px 0 0 var(--amber); }
.card.bad b:first-child { color: var(--amber); }

/* round 723 (features 483, 491, 484, 423, 387): the Invoice check beside the document, stock and margin on the lines, the trail */
.w-ready { margin: 0 0 var(--s3, 12px); padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--rc, 8px); background: var(--surface); }
.w-ready.is-ready { border-left-color: var(--green); background: var(--green-soft); }
.w-ready h3 { margin: 0 0 4px; font-size: var(--h3); }
.w-ready ol { margin: 6px 0 0; padding-left: 1.2em; }
.w-ready li { margin: 4px 0; }
.w-ready li small { display: block; }
.w-ready li details.w-why { display: inline; margin-left: var(--s2); }
.w-ready li details.w-why > summary { display: inline; cursor: pointer; color: var(--ink-3); font-size: var(--text-xs); }
.w-ready li details.w-why[open] { display: block; margin-left: 0; }
.w-ready form.w-fill { margin: 6px 0; gap: 6px; }
.w-ready form.w-fill input { max-width: 100%; }
small.w-stock, small.w-cost { display: block; margin-top: 2px; font-size: var(--text-s); }
small.w-stock.warn { color: var(--amber); }
small.w-stock.bad { color: var(--bad); font-weight: 600; }
.w-margin { margin: 4px 0 8px; padding: 6px 10px; border-radius: var(--rc, 8px); background: var(--surface-2); font-size: var(--text-s); }
.w-from-last { align-self: end; }
.trail-marks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.trail-marks li { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.trail-marks li.done { border-color: var(--green); color: var(--green); background: var(--green-soft); }

/* round 727 (HQ round 5): To do lists the jobs (one row each, alike ones folded, never more than ten) under the groups */
ol.todo-rows { list-style: none; margin: 0; padding: 0; }
ol.todo-rows > li.grp-li > p.grp-head:first-child { margin-top: 0; }
li.job .cnt { font-weight: 700; font-variant-numeric: tabular-nums; margin-left: var(--s1); }
li.job .due { white-space: nowrap; }
li.job .due::before { content: " · "; color: var(--muted); }
li.job .due.over { color: var(--amber); font-weight: 600; }
/* round 727 (HQ round 5, item 6): a name in a table that links to its card reads as a link, not as a box like an input */
td .untrusted, td .outsider, td > a > .untrusted { display: inline; background: none; border: 0; padding: 0; color: inherit; white-space: normal; }
.rv-name .untrusted { display: inline; background: none; border: 0; padding: 0; }
/* round 943 (BR-936a): the shop or organisation inside a Reconnect card reads in its sentence */
[data-reconnect-app] .untrusted { display: inline; background: none; border: 0; padding: 0; color: inherit; white-space: normal; }
/* round 727 (HQ round 5, item 3): twelve months; a click opens what keeps the month from done */
.h7-monthbox { position: relative; }
ol.h7-months.m12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s2); }
@media (max-width: 56rem) { ol.h7-months.m12 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
ol.h7-months.m12 > li { min-width: 0; }
details.h7-mdet > summary { list-style: none; cursor: pointer; }
details.h7-mdet > summary::-webkit-details-marker { display: none; }
details.h7-mdet > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--rc, 8px); }
details.h7-mdet[open] > summary { background: var(--blue-soft); border-radius: var(--rc, 8px); }
.h7-mleft { position: absolute; left: 0; right: 0; z-index: 5; margin-top: var(--s2); padding: var(--s3) var(--s4); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--rc, 8px); box-shadow: var(--shadow, 0 4px 16px rgba(0,0,0,.08)); text-align: left; }
.h7-mleft b { display: block; margin-bottom: var(--s1); }
.h7-mleft ul { margin: var(--s1) 0; padding-left: 1.1rem; }
.h7-mleft li { margin: 2px 0; }
.h7-mleft .rule { color: var(--muted); font-size: var(--text-xs); margin: var(--s2) 0 0; }
/* round 727: an outsider's name inside a row reads as text; the why line keeps to two lines */
.untrusted.plain { display: inline; background: none; border: 0; padding: 0; color: var(--ink-2); font-weight: 500; }
ol.h7-rows .tx small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
li.job .jl .untrusted { display: inline; background: none; border: 0; padding: 0; color: var(--ink-2); font-weight: 500; }
ol.todo-rows li.job small.basis { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h7-mleft p { margin: 4px 0; }
/* round 726: the completeness bar of a document (row 485), comments and tasks (139), the split (496), the signer's pad (479) */
.doc-bar .cps { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.doc-bar .cp { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--text-s); }
.doc-bar .cp.ok { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.doc-bar .cp.miss { border-color: var(--line-strong); color: var(--fg); }
.doc-bar .cp.miss a { color: var(--blue); text-decoration: none; }
.doc-bar .kit-bar { width: 100%; }
.notes { margin: 0 0 8px; padding: 0; list-style: none; }
.notes .note-li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.notes .note-li p { margin: 2px 0; }
.note-text { white-space: pre-wrap; }
.note-form textarea { width: 100%; max-width: 640px; }
.split-pages { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.split-pg label { display: block; margin-bottom: 4px; }
.split-img { width: 100%; height: auto; border: 1px solid var(--line); }
.sign-here .pdfpage { width: 100%; height: auto; margin: 0 0 8px; border: 1px solid var(--line); }
.sign-pad { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 10 / 3; border: 1px dashed var(--line-strong); border-radius: var(--rc, 8px); background: var(--surface); touch-action: none; }
.sign-form input[type=text], .sign-form input:not([type]) { max-width: 100%; }

/* === round 728 (owner, 31 Oct 2026 12:45, on his Samsung phone: "the design is god-awful overall on phone"). Light only (ds.css), and the
   phone made calm and compact like a good phone banking app: one slim top bar (menu, the logo with its name, search, the account),
   16 px text, headings 22 to 24 px, one Back only, tight cards, the bottom bar Home, Bank, To do, Snap, Menu with small filled counts.
   The laptop keeps its layout (owner: he has not seen it); only the shared parts change there: the account menu, Settings, Feedback. */

/* the account menu (every width): Settings, Feedback, Get the app (Android), Sign out */
details.me > summary .av { font-size: var(--text-m); font-weight: 800; letter-spacing: .02em; color: var(--blue); }
details.me > summary { background: var(--blue-soft); box-shadow: none; }
details.me .pop { min-width: 15rem; gap: 2px; padding: 8px; }
details.me .pop > p.signed { margin: 4px 10px 6px; color: var(--muted); font-size: var(--text-s); overflow-wrap: anywhere; }
details.me .pop > p.signed b { color: var(--fg); font-weight: 600; }
details.me .pop > a, details.me .pop > form > button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 42px;
  padding: 6px 10px; border: 0; border-radius: var(--rc); background: none; color: var(--fg); font-weight: 600; font-size: var(--text-m); text-decoration: none; width: 100%; text-align: left; box-shadow: none; }
details.me .pop > a:hover, details.me .pop > form > button:hover { background: var(--hover); text-decoration: none; }
details.me .pop > a.set-link { font-weight: 600; }
details.me .pop > a.get-app-link b { color: var(--blue); font-weight: 700; }
details.me .pop > a.get-app-link small { color: var(--muted); font-weight: 400; font-size: var(--text-xs); }
details.me .pop > form#signout { display: block; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
details.me .pop > form#signout > button { color: var(--muted); }
a.find-btn { display: none; }

/* the Android app bar: one slim line on top, asked once */
.app-bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; background: var(--blue-soft); color: var(--fg); font-size: var(--text-s); font-weight: 600; }
.app-bar > span { flex: 1 1 auto; }
.app-bar .btn.act { min-height: 32px; padding: 0 14px; font-size: var(--text-s); }
/* round 847: the demo company's banner, a calm note on every page of a demo */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 16px; background: var(--blue-soft); color: var(--fg); font-size: var(--text-s); font-weight: 600; }
.demo-bar .btn.act { min-height: 32px; padding: 0 14px; font-size: var(--text-s); }
.app-bar .app-bar-x { width: 36px; min-height: 36px; padding: 0; border: 0; background: none; font-size: var(--text-fig); line-height: 1; color: var(--muted); }

/* Feedback: one text box, optional chips, a screenshot, Send; a small dialog on the laptop, a bottom sheet on the phone */
.feedback-dialog { border: 0; border-radius: 16px; padding: 18px 20px 20px; max-width: 28rem; box-shadow: 0 24px 60px -20px rgba(20, 36, 48, .35); }
.feedback-dialog::backdrop { background: rgba(14, 24, 32, .32); }
form.fb-simple { gap: 12px; }
form.fb-simple .fb-head { display: flex; align-items: center; justify-content: space-between; }
form.fb-simple h2 { font-size: var(--h2); margin: 0; outline: none; box-shadow: none; }
form.fb-simple .fb-x { width: 36px; height: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); font-size: var(--text-fig); line-height: 1; color: var(--muted); }
form.fb-simple .fb-q { font-weight: 600; }
form.fb-simple textarea { min-height: 7.5rem; padding: 10px 12px; border-radius: 12px; border-color: var(--line); background: var(--surface-2); font-size: var(--text-l); resize: vertical; }
form.fb-simple textarea:focus { background: var(--surface); border-color: var(--blue); outline: none; }
.fb-kinds { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-chip { position: relative; display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--text-s); font-weight: 600; color: var(--muted); cursor: pointer; background: var(--surface); }
.fb-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fb-chip:has(input:checked) { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
.fb-chip:has(input:focus-visible) { box-shadow: var(--focus); }
.fb-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-foot .fb-add { min-height: 40px; }
.fb-foot .fb-got { flex: 1 1 auto; min-width: 0; color: var(--green); font-size: var(--text-s); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-foot .fb-send { margin-left: auto; min-height: 40px; padding: 0 22px; }
form.fb-simple .fb-said:empty { display: none; }
form.fb-simple .fb-said { color: var(--amber); margin: 0; }
form.fb-simple .fb-done { font-size: var(--text-l); }

/* Settings: ten groups, one line each; the rows of a group: the setting, its value under it, the change on the right */
.set-nav a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 6px 12px; min-height: 44px; }
.set-nav a small { display: none; color: var(--muted); font-weight: 400; font-size: var(--text-xs); }
.set-nav a b { font-weight: inherit; }
.set-back { display: none; }
ul.set-rows { list-style: none; margin: 0 0 var(--s4); padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
ul.set-rows > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 16px; }
ul.set-rows > li + li { border-top: 1px solid var(--line); }
ul.set-rows .sr-t { display: flex; flex-direction: column; min-width: 0; }
ul.set-rows .sr-t small { color: var(--muted); font-size: var(--text-s); overflow-wrap: anywhere; }
ul.set-rows .sr-a { flex: none; display: flex; align-items: center; gap: 6px; }
ul.set-rows .sr-a form { margin: 0; }
ul.set-rows .sr-a .btn, ul.set-rows .sr-a button { min-height: 36px; }
/* round 1020 (owner, 18 Nov 2026, point 4): one look for every control on the right of a settings row, whether it opens a page (a link),
   opens the change in place (a fold's summary) or sends a form: the framed button of the page kit, the same height, right aligned */
ul.set-rows > li { flex-wrap: wrap; }
ul.set-rows .sr-a { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
ul.set-rows .sr-a :is(details.set-inline, details.edit) > summary:not(.btn) { list-style: none; cursor: pointer; display: inline-flex; align-items: center;
  box-sizing: border-box; height: var(--ctl-h-row); min-height: var(--ctl-h-row); padding: 0 var(--btn-px); font-size: var(--btn-fs-row); line-height: 1.2;
  font-weight: var(--weight-medium); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-m);
  white-space: nowrap; }
ul.set-rows .sr-a :is(details.set-inline, details.edit) > summary::before, ul.set-rows .sr-a :is(details.set-inline, details.edit) > summary::after { content: none !important; }
ul.set-rows .sr-a details[open] { flex-basis: 100%; }
/* a button that sends a form from a row (Back up now, Keep, Delete) wears the same framed look as Edit: one filled button a page (N9) */
ul.set-rows .sr-a > form > button.btn:not(.primary):not(.switch) { background: var(--surface) !important; color: var(--do) !important; border-color: var(--do) !important; }
/* round 1020b (review H4): a delete that cannot be undone, under ⋯ only: framed in the error colour */
.btn.danger, button.btn.danger { color: var(--bad) !important; border-color: var(--bad) !important; background: var(--surface) !important; }
.btn.danger:hover { background: var(--bad-soft) !important; }
ul.set-rows .sr-t img.sr-logo { display: block; height: 32px; width: auto; max-width: 160px; object-fit: contain; margin-top: 2px; }
ul.set-rows .tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: 6px; border-radius: 999px; font-size: var(--text-xs, 12px);
  font-weight: 600; color: var(--accent); background: var(--accent-soft); vertical-align: middle; }
/* the switch of kit.switch: a track and a knob, 44 px wide; on: the accent colour */
button.switch { position: relative; flex: none; box-sizing: border-box; width: 44px !important; min-width: 44px; height: 24px !important; min-height: 24px !important;
  padding: 0 !important; border-radius: 12px !important; border: 1px solid var(--line-strong); background: var(--line-2, #d5dbe0); cursor: pointer; }
button.switch .switch-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: left .15s; }
button.switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
button.switch[aria-checked="true"] .switch-knob { left: 22px; }
button.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 56rem), (pointer: coarse) { button.switch { margin: 10px 0; } }
ul.set-rows input#set-connector-url { max-width: 13rem; }
/* round 995 (owner order of 13 Nov 2026, addendum B7, rule N5): on a computer a settings row is one line of 46 px: the name, what is
   set in grey after it (cut with ... where long, the whole in its title), the row's action at the right; an opened change grows the row */
@media (min-width: 48rem) {
  ul.set-rows > li { min-height: 52px; padding: 4px 16px; box-sizing: border-box; }
  ul.set-rows .sr-t { flex-direction: row; align-items: baseline; gap: 10px; flex: 1 1 auto; overflow: hidden; }
  ul.set-rows .sr-t > b { flex: none; white-space: nowrap; }
  ul.set-rows .sr-t > small { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; }
  ul.set-rows .sr-t > small * { white-space: nowrap; }
  ul.set-rows li:has(details[open]) .sr-t > small { white-space: normal; }
}
/* B7: a settings group's History, one line a change (the whole in the cell's title) */
@media (min-width: 48rem) {
  section.set-history table.kit td { white-space: nowrap; }
  section.set-history table.kit td.history-changes { max-width: 0; width: 55%; overflow: hidden; text-overflow: ellipsis; }
}
/* B7: Your companies is a list of 46 px rows: the number and the own name are fields only while Edit list is open */
.co-edit > summary { list-style: none; }
.co-edit > summary::-webkit-details-marker { display: none; }
.co-edit:not([open]) ~ .scroll input[form="colist"], .co-edit:not([open]) ~ #colist { display: none; }
.co-edit[open] ~ .scroll .co-no, .co-edit[open] ~ .scroll .co-own { display: none; }
.co-list td { height: 52px; box-sizing: border-box; padding-top: 4px; padding-bottom: 4px; }
.co-list .co-own { color: var(--muted); margin-left: 8px; font-size: var(--text-s); }
.set-panel h3 { margin: var(--s5) 0 var(--s2); font-size: var(--h3); }
.get-app { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.get-app.desk-qr { flex-direction: row; align-items: center; gap: 16px; }
.get-app.desk-qr .qr { width: 132px; flex: none; }
.get-app.desk-qr .qr svg { width: 100%; height: auto; display: block; }
.get-app.desk-qr > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.card.row-ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card.row-ask > span { display: flex; flex-direction: column; }

/* --- the phone ------------------------------------------------------------------------------------------------------------ */
@media (max-width: 56rem) {
  /* round 978 (N2): the phone keeps the five sizes too, the page title 20 px; a field stays 16 px so a phone never zooms into it */
  :root { --fs: 16px; --h1: var(--t20); --h2: var(--t15); --h3: var(--t15); --r: 14px; --rc: 10px; }
  :root[data-view="simple"] { --h1: var(--t20); --fs: 16px; --r: 14px; --rc: 10px; }
  main input:not([type=checkbox]):not([type=radio]), main select, main textarea { font-size: 16px; }
  :root h1, :root[data-view="simple"] h1 { font-size: var(--h1); font-weight: 750; letter-spacing: -.01em; margin: 2px 0 10px; }
  body { font-size: var(--text-l); }
  /* the top bar: menu, logo with the name, search, account; nothing else */
  header.topbar, :root[data-view="simple"] header.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
  .top, :root[data-view="simple"] .top { min-height: 56px; gap: 4px; padding: 0 8px 0 4px; }
  :root .top > .brand { display: flex; padding: 4px 6px; font-size: var(--h2); margin-right: auto; }
  :root .top > .brand b { display: inline; }
  .top .status-chips .chip.blue, .top .status-chips .chip.green { display: none; }
  .top .status-chips { margin-left: 0; }
  .top .status-chips .chip.amber { min-height: 28px; padding: 0 8px; font-size: var(--text-xs); }
  .who #receipt-form, .who details.ai-btn, .who .aib { display: none; }
  .who { gap: 2px; margin-left: 0; width: auto; flex: none; }
  /* round 1032 (night suite 18 Nov: a trial owner's every page scrolled 1 px sideways at 390, the English Upgrade to paid beside the
     logo, search and the avatar): the bar with that button gives way, the button first, its padding slimmer */
  :root .top > .who:has(a.btn.upgrade) { flex: 0 1 auto; min-width: 0; }
  :root .who a.btn.upgrade { padding-left: 8px; padding-right: 8px; min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
  a.find-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--fg); }
  a.find-btn:hover { background: var(--hover); }
  a.menu-btn { width: 44px; height: 44px; }
  details.me > summary, :root details.me > summary { width: 44px; height: 44px; background: none; }
  details.me > summary .av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); }
  details.me .pop { position: fixed; left: 8px; right: 8px; top: 60px; min-width: 0; }
  details.me .pop > a, details.me .pop > form > button { min-height: 48px; }
  /* one Back: none on the pages of the bottom bar; a slim one elsewhere */
  main > a.back.tab-root { display: none; }
  main > a.back { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 -2px; font-size: var(--text-s); }   /* the look of 36 px, a 44 px target */
  main, :root[data-view="simple"] main { padding: 12px 16px 24px; }
  /* the page head: the title, Ask AI and the pin small beside it */
  .page-head { margin: 0 0 10px; gap: 8px; }
  .ask-ai-form .btn, .pin-btn, .page-head .btn { min-height: 36px; padding: 0 12px; font-size: var(--text-s); }
  .chips { gap: 6px; margin: 0 0 12px; }
  .chips a { min-height: 34px; padding: 0 12px; font-size: var(--text-s); }
  /* cards and sections: tight */
  .card { padding: 12px 14px; margin: 0 0 12px; }
  .kit-sec { margin: 0 0 12px; }
  .kit-sec:not(.h6-card) > :is(p, form, .chips, .bar, .card, details, .note, .pager, ul, ol, dl, h3, .facts, .stats, .readout, div:not(.scroll):not(.lines)) { margin-left: 12px; margin-right: 12px; }
  .kit-head h2 { font-size: var(--h2); }
  p.lede { font-size: var(--text-s); color: var(--muted); margin: 0 0 10px; }
  /* To do rows: what, amount and date, the why in two lines, the actions in one line; no "You" mark in the list for you */
  ol.todo-rows > li.grp-li > p.grp-head { margin: 14px 0 4px; font-size: var(--t12); letter-spacing: .06em; color: var(--muted); }
  ol.todo-rows ol.jobs { margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
  ol.todo-rows li.job { padding: 12px 14px; gap: 6px; border-top: 0; }
  ol.todo-rows li.job + li.job { border-top: 1px solid var(--line); }
  ol.todo-rows li.job > .owner { display: none; }
  ol.todo-rows li.job .jl { font-size: var(--text-m); margin: 0; }
  ol.todo-rows li.job small.basis { font-size: var(--text-s); color: var(--muted); }
  li.job .ja { gap: 6px; }
  li.job .ja .btn, li.job .ja button { min-height: 36px; padding: 0 12px; font-size: var(--text-m); }
  /* Getting started: two quiet lines and one row, no wall of text */
  #who > summary, #use > summary { font-size: var(--text-s); padding: 4px 0; }
  /* the bottom bar: Home, Bank, To do, Snap, Menu; counts are small filled dots */
  nav.tabbar { box-shadow: 0 -1px 0 var(--line); border-top: 0; }
  nav.tabbar a, nav.tabbar label.snap { position: relative; display: grid; justify-items: center; align-content: center; min-height: 56px; min-width: 44px;
    font-size: var(--t12); font-weight: 600; color: var(--muted); text-decoration: none; cursor: pointer; }
  nav.tabbar svg.ti { width: 22px; height: 22px; margin: 0 0 3px; }
  nav.tabbar label.snap { margin: 0; padding: 0; line-height: var(--line-normal); }
  nav.tabbar a, nav.tabbar label.snap { gap: 0; }
  nav.tabbar a[aria-current="page"] { color: var(--blue); font-weight: 700; }
  nav.tabbar a[aria-current="page"]::before { display: none; }
  nav.tabbar .n, :root nav.tabbar .n { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border: 0; border-radius: 9px;
    background: var(--blue); color: #fff; font-size: var(--text-xs); font-weight: 700; line-height: 18px; text-align: center; }
  /* the side menu drawer: calmer, 15 px rows */
  :root .rail h6 a.grp { font-size: var(--text-m); }
  :root .rail .bottom .keys, :root .rail .menu small { display: none; }
  /* Feedback: a bottom sheet */
  .feedback-dialog[open] { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 92vh; border-radius: 18px 18px 0 0;
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; }
  .feedback-dialog[open]::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: var(--line-2); opacity: .5; }
  form.fb-simple { max-width: none; }
  /* Settings: the list first, a group alone with Back to the list */
  .settings[data-sections] { display: block; }
  .set-nav, :root .set-nav { position: static; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0; border: 1px solid var(--line);
    border-radius: var(--r); background: var(--surface); overflow: hidden; }
  .set-nav a, :root .set-nav a { min-height: 60px; padding: 8px 40px 8px 16px; border-radius: 0; color: var(--fg); font-weight: 600; white-space: normal; position: relative; box-shadow: none; }
  .set-nav a + a { border-top: 1px solid var(--line); }
  .set-nav a small { display: block; }
  .set-nav a::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: rotate(45deg); }
  html.js .settings.shown:not(.listing) .set-nav { display: none; }
  html.js .settings.listing .set-panels { display: none; }
  .set-panel details > summary { gap: 6px; }
  .set-panel > .set-back { margin: -6px 12px 6px; }
  /* Home: the AI line and the greeting compact */
  .card.ai-idle, .card.ai-line { flex-wrap: nowrap; padding: 8px 8px 8px 14px; font-size: var(--text-s); box-shadow: none; border-left: 3px solid var(--blue); }
  .card.ai-idle b, .card.ai-line b { font-weight: 600; flex: 1 1 auto; }
  .card.ai-idle .btn, .card.ai-line .btn { min-height: 34px; padding: 0 12px; font-size: var(--text-s); }
  .card.ai-idle > a:not(.btn) { display: none; }
  .h7-head h1, .h6-head h1 { font-size: var(--h1); }
  .h6-head p, .h6-simple .h6-head p { font-size: var(--text-s); }
  .h6-acts .btn, .h6-acts .ask-ai { min-height: 40px; padding: 0 14px; font-size: var(--text-m); }
  html.js .set-back { display: inline-flex; align-items: center; min-height: 36px; margin: 0 0 4px; font-size: var(--text-s); }
  html.js .set-back::before { content: ""; width: 7px; height: 7px; margin-right: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  ul.set-rows > li { padding: 8px 12px; }
  .get-app .btn.big { width: 100%; justify-content: center; }
}
@media (max-width: 40rem) {
  .chips a { min-height: 34px; }
  ul.set-rows input#set-connector-url { max-width: 9rem; }
}

/* round 734: the trip strip on Home while a trip is on (place, day, on card, to pay back, receipts missing) */
.h7-trip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 12px 16px;
  border: 1.5px solid var(--turquoise); border-radius: 12px; background: var(--turquoise-soft); color: var(--ink); text-decoration: none; }
.h7-trip[hidden] { display: none; }
.h7-trip b { font-weight: 650; font-variant-numeric: tabular-nums; }
.h7-trip .h7-verb { white-space: nowrap; display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: var(--rc); background: var(--blue); color: var(--act-ink); font-weight: 600; }

/* Round 735 (row 169): the portal of customers and suppliers: light, one purple action, turquoise actions, a table that scrolls on a phone */
body.portal { background: var(--bg); }
main.portal { max-width: 52rem; margin: 2rem auto; padding: 0 16px; }
main.portal section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 16px 0; }
main.portal h2 { font-size: var(--h2); margin: 0 0 .6rem; }
main.portal dl { display: grid; grid-template-columns: 9rem 1fr; gap: .3rem 1rem; margin: 0; }
main.portal dt { color: var(--muted); }
main.portal dd { margin: 0; overflow-wrap: anywhere; }
main.portal .muted { color: var(--muted); }
.portal-wrap { overflow-x: auto; }
.portal-t { width: 100%; border-collapse: collapse; }
.portal-t th { text-align: left; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); padding: .4rem .5rem; white-space: nowrap; }
.portal-t td { border-bottom: 1px solid var(--line); padding: .5rem; vertical-align: middle; }
.portal-t .num { text-align: right; white-space: nowrap; }
.portal-act { margin: .8rem 0 0; }
.portal-form input:not([type=checkbox]) { display: block; width: 100%; max-width: 22rem; min-height: 44px; }
.portal-quote { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.portal-quote input { min-height: 40px; max-width: 11rem; }
.portal-qr { display: block; width: 180px; height: 180px; margin-top: 1rem; }
main.portal .btn { min-height: 44px; }
.portal-t label.tick { display: inline-flex; align-items: center; gap: .45rem; }

/* round 737: Analysis: status pills, the layout tools of a custom report, the budget grid */
.an-pill { display: inline-block; padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-size: var(--text-s); white-space: nowrap; }
.an-pill.good { border-color: var(--turquoise); color: var(--turquoise-strong); }
.an-pill.watch { border-color: #B7791F; color: #8A5A12; }
.an-pill.bad { border-color: #B3261E; color: #B3261E; }
.rb-tools { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rb-tools button.quiet { min-height: 28px; padding: 0 8px; }
.rb-edit { display: grid; gap: 4px; min-width: 14rem; padding: 6px 0; }
.rb-pick { margin: 0; }
.bud-grid input { width: 5.6rem; text-align: right; font-variant-numeric: tabular-nums; }
.bud-grid td:first-child { min-width: 12rem; }
.rb-table tr.rb-strong td { font-weight: 650; border-top: 1px solid var(--line-2); }
.rb-table tr.rb-sec td { font-weight: 650; padding-top: 12px; }
.rb-table tr.rb-det td { color: var(--muted, #5b6470); }
.rb-table tr.rb-det td:first-child, .rb-table tr.rb-det td:nth-child(2):not(.num) { padding-left: 20px; }

/* round 738 (HQ round 6, item 2): one grey line; the whole sentence behind Details */
details.job-detail { margin-top: 2px; font-size: var(--text-s); color: var(--muted); }
details.job-detail summary { cursor: pointer; }
details.job-detail p { margin: 4px 0 0; max-width: 60ch; }
.h7-offers[hidden] { display: none; }
.h7-wait ol.h7-rows > li { grid-template-columns: minmax(0, 1fr) auto; }      /* round 738: Waiting for you is yours: no You mark on each row */
@media (max-width: 40rem) { .h7-head .h6-acts .btn { min-height: 44px; height: 44px; } }     /* round 738: Home's actions, a full finger on the phone */

/* Round 739: category cards on the chart (row 368), Setup by chat (row 498) */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 10px; }
.cat-card { border: 1px solid var(--line); border-radius: var(--rc); padding: 10px 12px; background: var(--surface); }
.cat-card h4 { margin: 0; font-size: var(--text-l); }
.cat-card .no { color: var(--do); font-variant-numeric: tabular-nums; margin-right: 6px; }
.cat-card p { margin: 4px 0 0; }
.cat-card .ex { color: var(--muted); font-size: var(--text-s); }
.chat { max-width: 640px; display: flex; flex-direction: column; gap: 8px; }
.chat .say { align-self: flex-start; max-width: 88%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 9px 13px; margin: 0; }
.chat .me { align-self: flex-end; max-width: 88%; background: var(--sel); border-radius: 14px 14px 4px 14px; padding: 9px 13px; margin: 0; }
.chat .me a { margin-left: 8px; font-size: var(--text-s); }
.chat .ask { font-weight: 600; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.chat-chips form { margin: 0; }
.chat-chips label.ck { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--do); border-radius: var(--rc); padding: 8px 12px; color: var(--do); }
.chat-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); }
main dl.chat-sum { display: block; max-width: 640px; }
main dl.chat-sum dt { font-weight: 600; margin-top: 12px; }
main dl.chat-sum dd { margin: 0; display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px solid var(--line); }

/* Round 742: no sideways scroll on the phone: each coding line and each budget account is a card */
@media (max-width: 600px) {
  .cg-scroll { overflow: visible; }
  .cg-grid, .cg-grid tbody { display: block; width: 100%; }
  .cg-grid thead { display: block; }
  .cg-grid thead tr { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .cg-grid thead th { display: none; border: 0; padding: 4px 0; }
  .cg-grid thead th:first-child, .cg-grid thead th:has(.cg-sort) { display: block; }
  .cg-grid tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  .cg-grid tbody td { display: block; padding: 0; border: 0; min-width: 0; }
  .cg-grid tbody td.cg-tickc { grid-column: 1; }
  .cg-grid tbody td.cg-day { grid-column: 2; }
  .cg-grid tbody td.num { grid-column: 3; grid-row: 1; font-weight: 650; }
  .cg-grid tbody td.cg-payee, .cg-grid tbody td.cg-ref, .cg-grid tbody td[data-label], .cg-grid tbody td[colspan] { grid-column: 1 / -1; max-width: none; white-space: normal; }
  .cg-grid tbody td[data-label]::before { content: attr(data-label); display: block; font-size: var(--text-s); color: var(--muted); }
  .cg-grid input:not([type=checkbox]), .cg-grid select { width: 100%; max-width: none; min-height: 44px; }
  .bud-grid, .bud-grid tbody { display: block; width: 100%; }
  .bud-grid thead { display: none; }
  .bud-grid tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  .bud-grid tr.section { padding: 0; border: 0; background: none; }
  .bud-grid tr.section th { grid-column: 1 / -1; padding: 8px 0 0; }
  .bud-grid td { display: block; padding: 0; border: 0; min-width: 0; text-align: left; }
  .bud-grid td:first-child { grid-column: 1 / -1; min-width: 0; font-weight: 600; }
  .bud-grid td.bud-none { display: none; }
  .bud-grid td[data-label]::before { content: attr(data-label); display: block; font-size: var(--text-s); color: var(--muted); }
  .bud-grid input { width: 100%; min-height: 44px; box-sizing: border-box; }
}

/* round 744: stars under an AI answer (feature 415), the steps of Move my books for me (feature 251) */
.stars { display: inline-flex; gap: 4px; margin: var(--s1) 0 0; }
.stars .star { width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-m); background: #0b7a75; color: #fff; font-size: var(--text-fig); line-height: 1; cursor: pointer; }
.ai-answers { list-style: none; margin: 0; padding: 0; }
.ai-answers .ai-answer { padding: var(--s3) 0; border-bottom: 1px solid var(--line, #e5e5e5); }
.ai-answers .ai-answer p { margin: var(--s1) 0; white-space: pre-wrap; }
.move-steps { display: flex; gap: var(--s2); list-style: none; margin: var(--s2) 0; padding: 0; flex-wrap: wrap; }
.move-steps li { padding: 2px 10px; border-radius: 999px; background: #eee; color: #555; font-size: var(--text-s); }
.move-steps li.on { background: #0b7a75; color: #fff; }

/* Round 749 (feature 545, polish, biggest first): a list's numbers and dates stay on one line, the name column wraps; what wraps was the
   biggest difference to a Xero list. On a phone the frame's and the page head's controls are 44 px. */
table.tight td, table.tight th { white-space: nowrap; }
table.tight td.w, table.tight td.w * { white-space: normal; }
table.tight td { padding-top: 10px; padding-bottom: 10px; vertical-align: middle; }
.h7-worked, .todo-worked { font-weight: 600; color: var(--do-strong); margin: 0 0 var(--s2); }
.hist-acts { white-space: nowrap; text-align: right; }
.hist-acts form { display: inline-block; }
@media (pointer: coarse) {
  .brand, .btn.pin-btn, .btn.ask-ai, .xl-btn, a.btn, button.btn { min-height: 44px; }
  .brand { display: inline-flex; align-items: center; }
}
.kit-actions .acts-more > summary::after, .kit-more > summary::after, summary.btn::after { color: currentColor; }
/* round 749 (feature 545): several banks stand side by side as tiles, the balance first; Xero's Home keeps each account in view the same way */
.b6-tiles { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s3); }
.b6-tile { display: flex; flex: 1 1 8rem; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: var(--s2) var(--s3); margin: 0; font-size: var(--text-l); }
.b6-tile .muted { font-size: var(--text-xs); font-weight: 500; }
.btn .muted { color: inherit; opacity: .85; }

/* round 750 (feature 527): a product picture from the store */
#products td.mono { white-space: nowrap; }
.pr-thumb { width: 28px; height: 28px; object-fit: cover; border-radius: 4px; vertical-align: middle; }

/* round 766: at phone width a popup of actions opens in the row of the page, never past the screen edge */
@media (max-width: 40rem) {
  .ra .ra-pop, .kit-actions .acts-pop, .kit-more > .acts-pop { position: static; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; margin-top: 4px; box-shadow: none; }
  .ra details[open], .kit-actions .acts-more[open], details.kit-more[open] { flex: 1 1 100%; min-width: 0; max-width: 100%; }
}
@media (max-width: 40rem) { .vat td:nth-child(2) { min-width: 0; } .vat table { width: 100%; } }
/* round 766: phone: an entry grid in a card wraps its More, the claim lines stack as invoice lines do, the trial balance keeps code, name, debit, credit */
@media (max-width: 56rem) { table.cards td details { min-width: 0; max-width: 100%; white-space: normal; } table.cards td details label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); } }
@media (max-width: 40rem) {
  #claim-form .scroll { overflow: visible; }
  #claim-form table, #claim-form tbody, #claim-form tr, #claim-form td { display: block; width: 100%; box-sizing: border-box; }
  #claim-form tr { border: 1px solid var(--line); border-radius: var(--radius-m); padding: var(--s2); margin-bottom: var(--s2); background: var(--surface); }
  #claim-form td { border: 0; padding: var(--s1) 0; min-width: 0; }
  #claim-form td input:not([type=checkbox]), #claim-form td select { width: 100%; max-width: 100%; box-sizing: border-box; }
  .of-tb > table { table-layout: auto; width: 100%; }
  .of-tb > table thead th:nth-child(3), .of-tb > table td:nth-child(3), .of-tb > table thead th:nth-child(6), .of-tb > table td:nth-child(6) { display: none; }
  .of-tb > table > thead th { width: auto !important; }
}
@media (max-width: 40rem) { .of-docs > table { table-layout: auto; width: 100%; } .of-docs > table th:nth-child(2), .of-docs > table td:nth-child(2), .of-docs > table th:nth-child(5), .of-docs > table td:nth-child(5), .of-docs > table th:nth-child(7), .of-docs > table td:nth-child(7), .of-docs > table th:nth-child(8), .of-docs > table td:nth-child(8) { display: none; } .of-docs > table > thead th { width: auto !important; } }
/* round 766: phone: a month grid keeps its row names in view, long names and buttons wrap */
@media (max-width: 40rem) {
  main .scroll > table.kit:not(.cards):not(.stack) tr > :first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
  main li a, main li { overflow-wrap: anywhere; }
  main form.inline { flex-wrap: wrap; max-width: 100%; }
  main .btn { white-space: normal; max-width: 100%; }
}
@media (max-width: 40rem) {
  .of-tb > table, .of-docs > table { table-layout: fixed; width: 100%; }
  .of-tb > table > tbody > tr:not(.sub) > td, .of-docs > table > tbody > tr:not(.sub) > td { white-space: normal; overflow-wrap: anywhere; }
  .of-tb > table > thead th:nth-child(1) { width: 3.75rem !important; } .of-tb > table > thead th:nth-child(4), .of-tb > table > thead th:nth-child(5) { width: 5.75rem !important; }
  .of-docs > table > thead th:nth-child(1) { width: 3.25rem !important; } .of-docs > table > thead th:nth-child(3) { width: 5.5rem !important; } .of-docs > table > thead th:nth-child(6) { width: 6.25rem !important; }
  main li a, main li .untrusted { white-space: normal; overflow-wrap: anywhere; }
}

/* Round 770: Add free months. One big action purple, other actions turquoise, the Home item white with a turquoise frame. */
.rf-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 12px; padding: 12px 16px; border: 1px solid #0b7a75; border-radius: var(--r); background: #fff; color: inherit; text-decoration: none; }
.rf-item:hover { background: #fff; box-shadow: 0 0 0 1px #0b7a75; }
/* round 792: the Home card of Book October like before; the button's form sits on the right, on a phone below the words */
.lb-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--line, #d9dee3); border-radius: var(--r); background: #fff; }
.lb-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lb-tx small, .lb-say { color: var(--muted); }
.lb-item form.bar, form.lb-form { margin: 0; }
@media (max-width: 40rem) { .lb-item { flex-direction: column; align-items: stretch; gap: 8px; } .lb-item button { width: 100%; } }
.rf-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-tx b { font-weight: 650; color: #0b7a75; }
.rf-tx small { color: var(--muted); }
.rf-bar { flex: none; width: 180px; height: 10px; accent-color: #6b4fc4; }
.rf { max-width: 42rem; display: flex; flex-direction: column; gap: 14px; }
.rf-head { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid #0b7a75; border-radius: var(--r); background: #fff; }
.rf-head b { font-size: var(--text-fig); font-weight: 650; font-variant-numeric: tabular-nums; }
.rf-head .rf-bar { width: 100%; }
.rf-head small { color: var(--muted); }
.rf-lead, .rf-calm { margin: 0; }
.rf-way { margin: 4px 0 0; color: var(--muted); font-size: var(--text-s, .875rem); }
.rf-calm { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.rf-form { display: flex; flex-direction: column; gap: 6px; }
.rf-form textarea, .rf-form input[type=email], .rf-row input { width: 100%; box-sizing: border-box; }
.rf-form textarea { font: inherit; }
.rf-row button.rf-do { flex: none; white-space: nowrap; }
.rf-check { display: flex; align-items: center; gap: 8px; }
.rf-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 0; }
a.rf-big { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: var(--rc); background: #6b4fc4; color: #fff; font-weight: 700; text-decoration: none; }
a.rf-big:hover { background: #6b4fc4; color: #fff; filter: brightness(1.08); }
button.rf-do { min-height: 40px; padding: 0 16px; border: 1px solid #0b7a75; border-radius: var(--rc); background: #0b7a75; color: #fff; font-weight: 650; }
button.rf-do:hover { background: #0b7a75; filter: brightness(1.08); }
.rf-row { display: flex; gap: 10px; align-items: center; margin: 0; }
.rf-ai { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* round 771: phone: month and entry grids without a sideways scroll. table.stack: each row a block, its name across, two figures to a line,
   each under its column's name (nav.js). head2: code and name share the first line. line: name and amount on one line, the head stays.
   entry: inputs fill their half. */
@media (max-width: 40rem) {
  .scroll:has(> table.stack) { overflow: visible; background: none; border: 0; }
  table.stack, table.stack > tbody { display: block; width: 100%; }
  table.stack > tbody > tr { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.stack > thead, table.stack > tbody > tr[hidden], table.stack > tbody > tr.head { display: none; }
  table.stack.entry > tbody > tr > td[data-label]:first-child::before { content: attr(data-label); display: block; color: var(--ink-3); font-size: var(--text-xs); }
  table.stack > tbody > tr > td { display: block; flex: 1 1 calc(50% - 8px); min-width: 0; height: auto; padding: 0; border: 0; overflow-wrap: anywhere; white-space: normal; }
  table.stack > tbody > tr > td:empty { display: none; }
  table.stack > tbody > tr > td:first-child, table.stack > tbody > tr > td[colspan] { flex-basis: 100%; }
  table.stack > tbody > tr > td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; color: var(--ink-3); font-size: var(--text-xs); font-weight: 400; }
  table.stack > tbody > tr.section > td, table.stack > tbody > tr.total > td { background: none; }
  table.stack > tbody > tr.section > td, table.stack > tbody > tr.total > td:first-child { font-weight: 650; }
  table.stack.line .mono { white-space: nowrap; margin-right: 6px; }
  table.stack.name2 > tbody > tr > td:nth-child(2) { flex-basis: 100%; }
  table.stack.name2 > tbody > tr > td:nth-child(2)::before { content: none; }
  table.stack.head2 > tbody > tr > td:first-child { flex: 0 0 auto; }
  table.stack.head2 > tbody > tr > td:nth-child(2) { flex: 1 1 60%; }
  table.stack.head2 > tbody > tr > td:nth-child(2)::before { content: none; }
  table.stack.line > tbody > tr.head { display: flex; flex-wrap: nowrap; }
  table.stack.line > tbody > tr.head > th { flex: 0 0 auto; height: auto; padding: 0; border: 0; white-space: normal; }
  table.stack.line > tbody > tr.head > th:first-child { flex: 1 1 0; min-width: 0; }
  table.stack.line > tbody > tr { flex-wrap: wrap; }
  table.stack.line > tbody > tr > td:first-child { flex: 1 1 0; min-width: 0; }
  table.stack.line > tbody > tr > td.num { flex: 0 0 auto; }
  table.stack.line > tbody > tr > td.num::before, table.stack.line > tbody > tr > td.muted::before { content: none; }
  table.stack.line > tbody > tr > td:not(:first-child):not(.num) { flex: 1 1 100%; order: 3; }
  table.stack.entry > tbody > tr { padding: var(--s2); margin-bottom: var(--s2); border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
  table.stack.entry input:not([type=checkbox]), table.stack.entry select { width: 100%; max-width: 100%; box-sizing: border-box; }
  table.stack.entry details label { display: block; margin-top: 4px; }
}
@media (max-width: 40rem) { .rf-item { flex-direction: column; align-items: stretch; gap: 8px; } .rf-bar { width: 100%; } .rf-row { flex-wrap: wrap; } a.rf-big, button.rf-do { width: 100%; justify-content: center; } }
/* round 782 (feature 545): every control a thumb presses is 44 px high on a touch screen. The phone layout of round 728 had made
   the page head's buttons (Excel, Ask AI, the pin) 36 px and the filter chips 34 px; a link standing alone in a card (And 8 more,
   the month's checklist, Your AI) was one line of text. The look stays slim: same padding and font, only the height grows. */
@media (pointer: coarse) {
  :root .page-head .btn, :root .ask-ai-form .btn, :root .pin-btn, :root .xl-btn, :root .card a.btn { min-height: 44px; }
  :root .chips a { min-height: 44px; display: inline-flex; align-items: center; }
  :root .card > a:not(.btn), :root main summary > a:not(.btn) { display: inline-block; line-height: 20px; padding-block: 12px; margin-block: -12px; }   /* a 44 px target that takes one line of the text it stands in: nothing lifts */
}
/* round 782: a hold to confirm button keeps its whole word (Connect, Mark as filed were cut at 390 px) */
button.hold { min-width: max-content; }
/* round 782 (owner's button rule, 31 Oct): a hold to confirm button is an action: solid turquoise with white text (purple stays the
   page's one big action, .primary); it was white with dark text (Connect, Mark as filed) */
button.hold:not(.primary) { background: var(--do); color: var(--do-ink); border-color: var(--do); }
button.hold:not(.primary):hover { background: var(--do-strong); border-color: var(--do-strong); }
/* round 782: Approvals groups more than 10 waiting by kind; each kind folds open to its own list */
details.ap-kind > summary { cursor: pointer; display: flex; align-items: center; gap: var(--s2); min-height: 44px; }
details.ap-kind > summary::before { content: "›"; display: inline-block; width: 1em; font-weight: 700; transition: transform .15s; }
details.ap-kind[open] > summary::before { transform: rotate(90deg); }
details.ap-kind[open] > summary { margin-bottom: var(--s2); }
.oi-only { margin: var(--s2) 0 0; }

/* owner, 4 Nov 2026: the company line of Octobooks Ltd stays, small and out of the way at the bottom right */
.shell footer.co-foot { text-align: right; opacity: .7; }

/* round 796 (owner order of 4 Nov 2026, easy first steps 2): every upload is a drop zone (static/dropzone.js). The file field lies
   invisible over the whole area, so a click anywhere opens the picker and a drop lands in it. No native grey button anywhere: without
   the script the browser's own button takes the quiet rounded look below. */
.dropzone { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 16px; box-sizing: border-box;
  border: 1.5px dashed var(--line-2); border-radius: var(--rc, 12px); background: var(--surface); cursor: pointer; max-width: 100%; }
.bar > div:has(> .dropzone) { flex: 1 1 300px; }
.dropzone .dz-ic { font-size: var(--text-fig); line-height: 1; color: var(--fg); }
.dropzone .dz-say { flex: 1; min-width: 0; }
.dropzone .dz-say b { display: block; color: var(--fg); font-weight: 600; }
.dropzone .dz-say small { display: block; color: var(--faint); font-size: var(--text-s); overflow-wrap: anywhere; }
.dropzone .dz-say small:empty { display: none; }
.dropzone .dz-btn { border-radius: 999px; background: var(--surface); color: var(--fg); pointer-events: none; white-space: nowrap; }
.dropzone input.dz-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 0; }
.dropzone:hover, .dropzone.focus { border-color: var(--turquoise); background: var(--hover); }
.dropzone.over { border-style: solid; border-color: var(--turquoise); background: var(--sel, var(--hover)); box-shadow: 0 0 0 3px var(--turquoise-soft); }
.dropzone.has { border-style: solid; }
.dropzone.busy { cursor: progress; border-style: solid; border-color: var(--turquoise); }
.dropzone.busy input.dz-input { pointer-events: none; }
.dropzone .dz-bar { position: absolute; left: 16px; right: 16px; bottom: 7px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.dropzone .dz-bar[hidden] { display: none; }
.dropzone .dz-bar i { position: absolute; top: 0; bottom: 0; left: -35%; width: 35%; border-radius: 3px; background: var(--turquoise); animation: dz-run 1.1s ease-in-out infinite; }
@keyframes dz-run { from { left: -35%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .dropzone .dz-bar i { animation: none; left: 0; width: 100%; opacity: .6; } }
.js .dz-auto { display: none; }
input[type=file]::file-selector-button { font: inherit; font-size: var(--text-s); border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  color: var(--fg); padding: 6px 14px; margin-right: 10px; cursor: pointer; }

/* round 796 (easy first steps 3): Connect your AI, the quiet way for other AI under the row's line */
ol.h7-rows .tx .h7-also a, .ai-other { font-size: var(--text-s); color: var(--faint); }
ol.h7-rows .tx .h7-also a:hover, .ai-other:hover { color: var(--fg); }

/* round 796 (easy first steps 1): Fill from public records by the name, suggestions from the third letter (static/namefind.js) */
.lookup-name .grow { position: relative; flex: 1 1 320px; }
.lookup-name .grow input { width: 100%; box-sizing: border-box; }
#lk-picks { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-pop); }
.picks a.pick { display: block; padding: .55rem .8rem; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.picks a.pick:hover, .picks a.pick:focus { background: var(--hover); outline: none; }
.picks a.pick span { display: block; color: var(--faint); font-size: var(--text-s); }
#lk-picks .from, #lk-picks p { display: block; margin: 0; padding: .4rem .8rem; color: var(--faint); font-size: var(--text-s); }
ul.picks.found { list-style: none; padding: 0; margin: 0 0 var(--s4); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-width: 40rem; background: var(--surface); }
details.other-ways { margin: 0 0 var(--s4); }
details.other-ways > summary { cursor: pointer; color: var(--faint); font-size: var(--text-s); }
details.other-ways[open] > summary { margin-bottom: var(--s2); }

/* owner, 4 Nov 2026: language switcher, globe plus the current language, a small list that opens upwards */
.rail .bottom details.lang-pick { position: relative; display: inline-block; margin-left: var(--s2); }
.rail .bottom details.lang-pick summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: var(--act-text); }
.rail .bottom details.lang-pick summary::-webkit-details-marker { display: none; }
.rail .bottom details.lang-pick summary .ti { width: 15px; height: 15px; }
.rail .bottom details.lang-pick form.lang { position: absolute; bottom: calc(100% + 6px); right: 0; left: auto; display: flex; flex-direction: column; min-width: 9rem; margin: 0;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--rc); box-shadow: var(--shadow); padding: 4px; z-index: 20; }
.rail .bottom details.lang-pick form.lang button { text-decoration: none; color: var(--fg); text-align: left; padding: 6px 10px; border-radius: 6px; }
.rail .bottom details.lang-pick form.lang button:hover { background: var(--sel); }
.rail .bottom details.lang-pick form.lang button[aria-pressed="true"] { font-weight: 700; }
.rail .bottom details.lang-pick form.lang button[aria-pressed="true"]::after { content: " \2713"; color: var(--ok); }
/* round 803 (owner rule of 4 Nov 2026, show by how often it is needed): a help mark (?) beside a control; its few lines open under it */
.help-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 0 0 12px; }
/* round 1020 (owner, 18 Nov 2026, point 8): one round ? only, its letter centred, on the text line it explains; no fold chevron
   (the N10 rule leaves .help-mark out), the 44 px phone target an invisible ring around the 22 px circle */
details.help-mark { display: inline-block; vertical-align: middle; line-height: 1; }
details.help-mark > summary { list-style: none; cursor: pointer; box-sizing: border-box; width: 22px; height: 22px; min-height: 0 !important; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-2); position: relative; display: inline-flex !important; align-items: center; justify-content: center;
  font-size: var(--text-s); font-weight: 700; line-height: 1; color: var(--fg); background: var(--surface); margin: 0; gap: 0; }
details.help-mark > summary::before { content: none !important; display: none !important; }
/* round 1020b (review L4): the click ring stays inside the mark's own margin, never over a neighbour: 34 px with a mouse, 34 x 44 px on touch */
details.help-mark { margin-inline: 6px; }
.hm-keep { white-space: nowrap; }                         /* the last word and its ? never part on a line break */
details.help-mark > summary::after { content: ""; position: absolute; inset: -6px; }
@media (pointer: coarse) {
  /* round 1020c (N7): on touch the ring grows to 44 px high inside the 46 px row; the mark keeps its 6 px margin, so a phone page lays
     out exactly as before, and the ring stays inside that margin sideways (34 px wide) */
  details.help-mark > summary::after { inset: -11px -6px; }
}
details.help-mark > summary::-webkit-details-marker { display: none; }
details.help-mark[open] { flex-basis: 100%; }
details.help-mark .help-pop { margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--rc); background: var(--surface); max-width: 60ch; }
details.help-mark .help-pop p { margin: 0 0 6px; }

/* round 804: Connect your AI (large pictures), the live setup checklist; one tap chips (the trip and hospitality pages, round 1005:
   Your business has drop downs since the hotfix of 17 Nov 2026, its chip rules are gone) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
label.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; cursor: pointer; background: var(--surface, #fff); }
label.chip input { margin: 0; accent-color: var(--accent); }
label.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.start-choice .btn, .connect-steps .btn.big, .btn.big { font-size: var(--text-l); padding: 10px 20px; }
ol.connect-steps { padding-left: 1.2em; }
ol.connect-steps > li { margin-bottom: 18px; }
.connect-pics { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.connect-pics figure { margin: 0; max-width: 560px; }
.connect-pics img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--rc); }
.connect-pics figcaption { font-weight: 600; margin-top: 4px; }
ol.setup-list { list-style: none; padding: 0; margin: 12px 0; }
ol.setup-list > li { border: 1px solid var(--line); border-radius: var(--rc); padding: 10px 12px 10px 40px; margin-bottom: 8px; position: relative; transition: background .3s; }
ol.setup-list > li .tick { position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); }
ol.setup-list > li.done { background: var(--ok-soft); }
ol.setup-list > li.done .tick { border-color: var(--ok); background: var(--ok); }
ol.setup-list > li.done .tick::after { content: "\2713"; color: #fff; font-size: 12px; position: absolute; left: 3px; top: -1px; }
ol.setup-list .say { color: var(--muted); }
/* round 1130 (item 33): each row's head one line, title then what is set, cut with ... and whole on hover (8.11) */
ol.setup-list details.setup-row > summary > b { flex: 0 0 auto; white-space: nowrap; }
ol.setup-list details.setup-row > summary > .say { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.setup-list .row-form { margin-top: 8px; }
/* round 809 (owner order of 4 Nov 2026, point 1): each row opens to what was set, with Change in place */
ol.setup-list details.setup-row > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: nowrap; gap: 4px 8px; align-items: baseline; padding-right: 22px; }
ol.setup-list details.setup-row > summary::-webkit-details-marker { display: none; }
ol.setup-list details.setup-row > summary::after { content: "\203A"; position: absolute; right: 12px; top: 8px; color: var(--muted); font-size: var(--text-l); transition: transform .2s; }
ol.setup-list details.setup-row[open] > summary::after { transform: rotate(90deg); }
ol.setup-list .row-body { margin-top: 10px; }
ol.setup-list dl.row-facts { display: grid; grid-template-columns: minmax(9rem, max-content) 1fr; gap: 4px 16px; margin: 0 0 6px; }
ol.setup-list dl.row-facts > div { display: contents; }
ol.setup-list dl.row-facts dt { color: var(--muted); }
ol.setup-list dl.row-facts dd { margin: 0; overflow-wrap: anywhere; }
ol.setup-list .row-from { margin: 0 0 6px; color: var(--muted); font-style: italic; }
ol.setup-list details.change > summary { cursor: pointer; color: var(--act-text); font-weight: 600; display: inline-block; margin: 4px 0; }
ol.setup-list ul.tips { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
ol.setup-list ul.tips > li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--rc); padding: 8px 10px; background: var(--surface); }
ol.setup-list ul.tips > li > span { flex: 1 1 18rem; }
ol.setup-list ul.tips form.tip-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
ol.setup-list ul.tips form.tip-form input[name=value] { min-width: 12rem; }
ol.setup-list ul.tips > li.decided { opacity: .75; }
@media (max-width: 560px) { ol.setup-list dl.row-facts { grid-template-columns: 1fr; gap: 0 0; } ol.setup-list dl.row-facts dd { margin-bottom: 6px; } }
.setup-end ul.need { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.setup-end a.need-row { display: block; border: 1px solid var(--line); border-radius: var(--rc); padding: 10px 14px; text-decoration: none; font-weight: 600; }
.setup-end a.need-row::after { content: " \203A"; }
.setup-end a.need-row:hover { background: var(--hover); }
p.ai-live { color: var(--muted); }

/* owner, 4 Nov 2026: Bring what you have, three ways side by side */
/* round 1092: the three ways are rows of ul.set-rows (DESIGN-RULES 7.14); the grid stays for the trading ways */
.bring-ways:not(.set-rows) { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s4, 16px); margin: 0 0 var(--s4, 16px); }
.bring-way h2 { margin-top: 0; font-size: var(--h2); }
.bring-way .btn.big { width: 100%; justify-content: center; }
/* round 1112 (test_r1055: /start/bring 408 px wide at 390, the drop zone of Upload files past the window): the drop zone shrinks to its row */
ul.set-rows.bring-ways > li .sr-a { flex: 0 1 auto; min-width: 0; max-width: 100%; }
ul.set-rows.bring-ways > li .sr-a :is(form, .dropzone) { min-width: 0; max-width: 100%; }

/* owner, 4 Nov 2026: Connect your AI, which AI first, then two big numbered steps */
.ai-pick { display: flex; gap: 8px; margin: 0 0 20px; }
.ai-pick .chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg); text-decoration: none; }
.ai-pick .chip.on { background: var(--accent-soft, #E3F5F3); border-color: var(--accent, #0B7A75); font-weight: 700; }
ol.two-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; max-width: 46rem; }
ol.two-steps > li { display: grid; grid-template-columns: 3rem 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--rc, 12px); padding: 16px 18px; }
ol.two-steps .step-num { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--accent, #0B7A75); color: #fff; font-weight: 800; font-size: var(--text-l); display: flex; align-items: center; justify-content: center; }
ol.two-steps h2, ol.two-steps .step-t { margin: 6px 0 10px; font-size: var(--h2); font-weight: 700; }
ol.two-steps ol.sub { margin: 0 0 8px; padding-left: 1.3rem; display: grid; gap: 10px; }
ol.two-steps .ai-url { display: flex; gap: 8px; margin-top: 6px; }
ol.two-steps .ai-url input { flex: 1; font-family: var(--mono, monospace); }
details.how > summary { cursor: pointer; color: var(--act-text); font-weight: 600; }
details.how .connect-pics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
details.how figure { margin: 0; width: 220px; }
details.how figure img { width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: 8px; }
details.how figcaption { font-size: var(--text-s); color: var(--muted, #5A6B76); }

/* owner, 4 Nov 2026: the coffee note while Claude sets up the books */
.coffee-note { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--rc, 12px); padding: 14px 18px; margin: 0 0 14px; max-width: 46rem; }
.coffee-note .mug { color: var(--accent, #0B7A75); flex: none; }
.coffee-note b { display: block; font-size: var(--text-l); }
.coffee-note span { color: var(--muted, #5A6B76); }

/* round 806: Bring what you have (one drop zone, what was found per file) and Moving from another system? (tiles, guides) */
.sys-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 14px 0; }
a.sys-tile { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: var(--rc); padding: 14px; text-decoration: none; color: inherit; }
a.sys-tile:hover { background: var(--hover); }
a.sys-tile b { font-size: var(--text-l); }
a.sys-tile small { color: var(--muted); }
.sys-status { align-self: flex-start; font-size: var(--text-s); font-weight: 600; border-radius: 999px; padding: 2px 10px; border: 1px solid var(--line); }
.sys-connect .sys-status { background: var(--ok-soft); border-color: var(--ok); }
.sys-file .sys-status { background: var(--accent-soft); border-color: var(--accent); }
.sys-soon .sys-status { color: var(--muted); }
ol.guide-steps > li { margin-bottom: 6px; }
ul.guide-src { font-size: var(--text-s); }
tr.look td:nth-child(3) { color: var(--muted); }
/* round 817: the Post office, calm: held is a neutral note with its reason */
.po-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.po-head .po-lead { flex: 1 1 30ch; margin: 0 0 12px; }
.po-why, tr.po-held td:last-child, tr.po-failed td:last-child { color: var(--muted); }
.po-last summary { cursor: pointer; margin: 16px 0 8px; font-weight: 600; }
#po-drafts form { display: inline; }
.po-draft summary { cursor: pointer; }
.po-body { white-space: pre-wrap; font: inherit; margin: 6px 0 0; max-width: 70ch; }
/* round 832 (words review item 3, left by round 822): no "You" on every To do row: the tab says whose they are; only Claude's and
   Octobooks' rows carry their chip */
ol.jobs li.job.o-you > .owner { display: none; }
.h7-two.h7-one { grid-template-columns: minmax(0, 1fr); }
ol.jobs li.job.o-you { grid-template-columns: minmax(0, 1fr) auto; }
/* round 832: sub accounts indented under their parent (chart, reports); the More actions of an account one per line */
tr.lvl1 > :is(td, th):nth-child(-n+2) { padding-left: 1.5em; }
tr.lvl2 > :is(td, th):nth-child(-n+2) { padding-left: 3em; }
tr.lvl3 > :is(td, th):nth-child(-n+2) { padding-left: 4.5em; }
tr.det.lvl1 > th { padding-left: 3em; }
tr.det.lvl2 > th { padding-left: 4.5em; }
.acct-more { display: grid; gap: 6px; margin-top: 6px; }
.acct-more form.inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* round 837: Search on the Bank page, above the lines to reconcile */
.b6-search { margin: 0 0 8px; }
.b6-search .b6-q { width: 100%; box-sizing: border-box; }
.b6-search .b6-q-none { margin: 6px 0 0; }
/* round 905 (W-BANK-F05): a date field in the company's order (static/datefield.js); the browser's own field stays under the
   calendar button, its value the one the form sends */
/* round 967 (owner order of 12 Nov 2026, J): one date component everywhere: "12 Nov 2026", typed in many ways, a small calendar,
   "Add date" for an empty optional date */
.datefield { position: relative; display: inline-flex; align-items: stretch; max-width: 100%; vertical-align: middle; }
.datefield .datefield-text { width: 9.5em; min-width: 0; padding-right: 2.2em; font-variant-numeric: tabular-nums; }
.datefield .datefield-add { display: none; align-self: center; color: var(--act-text); font-size: var(--text-s); text-decoration: none; padding: 6px 0; }
.datefield .datefield-add:hover { text-decoration: underline; }
.datefield.dp-empty .datefield-add { display: inline-block; }
.datefield.dp-empty .datefield-text, .datefield.dp-empty .datefield-pick { display: none; }
/* round 993 (BR-992b): a typed text that reads as no day keeps its field error under the field */
.datefield.dp-bad .datefield-text { border-color: var(--bad); }
.datefield-err { display: block; margin-top: 4px; color: var(--bad); font-size: var(--text-xs); }
.dp-cal { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; width: 16.5rem; padding: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--rc); box-shadow: var(--shadow), 0 8px 24px -12px rgba(20,36,48,.25); font-size: var(--text-s); }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0 0 6px; }
.dp-head .dp-title { font-weight: 600; }
.dp-nav { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--rc); cursor: pointer; color: var(--muted); }
.dp-nav::before { content: ""; width: 7px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-left: 3px; }
.dp-next::before { transform: rotate(-135deg); margin: 0 3px 0 0; }
.dp-nav:hover { background: var(--hover); color: var(--fg); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-grid > .dp-row { display: contents; }        /* round 967b: rows for the screen reader (role row), one grid for the eye */
.dp-nav:focus-visible, .dp-foot [role="button"]:focus-visible { outline: 2px solid var(--act-text); outline-offset: 1px; border-radius: 4px; }
.dp-wd { text-align: center; color: var(--faint); font-size: var(--text-xs); padding: 2px 0; }
.dp-day { display: grid; place-items: center; height: 30px; border-radius: 6px; cursor: pointer; font-variant-numeric: tabular-nums; }
.dp-day:hover { background: var(--hover); }
.dp-day.dp-out { color: var(--faint); }
.dp-day.dp-now { box-shadow: inset 0 0 0 1px var(--line-2); }
.dp-day.dp-on { background: var(--do); color: var(--do-ink); }
.dp-day.dp-at:focus { outline: 2px solid var(--act-text); outline-offset: 0; }
.dp-day.dp-off { color: var(--line); cursor: default; background: none; }
.dp-foot { display: flex; justify-content: space-between; margin: 6px 0 0; padding: 6px 2px 0; border-top: 1px solid var(--line); }
.dp-foot [role="button"] { cursor: pointer; color: var(--act-text); }
.dp-foot [role="button"]:hover { text-decoration: underline; }
@media (max-width: 56rem) { .dp-day { height: 40px; } .dp-cal { width: min(20rem, calc(100vw - 32px)); } }
.datefield .datefield-pick { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 2em; padding: 0; border: 0; background: transparent;
  color: var(--ink-2, #555); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1; }
.datefield .datefield-pick svg { width: 1em; height: 1em; }
.datefield .datefield-real { position: absolute; right: 0; bottom: 0; width: 2em; height: 100%; min-width: 0; padding: 0; margin: 0; border: 0;
  opacity: 0; pointer-events: none; }

/* Round 962 (owner order of 12 Nov 2026, P1, round 1: B the row, C the OK moment): the one bank row (static/reconrow.js) on Bank >
   To reconcile, To do and Bank lines. One fixed grid, every row 56 px and one line: tick, date, payee with the bank text, the proposal
   chip, the receipt, the amount, OK, the menu. On a phone the payee and the chip stack inside the same 56 px. */
.rr { position: relative; }
.rr-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: 0 0 var(--s2); }
.rr-accs { display: flex; flex-wrap: wrap; gap: var(--s1); }
.rr-acc { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: var(--text-s); color: var(--fg); }
.rr-acc[aria-selected="true"] { background: var(--sel); border-color: var(--do); }
.rr-acc b { font-variant-numeric: tabular-nums; margin-left: 2px; }
.rr-q { flex: 1 1 14rem; min-width: 0; max-width: 24rem; }
.rr-tickall { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-s); color: var(--muted); padding-left: 10px; }
.rr-keys { flex-basis: 100%; margin: 0; font-size: var(--text-xs); color: var(--muted); }
.rr-keys-x { border: 0; background: none; padding: 0 6px; color: var(--muted); }
.rr-sel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding: 8px 12px; margin: 0 0 var(--s2); background: var(--sel); border-radius: var(--rc); }
.rr-sel .rr-okall { background: var(--do); border-color: var(--do); color: var(--do-ink); }
.rr-grid { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rc); overflow: hidden; }
/* round 984 (owner order of 13 Nov 2026, N5 and N7): 46 px, one line; date, amount, payee left (the bank's facts), OK in the middle,
   Octobooks' proposal right on a tinted ground (teal: sure; violet: Pick), then the receipt and the menu */
/* round 995 (addendum B1): the proposal side wider (1.6 to 1), the amount column 11ch: the proposal's account name stands in full at 1280 */
.rr-row { display: grid; grid-template-columns: 28px 6.5ch 11ch minmax(0, 1fr) 86px minmax(0, 1.6fr) 34px 32px;
  grid-template-areas: "tick date amt who ok chip clip more"; column-gap: 10px; align-items: center;
  height: 52px; box-sizing: border-box; padding: 0 8px 0 10px; border-top: 1px solid var(--line); background: var(--surface); cursor: default; }
.rr-grid > .rr-row:first-child { border-top: 0; }
.rr-row:hover { background: var(--hover); }
.rr-row.rr-focus { background: var(--sel); box-shadow: inset 3px 0 0 var(--do); outline: none; }
.rr-row:focus-visible { outline: 2px solid var(--do); outline-offset: -2px; }
.rr-c { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 20px; }
.rr-tick { grid-area: tick; display: grid; place-items: center; } .rr-date { grid-area: date; color: var(--muted); font-variant-numeric: tabular-nums; }
.rr-who { grid-area: who; } .rr-chip { grid-area: chip; } .rr-clip { grid-area: clip; display: grid; place-items: center; overflow: visible; }
.rr-amt { grid-area: amt; text-align: right; font-weight: var(--weight-strong); font-variant-numeric: tabular-nums; }
.rr-okc { grid-area: ok; display: grid; place-items: center; overflow: visible; } .rr-more { grid-area: more; display: grid; place-items: center; overflow: visible; }
.rr .untrusted { display: inline; background: none; border: 0; padding: 0; white-space: nowrap; word-break: normal; color: inherit; }
.rr-payee { font-weight: var(--weight-strong); }
.rr .rr-text { color: var(--muted); margin-left: 8px; }
.rr-twin { color: var(--bad); margin-left: 8px; font-size: var(--text-xs); }
.rr-origin { margin-left: 8px; padding: 0 6px; border-radius: 999px; font-size: var(--text-xs); line-height: 18px; color: var(--amber); background: var(--amber-soft); }
.rr-n { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: var(--text-xs); font-variant-numeric: tabular-nums; line-height: 18px; }
.rr-chev { border: 0; background: none; padding: 0 6px 0 0; margin: 0; color: var(--muted); font: inherit; line-height: 20px; height: 20px; min-height: 0; vertical-align: top; }
.rr-n { vertical-align: top; }
.rr-subrow { padding-left: 24px; background: var(--surface-2); }
.rr-sub { display: block; }
.rr-chip { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 6px; box-sizing: border-box; }
.rr-chip.rr-sure { background: var(--do-soft); }
.rr-chip.rr-pick { background: var(--ai-soft, #EFEAFB); }
.rr-cw { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rr-acc-name { color: var(--fg); text-decoration: none; font-weight: var(--weight-strong); }
.rr-acc-name:hover { text-decoration: underline; }
.rr-chip .rr-code, .rd-row .rr-code { color: var(--muted); font-weight: var(--weight-normal, 400); margin-left: 5px; font-size: var(--text-s); }
.rr-chip .rr-code:first-child, .rr-tag + .rr-code { margin-left: 0; }
.rr-always { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); color: var(--muted); cursor: pointer; white-space: nowrap; }
.rr-always input { margin: 0; }
/* round 995 (addendum B1): "Always like this" in full from 1600 px; narrower, its icon with the words as its title (the cut word went) */
.rr-always .rr-al-icon { display: none; font-size: var(--text-s); line-height: 1; color: var(--do); }
@media (max-width: 99.99rem) { .rr-always .rr-al-long { display: none; } .rr-always .rr-al-icon { display: inline; } }
/* round 1008 (pass 4, root fix 6: "Usual" and "Wie bisher" clipped in an 8 px dot under 1600 px): the source tag sizes to its words at
   every width, as Xero's and Stripe's status tags; it never shrinks (the account's name beside it takes the ellipsis) */
.rr-chip .rr-tag { flex: none; white-space: nowrap; }
.rr-pickb { color: var(--fg); border-color: var(--line-2); }
.rr-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; font-size: var(--text-xs); line-height: 18px; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); vertical-align: 1px; }
.rr-tag.t-match, .rr-tag.t-transfer { color: var(--id); border-color: var(--id-soft); background: var(--id-soft); }
.rr-tag.t-booked { color: var(--ok); border-color: var(--ok-soft); background: var(--ok-soft); }
.rr-cs { color: var(--fg); }
.rr-none { color: var(--muted); }
.rr-booked .rr-cs { color: var(--muted); }
.rr-clipb { position: relative; display: inline-flex; align-items: center; gap: 1px; border: 0; background: none; padding: 2px; color: var(--muted); text-decoration: none; line-height: 16px; }
.rr-clipb.has { color: var(--fg); } .rr-clipb.has b { font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.rr-clipb.need { color: var(--line-2); }
.rr-dot { position: absolute; right: -1px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.rr-dash { color: var(--line-2); }
.rr-busy { opacity: .4; }
.rr-ok { min-width: 44px; height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--do); background: var(--surface); color: var(--do);
  font-weight: var(--weight-strong); line-height: 1; }
.rr .rr-ok.primary { background: var(--do); border-color: var(--do); color: var(--do-ink); }      /* a row's own verb: an action (round 728 rule 2) */
.rr .rr-ok.primary:hover { background: var(--do-strong); border-color: var(--do-strong); }
.rr-dots { width: 30px; height: 30px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: var(--text-l); line-height: 1; padding: 0; }
.rr-dots:hover { background: var(--hover); }
.rr-done { font-weight: var(--weight-strong); }
.rr-drop { box-shadow: inset 0 0 0 2px var(--do); }
.rr-why { margin: 0; padding: 4px 12px 8px 48px; font-size: var(--text-s); background: var(--bad-soft); }
.rr-menu { position: fixed; z-index: 60; min-width: 13rem; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rc);
  box-shadow: var(--shadow-pop); display: flex; flex-direction: column; }
.rr-menu button { border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: 6px; font: inherit; color: var(--fg); }
.rr-menu button:hover, .rr-menu button:focus-visible { background: var(--hover); outline: none; }
.rr-menu button .rd-what { display: block; font-size: var(--text-xs); color: var(--muted); }      /* round 1053: what stays, what goes */
.rr-sub-menu { display: flex; flex-direction: column; padding-left: 12px; }
.rr-pick { margin: 4px 10px; }
.rr-foot { margin-top: var(--s2); }
.rr-hform { display: inline; margin: 0; }
.rr-hmenu { position: relative; }
.rr-hpop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column; min-width: 15rem; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--rc); box-shadow: var(--shadow-pop); }
.rr-hpop .rr-hform button { width: 100%; border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: 6px; font: inherit; color: var(--fg); }
.rr-hpop .rr-hform button:hover { background: var(--hover); }
.rr-grid:empty { display: none; }      /* round 984 (N1): a list with nothing to reconcile draws no empty box; the green line stands at once */
.rr-grid:empty + .rr-foot { margin-top: 0; }
.rr-more-p { margin: var(--s2) 0 0; }
.rr-pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s2); font-size: var(--text-s); }
.rr-pager .rr-range { color: var(--muted); font-variant-numeric: tabular-nums; }
.rr-empty { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding: 18px 16px; background: var(--ok-soft); border-radius: var(--rc); color: var(--fg); }
.rr-check { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: var(--surface); font-weight: var(--weight-strong); }
.rr-toast { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 14px; max-width: min(36rem, calc(100vw - 32px));
  padding: 10px 12px 10px 16px; border-radius: 8px; background: var(--fg); color: var(--bg); box-shadow: var(--shadow-pop); }
.rr-toast[hidden] { display: none; }
.rr-undo { border: 1px solid var(--bg); background: transparent; color: var(--bg); border-radius: 6px; padding: 4px 10px; font: inherit; text-decoration: none; }
/* the OK moment: a check on the button for 150 ms, the row tinted green, then it folds to nothing in 220 ms and the rows below move up */
/* Later on a To do card: one button, its days in a small menu (no date field in the row) */
.later-menu { position: relative; display: inline-block; }
.later-menu > summary { list-style: none; cursor: pointer; } .later-menu > summary::-webkit-details-marker { display: none; }
.later-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column; gap: 4px; min-width: 12rem; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--rc); box-shadow: var(--shadow-pop); }
.later-pop form { display: flex; gap: 6px; align-items: center; margin: 0; } .later-pop form .btn { flex: 1 1 auto; text-align: left; }
.b6-panel { padding: 8px 10px 12px; background: var(--surface-2); border-top: 1px solid var(--line); }
/* Round 963 (order of 12 Nov 2026, round 2): the change panel under a row (static/reconpanel.js): tabs Create, Match, Transfer, Split;
   fields in one grid that wraps on a phone; Match lists what the line may pay, one line each, with the running total and the difference */
.rp { padding: 10px 12px 14px 48px; background: var(--surface-2); border-top: 1px solid var(--line); }
/* round 1053 (order of 19 Nov 2026, item 21: the row's OK and the panel's OK looked the same and a person pressed the wrong one): while
   its panel is open, the row has no OK of its own; the panel's OK is the one OK of that line. The row stays marked as the line chosen */
.rr-row:is(:has(+ .rp:not([hidden])), :has(+ .rr-why + .rp:not([hidden]))) .rr-ok { visibility: hidden; }
/* round 1137 (AI review of 22 Nov 2026, Hartsgill Chutney, item 1: Match pressed in the open panel took another line's Match above it):
   while a line's panel is open, the one Match or OK is the panel's; the other rows show theirs again when it closes */
.rr-grid:has(.rp:not([hidden])) .rr-row:not(.rr-settled) .rr-ok { visibility: hidden; }
.rr-row:is(:has(+ .rp:not([hidden])), :has(+ .rr-why + .rp:not([hidden]))) { background: var(--sel); box-shadow: inset 3px 0 0 var(--do); }
.rp-line-of { display: none; margin: 0 0 8px; color: var(--muted); }
:root.bs-on .rp.bs-detail .rp-line-of { display: block; }
.rp-head { display: flex; align-items: center; gap: var(--s2); margin: 0 0 10px; }
/* round 1068 (Larkspur order, Design "Hard" 1: Create, Match, Transfer and Split stood as four pill buttons over a second layer of
   boxes): the ways are quiet words with a line under the one chosen, as Xero's reconcile names them */
.rp-tabs { display: flex; flex-wrap: wrap; gap: 0 18px; flex: 1 1 auto; }
.rp-tab { border: 0; border-bottom: 2px solid transparent; background: none; border-radius: 0; padding: 2px 0 4px; font: inherit; font-size: var(--text-s);
  color: var(--muted); cursor: pointer; }
.rp-tab:hover { color: var(--fg); }
.rp-tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--do); font-weight: var(--weight-strong); }
/* round 1068: Xero's one row editor: Account, Contact, Tax rate, Description and OK in one row, the fields named by their placeholders */
.rp-grid.rp-one { grid-template-columns: minmax(11rem, 1.3fr) minmax(10rem, 1.2fr) minmax(9rem, 1fr) minmax(10rem, 1.3fr) auto; }
.rp-one .rp-f > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rp-one .rp-acts-one { margin: 0; flex-wrap: nowrap; }
.rp-acts.rp-sub { margin-top: 6px; gap: 6px 16px; font-size: var(--text-s); }
.rp-sub .btn { min-height: 0; padding: 2px 10px; font-size: var(--text-s); }
.rp-sub .rp-drop { margin: 0; padding: 0; border: 0; border-radius: 0; }
.rp-x { border: 0; background: none; color: var(--muted); font-size: var(--text-l); line-height: 1; padding: 2px 8px; }
.rp-note { margin: 0 0 6px; font-size: var(--text-s); color: var(--muted); }
.rp-twin, .rp-none { color: var(--muted); }
.rp-ways { margin: 0 0 8px; font-size: var(--text-s); } .rp-ways ul { margin: 4px 0; padding-left: 18px; }
.rp-grid, .rp-find { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 8px 12px; align-items: end; }
.rp-find { grid-template-columns: minmax(12rem, 2fr) repeat(4, minmax(7rem, 1fr)); }
.rp-find[hidden], .rp-says[hidden], .rp-findall[hidden] { display: none; }
/* round 995 (addendum B5): the sentence over the suggestions, and Search all N open items under them */
.rp-says { margin: 0 0 8px; font-size: var(--text-s); }
.rp-says .untrusted { display: inline; background: none; border: 0; padding: 0; font-weight: var(--weight-strong); color: inherit; }
button.rp-findall.linkish { display: inline-block; margin: 6px 0 2px; padding: 0; font-size: var(--text-s); color: var(--act-text); }
.rp-f { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rp-f label { font-size: var(--text-xs); color: var(--muted); }
.rp-f input, .rp-f select { width: 100%; min-width: 0; box-sizing: border-box; }
.rp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.rp .rp-ok.primary { background: var(--do); border-color: var(--do); color: var(--do-ink); }
.rp .rp-ok[disabled] { opacity: .5; }
.rp-rule { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-s); color: var(--muted); }
.rp-link { border: 0; background: none; padding: 0; color: var(--do); font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rp-link.on { font-weight: var(--weight-strong); text-decoration: none; }
.rp-drop { margin-top: 10px; padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: var(--rc); font-size: var(--text-s); color: var(--muted); }
.rp-drop.has { border-style: solid; color: var(--fg); }
.rp-drop.rr-drop { box-shadow: inset 0 0 0 2px var(--do); }
.rp-err { margin: 8px 0 0; padding: 4px 8px; border-radius: 6px; background: var(--bad-soft); font-size: var(--text-s); }
.rp-list { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rc); max-height: 22rem; overflow-y: auto; }
/* round 1017 (owner order of 18 Nov 2026, point 1): Tick, Date, Type, Number in full, Contact in full (two lines at most), Amount; the
   badges Amount and Number under them, the amount to allocate only under a ticked row */
.rp-row { display: grid; grid-template-columns: 24px 6.5ch 6.5rem 13ch minmax(0, 1fr) 12ch; column-gap: 10px; row-gap: 2px; align-items: center;
  min-height: 52px; box-sizing: border-box; padding: 6px 10px; border-top: 1px solid var(--line); cursor: pointer; }
.rp-row:first-child { border-top: 0; }
.rp-row:hover { background: var(--hover); }
.rp-row > span { min-width: 0; }
.rp-row .untrusted { display: inline; background: none; border: 0; padding: 0; color: inherit; }
.rp-d { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-type { font-size: var(--text-s); color: var(--muted); line-height: 1.2; }
.rp-row .rp-no { overflow-wrap: anywhere; white-space: normal; font-variant-numeric: tabular-nums; }
.rp-row .rp-who { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; white-space: normal; line-height: 1.25; }
.rp-open { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-take { width: 11ch; min-width: 0; box-sizing: border-box; text-align: right; }
/* round 982 (N13), round 1017: why a suggestion is listed, as small badges: Amount, Number, Contact */
.rp-why { grid-column: 4 / -1; display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--text-xs); color: var(--muted); }
.rp-r { flex: none; padding: 0 6px; border-radius: 999px; background: var(--hover); line-height: 18px; }
.rp-r.hit { background: var(--ok-soft); color: var(--good); font-weight: var(--weight-strong); }
/* round 1073b (design review 1, item 35): the split's OK stays in view at the foot of the screen while its lines are typed */
.rp-pane .rp-acts:has(> .rp-ok-split) { position: sticky; bottom: 0; background: var(--surface); padding: 6px 0; z-index: 2; }
.rp-line .rp-del { font-size: var(--text-s); }
/* round 1073 (order of 20 Nov 2026, item 1): a split's trade debtors or creditors line ticks what it pays, under the lines */
.rp-trade { margin-top: 10px; } .rp-trade[hidden] { display: none; }
.rp-tq { width: 100%; max-width: 24rem; box-sizing: border-box; margin: 4px 0 6px; }
.rp-tsay { grid-column: 4 / -1; justify-self: end; font-size: var(--text-s); color: var(--muted); }
.rp-alloc { grid-column: 4 / -1; justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-s); color: var(--muted); }
.rp-alloc[hidden] { display: none; }
.rp-none { margin: 0; padding: 10px 12px; }
.rp-sum { margin: 8px 0 0; font-variant-numeric: tabular-nums; font-weight: var(--weight-strong); }
.rp-sum.off, .rp-left.off { color: var(--amber); }
.rp-diff { display: grid; grid-template-columns: auto minmax(11rem, 1.4fr) minmax(8rem, 1fr) minmax(8rem, 1fr); gap: 8px 12px; align-items: end; margin-top: 8px;
  padding: 8px 10px; border-radius: var(--rc); background: var(--surface); border: 1px solid var(--line); }
.rp-diff[hidden] { display: none; }
.rp-dsay { align-self: center; font-weight: var(--weight-strong); font-variant-numeric: tabular-nums; }
.rp-quick { grid-column: 1 / -1; font-size: var(--text-s); }
.rp-part { margin: 6px 0 0; font-size: var(--text-s); font-variant-numeric: tabular-nums; }      /* round 970: a part payment's small rest */
.rp-part[hidden] { display: none; }
.rp-twin { margin: 8px 0 0; }
.rp-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.rp-line { display: grid; grid-template-columns: minmax(10rem, 1.4fr) minmax(8rem, 1.2fr) minmax(8rem, 1fr) 9ch 5.5rem; gap: 8px; align-items: center; }
.rp-line input, .rp-line select { width: 100%; min-width: 0; box-sizing: border-box; }
.rp-total { margin: 8px 0 0; font-size: var(--text-s); }
/* round 1137 (item 1): the bank's fee beside a bill in another currency, account and amount on the line of its link */
.rp-feep { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; }
.rp-feep[hidden], .rp-fee[hidden] { display: none; }
.rp-fee { display: grid; grid-template-columns: minmax(11rem, 1.4fr) minmax(7rem, 0.8fr); gap: 8px 12px; align-items: end; flex: 1 1 22rem; }
/* round 1053 (item 35): the split's column heads over its lines, and the net, VAT and gross of the lines under them */
.rp-lhead { display: grid; grid-template-columns: minmax(10rem, 1.4fr) minmax(8rem, 1.2fr) minmax(8rem, 1fr) 9ch 5.5rem; gap: 8px; margin-top: 10px;
  font-size: var(--text-xs); color: var(--muted); }
.rp-lhead + .rp-lines { margin-top: 4px; }
.rp-sums { margin: 4px 0 0; font-size: var(--text-s); font-variant-numeric: tabular-nums; color: var(--muted); }
.rp-left { font-variant-numeric: tabular-nums; font-weight: var(--weight-strong); }
@media (max-width: 40rem) {
  .rp { padding: 10px 8px 12px; }
  .rp-grid.rp-one { grid-template-columns: 1fr; }                     /* round 1068: one field under the other, OK last */
  .rp-tab { min-height: 44px; } .rp-sub .btn, .rp-sub .rp-link, .rp-sub .rp-rule { min-height: 44px; }
  .rp-find { grid-template-columns: 1fr 1fr; } .rp-find .rp-f:first-child { grid-column: 1 / -1; }
  /* round 1017: on a phone each candidate is a small card: Number and Type, the Contact under them, the Amount at the right */
  .rp-row { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "tick no amt" "tick who who" ". ty d" ". why why" ". al al"; min-height: 56px; }
  .rp-row > input[type="checkbox"] { grid-area: tick; align-self: start; margin-top: 2px; width: 22px; height: 22px; }
  .rp-row .rp-type { grid-area: ty; font-size: var(--text-xs); } .rp-row .rp-d { grid-area: d; font-size: var(--text-xs); text-align: right; }
  .rp-row .rp-no { grid-area: no; font-weight: var(--weight-strong); } .rp-row .rp-who { grid-area: who; }
  .rp-row .rp-open { grid-area: amt; } .rp-row .rp-why { grid-area: why; } .rp-row .rp-alloc, .rp-row .rp-tsay { grid-area: al; }
  .rp-diff { grid-template-columns: 1fr; }
  .rp-line { grid-template-columns: 1fr 9ch 5.5rem; } .rp-line .rp-ldesc, .rp-line select, .rp-line .rp-tax { grid-column: 1 / -1; }
  .rp-lhead { grid-template-columns: 1fr 9ch 5.5rem; } .rp-lhead .rp-h-desc, .rp-lhead .rp-h-tax { display: none; }
}
.rr-row.rr-okd { background: var(--ok-soft); }
.rr-row.rr-okd .rr-ok { background: var(--ok); border-color: var(--ok); color: var(--surface); font-size: 0; }
.rr-row.rr-okd .rr-ok::after { content: "✓"; font-size: var(--text-l); }
/* round 1065 (Larkspur review, item 3): a row booked while the pointer is on the list stays where it stood: green, what it was booked to
   over its proposal, its own Undo in place of OK; the rows booked fold away together once the pointer leaves the list */
.rr-row.rr-settled .rr-ok, .rr-row.rr-settled .rr-dots, .rr-row.rr-settled .rr-tick input, .rr-row.rr-settled .rr-always { visibility: hidden; }
.rr-row .rr-stub { grid-area: chip; z-index: 1; align-self: stretch; display: flex; align-items: center; padding: 0 8px; border-radius: 6px;
  background: var(--ok-soft); color: var(--fg); font-weight: var(--weight-strong); }
.rr-row .rr-stub::before { content: "✓ "; color: var(--ok); margin-right: 4px; }
.rr-row .rr-okc .rr-undo1 { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; box-sizing: border-box; width: 72px; height: 32px;
  min-height: 0; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg); font: inherit;
  font-size: var(--text-s); cursor: pointer; }
.rr-okc:has(.rr-undo1) { position: relative; }
.rr-row .rr-undo1:hover { background: var(--hover); }
.rr-row .rr-undo1[hidden] { display: none; }
/* round 1065 (Larkspur review, item 8): the month end entries, every one in view, never folded under More */
.me-entries { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s2); }
/* round 1065 (item 10): the difference in parts, one line each (account, amount, tax rate) */
.rp-dlines { display: contents; }
.rp-diff.rp-dmany { grid-template-columns: auto minmax(11rem, 1.4fr) minmax(7rem, 0.8fr) minmax(8rem, 1fr) minmax(8rem, 1fr); }
.rp-diff.rp-dmany .rp-dline { grid-column: 2 / -1; grid-template-columns: minmax(11rem, 1.4fr) minmax(7rem, 0.8fr) minmax(8rem, 1fr) 32px; }
.rp-dline { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(11rem, 2fr) minmax(7rem, 1fr) minmax(9rem, 1.4fr) 32px; gap: 8px 12px; align-items: end; }
.rp-dline .rp-dx { align-self: end; height: 32px; }
.rp-drest { grid-column: 1 / -1; margin: 4px 0 0; font-size: var(--text-s); color: var(--amber); }
.rp-dmore { grid-column: 1 / -1; }
@media (max-width: 40rem) { .rp-dline { grid-template-columns: 1fr 9ch 32px; } .rp-dline .rp-f:has(select) { grid-column: 1 / -1; } }
/* round 1065 (item 7): the toast lets clicks through to a row under it while the pointer is there */
.rr-toast { transition: opacity 120ms linear; }
.rr-toast.rr-toast-thru { opacity: 0.15; pointer-events: none; }
.rr-leaving { overflow: hidden; opacity: 0; transition: height 220ms ease-in, opacity 220ms ease-in, padding 220ms ease-in, border-color 220ms ease-in; border-top-color: transparent; }
.rr-back { overflow: hidden; transition: height 220ms ease-out, opacity 220ms ease-out; }
@media (prefers-reduced-motion: reduce) {
  .rr-leaving, .rr-back { transition: opacity 220ms linear; }
}
@media (max-width: 40rem) {
  /* round 984 (N5, N7 on a phone): two lines inside the same 46 px: date, amount, payee on top; the proposal under them; OK and
     the menu the row's height; every row the same height, nothing scrolls sideways */
  .rr-row { grid-template-columns: 24px 6ch 11ch minmax(0, 1fr) 24px 80px 28px; grid-template-rows: 22px 20px; align-content: center;
    grid-template-areas: "tick date amt who who ok more" "tick chip chip chip clip ok more"; column-gap: 6px; row-gap: 1px; padding: 0 4px 0 6px; }
  .rr-row .rr-c { line-height: 22px; }
  .rr-chip { font-size: var(--text-xs); height: 20px; line-height: 20px; padding: 0 6px; }
  .rr-date { font-size: var(--text-xs); }
  .rr .rr-text.untrusted { display: none; }
  .rr-subrow { padding-left: 14px; }
  .rr-ok { min-width: 40px; height: 40px; padding: 0 6px; }      /* a finger's target, inside the 46 px row */
  .rr-dots { height: 40px; }
  .rr-always .rr-al-long { display: none; } .rr-always .rr-al-icon { display: inline; }
  .rr-q { max-width: none; flex-basis: 100%; }
  .rr-toast { left: 8px; right: 8px; bottom: 72px; max-width: none; }
}

/* Round 964 (owner order of 12 Nov 2026, round 3: A Bank home, E Reconciled): the account cards above the tabs (the balance the bank
   gave, the balance in the books, what is left to reconcile, how the lines come in), and the Reconciled tab in the grid of the bank
   row: date, payee, booked to, by with the time, the receipt, the amount, the menu. Every row 56 px and one line, as To reconcile. */
.b6-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 8px; margin: 0 0 var(--s3); }
.b6-card { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--rc);
  background: var(--surface); color: var(--fg); text-decoration: none; }
.b6-card:hover { background: var(--hover); }
.b6-card.on { border-color: var(--do); box-shadow: inset 0 0 0 1px var(--do); background: var(--sel); }
.b6-card-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.b6-card-row { display: flex; flex-wrap: wrap; column-gap: 6px; align-items: baseline; justify-content: space-between; min-width: 0; font-size: var(--text-s); white-space: nowrap; }
.b6-card-row .num { font-variant-numeric: tabular-nums; }      /* a figure is never cut: it takes the next line where it does not fit */
.b6-card-n { font-weight: var(--weight-strong); font-variant-numeric: tabular-nums; color: var(--do); }
.b6-card-n.zero { color: var(--ok); }
.b6-card-feed { margin-left: auto; }
.b6-card-more summary { cursor: pointer; list-style: none; }
.b6-card-more a { display: block; padding: 4px 0; font-size: var(--text-s); color: var(--fg); text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.b6-card-more a:hover { text-decoration: underline; }
.b6-tab-link { color: var(--fg); font-weight: 600; padding: 6px 14px; min-height: 36px; border: 1px solid var(--line-2); border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; }
.b6-tab-link:hover { background: var(--hover); }
.b6-stm { margin-top: var(--s2); }
/* round 1032 (design probe at 1100: Bank > Statements 84 px wider than the window, EN, 20 px DE): the statements part takes the
   bar's whole width and no more; its tables (accounts with Holder, Last reconciled, Ending balance and their actions; the statements
   imported) wrap their words in the cells, a cell's buttons too */
:root main .b6-stm { flex: 1 1 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
:root main .b6-stm table.kit :is(td, th):not(.num) { white-space: normal; }
:root main .b6-stm table.kit td:last-child { white-space: normal; }
:root main .b6-stm table.kit td:last-child :is(a.btn, button.btn) { margin: 2px 0; }
:root main .b6-stm table.kit { max-width: 100%; }
.rd .rr-row { grid-template-columns: 6.5ch 13ch minmax(0, 1fr) 16ch minmax(0, 1.25fr) 34px 32px;      /* round 984 (N7): date, amount, payee first */
  grid-template-areas: "date amt who by chip clip more"; cursor: pointer; }
.rd-by { grid-area: by; display: flex; gap: 6px; align-items: center; }
.rd-by .rr-tag { margin: 0; overflow: hidden; text-overflow: ellipsis; max-width: 10ch; }
.rd-at { color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--text-s); }
.rr-tag.t-you { color: var(--do); border-color: var(--sel); background: var(--sel); }
.rr-tag.t-rule, .rr-tag.t-match { color: var(--id); border-color: var(--id-soft); background: var(--id-soft); }
.rr-tag.t-ai { color: var(--ok); border-color: var(--ok-soft); background: var(--ok-soft); }
/* round 969 (order N): a proposal pushed in by a source (an app's key, the customer's AI) carries the source's name as its tag */
.rr-tag.t-source { color: var(--id); border-color: var(--id-soft); background: var(--id-soft); max-width: 16ch; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.rd-head { gap: var(--s2); }
.rd-head select, .rd-head input[type="date"] { min-height: 36px; }
.rd-today[aria-pressed="true"] { background: var(--sel); border-color: var(--do); }
.rd-dates { display: inline-flex; align-items: center; gap: 4px; }
.rd-change { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px 10px 48px; background: var(--surface-2); border-top: 1px solid var(--line); }
.rd-change .rd-acc { flex: 1 1 14rem; max-width: 24rem; }
.rd-empty { padding: 14px 12px; }
/* Round 965 (owner order of 12 Nov 2026, round 4: F Account transactions, Find and recode): one account's lines in the grid of the
   bank row (56 px, one line): tick, date, contact with the description, source, the other account (its code opens its transactions),
   receipt, debit, credit, balance, the menu. The totals line above; the selection bar and the recode fields under the filters. */
.ax .rr-row { grid-template-columns: 28px 8.5ch minmax(0, 1.3fr) 9ch minmax(0, 1fr) 34px 11ch 11ch 12ch 32px;
  grid-template-areas: "tick date who src chip clip dr cr bal more"; cursor: pointer; }
.ax-src { grid-area: src; } .ax-src .rr-tag { margin: 0; }
.ax-dr { grid-area: dr; } .ax-cr { grid-area: cr; } .ax-bal { grid-area: bal; color: var(--muted); }
.ax-dr, .ax-cr, .ax-bal { text-align: right; font-variant-numeric: tabular-nums; }
.ax .ax-amt { display: none; }
.ax-row.ax-fix .rr-payee { font-weight: var(--weight-normal, 400); }
.rr-code { font-variant-numeric: tabular-nums; color: var(--do); text-decoration: none; font-weight: var(--weight-strong); }
.rr-code:hover { text-decoration: underline; }
.rr-tag.t-bank, .rr-tag.t-invoice, .rr-tag.t-bill { color: var(--id); border-color: var(--id-soft); background: var(--id-soft); }
.rr-tag.t-payroll { color: var(--amber); border-color: var(--amber-soft); background: var(--amber-soft); }
.ax-head .ax-acc { flex: 1 1 16rem; min-width: 0; max-width: 26rem; }
.ax-head select, .ax-head input[type="date"], .ax-filters select { min-height: 36px; }
.ax-filters .ax-contact { flex: 0 1 12rem; min-width: 0; } .ax-filters .ax-min, .ax-filters .ax-max { flex: 0 1 7rem; width: 7rem; min-width: 0; }
.ax-sum { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 var(--s2); font-size: var(--text-s); color: var(--muted); }
.ax-sum b { color: var(--fg); font-variant-numeric: tabular-nums; }
.ax-sum .ax-acct { flex-basis: 100%; font-size: var(--text-m, 1rem); }
.ax-recode { padding: 10px 12px 12px; margin: 0 0 var(--s2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--rc); }
.ax-preview { margin: 10px 0 0; font-weight: var(--weight-strong); font-variant-numeric: tabular-nums; }
.ax-refused { margin: 4px 0 0; font-size: var(--text-s); }
@media (max-width: 64rem) {
  .ax .rr-row { grid-template-columns: 28px 8.5ch minmax(0, 1.3fr) minmax(0, 1fr) 34px 11ch 11ch 32px; grid-template-areas: "tick date who chip clip dr cr more"; }
  .ax .ax-src, .ax .ax-bal { display: none; }
}
@media (max-width: 40rem) {
  .ax .rr-row { grid-template-columns: 24px minmax(0, 1fr) 24px auto 28px; grid-template-rows: 22px 20px;
    grid-template-areas: "tick who clip amt more" "tick chip chip date more"; padding: 0 4px 0 6px; }
  .ax .ax-dr, .ax .ax-cr { display: none; }
  .ax .ax-amt { display: block; grid-area: amt; }
  .ax-filters .ax-contact, .ax-filters .ax-min, .ax-filters .ax-max { flex: 1 1 30%; width: auto; }
  .ax-head .ax-acc { flex-basis: 100%; max-width: none; }
}
@media (max-width: 40rem) {
  .b6-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b6-card-feed, .b6-card-row .num .muted { display: none; }
  .rd .rr-row { grid-template-columns: minmax(0, 1fr) auto auto 28px; grid-template-rows: 22px 20px; column-gap: 8px;
    grid-template-areas: "who clip amt more" "chip by date more"; padding: 0 4px 0 10px; }
  .rd .rr-row .rd-by { justify-self: end; }
  .rd .rr-row .rd-at { display: none; }
  .rd-head .rd-q { flex-basis: 100%; }
  .rd-change { padding-left: 12px; }
}

/* Round 967 (owner order of 12 Nov 2026, P1 "bank core like Xero", I: page proportions on every page). One header row of 56 px: the
   title 20 px (round 978, N2; was 24) semibold on the left, the page's actions on the right in the same row (its one next action, Ask AI as an icon, the pin,
   Excel). Back only on a detail page, as a breadcrumb in front of the title (static/nav.js); the content starts within 80 px of the
   top bar. A detail page's date and amount stand as a grey line under its title (p.ph-sub). No 60 px titles, in Simple neither. */
:root, :root[data-view="simple"] { --h1: var(--t20); }        /* round 978 (N2): the page title 20 px */
:root main h1, :root[data-view="simple"] main h1 { font-size: var(--h1); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
:root main, :root[data-view="simple"] main { padding-top: 8px; }
.ph-js main > a.back { display: none !important; }
:root main .page-head, :root[data-view="simple"] main .page-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 56px; margin: 0 0 12px; padding: 0; }
:root main .page-head > h1, :root[data-view="simple"] main .page-head > h1 {
  flex: 0 1 auto; min-width: min(12rem, 100%); margin: 0 auto 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* round 1004 (night suite, test_r978 N1): 14rem held 224 px for "Bank", so the German Bank head (November wie bisher buchen, Kontoauszug
   importieren, Abstimmen, Mehr, KI fragen, the pin) put Excel on a second row and the first bank row fell to y 274; 12rem keeps one row */
:root main .page-head > :not(h1):not(.crumb):not(.ph-sub) { flex: none; margin: 0; }
:root main .page-head > .next-act { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; white-space: nowrap; }
:root main .page-head > .next-act > span { color: var(--muted); font-size: var(--text-s); }
:root main .page-head .btn, :root main .page-head button { min-height: 36px; }
main .page-head > a.crumb { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 4px 0 0; color: var(--muted);
  font-size: var(--text-m); font-weight: 500; white-space: nowrap; text-decoration: none; }
main .page-head > a.crumb::after { content: ""; width: 6px; height: 6px; border-top: 1.5px solid var(--faint); border-right: 1.5px solid var(--faint); transform: rotate(45deg); }
main .page-head > a.crumb:hover { color: var(--fg); }
main .page-head > a.crumb:hover::after { border-color: var(--fg); }
main .page-head.has-sub { flex-wrap: wrap; row-gap: 0; align-content: center; }
main .page-head > .ph-sub { order: 9; flex: 0 0 100%; margin: -2px 0 0; color: var(--muted); font-size: var(--text-s); line-height: 1.4; }
#audit-log { overflow-x: auto; }           /* round 967: the audit log's long changes scroll in their box, never the page (390 wide) */
.ask-ai { display: inline-flex; align-items: center; gap: 6px; }
.ask-ai .ask-i { width: 18px; height: 18px; flex: none; }
:root main .page-head .ask-ai { width: 36px; padding: 0; justify-content: center; }
main .page-head .ask-ai .ask-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* round 995 (addendum B2, N9): Excel in a page head is the outlined icon at the right (its word for the screen reader, its title on hover) */
:root main .page-head > .xl-btn, :root main .page-head > form.xlsx .xl-btn { width: 36px; min-width: 36px; padding: 0; justify-content: center; position: relative; }
main .page-head > .xl-btn .xl-t, main .page-head > form.xlsx .xl-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (pointer: coarse) { :root main .page-head > .xl-btn, :root main .page-head > form.xlsx .xl-btn { width: 44px; min-width: 44px; } }
:root main .page-head > .ai-on { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 56rem) {
  :root main, :root[data-view="simple"] main { padding-top: 4px; }
  :root main .page-head, :root[data-view="simple"] main .page-head { gap: 6px; margin-bottom: 10px; }
  :root main .page-head, :root[data-view="simple"] main .page-head { flex-wrap: wrap; row-gap: 6px; }
  :root main .page-head > h1, :root[data-view="simple"] main .page-head > h1 { flex: 1 1 0; min-width: 45%; margin-right: 0; }
  :root main .page-head > .next-act > span { display: none; }
  :root main .page-head > .next-act { flex: 0 1 auto; min-width: 0; max-width: 100%; flex-wrap: wrap; white-space: normal; gap: 6px; }
  :root main .page-head > .ai-on { max-width: 7rem; }
  main .page-head > a.crumb { position: relative; gap: 0; min-width: 44px; min-height: 44px; margin-left: -10px; justify-content: center; }
  /* round 993b: the chevron only; the name stays for the screen reader (clipped, not a font size of 0) */
  main .page-head > a.crumb > .crumb-name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  :root main .page-head, :root[data-view="simple"] main .page-head { flex-wrap: nowrap; }
  :root main .page-head.has-sub, :root[data-view="simple"] main .page-head.has-sub { flex-wrap: wrap; }
  :root main .page-head > h1, :root[data-view="simple"] main .page-head > h1 { min-width: 0; }
  :root main .page-head > .next-act { flex-wrap: nowrap; }
  /* round 987 (live fault, test_v6_de_at): a long label ("November wie bisher buchen") was cut to an ellipsis at 390 px; it wraps to a
     second line inside the same width instead, every word readable */
  :root main .page-head > .next-act .btn { max-width: 9.5rem; overflow: visible; white-space: normal; line-height: 1.2; text-align: center;
    padding-top: 4px; padding-bottom: 4px; }
  :root main .page-head.has-sub { row-gap: 0; }
  main .page-head.has-sub > a.crumb { min-height: 36px; }
  main form.bar > div { min-width: 0; max-width: 100%; }
  main form.bar select { max-width: 100%; }               /* a long name in a filter (Audit log, Who) never widens the page */
  main .page-head > details.ph-more { position: relative; flex: none; }
  main .page-head > details.ph-more > summary { list-style: none; cursor: pointer; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center;
    justify-content: center; padding: 0; font-size: var(--text-l); }
  main .page-head > details.ph-more > summary::-webkit-details-marker { display: none; }
  main .page-head > details.ph-more > summary::after { content: none; }
  main .page-head > details.ph-more > .acts-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column;
    align-items: stretch; gap: 8px; min-width: 13rem; padding: 12px; background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: var(--rc); box-shadow: var(--shadow); }
  main .page-head > details.ph-more > .acts-pop .btn, main .page-head > details.ph-more > .acts-pop button { width: 100%; text-align: left; min-height: 44px; }
  main .page-head > details.ph-more > .acts-pop form { margin: 0; }
  main .page-head > a.crumb::after { transform: rotate(-135deg); width: 8px; height: 8px; border-width: 2px; }
}

/* Round 968 (owner order of 12 Nov 2026, P1 "bank core like Xero", K: New journal). Narration and Date in the header row with the
   templates under its More (⋯); Reference, amounts, currency, "Reverse on…" and a small paperclip in one quiet row; the lines grid one
   line each; a sticky footer with Add a line, the out of balance figure in amber until it is nothing, Save as draft and Post (green,
   the palette's colour of done: no purple on this page). */
.jn-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
:root main .page-head:has(> .ph-fields) > h1 { margin-right: 12px; flex: none; }
:root main div.page-head > div.ph-fields.ph-fields:not(.crumb):not(.ph-sub) { flex: 1 1 28rem; min-width: 0; margin: 0 auto 0 0; }
.jn-hrow { display: flex; align-items: center; gap: 8px; }
.jn-hrow > div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.jn-hrow label { font-size: var(--text-s); color: var(--muted); white-space: nowrap; }
.jn-hrow .jn-narr { flex: 1 1 18rem; } .jn-hrow .jn-narr input { flex: 1 1 auto; width: 100%; min-width: 8rem; box-sizing: border-box; height: 36px; }
.jn-hrow .jn-day .datefield-text { height: 36px; }
.jn-more { position: relative; flex: none; }
.jn-more > summary { list-style: none; cursor: pointer; min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; font-size: var(--text-l); line-height: 1; }
.jn-more > summary::-webkit-details-marker { display: none; }
.jn-more > summary::after { content: none !important; }
.jn-more > .jn-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 40; display: flex; flex-direction: column; gap: 12px; width: 20rem;
  max-width: calc(100vw - 24px); padding: 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--rc); box-shadow: var(--shadow-pop);
  white-space: normal; }
.jn-pop > div { display: flex; flex-direction: column; gap: 4px; } .jn-pop label { font-size: var(--text-s); color: var(--muted); }
.jn-pop input { width: 100%; box-sizing: border-box; } .jn-pop .jn-save-row { display: flex; gap: 6px; } .jn-pop .jn-save-row input { flex: 1 1 auto; min-width: 0; }
.jn-pop .jn-n2l { font-size: var(--text-s); } .jn-pop p { margin: 0; font-size: var(--text-s); }
form.jn { max-width: 72rem; }
form.jn .jn-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 8px; }
form.jn .jn-opts > div { display: flex; align-items: center; gap: 6px; min-width: 0; }
form.jn .jn-opts label { font-size: var(--text-s); color: var(--muted); white-space: nowrap; }
form.jn .jn-opts #jn-ref { width: 9rem; height: 32px; } form.jn .jn-opts select { height: 32px; }
form.jn .jn-rev:has(.datefield.dp-empty) > label { display: none; }
form.jn .jn-files { gap: 6px; }
form.jn .jn-clip { display: inline-flex; align-items: center; gap: 2px; min-width: 32px; height: 32px; justify-content: center; border-radius: 6px; color: var(--muted);
  cursor: pointer; font-size: var(--text-s); }
form.jn .jn-clip:hover { background: var(--hover); color: var(--fg); }
form.jn .jn-clip-n { font-variant-numeric: tabular-nums; color: var(--fg); }
form.jn .jn-file-names { font-size: var(--text-s); color: var(--fg); max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
form.jn .jn-file { font-size: var(--text-s); white-space: nowrap; }
form.jn #jn-file:focus-visible + .jn-file-names, form.jn .jn-files:focus-within .jn-clip { box-shadow: var(--focus); }
form.jn table.jn-lines tr.jn-line td { height: 40px; white-space: nowrap; }
form.jn table.jn-lines input, form.jn table.jn-lines select { height: 32px; }
form.jn table.jn-lines tr.jn-total td { height: 40px; }
form.jn .jn-foot { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 0; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--rc); box-shadow: 0 -6px 18px -14px rgba(20, 36, 48, .35); }
form.jn .jn-foot .jn-gap { flex: 1 1 auto; }
form.jn .jn-oob { font-size: var(--text-s); color: var(--amber); font-variant-numeric: tabular-nums; white-space: nowrap; }
form.jn .jn-oob b { color: var(--amber); font-weight: var(--weight-strong); }
form.jn .jn-oob.zero { color: var(--ok); }
:root form.jn .jn-foot #jn-draft { background: var(--surface); border: 1px solid var(--do); color: var(--do); }
:root form.jn .jn-foot #jn-draft:hover { background: var(--do-soft); }
:root form.jn .jn-foot #jn-post { background: var(--green); border-color: var(--green); color: #fff; min-width: 6rem; }
:root form.jn .jn-foot #jn-post:hover:not(:disabled) { background: #256A29; border-color: #256A29; }
:root form.jn .jn-foot #jn-post:disabled { opacity: .45; }
:root form.jn .jn-foot .jn-add { background: var(--surface); border: 1px solid var(--line); color: var(--fg); }
/* round 1144 (Greyfinch review, item 1): why Post did not post, the sticky footer's first row */
form.jn .jn-foot .post-why { margin: 0; }
form.jn .post-why.post-top { margin: 0 0 8px; color: var(--bad); }
/* Round 968 (order O): Journals in the grid of the money lists: one line each, 56 px, ellipsis, the clip and the account chip */
.scroll.jl-wrap { overflow: visible; }
table.jl-grid td.jl-act { position: relative; }
table.jl-grid .jl-menu { position: absolute; right: 4px; top: calc(100% - 6px); text-align: left; white-space: nowrap; }
:root table.kit.jl-grid, #app table.kit.jl-grid { table-layout: fixed; width: 100%; min-width: 0; }
table.jl-grid th, table.jl-grid td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#app table.jl-grid tr.jl-row td, table.jl-grid tr.jl-row td { height: 52px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; line-height: 20px; vertical-align: middle; }
table.jl-grid tr.jl-row { cursor: pointer; } table.jl-grid tr.jl-row:hover td { background: var(--hover); }
table.jl-grid th:nth-child(1) { width: 7.5rem; } table.jl-grid th:nth-child(2) { width: 5.5rem; } table.jl-grid th:nth-child(4) { width: 30%; }
table.jl-grid th.jl-clip { width: 44px; } table.jl-grid th:nth-child(6) { width: 9rem; } table.jl-grid th.jl-act { width: 44px; }
table.jl-grid td.jl-clip, table.jl-grid td.jl-act { text-align: center; overflow: visible; }
table.jl-grid .jl-narr .untrusted, table.jl-grid .jl-narr .outsider { display: inline; background: none; border: 0; padding: 0; white-space: nowrap; color: inherit; }
table.jl-grid .jl-type { margin-left: 6px; font-size: var(--text-s); }
table.jl-grid .jl-chip .ac-link { font-weight: var(--weight-strong); }
.rr-menu a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--fg); text-decoration: none; }
.rr-menu a:hover, .rr-menu a:focus-visible { background: var(--hover); outline: none; }
@media (max-width: 56rem) {
  table.jl-grid th:nth-child(1) { width: 4.25rem; } table.jl-grid th:nth-child(2) { width: 3.5rem; }
  table.jl-grid th:nth-child(4), table.jl-grid td.jl-acc { display: none; }
  table.jl-grid th:nth-child(6) { width: 6.5rem; } table.jl-grid th.jl-clip { width: 30px; } table.jl-grid th.jl-act { width: 36px; }
  table.jl-grid th, table.jl-grid td { padding-left: 4px; padding-right: 4px; }
}

/* Round 969 (order O): every list of money lines in the one grid (moneygrid.py for Bills and Invoices, app.js moneyGrid for Documents
   and the Open list): one line per row, 56 px, the same height for all, ellipsis, tabular figures, the clip cell, the account chip, the
   row's ⋯ menu over the rows below it. The class of each column's heading sets its width (a fixed table takes the first row's). */
.scroll.mg-wrap { overflow: visible; }
:root table.kit.mg-grid, #app table.kit.mg-grid { table-layout: fixed; width: 100%; min-width: 0; }
table.mg-grid th, table.mg-grid td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
#app table.mg-grid tr.mg-row td, table.mg-grid tr.mg-row td { height: 52px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; line-height: 20px; vertical-align: middle; }
table.mg-grid tr.mg-row[data-href] { cursor: pointer; } table.mg-grid tr.mg-row:hover td { background: var(--hover); }
table.mg-grid tr.total td { font-weight: var(--weight-strong); }
table.mg-grid th.mg-tick { width: 34px; } table.mg-grid th.mg-date { width: 7.25rem; } table.mg-grid th.mg-no { width: 8.5rem; }
table.mg-grid th.mg-ref { width: 8rem; } table.mg-grid th.mg-acc { width: 17%; } table.mg-grid th.mg-clip { width: 44px; }
table.mg-grid th.mg-gross, table.mg-grid th.mg-amt { width: 7.5rem; } table.mg-grid th.mg-paid { width: 7rem; } table.mg-grid th.mg-st { width: 9rem; }
table.mg-grid th.mg-act { width: 44px; } table.mg-grid th.mg-kind { width: 9rem; } table.mg-grid th.mg-small { width: 6rem; }
table.mg-grid td.mg-clip, table.mg-grid td.mg-act { text-align: center; overflow: visible; position: relative; }
table.mg-grid .rr-clipb { white-space: nowrap; vertical-align: middle; } table.mg-grid .rr-clipb svg { flex: none; }
table.mg-grid td .untrusted, table.mg-grid td .outsider { display: inline; background: none; border: 0; padding: 0; white-space: nowrap; color: inherit; }
table.mg-grid .mg-sub { margin-left: 6px; font-size: var(--text-s); }
table.mg-grid .mg-chip .ac-link { font-weight: var(--weight-strong); }
table.mg-grid .mg-st .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
table.mg-grid td.tick input { margin: 0; }
.mg-more { display: inline-block; } .mg-more > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mg-more > summary::-webkit-details-marker { display: none; }
table.mg-grid .mg-menu { position: absolute; right: 4px; top: calc(100% - 6px); text-align: left; white-space: nowrap; }
.mg-menu form { margin: 0; display: block; } .mg-menu button { display: block; width: 100%; }
.mg-menu form.mg-reason { display: flex; gap: 4px; padding: 4px; } .mg-menu form.mg-reason input { min-width: 0; flex: 1; } .mg-menu form.mg-reason button { width: auto; }
table.mg-grid th.mg-sha { width: 7rem; } table.mg-grid th.mg-cur { width: 3.5rem; }
/* round 969b: a row that opens in place (app.js xrow) shows what it holds below it, wrapped as before */
table.mg-grid tr.sub > td { white-space: normal; overflow: visible; height: auto; }
table.mg-grid tr.mg-row.x { cursor: pointer; }
/* round 1043 (order O): Open items By contact in the grid; the age columns from 1,200 px, Oldest from a tablet up, a phone shows the
   contact, Open and Past due in one line */
table.mg-grid.mg-aged th.mg-bk { width: 6.25rem; } table.mg-grid.mg-aged th.mg-bk.mg-na { width: 8rem; } table.mg-grid.mg-aged th.mg-amt { width: 7.5rem; }
/* round 1050 (design probe N1: at 1280 the menu leaves the list 988 px, the fixed columns took 984 and the contact's column 2 px): the
   widths are the list's own, not the screen's */
.scroll.mg-wrap:has(> table.mg-aged) { container-type: inline-size; }
@container (max-width: 75rem) { table.mg-grid.mg-aged .mg-bk { display: none; } }
@container (max-width: 56rem) { table.mg-grid.mg-aged .mg-old { display: none; } }
table.mg-grid th.mg-id { width: 4.5rem; } table.mg-grid th.mg-cmp { width: 6rem; } table.mg-grid th.mg-ra { width: 15rem; }
table.mg-grid td.mg-ra { width: auto; overflow: visible; text-align: right; }
table.mg-grid .ra details > summary.rr-dots { width: 30px; padding: 0; border: 0; background: none; justify-content: center; font-size: var(--text-l); }
table.mg-grid .ra details > summary.rr-dots::after { content: none; }
table.mg-grid .ra .ra-go { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 56rem) {
  table.mg-grid th.mg-id, table.mg-grid td.mg-id, table.mg-grid .mg-cmp, table.mg-grid .mg-sha, table.mg-grid .mg-cur { display: none; }
  table.mg-grid th.mg-ra { width: 7.5rem; } table.mg-grid .ra .ra-go { max-width: 5rem; }
  table.mg-grid th.mg-date { width: 4rem; } table.mg-grid th.mg-no { width: 5rem; } table.mg-grid th.mg-st { width: 5rem; }
  table.mg-grid .mg-due-date, table.mg-grid .mg-acc, table.mg-grid .mg-paid, table.mg-grid .mg-gross, table.mg-grid .mg-ref,
  table.mg-grid .mg-kind, table.mg-grid .mg-small { display: none; }
  table.mg-grid th.mg-amt { width: 5.5rem; } table.mg-grid th.mg-clip { width: 40px; } table.mg-grid th.mg-act { width: 36px; } table.mg-grid th.mg-tick { width: 26px; }
  table.mg-grid th, table.mg-grid td { padding-left: 4px; padding-right: 4px; }
  /* the phone's 44 px target for a link in a cell, kept on one line with its ellipsis inside the 56 px row */
  main table.mg-grid td a:not(.btn) { display: inline-block; min-height: 44px; line-height: 44px; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; vertical-align: middle; }
  main table.mg-grid td.mg-clip a, main table.mg-grid td .rr-clipb { display: inline-flex; align-items: center; line-height: 44px; }
  /* the phone keeps date, who, the clip, what is due, the status and the menu; the row opens the record with its number */
  table.mg-grid .mg-no { display: none; }
}
/* round 978 (owner order of 13 Nov 2026: Invoices 151 px and Bills 173 px wider than a 1100 px window); round 978b (review): from the
   phone to 1279 px every column stays (date, number, reference, who, due date, account, the clip, amount, paid, due, currency, status,
   the menu), each narrower, one line with an ellipsis (rule N5), the head may wrap */
@media (min-width: 56.01rem) and (max-width: 1279px) {
  table.mg-grid th, table.mg-grid td { padding-left: 4px; padding-right: 4px; }
  table.mg-grid thead th { white-space: normal; line-height: 1.2; }
  table.mg-grid th.mg-tick { width: 28px; } table.mg-grid th.mg-date { width: 6rem; } table.mg-grid th.mg-no { width: 6rem; }
  table.mg-grid th.mg-ref { width: 6rem; } table.mg-grid th.mg-acc { width: 9%; } table.mg-grid th.mg-clip { width: 36px; }
  table.mg-grid th.mg-gross, table.mg-grid th.mg-amt { width: 6.75rem; } table.mg-grid th.mg-paid { width: 6rem; }
  table.mg-grid th.mg-cur { width: 3.25rem; } table.mg-grid th.mg-st { width: 6rem; } table.mg-grid th.mg-act { width: 36px; }
}

/* Round 968 (order L): the line view /bank/line/ID: the grey line under the payee carries the account, the status chip and the clip;
   the row with its change panel open, or what the line is booked to, linked to and its history in calm cards */
main .page-head > .ph-sub.bl-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.bl-sub .pill { font-size: var(--text-xs); line-height: 18px; padding: 0 8px; }
.bl-sub .bl-clip { display: inline-flex; align-items: center; }
.bl { display: flex; flex-direction: column; gap: 12px; max-width: 72rem; }
.bl > .card { margin: 0; }
.bl .card h2, .bl-history summary h2 { font-size: var(--h3); font-weight: var(--weight-strong); margin: 0 0 6px; display: inline; }
.bl-booked .bl-to { margin: 0 0 4px; font-size: var(--text-l); } .bl-booked .bl-to .rr-code { font-weight: var(--weight-strong); }
.bl-booked .bl-by { margin: 0 0 8px; font-size: var(--text-s); } .bl-acts { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.bl-list { list-style: none; margin: 6px 0 0; padding: 0; } .bl-list li { padding: 6px 0; border-top: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-list li:first-child { border-top: 0; } .bl-when { color: var(--muted); font-variant-numeric: tabular-nums; } .bl-who { font-weight: var(--weight-medium); }
.bl-history > summary { cursor: pointer; list-style: none; } .bl-history > summary::-webkit-details-marker { display: none; }
@media (max-width: 56rem) {
  :root main .page-head:has(> .ph-fields), :root[data-view="simple"] main .page-head:has(> .ph-fields) { flex-wrap: wrap; }
  :root main div.page-head > div.ph-fields.ph-fields:not(.crumb):not(.ph-sub) { flex: 1 1 100%; order: 8; max-width: 100%; }
  .jn-hrow { flex-wrap: wrap; } .jn-hrow .jn-narr { flex: 1 1 100%; } .jn-hrow .jn-narr input, .jn-hrow .jn-day .datefield-text { height: 44px; }
  .jn-hrow .jn-day { flex: 1 1 auto; } .jn-more > summary { min-width: 44px; min-height: 44px; }
  form.jn .jn-opts #jn-ref { width: 7rem; }
  form.jn table.jn-lines tr.jn-line td { height: auto; }
  form.jn .jn-foot { gap: 8px; padding: 8px; } form.jn .jn-foot .btn { min-height: 44px; }
  form.jn .jn-foot .jn-gap { display: none; } form.jn .jn-foot .jn-oob { flex: 1 1 auto; }
}

/* Round 981 (owner order of 13 Nov 2026, R3: the page head and density, rules N1, N9, N10 and N12, on every page at once).
   N1: at 1280 x 700 the first work row starts above y 240. The demo line stands in the top bar's own row; the title row is 44 px with
   the page's actions in it; under it ONE summary line of 44 px (.ph-sum: the page's figures at 15 px, ending in the next action);
   a row of figures anywhere else in a page is that one line too, never tiles (big number tiles only on Home, .h6-figs).
   N9: one filled teal button per page, its main action (.primary; nav.js keeps one). Every other action outside a list row is a
   framed button; a row keeps its own verb. Violet only for AI actions (Ask AI, Suggest: .ask-ai, .btn.ai). Excel and PDF framed.
   N10: one fold pattern, a row with a chevron: no native triangle on any summary.
   N12: the summary line ends in "Next: ..." (a link to the one next action) or a green "Nothing to do here" (octobooks/pagenext.py). */
:root { --act: var(--do); --act-strong: var(--do-strong); --act-soft: var(--do-soft); --ai: #6B4FC4; --ai-strong: #55399F; --ai-soft: #EFEAFB; }
.top > .demo-bar { flex: none; min-height: 36px; padding: 0 4px 0 14px; border-radius: 999px; gap: 10px; font-size: var(--t13); }
.top > .demo-bar .btn.act { min-height: 28px; padding: 0 12px; font-size: var(--t13); }
@media (min-width: 1280px) and (max-width: 1439px) {      /* the notice in one word, the full sentence for a screen reader */
  .top > .demo-bar > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top > .demo-bar::before { content: "Demo"; font-weight: 600; }
}
@media (max-width: 1279px) {                                 /* a narrower window: the notice keeps its row above the bar, as before */
  :root .top:has(> .demo-bar), :root[data-view="simple"] .top:has(> .demo-bar) { flex-wrap: wrap; padding-bottom: 6px; }
  .top > .demo-bar { order: -1; flex: 1 1 100%; justify-content: center; border-radius: 0 0 8px 8px; min-height: 40px; }
}
@media (max-width: 56rem) {
  .top > .demo-bar { order: 99; justify-content: space-between; border-radius: 8px; }
}
:root main .page-head, :root[data-view="simple"] main .page-head { min-height: 44px; margin: 0 0 8px; row-gap: 0; }
:root main div.page-head > div.ph-sum.ph-sum { order: 10; flex: 0 0 100%; min-width: 0; }
.ph-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; min-height: 44px; margin: 0; font-size: var(--t15); line-height: 1.3; color: var(--fg); }
.ph-sum .ph-fig, .bar-figs .ph-fig { color: var(--muted); white-space: nowrap; text-decoration: none; }
.ph-sum .ph-fig small, .bar-figs .ph-fig small { font-size: var(--t15); color: var(--muted); }
.ph-sum .ph-fig b small { font-weight: 400; }
.ph-sum .ph-fig b, .bar-figs .ph-fig b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }
.ph-sum a.ph-fig:hover b, .bar-figs a.ph-fig:hover b { text-decoration: underline; }
/* round 1121 (H10): the figures on the line of a page's own bar (Receivables, its As of form) */
.bar-figs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; min-height: 44px; font-size: var(--t15); line-height: 1.3; }
.ph-sum .stats { display: contents; }
:root main .ph-sum > p.ph-sum-lead { display: inline; margin: 0; padding: 0; color: var(--muted); font-size: var(--t15); }
:root main .ph-sum > p.ph-sum-lead .pill { margin-left: 4px; }
.ph-next { min-width: 0; font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }
@media (max-width: 56rem) {
  .ph-sum .ph-fig { white-space: normal; } .ph-sum { gap: 2px 12px; }
  :root main .stats:not(.h6-figs) > .stat { white-space: normal; flex-wrap: wrap; max-width: 100%; }
  :root main .page-head:has(> .ph-sum), :root[data-view="simple"] main .page-head:has(> .ph-sum) { flex-wrap: wrap; }
}
.ph-next a { font-weight: 600; }
.ph-next.good { color: var(--ok); }
.ph-next.good::before { content: "\2713\00a0"; }
:root main .stats:not(.h6-figs) { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; min-height: 44px; margin: 0 0 8px; padding: 0;
  border: 0; border-radius: 0; overflow: visible; background: none; box-shadow: none; }
:root main .ph-sum .stats:not(.h6-figs) { display: contents; }
:root main .stats:not(.h6-figs) > .stat { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; color: var(--muted); white-space: nowrap; text-decoration: none; }
:root main .stats:not(.h6-figs) > .stat small { display: inline; font-size: var(--t15); color: var(--muted); margin: 0; }
:root main .stats:not(.h6-figs) > .stat b, :root main .stats.mg-figs:not(.h6-figs) > .stat:first-child b { font-size: var(--t15); font-weight: 600; color: var(--fg); }
:root main .stats:not(.h6-figs) > .stat em { display: inline; font-size: var(--t13); margin: 0; color: var(--muted); }
:root main .stats:not(.h6-figs) > a.stat:hover b { text-decoration: underline; }
/* N9. Round 994 (night suite of 14 Nov: Sign in on the sign in page stood white): the door pages (body.door: sign in, sign up,
   their one action filled) keep their own buttons; :where adds no weight */
:root :where(body:not(.door)) main :is(.btn.act, form[method="post" i] :is(button:not([class]), button.btn):not([type="button"]):not(.primary):not(.quiet):not([aria-pressed])):not(:is(table, li.job, .ja, .ra, .sr-a, .row, .rr-row, .rr, .sheet-body, dialog, .acts-pop, .pop, .b6-selbar, .rp, .recon-panel) *) {
  background: var(--surface); border: 1px solid var(--do); color: var(--do); }
:root :where(body:not(.door)) main :is(.btn.act, form[method="post" i] :is(button:not([class]), button.btn):not([type="button"]):not(.primary):not(.quiet):not([aria-pressed])):not(:is(table, li.job, .ja, .ra, .sr-a, .row, .rr-row, .rr, .sheet-body, dialog, .acts-pop, .pop, .b6-selbar, .rp, .recon-panel) *):hover {
  background: var(--do-soft); border-color: var(--do); color: var(--do-strong); }
/* Round 1010 (pass 4 rescore on the live app, 18 Nov 2026: Bank 7 on calm with "Book November like before" and each row's OK filled,
   VAT 7 with "Approve and file" and each finding's Attach filled): one filled button in a page's view, its main action. A row's own
   verb in the bank lines (OK) and in a row's actions (.ra: Attach, Not needed) is quiet at rest, framed in the action colour as
   Xero's row verbs, and fills under the pointer and on keyboard focus; a line OK'd keeps its green tick */
/* Round 1010b (review LOW 5): only these two rows; every other row's actions (To do's filled first task, round 1008) keep their look.
   Not needed on a VAT finding is a plain text button */
:root :where(body:not(.door)) main :is(.rr-row:not(.rr-okd) .rr-ok.primary, #vat-findings .ra .btn.act) {
  background: var(--surface); border: 1px solid var(--do); color: var(--do); }
:root :where(body:not(.door)) main :is(.rr-row:not(.rr-okd) .rr-ok.primary, #vat-findings .ra .btn.act):is(:hover, :focus-visible, :focus-within) {
  background: var(--do); border-color: var(--do); color: var(--do-ink); }
:root :where(body:not(.door)) main #vat-findings .ra details.ra-verb > summary { background: none; border-color: transparent; color: var(--act-text, var(--do));
  font-weight: 400; padding-left: 4px; padding-right: 4px; }
:root :where(body:not(.door)) main #vat-findings .ra details.ra-verb > summary:hover { text-decoration: underline; }
:root .ask-ai, :root .btn.ai, :root button.ai { background: var(--surface); border: 1px solid var(--ai); color: var(--ai); }
:root .ask-ai:hover, :root .btn.ai:hover, :root button.ai:hover { background: var(--ai-soft); border-color: var(--ai-strong); color: var(--ai-strong); }
:root main button.btn.on[aria-pressed="true"] { background: var(--sel); border: 1px solid var(--do); color: var(--fg); }
:root .xl-btn, :root form.xlsx button, :root main a.btn[href*=".pdf"]:not(.primary) { background: var(--surface); border: 1px solid var(--do); color: var(--do); }
:root .xl-btn:hover, :root form.xlsx button:hover { background: var(--do-soft); color: var(--do-strong); }
:root .pill.p, :root .src { color: var(--do-strong); background: var(--do-soft); }
:root a.rf-big, :root a.rf-big:hover { background: var(--do); }
:root .rf-bar { accent-color: var(--do); }
/* N1: a filter (a form that only reads) stands on one line, each label left of its field; a list's tabs and its filter share a row
   (.ph-tools, static/nav.js) */
@media (min-width: 56.01rem) {        /* the phone keeps each label over its field */
  :root main form.bar:not([method="post" i]) { align-items: center; gap: 6px 14px; margin: 0 0 8px; }
  :root main form.bar:not([method="post" i]) > div { display: flex; align-items: center; gap: 6px; }
  :root main form.bar:not([method="post" i]) > div > label { margin: 0; white-space: nowrap; }
}
:root main form.inv-find label[for="if-q"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 8px; }
:root main .ph-tools > :is(.chips, form.bar, .bar, .kit-actions) { margin: 0; }
:root main .ph-tools :is(input[type="search"], input[type="text"], input:not([type])) { width: 8.5rem; min-width: 0; }
:root main .ph-tools { gap: 6px 10px; }
:root main .ph-tools > .chips { gap: 6px; }
:root main .ph-tools > .chips a { padding-left: .5rem; padding-right: .5rem; }
:root main .ph-tools .bar { gap: 6px 8px; }
:root main .ph-tools > :is(form, .bar, .kit-actions):first-of-type:not(:first-child) { margin-left: auto; }
:root main .r6-tools { margin: 0 0 8px; }
/* Bank: the accounts (one line each, from one button) and the tabs share a row; the keys hint left the head of the list */
.b6-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 8px; }
:root main .b6-bar > .b6-tabs, :root main .b6-bar > .b6-cards { margin: 0; }
:root main .b6-cards { display: flex; flex-direction: column; gap: 2px; margin: 0; }
:root main .b6-bar > .b6-cards { flex-direction: row; }
:root main .b6-card { flex-direction: row; flex-wrap: nowrap; align-items: baseline; gap: 12px; min-height: 36px; padding: 6px 10px; white-space: nowrap; }
:root main .b6-card .b6-card-row { display: inline-flex; flex-wrap: nowrap; gap: 4px; justify-content: flex-start; }
:root main .b6-card .b6-card-name { flex: 0 1 auto; min-width: 8rem; }
:root main .b6-acc-pop { min-width: min(40rem, 90vw); padding: 6px; }
:root main .b6-acc-pick > summary .b6-card-n { margin-left: 2px; }
:root main .rr-head { margin: 0 0 4px; }
:root main .ax .ax-head { flex-wrap: wrap; }
:root main .ax .ax-head .ax-acc { width: 13rem; }
:root main .b6-bar > .b6-tabs { flex-wrap: nowrap; overflow-x: auto; min-width: 0; max-width: 100%; }
:root main .b6 > .b6-bar { min-width: 0; }
:root main .b6 { gap: 8px; }
/* Keyboard shortcuts as a key mark (its name stays for a screen reader and on hover), so the accounts and the tabs share one row */
:root main .b6-tabs .b6-keys-link[data-keys] { min-width: 36px; font-size: var(--t15); }
:root main .b6 > .b6-bar { margin: 0; }
:root main .ax .ax-sum { flex-wrap: nowrap; } :root main .ax .ax-sum .ax-acct { flex-basis: auto; font-size: var(--t15); }
:root main .b6-bar > .b6-tabs > :is(button, a) { font-size: var(--t13); padding-left: 10px; padding-right: 10px; }
:root main .rr-head { min-height: 32px; } :root main .rr-head .rr-tickall { min-height: 32px; height: 32px; }
:root main .ax .ax-filter-pop { display: grid; gap: 8px; min-width: 18rem; }
:root main .ax .ax-sum { margin: 0 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gap-fold { margin: 0 20px 8px; } .gap-fold > summary { font-size: var(--t15); } .gap-fold .gap-line { margin: 4px 0 0 22px; color: var(--muted); font-size: var(--t13); }
:root main .page-head .lb-wrap, :root main .page-head .lb-wrap form.bar, :root main .page-head .lb-wrap .bar > div { margin: 0; }
:root main table.r6-pl thead th { height: 36px; padding-bottom: 6px; }
/* Live fault found by round 980: on Bills and Invoices the fixed widths of the other columns took the whole table and the Customer or
   Supplier column was 0 px wide, at every width. The columns share the table in per cent; the name takes what is left (a fifth). */
@media (min-width: 56.01rem) {
  :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-tick { width: 3%; }
  :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-date { width: 8%; min-width: 6.5rem; }
  /* round 1075c (MIKA 30, BASIC 16: a new supplier's Supplier country popped in and pushed Currency and Reference to a second row): its
     place stands from the start, the field shows when it is asked */
  :root main form.bl #bl-country-box[hidden] { display: block; visibility: hidden; }
  /* round 1075c (MIKA 31: "25 Sep 20..." while Supplier had room): a date never wraps or cuts */
  :root main table.mg-grid:is(.mg-inv, .mg-bills) td.mg-date { white-space: nowrap; overflow: visible; text-overflow: clip; }
  :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-no { width: 9%; }
  :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-ref { width: 7%; }
  :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-acc { width: 11%; }
  :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-clip { width: 3.5%; }
  :root main table.mg-grid:is(.mg-inv, .mg-bills) :is(th.mg-gross, th.mg-amt) { width: 8.5%; }
  :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-paid { width: 8%; }
  :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-cur { width: 4%; }
  /* round 1010 (pass 4 rescore on the live app: the "Awaiting payment" pill cut at 1440 and 1280 px in a 9 % column of 103 px): the
     status column holds its longest standard word whole at every computer width; the name column takes what is left */
  :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-st { width: 9.75rem; }
  :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-act { width: 3.5%; }
  :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-who { width: auto; min-width: 8rem; }
  /* round 1112 (owner's coordinator, 21 Nov: the supplier or customer column gives way to nothing; Amount and Due keep their width, the
     Number takes the cut): the number column narrower, its text cut with an ellipsis (its full number on hover, the row opens the
     record) */
  :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-no { width: 6.5%; }
  :root main table.mg-grid:is(.mg-inv, .mg-bills) td.mg-no { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }  /* round 1010 ("Due date" cut at 1280 px): a column head of the money lists takes a second line, never an ellipsis */
  :root main table.mg-grid th { white-space: normal; text-overflow: clip; line-height: 1.2; hyphens: auto; overflow-wrap: break-word; }
}
@media (min-width: 1280px) and (max-width: 1439px) {      /* round 1010: the wider status column's room from the account and the gutters */
  :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-acc { width: 9%; }
  :root main table.mg-grid:is(.mg-inv, .mg-bills) :is(th, td) { padding-left: 8px; padding-right: 8px; }
}
@media (min-width: 56.01rem) and (max-width: 1279px) {      /* a narrower window: the amounts whole, the account shorter */
  :root main table.mg-grid:is(.mg-inv, .mg-bills) :is(th.mg-gross, th.mg-amt) { width: 10%; }
  :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-acc { width: 7%; }
  :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-no { width: 8%; }
}
/* Live fault found by round 980: New bill at 390 px scrolled sideways (the drop zone's button past the edge, 118 px in German) */
.dropzone { min-width: 0; max-width: 100%; flex-wrap: wrap; }
.dropzone .dz-btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
form.jn .jn-files { flex-wrap: wrap; min-width: 0; max-width: 100%; }
/* Round 987 (live fault, test_customer_path_555): As of on Profit and loss stands inside the head's More; opened, its own pop up was
   placed beside the More's and ran 124 px past the window's right edge (148 in German). A pop up inside a pop up flows in it, and the
   head's menus, at the right end of its row, open leftwards. */
@media (min-width: 40.01rem) {
  :root main .page-head :is(.kit-more, .acts-more) > .acts-pop { left: auto; right: 0; }
  .acts-pop .kit-more > .acts-pop { position: static; min-width: 0; margin: 4px 0 0; padding: 0; border: 0; box-shadow: none; }
}
/* N10 */
:root summary { list-style: none; }
:root summary::-webkit-details-marker { display: none; }
:root main details > summary:not([class]):not(:is(.b6-ways, .ways-fold, .ra, .edit, .add, .ap-kind, .setup-row, .jn-more, .bl-history, .lang-pick, .cosw, .me, .help-mark) > summary) {
  display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
:root main details > summary:not([class]):not(:is(.b6-ways, .ways-fold, .ra, .edit, .add, .ap-kind, .setup-row, .jn-more, .bl-history, .lang-pick, .cosw, .me, .help-mark) > summary)::before {
  content: ""; flex: none; width: 6px; height: 6px; margin: 0 4px 0 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg);
  transition: transform .12s; color: var(--muted); }
:root main details[open] > summary:not([class]):not(:is(.b6-ways, .ways-fold, .ra, .edit, .add, .ap-kind, .setup-row, .jn-more, .bl-history, .lang-pick, .cosw, .me, .help-mark) > summary)::before {
  transform: rotate(45deg); }

/* Round 983 (owner order of 13 Nov 2026, R6): Months, on Home and as the page Months (monthsview.py, app.js mv7). Per month a bar of
   three parts: final (green), receipt missing (turquoise), not booked (grey); the share final under it; a click opens one line under
   the row. The months stand in one row (twelve at most), six to a row on a phone; the group view names each company above its row. */
.mv { display: grid; gap: var(--s2); }
.mv-co-row { display: grid; gap: var(--s2); }
.mv-co-row + .mv-co-row { padding-top: var(--s2); border-top: 1px solid var(--line); }
.mv-name { margin: 0; font-size: var(--text-s); }
.mv-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s2); }
a.mv-m { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: var(--rc); color: var(--fg); text-decoration: none; min-width: 0; }
a.mv-m:hover { background: var(--hover); }
a.mv-m.on { background: var(--sel); box-shadow: inset 0 0 0 1.5px var(--do); }
a.mv-m:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
a.mv-m b { font-size: var(--text-s); font-weight: var(--weight-strong); }
a.mv-m small { font-size: var(--text-xs); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
a.mv-m.done small { color: var(--green); font-weight: var(--weight-strong); }
.mv-bar { display: flex; width: 100%; height: 10px; border-radius: 99px; overflow: hidden; background: var(--grid); }
.mv-bar.mv-empty { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.mv-bar i { display: block; height: 100%; }
.mv-f, .mv-k.mv-final i, .mv-c.mv-final i { background: var(--green); }
.mv-r, .mv-k.mv-receipt_missing i, .mv-c.mv-receipt_missing i { background: var(--do-mark); }
.mv-n, .mv-k.mv-not_booked i, .mv-c.mv-not_booked i { background: var(--grid); box-shadow: inset 0 0 0 1px var(--line-2); }
.mv-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 12px; border-radius: var(--rc); background: var(--surface-2);
  font-size: var(--text-s); min-height: 44px; }
.mv-line[hidden] { display: none; }
.mv-line form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; }
.mv-line .btn { min-height: 32px; padding: 0 12px; font-size: var(--text-s); }
.mv-c { display: inline-flex; align-items: center; gap: 6px; }
button.mv-c.linkish { font-size: var(--text-s); color: var(--act-text); padding: 0; }
.mv-c i, .mv-k i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.mv-c .cnt { font-weight: var(--weight-strong); font-variant-numeric: tabular-nums; }
.mv-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: var(--text-xs); color: var(--muted); }
.mv-k { display: inline-flex; align-items: center; gap: 6px; }
.mv-how { margin: 0; font-size: var(--text-xs); color: var(--muted); }
.mv-none { margin: 0; font-size: var(--text-s); color: var(--muted); }
.mv-more { margin: 0; font-size: var(--text-s); }
.mv-per { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: 0 0 var(--s3); }
.mv-per .chips { margin: 0; }
.mv-rform { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s2); }
.mv-rform label { display: grid; gap: 2px; font-size: var(--text-xs); color: var(--muted); }
.h7-monthbox.mv-box .h7-mhead a { color: inherit; text-decoration: none; }
.h7-monthbox.mv-box .h7-mhead a:hover { color: var(--act-text); }
.h7-fig small.h7-prior, button.h7-tax small.h7-prior, summary.h7-tax small.h7-prior { font-size: var(--text-xs); font-weight: 400; letter-spacing: 0;
  text-transform: none; color: var(--muted); font-variant-numeric: tabular-nums; }
details.cosw .allco { display: block; font-size: var(--text-s); font-weight: 600; color: var(--act-text); padding: 4px 8px 8px; }
@media (max-width: 56rem) {
  .mv-row { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Round 996 (BR-995a, rule N5: 13 to 17 pages a company had list rows over 46 px): on a computer every list row is one line. A table
   cell of text (no form, button, field or menu in it) keeps one line, cut with ... at 20rem; a cell of buttons keeps them in one row of
   32 px buttons; a statement's row name one line; a row's ⋯ menu opens over the rows below it in every table; a To do job and a row of
   a point's page (Sales, Tax ...) one line, the grey line after the name and cut with ... */
@media (min-width: 56.01rem) {
  main table.kit td:not(:has(details, form, button, select, input, textarea)) { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; max-width: 20rem; }
  main table.kit td:has(.btn, button) { white-space: nowrap; }
  /* HQ stand-in for P02, order FFX682 (sandbox walk of 17 Nov 2026): HMRC's legal declaration on File with HMRC stood on one line
     and ran past the right edge at 1440 px ("... A false declaration can"); it wraps, whole, above Send to HMRC */
  main table.kit td:has(label.hmrc-declare) { white-space: normal; }
  main table.kit td label.hmrc-declare { display: block; max-width: 44rem; white-space: normal; margin: 8px 0; }
  /* Round 1010 (owner order of 18 Nov 2026 04:22, return tables: "rows about 39 px, the table stretched to full width, amount far from
     its text"): a return or statement table (table.kit.figs: UK boxes 1 to 9, UStVA, U30, UVA, U1, ZM, E-Bilanz and CT600 previews) keeps
     dense rows, one line of 30 px, and a width of its figures, at most about 960 px, so the eye does not travel; the round 1008 row of
     46 px is for lists. The form's words stay on one line, whole on hover (their title); every money column right aligned, tabular */
  :root main table.kit.figs { width: auto !important; max-width: 960px; min-width: 0; table-layout: auto; justify-self: start; align-self: start; margin-right: auto; }
  :root main table.kit.figs :is(td, th) { box-sizing: border-box; height: 30px !important; padding-top: 3px; padding-bottom: 3px; line-height: 1.3; white-space: nowrap; }
  :root main table.kit.figs th { white-space: normal; line-height: 1.2; vertical-align: bottom; }
  :root main table.kit.figs td:not(.num) { max-width: none; overflow: visible; }
  /* the statements (Profit and loss, Balance sheet, Cash flow) are figure tables too: one dense line per row */
  :root main table.r6-pl tbody :is(th, td) { box-sizing: border-box; height: 30px !important; padding-top: 2px; padding-bottom: 2px; }
  :root main .vat table.kit.figs td:nth-child(2) { min-width: 0; }            /* the box or Kennzahl now stands second (was the text's 21rem) */
  /* round 1138 (AI review of 20 Nov 2026, item 41: "the table stops at two thirds of the width"): a VAT return table runs the whole width
     of its section; an empty last column takes the rest, so each amount stays beside its box (the order of 18 Nov above) */
  :root main .vat > table.kit.figs { width: 100% !important; max-width: none; }
  /* round 1138 (Greyfinch item 3, Hartsgill item 20): VAT registrations' lines, the name (240 px) and its value on one line (8.10, 16.2) */
  ul.reg-lines { list-style: none; margin: 0 0 var(--s4); padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  ul.reg-lines > li { display: block; padding: 0; }
  ul.reg-lines > li + li { border-top: 1px solid var(--line); }
  ul.reg-lines > li > details > summary { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 0 16px; cursor: pointer; list-style: none; }
  ul.reg-lines > li:not(:has(details)) { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 0 16px; }
  ul.reg-lines .sr-t { flex: 0 0 240px; font-weight: var(--weight-strong, 600); }
  ul.reg-lines .sr-v { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  ul.reg-lines details > summary::-webkit-details-marker { display: none; }
  ul.reg-lines details > form { padding: 0 16px 12px; }
  @media (max-width: 640px) { ul.reg-lines .sr-t { flex-basis: 40%; } }
  :root main .vat > table.kit.figs :is(td, th).vat-fill { width: 100%; padding: 0; }
  :root main table.kit.figs .fig-t { display: block; max-width: 28rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  :root main table.kit.figs :is(td, th).fig-code { padding-right: 12px; }
  :root main table.kit.figs :is(td, th).num { text-align: right; font-variant-numeric: tabular-nums; }
  :root main table.kit.figs td :is(a.btn, button.btn) { min-height: 24px !important; height: 24px !important; }
  main table.kit td form { margin-top: 0; margin-bottom: 0; }
  main table.kit td.acts { display: table-cell; margin: 0; }
  main table.kit td > details.ra-more { display: inline-block; vertical-align: middle; margin-left: 6px; }
  /* round 1032 (design probe at 1100: Bank > Statements 84 px wider than the window, the card holder's form of three fields stood
     inline in its cell): Set holder opens as a pop over the table, anchored at its cell's right, never widening the table */
  main table.kit td > details.ba-holder { position: relative; }
  main table.kit td > details.ba-holder > .ra-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; width: 18rem; max-width: calc(100vw - 32px);
    box-sizing: border-box; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rc, 8px); box-shadow: var(--shadow); white-space: normal; }
  main table.kit td > details.ba-holder > .ra-pop form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
  main table.kit td > details.ba-holder > .ra-pop label { display: flex; flex-direction: column; gap: 2px; }
  /* round 996b (review 3): a cell's second line follows on the same line after a separator, never fused to the first
     (12,503.20 · 25.0 %, a name · its email): what follows a line break is an element (templates wrap their text in one) */
  main table.kit td > br { display: none; }
  main table.kit td > br + * { margin-left: .4em; }
  main table.kit td > br + *::before { content: "· "; color: var(--muted); }
  main table.kit td :is(a.btn, button.btn, summary.btn), main table.kit td form > button:not(.linkish):not(.r6-fig) { min-height: 32px; padding-top: 0; padding-bottom: 0; }
  main table.kit tr > th[scope="row"], main table.kit.r6-pl tr > th, main table.kit.r6-bs tr > th, main table.kit.r6-cf tr > th {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26rem; }
  ol.jobs li.job { align-items: center; min-height: 52px; box-sizing: border-box; padding-top: 6px; padding-bottom: 6px; }
  ol.todo-rows li.job { padding-top: 6px; padding-bottom: 6px; }
  li.job .jw { display: flex; align-items: baseline; gap: 0 var(--s2); white-space: nowrap; overflow: hidden; }
  li.job .jw > .jl { flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; overflow: hidden; }
  li.job .jw > .jl .num { margin-left: var(--s2); }
  li.job .jw > .jl * { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
  li.job .jw > .jl > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  li.job .jw > small, ol.todo-rows li.job .jw > small.basis { display: inline; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; }
  li.job .jw > details.job-detail { flex: none; margin-top: 0; }
  li.job .jw > small.gates { display: inline-flex !important; flex: none; flex-wrap: nowrap; margin-top: 0; }
  li.job .jw:has(> details.job-detail[open]) { flex-wrap: wrap; white-space: normal; }
  li.job .ja { flex-wrap: nowrap; }
  li.job .ja .btn, li.job .ja summary.btn { min-height: 32px; padding-top: 0; padding-bottom: 0; }
  main table.kit td .untrusted, main table.kit td .outsider { white-space: nowrap; word-break: normal; }
  ul.hub-list li > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
table.kit td.mg-act { text-align: center; overflow: visible; position: relative; width: 44px; }
/* round 996b (review 4): the reminders list fits the column at 1100 px and up, its ⋯ in view: heads wrap, text cells cut at 9rem */
@media (min-width: 56.01rem) {
  main table.kit.n5-list th { white-space: normal; line-height: 1.2; vertical-align: bottom; }
  main table.kit.n5-list td:not(:has(details, form, button, select, input, textarea)) { max-width: 9rem; }
  main table.kit.n5-list td:first-child { max-width: 11rem; }
  main table.kit.n5-list :is(th, td) { padding-left: 6px; padding-right: 6px; }
}
/* the Notes column from 1600 px; below 1440 px the interest, the compensation and the last letter stand in the letter and on the
   customer's open items (the Customer link), so the row keeps its letter and its ⋯ in view */
@media (min-width: 56.01rem) and (max-width: 1599px) { main table.kit.n5-list tr > :nth-child(11) { display: none; } }
@media (min-width: 56.01rem) and (max-width: 1439px) { main table.kit.n5-list tr > :is(:nth-child(6), :nth-child(7), :nth-child(8)) { display: none; } }
/* round 996b (review 4): a row's ⋯ menu near the foot of a table opens over what follows, never cut by the table's scroll box */
.scroll:has(> table.kit details.mg-more[open]), .kit-sec:has(table.kit:not(.mg-grid) details.mg-more[open]) { overflow: visible; }
table.kit:not(.mg-grid) .mg-menu { position: absolute; right: 4px; top: calc(100% - 6px); z-index: 30; text-align: left; white-space: nowrap; }
.mg-menu form.mg-one { margin: 0; display: block; } .mg-menu form.mg-one button { display: block; width: 100%; text-align: left; }
/* Round 986 (owner order of 13 Nov 2026, R9, rule N5): a list row is one line of 46 px with its one action, never a field inside it
   (Year end: the step, its state, what was found, when and by whom it was signed off, Sign off or Take back opening a sheet) */
table.kit.n5 th:nth-child(1) { width: 26%; } table.kit.n5 th:nth-child(2) { width: 7.5rem; } table.kit.n5 th.n5-date { width: 7rem; }
table.kit.n5 th.n5-who { width: 7rem; } table.kit.n5 th.n5-act { width: 8rem; }
#app table.mg-grid tr.n5-row td, table.mg-grid tr.n5-row td { height: 52px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; vertical-align: middle; }
table.mg-grid td.n5-act { overflow: visible; text-align: right; }
table.mg-grid td.n5-act .kit-sheet > summary.btn { min-height: 32px; padding: 0 12px; }
table.mg-grid td.n5-act .sheet-body { white-space: normal; text-align: left; }
/* round 986b (test_page_kit: a page the server draws carries no style attribute): the three parts of a month's bar (monthsview.cell)
   by a class of whole per cent, w0 to w100 */
.mv-bar>i.w0{width:0%}.mv-bar>i.w1{width:1%}.mv-bar>i.w2{width:2%}.mv-bar>i.w3{width:3%}.mv-bar>i.w4{width:4%}.mv-bar>i.w5{width:5%}.mv-bar>i.w6{width:6%}.mv-bar>i.w7{width:7%}.mv-bar>i.w8{width:8%}.mv-bar>i.w9{width:9%}
.mv-bar>i.w10{width:10%}.mv-bar>i.w11{width:11%}.mv-bar>i.w12{width:12%}.mv-bar>i.w13{width:13%}.mv-bar>i.w14{width:14%}.mv-bar>i.w15{width:15%}.mv-bar>i.w16{width:16%}.mv-bar>i.w17{width:17%}.mv-bar>i.w18{width:18%}.mv-bar>i.w19{width:19%}
.mv-bar>i.w20{width:20%}.mv-bar>i.w21{width:21%}.mv-bar>i.w22{width:22%}.mv-bar>i.w23{width:23%}.mv-bar>i.w24{width:24%}.mv-bar>i.w25{width:25%}.mv-bar>i.w26{width:26%}.mv-bar>i.w27{width:27%}.mv-bar>i.w28{width:28%}.mv-bar>i.w29{width:29%}
.mv-bar>i.w30{width:30%}.mv-bar>i.w31{width:31%}.mv-bar>i.w32{width:32%}.mv-bar>i.w33{width:33%}.mv-bar>i.w34{width:34%}.mv-bar>i.w35{width:35%}.mv-bar>i.w36{width:36%}.mv-bar>i.w37{width:37%}.mv-bar>i.w38{width:38%}.mv-bar>i.w39{width:39%}
.mv-bar>i.w40{width:40%}.mv-bar>i.w41{width:41%}.mv-bar>i.w42{width:42%}.mv-bar>i.w43{width:43%}.mv-bar>i.w44{width:44%}.mv-bar>i.w45{width:45%}.mv-bar>i.w46{width:46%}.mv-bar>i.w47{width:47%}.mv-bar>i.w48{width:48%}.mv-bar>i.w49{width:49%}
.mv-bar>i.w50{width:50%}.mv-bar>i.w51{width:51%}.mv-bar>i.w52{width:52%}.mv-bar>i.w53{width:53%}.mv-bar>i.w54{width:54%}.mv-bar>i.w55{width:55%}.mv-bar>i.w56{width:56%}.mv-bar>i.w57{width:57%}.mv-bar>i.w58{width:58%}.mv-bar>i.w59{width:59%}
.mv-bar>i.w60{width:60%}.mv-bar>i.w61{width:61%}.mv-bar>i.w62{width:62%}.mv-bar>i.w63{width:63%}.mv-bar>i.w64{width:64%}.mv-bar>i.w65{width:65%}.mv-bar>i.w66{width:66%}.mv-bar>i.w67{width:67%}.mv-bar>i.w68{width:68%}.mv-bar>i.w69{width:69%}
.mv-bar>i.w70{width:70%}.mv-bar>i.w71{width:71%}.mv-bar>i.w72{width:72%}.mv-bar>i.w73{width:73%}.mv-bar>i.w74{width:74%}.mv-bar>i.w75{width:75%}.mv-bar>i.w76{width:76%}.mv-bar>i.w77{width:77%}.mv-bar>i.w78{width:78%}.mv-bar>i.w79{width:79%}
.mv-bar>i.w80{width:80%}.mv-bar>i.w81{width:81%}.mv-bar>i.w82{width:82%}.mv-bar>i.w83{width:83%}.mv-bar>i.w84{width:84%}.mv-bar>i.w85{width:85%}.mv-bar>i.w86{width:86%}.mv-bar>i.w87{width:87%}.mv-bar>i.w88{width:88%}.mv-bar>i.w89{width:89%}
.mv-bar>i.w90{width:90%}.mv-bar>i.w91{width:91%}.mv-bar>i.w92{width:92%}.mv-bar>i.w93{width:93%}.mv-bar>i.w94{width:94%}.mv-bar>i.w95{width:95%}.mv-bar>i.w96{width:96%}.mv-bar>i.w97{width:97%}.mv-bar>i.w98{width:98%}.mv-bar>i.w99{width:99%}
.mv-bar>i.w100{width:100%}
/* the trial balance's one date group (From, To, As of, one Show, the quick periods) stays one row at 1280, in German too */
form.bar:has(> .pb-asof) .datefield .datefield-text { width: 8.25em; }
@media (max-width: 56rem) {
  table.kit.n5 th:nth-child(3), table.kit.n5 td:nth-child(3), table.kit.n5 .n5-date, table.kit.n5 .n5-who { display: none; }
  table.kit.n5 th:nth-child(1) { width: auto; } table.kit.n5 th:nth-child(2) { width: 6.5rem; } table.kit.n5 th.n5-act { width: 7.5rem; }
}

/* Round 988 (owner order of 13 Nov 2026, R8, rule N4: "you don't want a tiny stripe in the middle if you have a wider screen"). The
   content is fluid up to 1760 px (main 1816 px with its two 28 px sides) and so never under 80% of the window beside the menu up to a
   window of about 2440 px (before: 1184 px everywhere, 46% at 2560). From 1600 px a selected row opens beside its list (nav.js, the
   block "beside"): the list keeps about 55%, the detail stands in the right 45%, in view while the list scrolls. */
@media (min-width: 56.01rem) {
  main, :root[data-view="simple"] main { max-width: 1816px; }
  .shell footer.co-foot { max-width: 1816px; }
}
@media (min-width: 100rem) {
  :root.bs-on .bs-host { box-sizing: border-box; width: calc(100% - var(--bs-mr, 45%)); max-width: calc(100% - var(--bs-mr, 45%)); min-width: 0; }
  :root.bs-on .bs-detail { position: fixed; z-index: 15; left: var(--bs-l); top: var(--bs-t); width: var(--bs-w); max-height: var(--bs-h); overflow: auto;
    margin: 0; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-pop); }
  :root.bs-on .rp.bs-detail { padding: 14px 16px 16px; background: var(--surface); }
  :root.bs-on .rd-change.bs-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px; }
  :root.bs-on tr.sub.bs-detail, :root.bs-on tr.sub.bs-detail > td { display: block; }
  :root.bs-on tr.sub.bs-detail > td { padding: 16px; border: 0; white-space: normal; }
  /* the list in its 55%: one line a row, no side scroll. A money grid leaves out what the record beside shows (reference, account,
     paid, currency, the document's kind, completeness, size and hash); another table shares its width, each cell one line */
  :root.bs-on .bs-host table.mg-grid :is(.mg-ref, .mg-acc, .mg-paid, .mg-cur, .mg-due-date, .mg-kind, .mg-cmp, .mg-small, .mg-sha, .mg-id) { display: none; }
  /* round 1043: Open items By contact beside the contact's items: the contact, Oldest, Open and Past due (the ages stand beside) */
  :root.bs-on .bs-host table.mg-grid.mg-aged .mg-bk { display: none; }
  :root.bs-on .bs-host table.mg-grid th.mg-act { width: 48px; } :root.bs-on .bs-host table.mg-grid th.mg-tick { width: 30px; }
  :root.bs-on .bs-host table.mg-grid th.mg-clip { width: 36px; }
  :root.bs-on .bs-host table.kit:not(.mg-grid):not(.kit-groups) { table-layout: fixed; width: 100%; min-width: 0; }
  :root.bs-on .bs-host table.kit:not(.mg-grid):not(.kit-groups) :is(th, td) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 6px; padding-right: 6px; }
  :root.bs-on .bs-host table.kit:not(.mg-grid):not(.kit-groups) td * { white-space: nowrap; }
  :root.bs-on .bs-host table.kit:not(.mg-grid):not(.kit-groups) td .untrusted { display: inline; }
  :root.bs-on .bs-host table.kit:not(.mg-grid):not(.kit-groups) tr > :first-child { width: 24%; }
  :root.bs-on .bs-row, :root.bs-on tr.bs-row > td { background: var(--sel); }
  :root.bs-on .bs-row { box-shadow: inset 3px 0 0 var(--do); }
  #bs-pane { display: flex; flex-direction: column; padding: 0; }
  #bs-pane[hidden] { display: none; }
  #bs-pane .bs-head { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 2; background: var(--surface); }
  #bs-pane .bs-title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--t20); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #bs-pane .bs-x { width: 36px; height: 36px; padding: 0; border: 0; background: none; font-size: var(--t20); color: var(--muted); cursor: pointer; }
  #bs-pane .bs-body { padding: 16px 20px 20px; min-width: 0; }
  #bs-pane .bs-body > .plain > :first-child { margin-top: 0; }
  #bs-pane .bs-body .page-head h1, #bs-pane .bs-body a#back, #bs-pane .bs-body .ph-next.good { display: none; }
}
@media (max-width: 99.99rem) { #bs-pane { display: none; } }

/* HQ stand-in for P02, UX alignment round (17 Nov 2026; owner: "I don't want shit design anywhere, like randomly sized buttons,
   things that aren't perfectly aligned"). Measured first (tools/ux_probe.py on every menu page of a fresh company and of the demo at
   1440, 1280 and 390): a page carried up to 8 button sizes of one role (heights 28, 32, 36, 38, 44, 48; paddings 0, 8, 10, 12, 16,
   20; radius 6 and 8), fields 32 beside header fields 38, icons at 15, 18 and 22 px. One rule set now, on tokens:
   1. every button of the app, any role (filled main, filled action, framed plain, icon): one height --ctl-h (36 px, 44 px on a phone
      or a touch screen), one side padding --btn-px (12 px), one font size --btn-fs (15 px; 13 px in the top bar), radius --radius-m;
   2. a button in a list row (a table row, a job card, a settings row): --ctl-h-row (32 px, 44 px on a phone), font 13 px;
   3. every text field and select: the same --ctl-h (rows: --ctl-h-row), so a field and its button share top and bottom;
   4. icons: --icon-s 16 px in buttons and rows, --icon-m 20 px in the menu, the top bar and the phone's bottom bar.
   In a cascade layer: an important declaration of a layer wins over every important one outside layers, so the many older page
   rules (2rem, 38px, 44px, 48px, padding 0 to 22 px) cannot win back, whatever their selector. Inside the layer :where keeps the
   general rules light, so the row, top bar and icon rules below them win by their place in a row or bar.
   The door (sign in and sign up pages, body.door) keeps its own big buttons: sign up is another order of 17 Nov.
   Guard: tests/test_ux_alignment.py (one size per role on every probed page, no stray edge, every control on the tokens). */
:root { --ctl-h: 2.25rem; --ctl-h-row: 2rem; --btn-px: .75rem; --btn-fs: var(--t15); --btn-fs-row: var(--t13); --btn-fs-top: var(--t13);
  --icon-s: 16px; --icon-m: 20px; }
@media (max-width: 56rem), (pointer: coarse) { :root { --ctl-h: 44px; --ctl-h-row: 44px; } }
@layer ux-align {
  /* 1. buttons */
  :root body:not(.door) :where(a.btn, button.btn, summary.btn, label.btn, span.btn, main button.primary, main form button:not([class]), main [data-was-main], .rr-ok,
    .b6-tabs [data-tab], .b6-tabs a.b6-tab-link, .h6-acts .ask-ai, a.h7-verb, button.h7-verb):where(:not(.pin-btn:not(.acts-pop *), .fold, .fold-btn, .linkish, .plain, .rr-dots, .jn-remove, .app-bar-x, .bs-x, .chips > details > summary)) {
    box-sizing: border-box !important; height: var(--ctl-h) !important; min-height: var(--ctl-h) !important; padding-top: 0 !important; padding-bottom: 0 !important;
    padding-left: var(--btn-px) !important; padding-right: var(--btn-px) !important; font-size: var(--btn-fs) !important; line-height: 1.2 !important;
    border-radius: var(--radius-m) !important; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
  /* 2. a button in a list row */
  :root body:not(.door) :is(tr, li.job, .row, .b6-row, .ja, .ra, .sr-a, article.ap-card) :where(a.btn, button.btn, summary.btn, label.btn, span.btn,
    button.primary, form button:not([class]), [data-was-main], .rr-ok):where(:not(.pin-btn, .fold, .fold-btn, .linkish, .plain, .rr-dots, .jn-remove)) {
    height: var(--ctl-h-row) !important; min-height: var(--ctl-h-row) !important; font-size: var(--btn-fs-row) !important; }
  /* the top bar: the same height, its own smaller words */
  :root body:not(.door) :is(.topbar, .demo-bar, .app-bar) :where(a.btn, button.btn, label.btn) { font-size: var(--btn-fs-top) !important; }
  /* icon buttons (the pin, beside a page title and in a section's head): a square of the control height */
  :root body:not(.door) .btn.pin-btn:not(.acts-pop *) { box-sizing: border-box !important; width: var(--ctl-h) !important; min-width: var(--ctl-h) !important; height: var(--ctl-h) !important;
    min-height: var(--ctl-h) !important; padding: 0 !important; border-radius: var(--radius-m) !important; justify-content: center; }
  :root body:not(.door) .kit-head .btn.pin-btn.pin-sec { margin-block: calc((1.75rem - var(--ctl-h)) / 2) !important; }
  /* 3. fields */
  :root body:not(.door) :where(input:not([type=checkbox], [type=radio], [type=hidden], [type=file], [type=range], [type=color], [type=submit], [type=button], [type=image]),
    select:not([multiple], [size], .pick-behind)) {
    box-sizing: border-box !important; height: var(--ctl-h) !important; min-height: var(--ctl-h) !important; }
  :root body:not(.door) :is(tr, li.job, .row, .b6-row, .ja, .ra, .sr-a) :where(input:not([type=checkbox], [type=radio], [type=hidden], [type=file], [type=range], [type=color], [type=submit], [type=button], [type=image]),
    select:not([multiple], [size], .pick-behind)) { height: var(--ctl-h-row) !important; min-height: var(--ctl-h-row) !important; }
  /* 4. icons */
  :root body:not(.door) :where(.btn, button, summary, .rr-clipb, .datefield-pick, .xl-btn) > svg:where(:not(.keep-size)) {
    width: var(--icon-s) !important; height: var(--icon-s) !important; flex: 0 0 var(--icon-s) !important; }
  :root body:not(.door) :is(.rail a.grp, nav.tabbar a, .topbar a, .topbar label, .topbar span) > svg { width: var(--icon-m) !important; height: var(--icon-m) !important; flex: 0 0 var(--icon-m) !important; }
}
/* rhythm and overflow the probe found on single pages (UX alignment round, 17 Nov 2026): a plain h3 took the browser's 1em margins
   (15 px gaps on VAT registrations; the space scale is 4, 8, 12, 16, 24, 32); the bank desk stood 28 px above the next section; the
   P&L month table at 1280 px was 67 px wider than its card and its last months were cut off (overflow hidden) */
h3 { margin: var(--s4) 0 var(--s3); }
.b6 { margin-bottom: var(--s5); }
.r6-tbl { overflow-x: auto; }
/* one title column in every card (UX3): a section's title starts where the titles of the folding sections start, after their arrow
   (1.25em and 8 px; on a phone the 44 px arrow less its 12 px hang). Before, the first section's title stood 27 px left of the
   others (285 against 312 at 1440 px; 31 against 63 on a phone) */
.kit-sec:not(.h6-card) > header.kit-head:not(.fold-head) > h2 { padding-left: calc(1.25em + var(--s2)); }
.sheet .kit-sec > header.kit-head:not(.fold-head) > h2 { padding-left: 0; }
@media (max-width: 56rem) { .kit-sec:not(.h6-card) > header.kit-head:not(.fold-head) > h2 { padding-left: 32px; } .sheet .kit-sec > header.kit-head:not(.fold-head) > h2 { padding-left: 0; } }
/* round 1145 (UX3, /close at 390): a section that never folds keeps its head on the 12 px edge of its content on the phone (was 14) */
@media (max-width: 56rem) { .kit-sec[data-nofold] > .kit-head { padding-left: 12px; padding-right: 12px; } }
/* a kit section inside a kit section is a part of it, not a card in a card: no second frame, so its title keeps the one column
   (Loans' Movements and Settings' History stood 1 px right of their neighbours, inside the outer card's border) */
.kit-sec .kit-sec { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; margin-left: 0; margin-right: 0; }
/* HQ stand-in for P02 (WCAG 2.1 AA for HMRC, ref FFX682, 17 Nov 2026), 2.4.7 Focus Visible: menu rows, menu chevrons and the
   account button had their focus ring taken away by later rules (box-shadow: none); the ring is given back on keyboard focus only */
:root .rail h6 button.fold:focus-visible, :root .rail h6 a.grp:focus-visible, :root .rail .sub a[data-nav]:focus-visible,
:root .rail a[data-nav]:focus-visible, :root details.me > summary:focus-visible { box-shadow: var(--focus); outline: none; }
/* 2.4.1 Bypass Blocks: the skip link, seen only when it has keyboard focus */
a.skip { position: absolute; left: -10000px; top: 8px; z-index: 1000; padding: 8px 14px; background: var(--surface); color: var(--fg); font-weight: 600;
  border-radius: var(--rc, 8px); box-shadow: var(--focus); }
a.skip:focus, a.skip:focus-visible { left: 8px; }

/* round 1006 (design pass 2, finding 4: on the phone the P&L's "12 months" list widened the page from 390 to 638 px and Last month
   could not be tapped): the period list opens as a column of 44 px rows over the page, held inside the screen width, at every width */
.kit-more.st-period-fold > .acts-pop { min-width: 11rem; max-width: calc(100vw - 2rem); }
.kit-more.st-period-fold > .acts-pop .r6-seg.st-period { display: flex; flex-direction: column; overflow: visible; border: 0; border-radius: 0; }
.kit-more.st-period-fold > .acts-pop .r6-seg.st-period a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: var(--rc, 8px); }
@media (max-width: 40rem) {
  .kit-more.st-period-fold > .acts-pop { position: absolute; left: 0; width: max-content; min-width: 11rem; max-width: calc(100vw - 2rem); margin-top: 0; box-shadow: var(--shadow); }
  details.kit-more.st-period-fold[open] { flex: none; } }
/* round 1006 (finding 23: a status chip grew 8 px when its count changed after OK and Undo): counts in figures of one width */
.status-chips .chip { font-variant-numeric: tabular-nums; }
/* round 1006 (finding 16: the change panel grew 226 px when its lines came): the panel holds about its drawn height while it loads */
.rp > .rp-loading { min-height: 200px; margin: 0; }
/* round 1006 (finding 6): Match's OK and its running total in one row; why OK waits under it, never moving it */
.rp-acts.rp-acts-match { flex-wrap: nowrap; align-items: flex-start; }
.rp-acts.rp-acts-match > .rp-ok { flex: none; }
.rp-acts.rp-acts-match > .rp-sum { margin: 0; min-width: 0; padding-top: 8px; }
.rp-okwhy { margin: 8px 0 0; font-size: var(--text-s); }
.rp-okwhy[hidden] { display: none; }
/* round 1009 (pass 3 findings 34, 35): Post or Issue pressed on a form not complete names the missing field under the buttons */
.post-why { flex-basis: 100%; margin: 8px 0 0; padding: 8px 12px; border-radius: var(--rc, 8px); background: var(--surface); color: var(--fg);
  box-shadow: inset 3px 0 0 var(--bad); font-size: var(--text-s); }
/* round 1006 (finding 5): the demo's line beside a button it does not take: a calm note, the page and what was typed stay */
/* round 1044: a /try form the demo does not take says so on top, before any field is typed */
.demo-flag { flex-basis: 100%; margin: 0 0 8px; color: var(--ink-2); font-size: var(--text-s); }
.demo-note, .w-twin { flex-basis: 100%; margin: 8px 0 0; padding: 8px 12px; border-radius: var(--rc, 8px); background: var(--blue-soft); color: var(--fg); font-size: var(--text-s); }
.w-twin .btn { margin-left: 8px; }

/* round 1006 (design pass 1, left for pass 2: the sign in and sign up pages mixed 56 and 48 px buttons and gaps of 5, 10, 13 and
   20 px): one height for every door button and field, 48 px (round 1005's sign up button), and every gap on the space scale
   (0, 4, 8, 12, 16, 24, 32, 48) */
.door .button.google, .door button.big, .door .button.big { min-height: 3rem; }
.door .logo { gap: .5rem; }
.door h1 { margin: 0 0 .5rem; }
.door label { margin: 0 0 .25rem; }
.door .muted { margin: 1.5rem 0 0; }
.door .note { margin: 0 0 1rem; }
.door .button.quiet, .door button.quiet { margin-top: .5rem; }
.door label.tick { gap: .5rem; margin: 0 0 .75rem; }
.door details.code { margin: .5rem 0 1.5rem; } .door details.code label { margin-top: .5rem; }
@media (max-width: 40rem) { .door .signup-grid { gap: 1.5rem; } }
/* round 1006 (pass 1 leftover: the bank line page's cards, Booked to, Linked to, History, stood 4 px left of the kit sections' titles
   under them, Comments and tasks): the cards take the kit head's side padding, 20 px, 14 px on a phone (the guard's exception goes) */
.bl > .card { padding-left: 20px; padding-right: 20px; }
@media (max-width: 56rem) { .bl > .card { padding-left: 14px; padding-right: 14px; } }
/* round 1006 (pass 1 leftover: 509 phone targets under 44 px, most of them the logo, the tab links of a page and a row's dots): on a
   phone or a touch screen each of them takes 44 px, the words and icons the same size as before */
@media (max-width: 56rem), (pointer: coarse) {
  :root .top a.brand { min-height: 44px; display: inline-flex; align-items: center; }
  :root a.skip { min-height: 44px; display: inline-flex; align-items: center; }
  :root main .chips a { min-height: 44px; display: inline-flex; align-items: center; }
  :root .rr-dots { min-height: 44px; }      /* the row's grid keeps its 30 px column */
  :root .datefield-pick { min-width: 44px; min-height: 44px; }
  :root main a#back.crumb { min-height: 44px; } }
/* the title after Back on a phone starts in the column of the section titles under it (16 + 1 + 14 + the fold arrow's 32 px), as the
   bank line page measured: h1 at 56 px against its sections' titles at 63 (UX3) */
@media (max-width: 56rem) { :root main .page-head > a.crumb { margin-right: 7px; } }
/* round 1006 (pass 1 leftover: the phone's Snap icon stood at 22 px beside the 20 px of the other tabs) */
nav.tabbar label.snap > svg.ti { width: var(--icon-m); height: var(--icon-m); }
/* round 1006b (rule N1: Bank's first row stood at 242 px at 1280 x 700 since pass 1's 36 px head row): the summary line keeps its 44 px
   (its own room below the words), so the head under it stands 4 px from the work, not 8; drawn so from the first paint */
/* the trial balance's date group stays one row at 1280 in German with the year before as a fourth quick period (rule N1: its first
   row stood at 264 px): 12 px between its parts, on the space scale, in place of 14 */
:root main form.bar:has(> .pb-asof) { column-gap: 12px; }
@media (min-width: 56.01rem) { :root main .page-head.has-sum, :root[data-view="simple"] main .page-head.has-sum { margin-bottom: 4px; } }
/* Round 1008 (pass 4, the Xero eye). 1. The head: the page's one main action, Ask AI and one More (⋯) at every width (nav.js folds the
   rest, Excel, a PDF and Pin to Home into it); the More's menu as on the phone. 2. The pin's word shows inside the menu. 3. The page title
   one step up the type scale, 24 px (N2 keeps five sizes: 12, 13, 15, 20, 24); it wraps on a phone, never clipped. */
main .page-head > details.ph-more { position: relative; flex: none; }
main .page-head > details.ph-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; padding: 0; font-size: var(--text-l); }
@media (min-width: 56.01rem) and (pointer: fine) { main .page-head > details.ph-more > summary { min-width: 36px; } }
main .page-head > details.ph-more > summary::-webkit-details-marker { display: none; }
main .page-head > details.ph-more > summary::after { content: none; }
main .page-head > details.ph-more > .acts-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column;
  align-items: stretch; gap: 8px; min-width: 13rem; padding: 12px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--rc); box-shadow: var(--shadow); }
main .page-head > details.ph-more > .acts-pop .btn, main .page-head > details.ph-more > .acts-pop button { width: 100%; justify-content: flex-start; text-align: left; }
main .page-head > details.ph-more > .acts-pop form { margin: 0; }
main .page-head > details.ph-more > .acts-pop .kit-sheet > summary { width: 100%; justify-content: flex-start; }
.pin-btn .pin-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.acts-pop .pin-btn { gap: 8px; }
.acts-pop .pin-btn .pin-t { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
/* What is new: one line per item, its date and title; the line's words fold out under it */
ul.news:has(> li > details.news-i) { list-style: none; padding: 0; margin: 0; }
ul.news > li > details.news-i { border-bottom: 1px solid var(--line); }
details.news-i > summary { list-style: none; display: block; cursor: pointer; padding: 12px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.news-i > summary::-webkit-details-marker { display: none; }
details.news-i > summary > .muted { display: inline-block; min-width: 7.5rem; }
details.news-i > p { margin: 0 0 12px; color: var(--ink-2); }
/* a bank row's tick and its Always like this show on the row the mouse is on or the keys are in, and on every row once one is ticked
   (Xero's and Stripe's lists); a ticked Always stays; a touch screen keeps them shown */
@media (hover: hover) and (pointer: fine) {
  main:not(:has(.rr-tick input:checked)) .rr-row:not(:hover):not(:focus-within) .rr-tick input { opacity: 0; }
  .rr-row:not(:hover):not(:focus-within) .rr-always:not(:has(input:checked)) { opacity: 0; }
  }
/* To do: only the first task's button is filled (7 filled buttons stood above the fold); the others are outlined, Later and the steps of
   a filing are quiet words without a frame */
:root main .job-later :is(a.btn, button.btn, button.primary, button.rr-ok, summary.btn):not(.later-menu > summary):not(form[action$="/todo/later"] button):not(.linkish) {
  background: var(--surface) !important; border-color: var(--line-strong) !important; color: var(--fg) !important; }
:root main li.job :is(.later-menu > summary.btn, form[action$="/todo/later"] button) { background: transparent !important; border-color: transparent !important; color: var(--muted) !important; }
:root main li.job small.gates .gate:not(.ok) { border-color: transparent; padding-left: 0; padding-right: 0; }
/* Account, Plan and payment: one left edge, no cards in the card (6 boxes in boxes, 5 left edges stood there); the plans side by side
   as plain columns under a line, as FreeAgent's and Xero's subscription pages */
:root main section.kit-sec:has(> #route) > :is(.card, .grid > .card) { border: 0; box-shadow: none; background: none; border-radius: 0; padding: 0; }
:root main section.kit-sec:has(> #route) > .grid { border-top: 1px solid var(--line); padding-top: var(--s3); }
:root main section.kit-sec:has(> #route) > .card + .card, :root main section.kit-sec:has(> #route) > .grid + .card { border-top: 1px solid var(--line); padding-top: var(--s3); }
/* bulk actions show once a row is ticked (Xero, Stripe): Invoices' PDFs and Mark as paid; a list's row ticks show on the row the mouse
   is on and on every row once one is ticked */
main:not(:has(input[form="bulk-pdf"]:checked)) #bulk-pdf { display: none; }
@media (hover: hover) and (pointer: fine) {
  main:not(:has(td.tick input:checked)) tr:not(:hover):not(:focus-within) > td.tick input { opacity: 0; }
  }
/* 7. phone targets: 44 px for a row's tick, its dots and paperclip, the summary line's figures and Next, Ask AI */
@media (max-width: 56rem), (pointer: coarse) {
  :root main :is(td.tick, .rr-tick) input[type="checkbox"] { width: 44px; height: 44px; margin: 0; }
  :root main :is(.rr-dots, .rr-clipb) { min-width: 44px; min-height: 44px; margin-left: -7px; margin-right: -7px; }
  :root main .ph-sum :is(a.ph-fig, .ph-next a) { min-height: 44px; display: inline-flex; align-items: center; column-gap: .3em; }   /* round 1021: label and figure one space apart (flex dropped the space: "Awaiting payment£7,732.57") */
  :root main .page-head .ask-ai { min-width: 44px; width: 44px; }
  :root main .pg-arrow, :root main .page-head > details.ph-more > summary { min-width: 44px; }
  :root main .chips a { min-width: 44px; justify-content: center; }
  :root main td.jl-no a.entry { min-width: 44px; display: inline-flex; align-items: center; }
  }
/* 6. a money list on a phone (Invoices, Bills): the customer's name had 11 px and was cut ("Customer", "15 Jun 2026" clipped). The row
   opens its record (its tick, paperclip and menu are there and on a computer); the date its width.
   Round 1043 (order of 12 Nov 2026, B and O: "lines should be same height"; DESIGN-RULES 8.2): the name in one line at the body size,
   cut with an ellipsis, the whole name in the cell's title; before, a long name took a second line (Invoices 50 px rows, Documents 61) */
@media (max-width: 56rem) {
  :root main table.mg-grid :is(th.mg-tick, td.tick, th.mg-clip, td.mg-clip, th.mg-act, td.mg-act) { display: none; }
  :root main table.mg-grid th.mg-date { width: 5.25rem; }
  :root main table.mg-grid td.mg-who, :root main table.mg-grid td.mg-who a:not(.btn) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 20px; }
  :root main table.mg-grid td.mg-who a:not(.btn) { display: block; max-width: 100%; line-height: 44px; min-height: 44px; }
  :root main table.mg-grid td.mg-st .pill { white-space: normal; }
  }
/* 8. a report's month table fits the window at 1440 (the German P&L stood 1,670 px wide, 495 px off screen): the row name wraps in a
   13rem first column that stays put (sticky), the month columns take the width of their figures, as Xero's P&L fits twelve months */
@media (min-width: 56.01rem) {
  :root main table.r6-pl { width: auto; min-width: 100%; }
  :root main table.r6-pl tbody th, :root main table.r6-pl thead th:first-child { min-width: 7.5rem; width: 7.5rem; max-width: 7.5rem; white-space: normal; line-height: 1.25;
    hyphens: auto; overflow-wrap: anywhere; }
  :root main table.r6-pl thead th { white-space: normal; line-height: 1.2; }
  :root main table.r6-pl th, :root main table.r6-pl td { padding-left: 2px; padding-right: 2px; }
  :root main table.r6-pl tr > *:last-child { padding-right: 8px; }
  :root main table.r6-pl td { min-width: 0; font-size: var(--t12); }
  :root main table.r6-pl td .r6-fig { padding-left: 0; padding-right: 0; }
  }
/* a hold button in a form's bar stands as high as the field beside it (Annual returns: Reference 36 px, its button 32) */
:root main form.bar > div > button.hold:not(.btn) { height: var(--ctl-h); min-height: var(--ctl-h); }
/* one list row height, 52 px (rule 8.2, owner 21 Nov 2026 at HQ Design; N5 had 46): the kit's tables stood at 31 px beside the lists */
@media (min-width: 56.01rem) { :root main table.kit td { height: 52px; } }
:root, :root[data-view="simple"] { --h1: var(--t24); }
:root main h1, :root[data-view="simple"] main h1 { overflow-wrap: break-word; }
@media (max-width: 56rem) {
  :root main .page-head > h1, :root[data-view="simple"] main .page-head > h1 { white-space: normal; overflow: visible; text-overflow: clip; min-width: min-content; }
  :root main .page-head:has(> .chips), :root[data-view="simple"] main .page-head:has(> .chips) { flex-wrap: wrap; }
  }
/* round 1011 (owner's target look of 18 Nov 2026): one bank feed card per bank: name and Connected, a row per account, the footer */
.feed-card { display: flex; flex-direction: column; gap: var(--s2); }
.feed-card .feed-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.feed-card table.feed-rows { width: 100%; border-collapse: collapse; margin: 0; }
.feed-card table.feed-rows td { padding: var(--s1) 0; border: 0; vertical-align: middle; }
.feed-card table.feed-rows td + td { padding-left: var(--s3); }
.feed-card table.feed-rows select { max-width: 100%; }
.feed-card .feed-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s2); }
.feed-card .feed-foot form { margin: 0; }
.feed-card .feed-more { margin-left: auto; }
.feed-card .feed-more > summary::after { content: none; }
.feed-card .feed-more > .acts-pop { left: auto; right: 0; }
.feed-card form.feed-pick .bar { margin-top: var(--s2); }
@media (max-width: 40rem) {
  .feed-card table.feed-rows td { display: block; padding-left: 0; }
  .feed-card table.feed-rows td + td { padding-left: 0; padding-bottom: var(--s2); }
  }
/* round 1019 (owner, 18 Nov 2026 07:20 and 07:30): the side menu and its company list scroll by wheel, touch and keys without a
   visible bar; the open list keeps inside the menu (its height set on opening by boot.js) and is the one scroll area; every
   company on one line, cut with an ellipsis, the legal name on hover; a company row as high as a menu row; a group's companies as
   small squares under its own number, in the companies' colour, joined by +, the percent on the name's line */
:root .rail, details.cosw .pop, dialog.co-sheet { scrollbar-width: none; }
:root .rail::-webkit-scrollbar, details.cosw .pop::-webkit-scrollbar, dialog.co-sheet::-webkit-scrollbar { display: none; width: 0; height: 0; }
:root .rail .rail-co details.cosw .pop { max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain; }
:root .rail .rail-co details.cosw > summary { max-width: 100%; min-width: 0; }
:root details.cosw > summary .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root details.cosw li { min-width: 0; }
:root details.cosw li > button, :root details.cosw li > a { min-width: 0; min-height: 36px; padding-top: 0; padding-bottom: 0; }
:root details.cosw li.co > button { height: 36px; }
:root details.cosw li .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root details.cosw li.grp > a { flex-wrap: wrap; row-gap: 3px; padding-top: 5px; padding-bottom: 6px; }
:root details.cosw li.grp .nm { flex: 1 1 0; }      /* beside its number, never wrapped onto a line of its own */
:root details.cosw li.grp .of { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
:root details.cosw li.grp .of b { min-width: 1.35em; padding: 0 3px; border-radius: 4px; background: var(--sel); color: var(--fg); font-size: var(--text-xs); font-weight: 600;
  line-height: 15px; letter-spacing: -.02em; text-align: center; font-variant-numeric: tabular-nums; }
:root details.cosw li.grp .of i { font-style: normal; font-size: var(--text-xs); font-weight: 700; color: var(--muted); }
@media (max-width: 56rem) {
  :root .rail .rail-co details.cosw { position: relative; }     /* the list opens under the company in the menu sheet, not under the sheet */
  :root details.cosw li > button, :root details.cosw li > a { min-height: 44px; }
  :root details.cosw li.co > button { height: 44px; }
  }
/* the sheet Edit list: every company with its number, a Display name over the legal name, a handle and the arrows; one Save */
dialog.co-sheet { border: 0; border-radius: 16px; padding: 18px 20px 20px; width: min(34rem, calc(100vw - 32px)); max-width: none; max-height: 86vh; overflow-y: auto;
  background: var(--surface); color: var(--fg); box-shadow: 0 24px 60px -20px rgba(20, 36, 48, .35); }
dialog.co-sheet::backdrop { background: rgba(14, 24, 32, .32); }
dialog.co-sheet form { margin: 0; }
dialog.co-sheet h2 { margin: 0 0 6px; font-size: var(--h2); }
dialog.co-sheet .cols { margin: 0; padding: 0 0 4px 58px; font-size: var(--text-xs); color: var(--muted); font-weight: 600; }
dialog.co-sheet ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
dialog.co-sheet li { display: grid; grid-template-columns: 18px auto minmax(0, 1fr) 36px 36px; align-items: center; gap: 8px; min-height: 52px; padding: 5px 0;
  border-bottom: 1px solid var(--line); background: var(--surface); }
dialog.co-sheet li.dragging { opacity: .45; }
dialog.co-sheet li.drop-over { box-shadow: inset 0 2px 0 var(--blue); }
dialog.co-sheet .handle { width: 18px; height: 28px; cursor: grab; color: var(--muted); background-image: radial-gradient(currentColor 1.4px, transparent 1.6px);
  background-size: 6px 6px; background-position: 3px 2px; }
dialog.co-sheet .no { min-width: 1.6em; padding: 0 5px; border-radius: 6px; background: var(--sel); color: var(--fg); font-size: var(--text-xs); font-weight: 700;
  line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
dialog.co-sheet .fields { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
dialog.co-sheet .fields input { width: 100%; min-width: 0; box-sizing: border-box; }
dialog.co-sheet .legal { font-size: var(--text-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.co-sheet button.up, dialog.co-sheet button.down { width: 36px; height: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 99px; background: none;
  box-shadow: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
dialog.co-sheet button.up::before, dialog.co-sheet button.down::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(-135deg); margin-top: 4px; }
dialog.co-sheet button.down::before { transform: rotate(45deg); margin-top: -4px; }
dialog.co-sheet button.up:hover, dialog.co-sheet button.down:hover { background: var(--hover); color: var(--fg); }
dialog.co-sheet li:first-child button.up, dialog.co-sheet li:last-child button.down { visibility: hidden; }
dialog.co-sheet .acts { display: flex; gap: 8px; margin-top: 14px; }
@media (max-width: 56rem) {
  dialog.co-sheet[open] { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0;
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
  dialog.co-sheet li { grid-template-columns: 18px auto minmax(0, 1fr) 44px 44px; gap: 6px; }
  dialog.co-sheet button.up, dialog.co-sheet button.down { width: 44px; height: 44px; min-height: 44px; }
  dialog.co-sheet .cols { padding-left: 52px; }
  }
/* round 1019 (owner, 18 Nov 2026 07:40): Settings, Your companies: Display name and Short name as fields in the row, saved on change;
   Edit list a small link as in the menu; Join or Leave the group and Archive or delete under the row's ⋯ */
.co-edit-link { display: inline-block; margin: 0 0 8px; font-size: var(--text-s); font-weight: 600; color: var(--act-text); }
table.co-list input.co-field { height: var(--ctl-h-row, 32px); min-height: 0; padding: 0 8px; margin-left: 8px; max-width: 14rem; box-sizing: border-box; font-size: var(--text-s); }
table.co-list input.co-field.mono { margin-left: 0; max-width: 8rem; }
table.co-list input.co-field[data-state="saved"] { border-color: var(--green); }
table.co-list input.co-field[aria-invalid="true"] { border-color: var(--bad); }
table.co-list td.mg-act { text-align: right; width: 44px; }
table.co-list .mg-more { position: relative; }
table.co-list .mg-more > .rr-menu { position: absolute; right: 0; top: 100%; left: auto; white-space: normal; min-width: 16rem; }
table.co-list .mg-more > .rr-menu details.co-leave > summary { padding: 7px 10px; cursor: pointer; }
@media (max-width: 56rem) { table.co-list input.co-field { height: 44px; margin-left: 0; margin-top: 4px; display: block; } }
/* round 1019b: the short name, a field beside the display name (Settings and the sheet Edit list); the code under the row's ⋯; on
   the phone the company switch shows the short name where there is one */
dialog.co-sheet .pair { display: flex; gap: 6px; min-width: 0; }
dialog.co-sheet .pair input { flex: 1 1 auto; min-width: 0; }
dialog.co-sheet .pair input.short { flex: 0 0 7rem; width: 7rem; }
dialog.co-sheet .cols { display: flex; gap: 6px; padding-right: 88px; }
dialog.co-sheet .cols span:first-child { flex: 1 1 auto; }
dialog.co-sheet .cols span:last-child { flex: 0 0 7rem; }
table.co-list input.co-field.short { margin-left: 0; max-width: 8rem; }
table.co-list .rr-menu p.co-code { margin: 0; padding: 7px 10px; color: var(--muted); font-size: var(--text-s); }
@media (max-width: 56rem) { dialog.co-sheet .pair input.short { flex-basis: 5.5rem; width: 5.5rem; } dialog.co-sheet .cols { padding-right: 100px; } dialog.co-sheet .cols span:last-child { flex-basis: 5.5rem; } :root details.cosw > summary .nm[data-short] { font-size: 0; } :root details.cosw > summary .nm[data-short]::after { content: attr(data-short); font-size: var(--text-s); } }
/* round 1019c (review, Medium 4): the row's ⋯ on Settings, Your companies is a button and the region it opens; names a person may
   not change stand as text in the sheet */
table.co-list .co-more { position: relative; display: inline-block; }
table.co-list .co-more-pop { position: absolute; right: 0; top: 100%; z-index: 20; min-width: 16rem; padding: 4px; text-align: left; white-space: normal;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--rc); box-shadow: var(--shadow); }
table.co-list .co-more-pop form { margin: 0; display: block; }
table.co-list .co-more-pop button { display: block; width: 100%; border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: 6px; font: inherit; color: var(--fg); }
table.co-list .co-more-pop button:hover { background: var(--hover); }
table.co-list .co-more-pop p.co-code { margin: 0; padding: 7px 10px; color: var(--muted); font-size: var(--text-s); }
table.co-list .co-more-pop details.co-leave > summary { padding: 7px 10px; cursor: pointer; }
dialog.co-sheet .pair .ro { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
dialog.co-sheet .pair .ro.short { flex: 0 0 7rem; font-weight: 400; color: var(--muted); }
form.co-order label { display: inline-block; margin: 4px 12px 4px 0; }
/* round 1024 (owner order of 18 Nov 2026): Shops and payouts, one card per connected store, the last card Connect more */
.shop-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--s3); margin: 0 0 var(--s3); }
.shop-cards > .shop-card { margin: 0; display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.shop-card .shop-top { display: flex; align-items: center; gap: var(--s2); min-height: 2rem; color: var(--ink-2); font-size: var(--text-s); }
.shop-card .shop-top .kit-more { margin-left: auto; }
.shop-card .shop-mark { flex: none; color: var(--ink); }
.shop-card .shop-name { overflow-wrap: anywhere; }
.shop-card .shop-co { font-size: var(--text-s); }
.shop-card .shop-state { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-size: var(--text-s); }
.shop-card .shop-today { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-size: var(--text-s); }   /* round 1025: Sales today */
.shop-card .pill.plain { color: var(--ink-2); background: var(--surface-2); }
.shop-card.shop-more { justify-content: center; align-items: flex-start; border-style: dashed; }
.shop-card .acts-pop form { margin: 0 0 var(--s2); }
.connect-opt { border-top: 1px solid var(--line); padding: var(--s3) 0; }
.connect-opt:first-child { border-top: 0; padding-top: 0; }
.connect-opt .shop-mark { vertical-align: -5px; }
.shop-price { margin: 0 0 var(--s4); font-size: var(--text-s); }
.connect-say { margin: var(--s1) 0 var(--s2); font-size: var(--text-s); }
.shop-pay-count { margin: 0 0 var(--s2); }
.az-step .shop-co, .az-step .az-when { margin: 0 0 var(--s2); }
@media (max-width: 40rem) {
  .shop-cards { grid-template-columns: 1fr; }
  .shop-card .shop-top { min-height: 2.75rem; }
}

/* Round 1012 (owner P1 order of 18 Nov 2026): the tag of a bank line no bank file stands behind (Typed, Uploaded, App), grey with a
   pencil, the same on every page (linetag.py, reconrow.js lineTag) */
.line-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: var(--text-xs);
  line-height: 18px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; vertical-align: 1px;
  font-weight: var(--weight-regular); }
.line-tag .tag-ico { flex: none; }
.rr-row.rr-new { transition: background 1.2s ease-out; }
/* the Import statement sheet: a 520 px card; the template and the line by hand in one quiet footer row */
.kit-sheet.imp-sheet > .sheet-body { width: min(32.5rem, 100%); }
.imp-sheet .imp-kinds { margin: calc(-1 * var(--s2)) 0 0; font-size: var(--text-xs); }
.imp-sheet .imp-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid var(--line); font-size: var(--text-s); }
.imp-sheet .imp-foot a, .imp-sheet .imp-foot summary.link { color: var(--accent-ink); cursor: pointer; }
/* round 1042 (one Excel button per page): the template downloads under the footer's ⋯, opening upwards inside the sheet */
.imp-sheet .imp-tpl > summary::after { content: none; }
.imp-sheet .imp-tpl > .acts-pop { top: auto; bottom: calc(100% + 4px); }
.imp-sheet .imp-tpl > .acts-pop a { color: var(--fg); white-space: nowrap; }
.imp-sheet details.tl { flex: 1 1 100%; }
.imp-sheet details.tl > summary { list-style: none; display: inline; }
.imp-sheet details.tl > summary::-webkit-details-marker { display: none; }
.imp-sheet details.tl[open] > summary { color: var(--muted); }
.imp-sheet .sheet-body:has(details.tl[open]) > form.imp { display: none; }
.imp-sheet .tl-body { margin-top: var(--s3); }
.imp-sheet .tl-off { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); color: var(--muted); }
.imp-sheet .tl-off details.tl-on > summary { list-style: none; display: inline; color: var(--accent-ink); cursor: pointer; }
.imp-sheet .tl-off details.tl-on > summary::-webkit-details-marker { display: none; }
.imp-sheet .tl-switch { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s2) var(--s3); margin-top: var(--s2); }
.imp-sheet .tl-switch > div:first-of-type { flex: 1 1 14rem; }
.imp-sheet .tl-switch input { width: 100%; }
.imp-sheet .tl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.imp-sheet .tl-grid > div { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.imp-sheet .tl-grid > .tl-wide { grid-column: 1 / -1; }
.imp-sheet .tl-grid input, .imp-sheet .tl-grid select { width: 100%; max-width: 100%; }
.imp-sheet .tl-amt-row { display: flex; gap: var(--s2); align-items: stretch; }
.imp-sheet .tl-amt-row > input { flex: 1 1 auto; min-width: 0; }
.imp-sheet .seg { display: inline-flex; flex: none; border: 1px solid var(--control-line); border-radius: var(--radius-s); overflow: hidden; }
.imp-sheet .seg label { position: relative; display: inline-flex; align-items: center; margin: 0; cursor: pointer; }
.imp-sheet .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.imp-sheet .seg span { padding: 0 var(--s3); line-height: 2.25rem; font-size: var(--text-s); color: var(--muted); }
.imp-sheet .seg input:checked + span { background: var(--accent-soft); color: var(--fg); font-weight: var(--weight-medium); }
.imp-sheet .seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; }
.imp-sheet .tl-acts { display: flex; gap: var(--s2); margin-top: var(--s3); }
.imp-sheet .tl-err { margin: var(--s2) 0 0; }
@media (max-width: 40rem) {
  .imp-sheet .tl-grid { grid-template-columns: 1fr; }
  .imp-sheet .seg span { line-height: 2.75rem; }
}
/* HQ stand-in for P02, alignment pass 5 (18 Nov 2026; owner 05:30 on Home of a company at 2480 px: To do's buttons Approve, Set up,
   Approve, Approve, Post, Attach, Post each of another width, so their left edges zig zag down the right side; the head's four
   buttons of four widths). Five passes measured each button's height and padding by role, never whether the buttons of one column
   share a width and an edge. Rules N15 to N18 (app/docs/PAGE-KIT.md, HQ design-rules.md), on tokens:
   N15 the row actions of one list: one width, the widest label of the list and never under --row-act-min, one right edge, the label
       centred (nav.js measures each list and sets --ra-w on it, and --ra-cw on the part of the row that holds the action);
   N16 the buttons of one group (a page head, a form's foot, a document's actions): one height, padding and font (layer ux-align),
       widths by their label with one floor --btn-min, one gap --acts-gap;
   N17 fields by what they hold, one table: date --fw-date, amount --fw-amount, percent and quantity --fw-pct, currency --fw-cur,
       reference and code --fw-code; names, descriptions, search and long selects take the column;
   N18 a list's columns of one kind line up: amounts right aligned with tabular figures, one right edge.
   Guard: tests/test_ux_align5.py (tools/ux_probe.py, ALIGN). */
@media (max-width: 40rem) { :root:root { --ok-w: 78px; } }     /* the bank row's OK, phone (batch 10); outside the layer, as the token */
:root { --ok-w: 78px; --row-act-min: 7rem; --btn-min: 5.5rem; --acts-gap: var(--s2);
  --fw-date: 9rem; --fw-date-bar: 8rem; --fw-amount: 8.5rem; --fw-pct: 6rem; --fw-cur: 6rem; --fw-code: 10rem; }
/* round 1066: the layer order ux-align, ux-setup, ux-n15: Set up your books' form rules (round 1033) win over ux-n15's important rules
   as ux-align's do, in a layer of their own (the one ux-align rule set stays on tokens, test_ux_alignment) */
@layer ux-setup;
@layer ux-n15 {
  /* round 1021: a folded section shows its head only; this layer's own display rules (the long form bar's grid) must never open it
     (Who books what: Payees folded with its form showing) */
  :root:root:root body:not(.door) main [data-fold="shut"] > :not(.fold-head):not(.fold-head):not(.fold-head) { display: none !important; }   /* weighs more than every display rule of this layer */
  /* N15 (round 1021: the floor is the owner's 112 px; the known row actions take it from the stylesheet itself, before nav.js has
     measured, so a page never shows them ragged; nav.js then lifts a list to its widest label) */
  :root body:not(.door) main :is(.row-act:not(.rr-ok), ol.h7-rows > li > :is(a.h7-verb, button.h7-verb, form > button.h7-verb), li.job .ja > :is(a.btn, button.btn, form > button):first-child) {
    box-sizing: border-box !important; min-width: max(var(--row-act-min), var(--ra-w, 0px)) !important;
    justify-content: center !important; text-align: center !important; }
  /* batch 10 (re-look UK 2480: To do's Set up filled beside Pay, Connect and Mark as filed outlined; Mark as filed filled on one page,
     outlined on another): a row's own action has one look on every page, framed in the action colour; the page's one filled button
     is its next action in the head */
  :root body:not(.door) main :is(.row-act:not(.rr-ok), ol.h7-rows > li > :is(a.h7-verb, button.h7-verb)) { background: var(--surface) !important;
    border: 1px solid var(--do) !important; color: var(--do) !important; }
  :root body:not(.door) main :is(.row-act:not(.rr-ok), ol.h7-rows > li > :is(a.h7-verb, button.h7-verb)):hover { background: var(--do-soft, var(--surface-hover)) !important; }
  /* round 1027b (test_r786_walk at 390): the bank line panel's OK is the panel's one filled action, never a framed row action (nav.js marks
     it row-act as the first button of its list); more specific than the rule above, in its layer */
  :root body:not(.door) main .rp .rp-ok.primary.row-act { background: var(--do) !important; border-color: var(--do) !important; color: var(--do-ink) !important; }
  :root body:not(.door) main .rp .rp-ok.primary.row-act:hover { background: var(--do-strong) !important; border-color: var(--do-strong) !important; }
  /* the bank's OK: one width and one edge for the list (the column of the row grid), without the 112 px floor: the bank row's narrow
     OK is the owner's own design (round 984, N5 and N7) */
  /* round 1021 (looking review: OK outlined 112 px on To do and the bank line, filled 48 px on Bank): one OK everywhere, filled, 48 px
     (44 on a phone), whatever list it stands in */
  /* batch 10 (re-look DE 390: "Wählen" wider than its 48 px button, narrower than OK beside it): 78 px holds the German word (51 px)
     with the one rule set's 12 px padding and the border; the column 86 px, 80 on a phone */
  :root body:not(.door) main .rr-row .rr-ok { box-sizing: border-box; width: var(--ok-w) !important; min-width: var(--ok-w) !important; max-width: var(--ok-w); padding: 0 !important;
    white-space: nowrap; overflow: hidden; text-overflow: clip; }
  :root body:not(.door) main .rr-row:not(.rr-okd) .rr-ok.primary { background: var(--do) !important; border-color: var(--do) !important; color: var(--do-ink) !important; }
  :root body:not(.door) main .rr-row:not(.rr-okd) .rr-ok.primary:hover { background: var(--do-strong) !important; border-color: var(--do-strong) !important; }
  @media (max-width: 40rem) {
    /* the receipt's amber dot sat on the OK (the paperclip's 44 px target reaches under it); the paperclip's own colour says it */
    :root body:not(.door) main .rr-row .rr-clipb .rr-dot { display: none; } }
  :root body:not(.door) main .row-acts:not(.rr-okc) { box-sizing: border-box !important; min-width: var(--ra-cw, 0px) !important; }
  /* round 1021 (N15, N18): the To do jobs' action column is one width for the whole list, rows without an action included, so the
     amount at the end of each line keeps one right edge (AT: 20 px apart where one row had Later beside its action) */
  @media (min-width: 40.01rem) {
    :root body:not(.door) main ol.jobs[data-ra] > li.job { grid-template-columns: 5.5rem minmax(0, 1fr) var(--ra-cw, auto) !important; }
    :root body:not(.door) main ol.jobs[data-ra] > li.job.o-you { grid-template-columns: minmax(0, 1fr) var(--ra-cw, auto) !important; }
  }
  /* on a computer a job is one line (round 996): its amount stands at the line's end, before the action column, so the amounts of a
     list form one right aligned column (before: right after each title, AT VAT May and June 20 px apart) */
  @media (min-width: 56.01rem) {
    :root body:not(.door) main li.job .jw > .jl:has(> .num) { display: contents !important; }
    :root body:not(.door) main li.job .jw > .jl > .num { order: 10 !important; flex: none !important; margin-left: auto !important; padding-left: var(--s3) !important; text-align: right; }
  }  :root body:not(.door) main .row-acts.ra-start { justify-content: flex-start !important; }
  :root body:not(.door) main .row-acts.ra-end { justify-content: flex-end !important; }
  /* N16: every text button outside a list row, on a computer (a phone's head shares the row by flex, round 738); icon buttons
     (Ask AI, the dots, pin, Excel), segmented choices, tabs and chips keep their own width */
  @media (min-width: 56.01rem) {
    :root body:not(.door) main :is(a.btn, button.btn, summary.btn, label.btn, button.primary, form button:not([class])):not(tr *, li *, .rr-row *, .row *, .ja *, .sr-a *, .chips *,
      [role=tablist] *, .b6-tabs *, .acts-pop *, .kit-more > div *, .pager *, .datefield *, .pick-pop *, dialog *, .help-mark *):where(:not(.page-head .ask-ai,
      .pin-btn, .xl-btn, .linkish, .plain, [aria-pressed], .ph-more > summary, .kit-dots > summary, .rr-dots, .fold, .fold-btn, .row-act, .pg-arrow, :has(> svg:only-child))) {
      min-width: var(--btn-min) !important; justify-content: center !important; }
  }
  :root body:not(.door) main :is(.h6-acts, .next-act, .kit-actions, .jn-foot, .ph-acts) { column-gap: var(--acts-gap) !important; }
  /* N17 */
  :root body:not(.door) .datefield .datefield-text { width: var(--fw-date) !important; max-width: 100%; }
  /* round 1021: a report's filter bar (GET) is one line: its dates 7.75rem (124 px, as before pass 5), so From, To, As of and the period chips stand on one row in German
     too (at 144 px the chips of the German trial balance wrapped and its first row fell to y 270 at 1280 x 700, test_r981 N1) */
  :root body:not(.door) main form.bar:not([method="post" i]) .datefield .datefield-text { width: var(--fw-date-bar) !important; padding-right: 26px !important;
    padding-left: 6px !important; }
  :root body:not(.door) main form.bar:not([method="post" i]):not(:has(> div:nth-of-type(7))) { column-gap: var(--acts-gap) !important; }
  /* (batch 10, re-look UK 1440: "18 Nov 202" was cut by the calendar mark at 124 px; the year needs 91 px of text, so the mark's room
     is 26 px instead of 2.2em and the field 8rem, 128 px) */
  /* round 1021: one order, as tools/ux_probe.py ALIGN types them: amount, then percent and counts, then codes last (a UTR or a company
     number is typed with digits but is a code); a field marked data-w keeps its own width */
  @media (min-width: 56.01rem) {
    /* the three rules weigh the same (types inside :where), so the later one wins: amount, percent and counts, code */
    :root body:not(.door) main form input:where([inputmode="decimal"], [type="number"]):where(:not(table *, [data-w])) {
      width: var(--fw-amount) !important; max-width: 100%; }
    :root body:not(.door) main form input:where([inputmode="numeric"]:not([autocomplete="one-time-code"]),
      :is([name*="rate"], [name*="percent"], [name*="pct"], [name*="qty"], [name*="quantity"], [name*="weeks"], [name*="days"], [name*="months"],
      [name*="years"], [name*="employees"], [name*="count"], [name*="hours"]):is([inputmode="decimal"], [type="number"])):where(:not(table *, [data-w])) {
      width: var(--fw-pct) !important; max-width: 100%; }
    :root body:not(.door) main form input:where([name="reference"], [name$="_reference"], [name="ref"], [name$="_ref"], [name="code"], [name$="_code"], [name*="vat_no"],
      [name*="vat_number"], [name="utr"], [name$="_utr"], [name="number"]):where(:not(table *, [type="hidden"], [data-w])) {
      width: var(--fw-code) !important; max-width: 100%; }
    :root body:not(.door) main form select:is([name="currency"], [name$="_currency"]):not(table *) { width: var(--fw-cur) !important; max-width: 100%; }
  }
  /* a help mark beside a button: a round mark on the button's line, no fold arrow (Settings drew "> ?" beside Set up) */
  :root main details.help-mark { align-self: center; vertical-align: middle; }
  :root main details.help-mark > summary { display: inline-grid !important; place-items: center; box-sizing: border-box; width: 24px !important;
    height: 24px !important; min-height: 24px !important; padding: 0 !important; line-height: 1; font-size: var(--text-s); }
  :root main details.help-mark > summary::before, :root main details.help-mark > summary::after { content: none !important; display: none !important; }
  /* Settings rows: an inline Edit is a framed button like Open and Show all pages beside it (it was a bare word) */
  :root body:not(.door) main ul.set-rows details.set-inline > summary { box-sizing: border-box; display: inline-flex !important; align-items: center;
    justify-content: center; height: var(--ctl-h-row) !important; padding: 0 var(--btn-px) !important; border: 1px solid var(--do) !important; color: var(--do) !important;
    background: var(--surface) !important; border-radius: var(--radius-m) !important; font-size: var(--btn-fs-row) !important; font-weight: var(--weight-medium);
    min-width: max(var(--row-act-min), var(--ra-w, 0px)) !important; list-style: none; cursor: pointer; }
  :root body:not(.door) main ul.set-rows details.set-inline > summary::-webkit-details-marker { display: none; }
  :root body:not(.door) main ul.set-rows details.set-inline > summary::before, :root body:not(.door) main ul.set-rows details.set-inline > summary::after { content: none !important; }
  /* a chip row's own button (Months: Range) is a chip like the chips beside it */
  :root body:not(.door) main .chips > details > summary.btn { box-sizing: border-box; height: auto !important; min-height: 0 !important; padding: .15rem .6rem !important;
    font-size: var(--text-s) !important; font-weight: 400 !important; line-height: inherit; border-radius: 99px !important; border-color: var(--line-strong) !important; color: var(--ink-2) !important; }
  /* the bank's bar: one weight and one gap for the account picker and the tabs */
  :root body:not(.door) main .b6-bar :is(.b6-tabs [data-tab], .b6-tabs a.b6-tab-link, .b6-acc-pick > summary) { font-weight: var(--weight-medium) !important; }
  :root body:not(.door) main .b6-bar, :root body:not(.door) main .b6-bar > .b6-tabs { column-gap: var(--acts-gap) !important; }
  /* chips beside the head's buttons stand as high as they do (Receivables: Open, Overdue, Paid at 26 px beside 36) */
  :root body:not(.door) main .page-head .chips a { box-sizing: border-box; min-height: var(--ctl-h); display: inline-flex; align-items: center; }
  /* N17 a long form bar (five fields or more: Statutory accounts, Jahresabschluss, E-Bilanz, VAT registrations): label above field, the
     fields in a grid of columns with one left edge each, instead of a run of words and boxes that wraps at random */
  :root body:not(.door) main form.bar:is(:not([method="get" i]):has(> div:nth-of-type(5)), :has(> div:nth-of-type(7))) { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(11rem, max-content));
    gap: var(--s3) var(--s4) !important; align-items: end; }
  :root body:not(.door) main form.bar:is(:not([method="get" i]):has(> div:nth-of-type(5)), :has(> div:nth-of-type(7))) > div { display: flex !important; flex-direction: column !important; align-items: flex-start !important;
    justify-content: flex-end !important; text-align: left !important; gap: var(--s1); margin: 0 !important; min-width: 0; max-width: 18rem; }
  :root body:not(.door) main form.bar:is(:not([method="get" i]):has(> div:nth-of-type(5)), :has(> div:nth-of-type(7))) > div > label { margin: 0 !important; font-size: var(--text-xs); color: var(--muted); text-align: left !important;
    white-space: normal !important; max-width: 100%; line-height: 1.25 !important; }   /* batch 11: 15 px label lines (UK accounts' first field at y 242) */
  :root body:not(.door) main form:is(.bar, .write, .jn, .ln-form) select { min-width: var(--fw-cur); }
  /* round 1021 (N17): in the long form bar's grid a choice takes its column, so two choices in one column share one width and edge */
  :root body:not(.door) main form.bar:is(:not([method="get" i]):has(> div:nth-of-type(5)), :has(> div:nth-of-type(7))) > div > select:not([name="currency"], [name$="_currency"]) { width: 100% !important; }
  /* names, descriptions and other free text take the column too (N17: flexible); typed fields (date, amount, percent, code) keep the
     type table's width, and on a phone everything takes the column */
  :root body:not(.door) main form.bar:is(:not([method="get" i]):has(> div:nth-of-type(5)), :has(> div:nth-of-type(7))) > div > :is(input, textarea):where(:not([type="checkbox"], [type="radio"], [type="hidden"],
    [type="file"], [type="submit"], [type="button"], [type="number"], [inputmode], [data-w], [name="reference"], [name$="_reference"], [name="ref"], [name$="_ref"],
    [name="code"], [name$="_code"], [name*="vat_no"], [name*="vat_number"], [name="utr"], [name$="_utr"], [name="number"])) { width: 100% !important; }
  @media (max-width: 40rem) {
    :root body:not(.door) main form.bar:is(:not([method="get" i]):has(> div:nth-of-type(5)), :has(> div:nth-of-type(7))) > div { max-width: none; align-items: stretch !important; }
    :root body:not(.door) main form.bar:is(:not([method="get" i]):has(> div:nth-of-type(5)), :has(> div:nth-of-type(7))) > div > :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="hidden"],
      [type="file"], [type="submit"], [type="button"]) { width: 100% !important; }
    :root body:not(.door) main form.bar:is(:not([method="get" i]):has(> div:nth-of-type(5)), :has(> div:nth-of-type(7))) > div > .datefield { width: 100%; }
    /* two columns on a phone (From beside To, Show beside PDF), a chip row the full width (before: one 200 px column, each its row) */
    :root body:not(.door) main form.bar:is(:not([method="get" i]):has(> div:nth-of-type(5)), :has(> div:nth-of-type(7))) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    :root body:not(.door) main form.bar:is(:not([method="get" i]):has(> div:nth-of-type(5)), :has(> div:nth-of-type(7))) > :is(.chips, div:has(> select:not([name="currency"])), div:has(> textarea)) { grid-column: 1 / -1; }
    :root body:not(.door) main form.bar:is(:not([method="get" i]):has(> div:nth-of-type(5)), :has(> div:nth-of-type(7))) > div:not(:has(> label)) > :is(button, .btn) { width: 100%; }
    :root body:not(.door) main form.bar:is(:not([method="get" i]):has(> div:nth-of-type(5)), :has(> div:nth-of-type(7))) > div:empty { display: none; }
  }
  /* N18 */
  :root body:not(.door) main :is(td.num, th.num, .num, .amt, .rr-amt) { font-variant-numeric: tabular-nums; }
  /* N18 Invoices and Bills: dates, numbers and the status whole (never cut: "13 Nov...", "DF-2026...", "Awaiti..." at 1280 px); under
     1440 px the account and the reference give way, they are on the record one click on */
  :root main table.mg-grid:is(.mg-inv, .mg-bills) td { font-size: var(--t13) !important; }      /* tables 13 px (design rules 6.1), as every other list */
  @media (min-width: 56.01rem) {
    /* round 1059 (test_r1010 on 19 Nov): Chromium's fixed table layout takes a max() of a per cent and a length as no width at all: every
       column came out the same (117 px at 1440) and the supplier and "Awaiting payment" were cut. Lengths that hold the words whole;
       the name takes the rest */
    :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-date { width: 5.75rem !important; }
    :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-no { width: 6.75rem !important; }
    :root main table.mg-grid:is(.mg-inv, .mg-bills) th.mg-st { width: 9.5rem !important; }
    /* round 1113 (Bills review, inside this layer: a layered !important wins over an unlayered one): the supplier's long number, the
       due date with its overdue line and the status word whole */
    :root main table.mg-grid.mg-bills th.mg-no { width: 11.5rem !important; }      /* AC-20260927-4479881 whole on every tab */
    /* 1113b: To pay without Paid, Due, Status and Account: the long number whole, the due date and its overdue days on one line */
    :root main table.mg-grid.mg-bills.bl-topay.bl-nopaid th.mg-no { width: 14rem !important; }
    :root main table.mg-grid.mg-bills.bl-topay.bl-nopaid th.mg-due-date { width: 12.5rem !important; }
    :root main table.mg-grid.mg-bills th.mg-st { width: 8.5rem !important; }
    :root main table.mg-grid.mg-bills th.mg-due-date { width: 7.5rem !important; }
    :root main table.mg-grid:is(.mg-inv, .mg-bills) :is(th.mg-gross, th.mg-amt, th.mg-paid) { width: 6rem !important; }
  }
  @media (min-width: 56.01rem) and (max-width: 1439px) {
    :root main table.mg-grid:is(.mg-inv, .mg-bills) :is(.mg-acc, .mg-ref) { display: none !important; }
  }
  /* on a phone the list takes the width and each column what it holds: before, the fixed desktop widths left the table 290 px wide
     with the customer's name printed under the amount */
  @media (max-width: 56rem) {
    :root main table.kit.mg-grid { table-layout: auto !important; width: 100% !important; }
    :root main table.mg-grid :is(th, td):not(.mg-who) { width: 1% !important; }
    /* round 1043: the name takes what the other columns leave (max-width 0 in an auto table) and is cut there, one line */
    :root main table.mg-grid td.mg-who { overflow: hidden; max-width: 0; width: 100%; }
    :root main table.mg-grid td.mg-st { overflow: visible !important; }
    :root main table.mg-grid td.w { min-width: 0 !important; }
    :root main table.mg-grid td.mg-who, :root main table.mg-grid td.mg-who * { white-space: nowrap !important; overflow-wrap: normal; text-overflow: ellipsis; }
    :root main table.mg-grid td.mg-st .pill { white-space: nowrap !important; overflow: visible !important; max-width: none !important; }
    :root main table.mg-grid :is(td, th):is(.mg-amt, .mg-gross, .mg-paid, .mg-due) { text-align: right; white-space: nowrap; }
  }
  /* VAT, earlier periods: tick and period, amount, due date in three columns (the ticks stood above their periods, amounts ragged) */
  :root main form#vat-earlier-form ul.plain { list-style: none; margin: 0 0 var(--s3); padding: 0; }
  :root main form#vat-earlier-form ul.plain > li { display: grid; grid-template-columns: 14rem var(--fw-amount) auto; column-gap: var(--s4);
    align-items: center; min-height: 36px; margin: 0; border-top: 1px solid var(--line); }
  :root main form#vat-earlier-form ul.plain > li > label.check { display: inline-flex; align-items: center; gap: var(--s2); margin: 0; }
  :root main form#vat-earlier-form ul.plain > li > b.num { text-align: right; }
  @media (max-width: 40rem) { :root main form#vat-earlier-form ul.plain > li { grid-template-columns: minmax(0, 1fr) auto; }
    :root main form#vat-earlier-form ul.plain > li > .muted { grid-column: 1 / -1; padding-left: 28px; } }
}
/* Round 1021 batch 2, alignment pass 5 after the looking reviews (UK 390, DE 390, DE 1440, UK 1440 and 2480, AT 1440): root fixes
   that hold every page. Unlayered and last, so they win over the older head and chip rules by order.
   1. The page head: one order everywhere, the page's next action first, then Ask AI, Excel and the pin, then More (···); Ask AI and
      More one square size. On a phone the title has its own row (the crumb beside it on a detail page) and the buttons the row under
      it: the next action takes the width, Ask AI and More stay together at its right (before: German labels ran to three lines, ···
      wrapped alone, Ask AI stood before the primary on Journal and Documents). */
:root body:not(.door) main .page-head > .next-act { order: 1; }
:root body:not(.door) main .page-head > .ask-ai-form, :root body:not(.door) main .page-head > .ai-on { order: 2; }
:root body:not(.door) main .page-head > :is(.xl-btn, form.xlsx, .pin-btn, form:has(> .pin-btn)) { order: 3; }
:root body:not(.door) main .page-head > details.ph-more { order: 4; }
:root body:not(.door) main .page-head > .ph-sub { order: 9; }
:root body:not(.door) main .page-head > .ph-sum { order: 10; }
:root body:not(.door) main .page-head .ask-ai, :root body:not(.door) main .page-head > details.ph-more > summary {
  box-sizing: border-box; width: var(--ctl-h, 36px); min-width: var(--ctl-h, 36px); height: var(--ctl-h, 36px); min-height: var(--ctl-h, 36px); padding: 0; }
@media (max-width: 40rem) {
  :root body:not(.door) main .page-head { flex-wrap: wrap !important; row-gap: 8px; }
  :root body:not(.door) main .page-head:not(:has(> a.crumb)) > h1 { flex: 1 1 100% !important; }
  :root body:not(.door) main .page-head:has(> a.crumb) > h1 { flex: 1 1 calc(100% - 60px) !important; }
  :root body:not(.door) main .page-head > h1 { min-width: 0; white-space: normal !important; overflow: visible; text-overflow: clip; overflow-wrap: normal;
    word-break: normal; hyphens: auto; }
  /* round 1042 (test_r544, Year end FY2026 at 390): with a basis of 0 the buttons squeezed into the few pixels the title row of a
     detail page leaves beside its crumb (3 px, Accruals ran 7 px past the screen); a basis of half the row keeps them on the row under
     the title, where they grow to the width beside Ask AI and More as before */
  :root body:not(.door) main .page-head > .next-act { flex: 1 1 50% !important; min-width: 0; flex-wrap: nowrap !important; }
  :root body:not(.door) main .page-head > .next-act > :is(.btn, a.btn, details, form) { flex: 1 1 0; min-width: 0; }
  :root body:not(.door) main .page-head > .next-act :is(.btn, summary.btn) { width: 100%; max-width: none !important; white-space: nowrap !important;
    overflow: hidden !important; display: flex !important; align-items: center !important; justify-content: center !important;
    padding-top: 0 !important; padding-bottom: 0 !important; text-align: center; }
  /* round 1021 batch 9: centred by flex, not by line height (the one rule set, layer ux-align, holds line-height 1.2 with !important,
     so a 44 px line height never applied and the label sat at the top of the wide primary on twenty German pages) */
  :root body:not(.door) main .page-head .ask-ai, :root body:not(.door) main .page-head > details.ph-more > summary { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  :root body:not(.door) main .page-head:not(:has(> .next-act)) > :is(.ask-ai-form, .ai-on) { margin-left: auto !important; }
}
/* 2. Chips beside buttons and fields share the control height (they stood 20 to 24 px beside 36); on a phone a row of chips scrolls
      inside its own box instead of leaving one chip alone on a row */
:root body:not(.door) main .chips > :is(a, button, span.chip, details > summary) { box-sizing: border-box; min-height: var(--ctl-h-row, 32px); display: inline-flex;
  align-items: center; }
:root body:not(.door) main .page-head .chips > :is(a, button, span.chip, details > summary) { min-height: var(--ctl-h, 36px); }
@media (max-width: 40rem) {
  :root body:not(.door) main .chips { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  :root body:not(.door) main .chips > * { flex: none; }
  :root body:not(.door) main .chips > :is(a, button, span.chip, details > summary) { min-height: 44px; }
}
/* 3. Search fields hold their placeholder ("Search invoice", "Search numbe" were cut): 16rem on a computer, the row on a phone */
:root body:not(.door) main input[type="search"] { min-width: min(16rem, 100%); }
@media (max-width: 40rem) {
  :root body:not(.door) main form.bar > div:has(> input[type="search"]) { flex: 1 1 12rem; }
  :root body:not(.door) main form.bar > div > input[type="search"] { width: 100%; min-width: 0; }
}
/* 4. A filter bar with labels above its fields: its buttons stand on the fields' line, not the labels' (Show and PDF 11 to 13 px high) */
:root body:not(.door) main form.bar:has(> div > label) { align-items: flex-end; }
:root body:not(.door) main form.bar:has(> div > label) > div:not(:has(> label)) { align-self: flex-end; }
/* 5. One vertical centre per row: a row's text and its buttons on one middle line (Cash book, Chart, Prices, Statements, Analysis) */
:root body:not(.door) main table.kit:not(.plain) > tbody > tr > :is(td, th) { vertical-align: middle; }
/* 6. German words break with a hyphen at a syllable, never mid word without one ("Steuer nummer", "Berichtsgenerat or") */
:root:lang(de) body:not(.door) main :is(label, th:not(table.r6-pl *), dt, dd, h1, h2, h3, .ph-fig small, .tx b, legend, summary) { hyphens: auto; overflow-wrap: normal; word-break: normal; }
/* (a report's month table keeps its own breaking: its heads "Seit Jahresbeginn" must wrap anywhere, or the German cash flow runs 175 px
   past its card at 1280) */
/* 6b. A report's row names: 16rem from 1800 px, where fourteen month columns leave the room (P&L names wrapped over 4 to 8 lines in
       120 px at 2480). Under 1800 the 7.5rem of round 1004 stays: wider names took the German cash flow and balance sheet 49 to 175 px
       past their card at 1280 and 1440 and pushed the first row under 240 (tests r1008 browser, r981 N1), so twelve German months and a
       wide name do not fit beside each other there */
@media (min-width: 1800px) {
  :root body:not(.door) main table.r6-pl tbody th, :root body:not(.door) main table.r6-pl thead th:first-child { min-width: 16rem; width: 16rem; max-width: 16rem; }
}
/* 7. Buttons stacked on a phone are one width (Show and PDF, Lock period and Set VAT lock, Reconcile and Edit) */
@media (max-width: 40rem) {
  :root body:not(.door) main :is(.kit-actions:not(.page-head > *), form.bar > div:not(:has(> label)), .jn-foot) > :is(a.btn, button, summary.btn) { min-width: 9rem; }
}
/* 8. One width for every page (batch 10, re-look UK 2480): New journal, the bank line and a bill being entered ran to 72rem (1312 at
      2480) while every other page runs to the window's edge; the record takes the page's width like the rest (batch 3 had capped the
      blocks after it at 72rem instead) */
:root body:not(.door) main :is(form.jn, form.bl, .bl) { max-width: none !important; }
/* 7b. A money list on a phone scrolls inside its own box, never the page (Bills: the German status pill took the table 47 px past the
       window); its row menus are hidden on a phone, so the box clips nothing */
@media (max-width: 40rem) {
  :root body:not(.door) main .scroll.mg-wrap { overflow-x: auto !important; }
}
/* 7c. A stacked table on a phone (Payroll's pay runs, month grids): two even columns, each figure under its name at one left edge
       (Tax, NICs and Net stood at three different x, the last link alone on its line) */
@media (max-width: 40rem) {
  :root body:not(.door) main table.stack:not(.cal, .line, .head2) > tbody > tr:not(.head, [hidden]) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px; }
  :root body:not(.door) main table.stack:not(.cal, .line, .head2) > tbody > tr > td:is(:first-child, [colspan], :last-child:not([data-label])) { grid-column: 1 / -1; }
  :root body:not(.door) main table.stack:not(.cal, .line, .head2) > tbody > tr > td.num { text-align: left; font-variant-numeric: tabular-nums; }
}
/* 7d. A wide table that scrolls in its own box on a phone (Prices) breaks words at spaces only, a name at least 9rem (names broke letter
       by letter in a 59 px column) */
@media (max-width: 40rem) {
  :root body:not(.door) main .scroll > table.kit:not(.cards, .stack, .mg-grid) :is(td, th) { word-break: normal !important; overflow-wrap: normal !important; }
  :root body:not(.door) main .scroll > table.kit:not(.cards, .stack, .mg-grid) td[data-raw] { min-width: 9rem; }
}
/* 8b. New journal's option bar on a phone: one label width, so Reference, Amounts and Currency start at one left edge (74, 81, 96) */
@media (max-width: 40rem) {
  :root body:not(.door) main form.jn .jn-opts > div:not(.jn-files):not(.jn-rev) > label:first-child { flex: 0 0 6.5rem; min-width: 6.5rem; }
}
/* 8c. One section head: a folding head's chevron and words and a plain head's words keep one x on every page; the chevron is 1.25em
       of its head, so a plain head is indented by the same 1.25em plus 8 px (app.css 3977) and nothing more is set here (a fixed 20 px
       chevron put the bank line's Comments and tasks 1 px off the page's other heads) */
/* 8d. Every block in a section sits inside its padding like its words: a section inside a section, a bare table, a heading, a
       button or a link standing alone (Settings' history card and Monthly backup ran to the card's edge while the words stood 20 px in);
       lists in a .scroll keep their rows edge to edge under a line, as the kit draws them */
:root body:not(.door) main .kit-sec:not(.h6-card, .sheet *) > :is(section, table, h4, label, a, button, img, figure) { --sec-in: 20px; margin-left: var(--sec-in); margin-right: var(--sec-in); }
:root body:not(.door) main .kit-sec:not(.h6-card, .sheet *) > section { width: auto; }
:root body:not(.door) main .kit-sec:not(.h6-card, .sheet *) > table { width: calc(100% - 2 * var(--sec-in)); }
@media (max-width: 56rem) {      /* the words' own inset on a tablet and a phone (12 px, line 2532) */
  :root body:not(.door) main .kit-sec:not(.h6-card, .sheet *) > :is(section, table, h4, label, a, button, img, figure) { --sec-in: 12px; }
}
:root body:not(.door) main .kit-sec:not(.h6-card) > section.kit-sec:last-child { margin-bottom: var(--s4); }
/* 9. A help mark (?) never stands alone on a line: inline beside the words before it; one standing loose in a section goes to the
      section head's line, at its right (Account, Period close) */
:root body:not(.door) main details.help-mark { display: inline-block; margin-left: 6px; }
:root body:not(.door) main section.kit-sec:has(> details.help-mark) { position: relative; }
:root body:not(.door) main section.kit-sec > details.help-mark { position: absolute; top: 10px; right: 12px; margin: 0; z-index: 2; }
/* 10. Batch 10 (re-looks of 18 Nov afternoon). A strip or table that scrolls in its own box fades where more stands (nav.js sets
       data-more); on a phone every table of a section scrolls in its box, never the page (Bills Status, Year end Stand, Management
       Intern were cut at the window's edge) */
:root body:not(.door) main [data-more="right"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
:root body:not(.door) main [data-more="left"] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); }
:root body:not(.door) main [data-more="both"] { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
/* round 1103 (smoothness run against Unleashed, 20 Nov 2026): a mask paints its descendants inside its own box only, the fixed
   sheet of a row action (a purchase order's Receive, Landed cost, Send) included: at 1440 px the sheet's fields took no click.
   While a sheet of the table is open, the fade is off. */
:root body:not(.door) main [data-more]:has(details.kit-sheet[open]) { -webkit-mask-image: none; mask-image: none; }
@media (max-width: 40rem) {
  :root body:not(.door) main .scroll:not(:has(> table.stack)) { overflow-x: auto !important; max-width: 100%; }
  :root body:not(.door) main .kit-sec > table.kit:not(.stack, .cards) { display: block; overflow-x: auto; }
}
/* the bottom of a card: room under its last button (Audit's Save, Shops' payouts, Period close stood on the card's edge) */
:root body:not(.door) main .kit-sec:not(.h6-card, .sheet *) > :last-child:is(form, div, p, .kit-actions, a.btn, button):not(.scroll, .lines, :has(> .scroll:last-child, > .lines:last-child)) { margin-bottom: var(--s4); }
:root body:not(.door) main .kit-sec:not(.h6-card, .sheet *) > form:last-child > :last-child { margin-bottom: 0; }
/* 11. Batch 11: the Bank page's one column never grows past the window: a wide statements table scrolls in its own box (at 1100 px its
       column took the widest table's 920 px and the bar and tabs ran 84 px past the window, test_r978 at 1100) */
:root body:not(.door) main .b6 { grid-template-columns: minmax(0, 1fr); }
/* round 1027 (owner, 18 Nov 2026): one feed state per bank account, the same fixed column in every row: Live feed (green), Needs you
   (amber, with its one action), No feed (grey, with Connect); the Bank dropdown's rows, the Bank accounts cards, Connect a bank */
.fs { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.fs .fs-badge { font-size: var(--text-xs); }
.fs .fs-badge.todo { color: var(--amber); background: var(--amber-soft); }
.fs .fs-badge:not(.good):not(.todo) { color: var(--muted); background: var(--surface-2); }
.fs .fs-under { font-size: var(--text-xs); color: var(--muted); white-space: nowrap; }
.fs .fs-under a.fs-act { color: var(--accent-strong); }
:root main .b6-row { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem; align-items: center; gap: 8px; }
:root main .b6-row > .fs { justify-self: start; }
:root main .b6-connect { font-weight: var(--weight-medium); color: var(--accent-strong); text-decoration: none; }
.ba-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--s3); margin: var(--s3) 0; }
.fs-sheet > summary[hidden] { display: none; }
/* round 1037 (N1 at 1280 x 700, /bank 260): the sheet without a button of its own took a line of text (22 px) between the head and the list */
:root main details.kit-sheet.fs-sheet:has(> summary[hidden]) { display: block; height: 0; margin: 0; }
.fs-sheet .fs-not-held { margin: var(--s3) 0 0; }
.fs-sheet .fs-also { margin-top: var(--s3); gap: var(--s2); }
/* the feed card's More: plain rows, no filled buttons; Disconnect last, red, after a line */
.feed-card .feed-more > .acts-pop { display: flex; flex-direction: column; min-width: 13rem; padding: 4px 0; }
.feed-card .feed-more > .acts-pop form { display: block; margin: 0; }
:root main .feed-card .feed-more > .acts-pop a.btn, :root main .feed-card .feed-more > .acts-pop button { display: flex; width: 100%; min-height: 36px; padding: 6px 14px;
  border: 0 !important; border-radius: 0; background: none !important; box-shadow: none !important; color: var(--fg) !important;
  font-weight: var(--weight-normal, 400) !important; justify-content: flex-start !important; text-align: left; text-decoration: none; }
:root main .feed-card .feed-more > .acts-pop a.btn:hover, :root main .feed-card .feed-more > .acts-pop button:hover { background: var(--hover) !important; }
.feed-card .feed-more > .acts-pop hr.fs-sep { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
:root main .feed-card .feed-more > .acts-pop form.fs-danger button { color: var(--bad) !important; }
.feed-card .feed-foot .feed-consent { font-size: var(--text-xs); }
@media (max-width: 40rem) {
  :root main .b6-row { grid-template-columns: minmax(0, 1fr) 7.5rem; }
  .ba-cards { grid-template-columns: 1fr; }
}
/* round 1027 (owner, 18 Nov 2026: "too crowded, what is pink and what is turquoise, do we need a legend?"): colours that explain
   themselves, as Xero's: only a ready proposal is tinted (the soft teal, with its OK); a line without one is a plain white field "Pick an
   account or a match" with Pick; the source is a small grey word at the field's right end, its words on hover; the row's ⋯ shows on
   hover or focus on a desktop; rows stay 46 px */
:root .rr-chip.rr-pick { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
:root .rr-chip .rr-tag.rr-src { flex: none; order: 2; margin: 0 0 0 auto; padding: 0; border: 0; background: none; color: var(--muted);
  font-size: var(--text-xs); max-width: 9ch; overflow: hidden; text-overflow: ellipsis; }
:root .rr-chip .rr-always { order: 3; }
@media (hover: hover) and (min-width: 40.01rem) {
  :root .rr-row .rr-dots { opacity: 0; }
  :root .rr-row:hover .rr-dots, :root .rr-row:focus-within .rr-dots, :root .rr-row.rr-focus .rr-dots, :root .rr-dots[aria-expanded="true"] { opacity: 1; }
}
/* round 1027b (round 1032's test_r786_walk: on a phone the paperclip's 44 px target reached up from the proposal's line over the payee
   and took its click): the payee's line lies over the target's upper part, so a press on the payee opens the line and the paperclip
   keeps its own line and the row's foot */
@media (max-width: 56rem), (pointer: coarse) {
  :root main .rr-row > .rr-who { position: relative; z-index: 1; }
}
/* round 1037 (owner rule N19, docs/DESIGN-RULES.md 7.12, and BR-1021b): one tab style, under the page's title. A merged page's tabs
   (Receivables, Shops and payouts: .page-tabs) and the sections of a page whose heads would not all fit the first screen (nav.js makes
   them tabs: .sec-tabs) are a row of words with a line under the chosen one, never chips in the head */
:root main :is(.u-tabs, .chips.page-tabs) { display: flex; flex-wrap: nowrap; gap: var(--s5); overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  margin: 0 0 var(--s3); padding: 0; border-bottom: 1px solid var(--line); }
:root main :is(.u-tabs, .chips.page-tabs)::-webkit-scrollbar { display: none; }
:root body:not(.door) main :is(.u-tabs, .chips.page-tabs) > :is(button, a) { flex: none; display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box;
  height: 40px !important; min-height: 40px !important; min-width: 0 !important; padding: 0 !important; margin: 0 0 -1px; border: 0 !important;
  border-bottom: 2px solid transparent !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: var(--ink-2) !important;
  font: inherit; font-size: var(--t15) !important; font-weight: var(--weight-medium) !important; line-height: 1.2; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
:root body:not(.door) main :is(.u-tabs, .chips.page-tabs) > :is(button, a):hover { color: var(--ink) !important; }
:root body:not(.door) main :is(.u-tabs, .chips.page-tabs) > [aria-selected="true"] { color: var(--ink) !important; border-bottom-color: var(--fg) !important; font-weight: var(--weight-strong) !important; }
:root main :is(.u-tabs, .chips.page-tabs) > * > b { font-weight: var(--weight-medium); color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 56rem), (pointer: coarse) {
  :root body:not(.door) main :is(.u-tabs, .chips.page-tabs) > :is(button, a) { height: 44px !important; min-height: 44px !important; }
  :root main :is(.u-tabs, .chips.page-tabs) { gap: var(--s4); }
}
/* round 1091a (gate of 20 Nov 2026: the German Chart of accounts' tab "Der Wechsel selbst" stood at 1216 to 1343 px, cut by the window
   at 1280): on a wide screen with a mouse a page's section tabs wrap to a second row, so no tab is ever out of sight (a phone still
   scrolls the strip sideways) */
@media (min-width: 56.01rem) and (pointer: fine) {
  :root main .u-tabs.sec-tabs { flex-wrap: wrap; column-gap: var(--s5); row-gap: 0; overflow-x: visible; }
}
/* a merged page's tabs share their row with the filter or the one button right after them (nav.js .ph-tools): the line runs under both */
@media (min-width: 56.01rem) {
  :root main .ph-tools:has(> .page-tabs) { flex-wrap: nowrap; align-items: center; gap: var(--s4); margin: 0 0 var(--s4); border-bottom: 1px solid var(--line); }
  :root main .ph-tools > .chips.page-tabs { flex: 1 1 auto; min-width: 0; margin: 0; border-bottom: 0; align-self: stretch; }
}
@media (max-width: 56rem) {
  :root main .ph-tools:has(> .page-tabs) { margin: 0 0 var(--s4); }
  :root main .ph-tools > .chips.page-tabs { flex: 1 1 100%; margin: 0; }
}
:root:root:root body:not(.door) main :is(.tab-off, .fold-empty) { display: none !important; }
/* round 1037 (N19): the profit and loss chart in its sheet, wide enough to read its months; its card's head is the sheet's */
.kit-sheet.r6-chart-sheet > .sheet-body { width: min(56rem, 100%); }
:root main .r6-chart-sheet .kit-sec.r6-chartcard > .kit-head > h2 { display: none; }
/* round 1037 (test_ux_align5 N15 on To do: a row's More stood as a 77 px word button right of its one verb): a job row's More is the ⋯
   mark every list row has (round 1013: one verb per row, Later and the rest under ⋯); its word stays for a screen reader */
:root:root:root body:not(.door) main li.job details.kit-more > summary.btn { position: relative; width: var(--ctl-h-row) !important; min-width: var(--ctl-h-row) !important;
  overflow: hidden; color: transparent !important; border: 0 !important; background: none !important; box-shadow: none !important; }
:root:root:root body:not(.door) main li.job details.kit-more > summary.btn:hover { background: var(--hover) !important; }
:root:root:root body:not(.door) main li.job details.kit-more > summary.btn::before { content: "⋯"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--fg); }
/* round 1037 (BR-1021b: Connections' Import buttons in the middle of the table): an app's action stands at the table's right edge */
:root body:not(.door) main #connections-apps td.app-act { text-align: right; white-space: nowrap; }
@media (max-width: 56rem) { :root body:not(.door) main #connections-apps td.app-act { text-align: left; } }
/* round 1037 (BR-1021b: Payroll's Always, Ask and Never of three widths): the three answers of one question one width */
:root body:not(.door) main #payroll-ai-question button[name="mode"] { min-width: 10rem !important; justify-content: center !important; }
/* round 1037 (BR-1021b: "menu lists without a card while Analysis has one"): a menu point's list of pages stands in a card as every list */
:root main ul.hub-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; margin: 0 0 var(--s4); }
:root main ul.hub-list > li { padding: 6px 12px; }
:root main ul.hub-list > li:last-child { border-bottom: 0; }
/* round 1037 (BR-1021b: "blank 40 px first column and Tick all without row boxes" on To do and Bank): a list where no line can be ticked
   has no tick column (reconrow.js rr-noticks); where lines can be ticked their boxes show, a line that cannot be ticked shows none */
:root main .rr.rr-noticks .rr-row:not(.ax-row) { grid-template-columns: 0 6.5ch 11ch minmax(0, 1fr) 86px minmax(0, 1.6fr) 34px 32px; column-gap: 10px; padding-left: 0; }
:root main .rr.rr-noticks .rr-row:not(.ax-row) > .rr-tick { visibility: hidden; overflow: hidden; }
@media (max-width: 40rem) {
  :root main .rr.rr-noticks .rr-row:not(.ax-row) { grid-template-columns: 0 6ch 11ch minmax(0, 1fr) 24px 80px 28px; column-gap: 6px; padding-left: 0; }
}
:root main .rr .rr-tick input:disabled { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  :root main :is(.rr-row .rr-tick, tr > td.tick) input:not(:disabled) { opacity: 1 !important; }
}
:root main .tabbed > .fold-head .fold-btn, :root main .tabbed > .fold-head .fold-key { display: none !important; }
:root main .tabbed > .fold-head { cursor: default; }
/* round 1037 (BR-1021b): one status pill palette, by the pill's word (nav.js data-tone): late amber, done green, open or draft grey,
   failed red */
:root body:not(.door) main :is(.pill, span.st)[data-tone] { box-shadow: none !important; }
:root body:not(.door) main :is(.pill, span.st)[data-tone="late"] { color: var(--amber) !important; background: var(--amber-soft) !important; }
:root body:not(.door) main :is(.pill, span.st)[data-tone="done"] { color: var(--good) !important; background: var(--good-soft) !important; }
:root body:not(.door) main :is(.pill, span.st)[data-tone="open"] { color: var(--ink-2) !important; background: var(--surface-hover) !important; }
:root body:not(.door) main :is(.pill, span.st)[data-tone="bad"] { color: var(--bad) !important; background: var(--bad-soft) !important; }
/* the chosen tab names its section: the section's own title is not said twice (its head keeps what else it holds) */
:root body:not(.door) main .tabbed > h2, :root body:not(.door) main .tabbed > :is(header.fold-head, header.kit-head) > h2,
:root body:not(.door) main .tabbed > :is(header.fold-head, header.kit-head):not(:has(> :not(h2))) { display: none !important; }
:root body:not(.door) main .kit-sec.tabbed > header.kit-head { justify-content: flex-end; }
/* round 1014 (owner order of 18 Nov 2026, point 2): Bank's head is one row of account chips, each filtering to its account */
/* one line (N1: the first bank row on the first screen): the chips that do not fit scroll inside the line, never the page */
:root main .ph-sum[data-bank-chips] { gap: 6px 8px; }
@media (min-width: 56.01rem) {
  :root main .ph-sum[data-bank-chips] { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  :root main .ph-sum[data-bank-chips]::-webkit-scrollbar { display: none; }
  :root main .ph-sum[data-bank-chips] > * { flex: none; }
}
:root main .ph-sum a.ph-fig.bk-chip { display: inline-flex; align-items: center; column-gap: .3em; min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--surface); color: var(--muted); text-decoration: none; }
:root main .ph-sum a.ph-fig.bk-chip:hover { background: var(--surface-hover); }
:root main .ph-sum a.ph-fig.bk-chip:hover b { text-decoration: none; }
:root main .ph-sum a.ph-fig.bk-chip.on { border-color: var(--turquoise); background: var(--surface-selected); color: var(--fg); }
:root main .ph-sum a.ph-fig.bk-chip > small { color: var(--fg); font-weight: 600; }
@media (max-width: 56rem), (pointer: coarse) { :root main .ph-sum a.ph-fig.bk-chip { min-height: 44px; } }
/* round 1014 (point 3): the reconciliation table, eight columns and the row's ⋯ within 960 px; Difference amber when not 0 */
:root main table.rec-tab td.rec-off { color: var(--amber); font-weight: 600; }
:root main table.rec-tab :is(td, th).rec-act { width: 44px; text-align: right; }
:root main table.rec-tab td.rec-act .kit-more > summary.btn { min-width: 32px; padding: 0 8px; }
:root main table.rec-tab td.rec-act .kit-more > .acts-pop { left: auto; right: 0; }
/* round 1014 (point 1): Months, a month's lines in one state, the three states as tabs */
:root main .mv-tabs a b { font-variant-numeric: tabular-nums; }
/* (N1 at 1280 x 700: the first line of the list above y 240) the tabs' line sits right on the list */
:root main nav.chips.page-tabs.mv-tabs { margin-bottom: 0; }


/* round 1015 (owner order of 18 Nov 2026): the bank feed page, its pager over the lines and the lines in the dense figure style */
.feed-pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: var(--s2) 0; }
.feed-pager .feed-count { font-weight: var(--weight-medium); }
.feed-pager .feed-steps { display: inline-flex; gap: var(--s2); margin-left: auto; }
table.feed-lines td, table.feed-lines th { height: var(--row-dense); }
table.feed-lines td.nowrap { white-space: nowrap; }
table.feed-lines tr.total td { font-weight: var(--weight-medium); border-top: 1px solid var(--line-strong, var(--line)); }
.note-acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s2); }
.note-acts .note-assign { font-size: var(--text-s); color: var(--ink-2); cursor: pointer; }
.notes-done > summary { font-size: var(--text-s); color: var(--ink-2); cursor: pointer; }
/* round 1033 (FB-0028, FB-0033, FB-0039, FB-0021): Set up your books and Already trading */
ol.setup-list form.row-form.bar > div { flex: 1 1 15rem; }
ol.setup-list form.row-form.bar > div:has(> button), ol.setup-list form.row-form.bar > div:has(> b) { flex: 0 0 auto; }
ol.setup-list form.row-form.bar > div > input:not([type=file]):not([type=checkbox]):not([type=radio]), ol.setup-list form.row-form.bar > div > select { width: 100%; }
ol.setup-list form.row-form.bar > .row-note.wide { flex: 1 1 100%; margin: 0; }
.trading-ways .bring-way input[type=date] { width: 100%; max-width: 16rem; display: block; margin: 4px 0 6px; }
.trading-ways .bring-way .row-note { color: var(--muted); margin: 0 0 12px; }
/* the browser scrolls a field it asks for below the top bar, so its bubble stands at the field (FB-0039) */
html { scroll-padding-top: 80px; }
/* a desktop window between phone and laptop width keeps the menu at the top, no phone bottom bar (FB-0033) */
@media (min-width: 40.01rem) and (max-width: 56rem) and (pointer: fine) { :root nav.tabbar { display: none; } }
/* the flat rate sector only with the Flat Rate Scheme chosen (FB-0034) */
form.row-form .flat-only { display: none; }
form.row-form:has(select[name=scheme] option[value=flat_rate]:checked) .flat-only { display: block; }
/* round 1130 (AI review of 21 Nov 2026, item 33): Registered for VAT? with its Yes and No on its line; No hides the registration's fields.
   Item 21: a field the Save could not take is marked red, its line under it */
ol.setup-list form.row-form .vat-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; flex: 1 1 100%; min-height: 44px; }
ol.setup-list form.row-form .vat-ask-label { font-weight: var(--weight-strong, 600); }
ol.setup-list form.row-form .vat-picks { display: inline-flex; gap: 16px; }
ol.setup-list form.row-form label.vat-pick { display: inline-flex; align-items: center; gap: 6px; margin: 0; min-height: 44px; cursor: pointer; font-weight: 400; }
ol.setup-list form.row-form label.vat-pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
ol.setup-list form.row-form :is(input, select)[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
ol.setup-list form.row-form .field-error { flex: 1 1 100%; margin: 2px 0 0; color: var(--bad); font-size: var(--text-s); }
/* round 1033c: the receipt reminders' picked choice is pressed, not filled (the journey's Next is the page's one filled button) */
#receipts-ask button[aria-pressed="true"] { background: var(--sel); color: var(--fg); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--fg); }
/* round 1033 (owner order of 18 Nov 2026): the journey's progress line, the three starts, the autosaved sections */
nav.journey { margin: 0 0 var(--s4, 16px); }
nav.journey ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 6px; }
nav.journey li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--text-s); }
nav.journey .j-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
nav.journey li.j-done { color: var(--ok, #2e7d4f); }
nav.journey li.j-done .j-dot { background: var(--ok, #2e7d4f); border-color: var(--ok, #2e7d4f); color: #fff; }
nav.journey li.j-now { color: var(--fg); font-weight: 700; }
nav.journey li.j-now .j-dot { border-color: var(--accent, #0B7A75); background: var(--accent, #0B7A75); color: #fff; }
nav.journey .j-where { margin: 0; font-size: var(--text-s); color: var(--muted); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
nav.journey .j-ai { font-size: var(--text-s); color: var(--muted); text-decoration: underline; }
@media (max-width: 40rem) { nav.journey li:not(.j-now) .j-name { display: none; } }
form.start-pick fieldset { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; max-width: 46rem; }
form.start-pick .pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--rc, 12px); padding: 12px 14px; background: var(--surface); }
form.start-pick .pick-row:has(input[type=radio]:checked) { border-color: var(--accent, #0B7A75); background: var(--accent-soft, #E3F5F3); }
form.start-pick .pick-main { display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-l); min-height: 44px; cursor: pointer; }
form.start-pick .pick-main input { width: 20px; height: 20px; accent-color: var(--accent); }
form.start-pick input[type=date] { width: 11rem; }
form.start-pick .pick-row small { flex-basis: 100%; }
/* round 1074b (basics review, item 41: "no visible Save"): each section shows its Save beside the small Saved tick */
ol.setup-list form.row-form[data-auto] > div:has(> button.primary) { display: flex; }
ol.setup-list form.row-form[data-auto] > div:has(> button[value=yes]) { display: flex; }
.saved-mark { display: inline-block; margin-left: 6px; font-size: var(--text-s); color: var(--ok, #2e7d4f); }
p.journey-go { margin: var(--s4, 16px) 0; }
form.start-pick legend.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.import-done .imp-head { display: flex; gap: 14px; align-items: center; }
.import-done .bank-square { width: 48px; height: 48px; border-radius: 10px; background: var(--accent, #0B7A75); color: #fff; font-weight: 800; font-size: var(--text-l); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; }
.import-done .imp-tick { margin: 0; color: var(--ok, #2e7d4f); font-size: var(--text-l); }
.import-done .imp-counts { margin: 2px 0 0; }
.import-done .bar { margin: 12px 0 0; }
ol.setup-list form.row-form > details.more-fields { flex: 1 1 100%; } ol.setup-list form.row-form > details.more-fields > summary { cursor: pointer; color: var(--act-text); }
/* round 1033: Set up your books inside the long form bar layers (ux-align's important rules win over ux-n15's): the autosaved
   sections hide their Save, the flat rate sector only with the Flat Rate Scheme, and wide fields (FB-0028, FB-0034); round 1066: in the
   layer ux-setup, ordered between ux-align and ux-n15 above */
@layer ux-setup {
  :root body:not(.door) main ol.setup-list form.row-form[data-auto] > div:has(> button.primary) { display: flex !important; }
  /* round 1074b (design review, item 15: a 4 column grid): two columns at most on a wide screen, one on a phone */
  @media (min-width: 700px) {
    :root body:not(.door) main ol.setup-list form.row-form.bar > div:has(> input:not([type=hidden]), > select) { flex: 1 1 calc(50% - 12px) !important; max-width: calc(50% - 6px); }
  }
  :root body:not(.door) main ol.setup-list form.row-form[data-auto] > div:has(> button[value=yes]) { display: flex !important; }
  :root body:not(.door) main ol.setup-list form.row-form > div.flat-only { display: none !important; }
  :root body:not(.door) main ol.setup-list form.row-form:has(input[name=answer][value=no]:checked) > div:not(.vat-ask):not(:has(> button)) { display: none !important; }
  :root body:not(.door) main ol.setup-list form.row-form > div.vat-ask { grid-column: 1 / -1; max-width: none !important; display: flex !important;
    flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; flex: 1 1 100% !important; }
  /* round 1138 (Hartsgill review, item 3: "Feb, May, Aug..." cut): the quarters' choice spans two columns, its words whole */
  :root body:not(.door) main ol.setup-list form.row-form.bar > div:has(> select#sf-returns) { grid-column: span 2; }
  :root body:not(.door) main ol.setup-list form.row-form select#sf-returns { width: 100%; max-width: none; }
  @media (max-width: 640px) { :root body:not(.door) main ol.setup-list form.row-form.bar > div:has(> select#sf-returns) { grid-column: 1 / -1; } }
  /* round 1138 (item 8): the postponed import VAT question is a registration's, gone with No */
  :root body:not(.door) main ol.setup-list form.row-form:has(input[name=answer][value=no]:checked) > div.vat-ask:has(input[name=pva]) { display: none !important; }
  :root body:not(.door) main ol.setup-list form.row-form:has(select[name=scheme] option[value=flat_rate]:checked) > div.flat-only { display: flex !important; }
  :root body:not(.door) main ol.setup-list form.row-form.bar { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)) !important; }
  :root body:not(.door) main ol.setup-list form.row-form.bar > div > :is(input, select):not([type=checkbox], [type=radio], [type=hidden], [type=file]) { width: 100% !important; max-width: 100% !important; }
  :root body:not(.door) main ol.setup-list form.row-form.bar > :is(details, p) { grid-column: 1 / -1; }
}

/* Round 1017 (owner order of 18 Nov 2026, the Match panel): a number of the bank text the books hold nowhere, said on top with the ways to
   bring the invoice in; Ask AI with a hint under the list; AI is on it on the panel and on the bank row */
.rp-miss { margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--rc); background: var(--surface); }
.rp-miss[hidden] { display: none; }
.rp-miss-say { margin: 0 0 4px; font-weight: var(--weight-strong); }
.rp-miss-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: var(--text-s); }
.rp-miss-acts a.rp-link { color: var(--do); }
.rp-ask { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.rp-ask[hidden] { display: none; }
.rp-ask .rp-f { flex: 1 1 16rem; max-width: 28rem; }
.rp-aion, .rr-ai { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: var(--text-xs); line-height: 20px; background: var(--ident-soft); color: var(--ident); white-space: nowrap; }
.rr-ai { margin-left: 8px; line-height: 18px; }
@media (max-width: 40rem) {
  .rp-miss-acts > * { min-height: 44px; display: inline-flex; align-items: center; }
  .rp-ask .rp-f { flex-basis: 100%; max-width: none; } .rp-ask .rp-askai { min-height: 44px; }
}
/* round 1064 (Larkspur review, blocker 4): a rate filled for the person is said under it (From the account, Supplier abroad) */
.deftax-why { display: block; font-size: 12px; line-height: 1.3; margin-top: 2px; white-space: normal; }
/* round 1064 (item 5): the opening balance split over accounts */
.ob-split { margin: 8px 0; } .ob-split .bar { align-items: flex-end; }
/* round 1072 (stranger walk at 390: the payee of a bank line had 44 px, "CARD 4471 TESCO STORES" read "CARD "): on a phone the amount
   and the payee share the top line, the date stands under the amount beside the proposal; OK and the menu the row's height */
@media (max-width: 40rem) {
  :root main .rr-row:not(.ax-row):not(.rd-row):not(.rd .rr-row) { grid-template-columns: 24px 10ch minmax(0, 1fr) 24px 56px 28px;
    grid-template-areas: "tick amt who clip ok more" "tick date chip chip ok more"; }
  /* round 1145: with its own areas (the round 1114 phone rule's "tick date who amt ok more" won the areas of a row without ticks, so
     the amount stood in the 24 px paperclip column and was cut: "−1.234,56 €" in 24 px on Bank at 390) */
  :root main .rr.rr-noticks .rr-row:not(.ax-row):not(.rd-row):not(.rd .rr-row) { grid-template-columns: 0 10ch minmax(0, 1fr) 24px 56px 28px;
    grid-template-areas: "tick amt who clip ok more" "tick date chip chip ok more"; }
  :root main .rr-row:not(.ax-row):not(.rd-row):not(.rd .rr-row) > .rr-date { text-align: right; }
}
/* round 1078 (BRACK item 22: "labels jammed against the boxes, three box widths, nothing lines up"): New company, one column,
   each label above its field, every field the column's width, one left edge */
form.add-business { display: flex; flex-direction: column; align-items: stretch; max-width: 30rem; }
form.add-business > div:not([hidden]) { display: flex; flex-direction: column; align-items: stretch; }
form.add-business label { display: block; margin: 12px 0 4px; font-size: var(--text-s); color: var(--ink-2); font-weight: 500; }
form.add-business input:not([type=hidden]):not([type=checkbox]):not([type=radio]), form.add-business select { display: block; width: 100%; box-sizing: border-box; margin: 0; }
form.add-business .picks { margin: 4px 0 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
form.add-business .picks button.pick { display: block; width: 100%; height: auto; min-height: 0; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; background: var(--surface); color: var(--ink); text-align: left; font-weight: 400; }
form.add-business .picks button.pick:hover { background: var(--hover); }
form.add-business .picks button.pick span { display: block; color: var(--ink-3); font-size: var(--text-s); }
form.add-business p.muted { margin: 4px 0 0; }
form.add-business > p:last-child { margin-top: 16px; }
/* round 1080 (design review item 7): the Depreciation tab of Fixed assets, one column from the left: month and catch up side by side,
   the preview per month and the assets beneath, one button; the tables no wider than their figures */
form.fa-dep { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); margin: 0 0 var(--s3); max-width: 640px; }
.fa-dep-fields { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: flex-end; }
.fa-dep-fields > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 100%; }
.fa-dep-fields label { font-size: var(--text-s); color: var(--ink-2); margin: 0 0 .15rem; text-align: left; }
.fa-dep-fields select { min-width: 220px; max-width: 100%; text-align: left; }
form.fa-dep .fa-prev, form.fa-dep .fa-assets { width: 100%; max-width: 480px; }
form.fa-dep .fa-prev table, form.fa-dep .fa-assets table { width: 100%; }
form.fa-dep .fa-prev[hidden] { display: none; }
@media (max-width: 600px) { .fa-dep-fields select { min-width: 0; width: 100%; } .fa-dep-fields > div { width: 100%; } }
/* round 1080 (item 37): Add to register, the life in years beside its unit; land says Not depreciated */
form.fa-from .bl-life { display: inline-flex; align-items: center; gap: 4px; } form.fa-from .bl-life input { width: 5em; }
form.fa-from .fa-land { display: inline-block; padding: 0 6px; }
/* round 1080 (design review item 8): the journal list without its documents column where no entry has a document; an entry of more
   than two lines opens its lines under its row (a month's depreciation of every asset) */
table.jl-grid.jl-nodocs th:nth-child(5) { width: 9rem; }
@media (max-width: 600px) { table.jl-grid.jl-nodocs th:nth-child(5) { width: 6.5rem; } }
table.jl-grid .jl-open { border: 0; background: none; padding: 0; margin: 0 4px 0 0; width: 20px; height: 20px; line-height: 20px; cursor: pointer;
  color: var(--ink-2); font-size: var(--t15); display: inline-block; vertical-align: middle; transition: transform .15s; }   /* round 1112: N2 */
table.jl-grid .jl-open[aria-expanded="true"] { transform: rotate(90deg); }
table.jl-grid tr.jl-sub td { color: var(--ink-2); font-size: var(--text-s); cursor: default; }
#app table.jl-grid tr.jl-sub td, table.jl-grid tr.jl-sub td { height: 32px; }
@media (pointer: coarse) { table.jl-grid .jl-open { position: relative; } table.jl-grid .jl-open::after { content: ""; position: absolute; inset: -12px -12px; } }
/* round 1080 (design review item 41): New journal, Date, Narration and Reference in one row; No VAT hides the VAT column; Balanced a
   pill beside the totals */
form.jn .jn-main { flex-wrap: nowrap; } form.jn .jn-main .jn-narr { flex: 1 1 320px; min-width: 0; } form.jn .jn-main .jn-narr input { width: 100%; }
form.jn .jn-main .jn-day { flex: 0 0 auto; } form.jn .jn-main .jn-ref { flex: 0 1 200px; min-width: 0; } form.jn .jn-main .jn-ref input { width: 100%; }
@media (max-width: 600px) { form.jn .jn-main { flex-wrap: wrap; } form.jn .jn-main > div { flex: 1 1 100%; } }
form.jn.jn-novat table.jn-lines tr > :nth-child(3) { display: none; }
form.jn tr.jn-total .jn-oob { margin-left: 8px; }
form.jn tr.jn-total .jn-oob.pill { color: var(--good); background: var(--good-soft); font-size: var(--text-xs); }
/* round 1139 (order of 22 Nov 2026, item 30): the totals row green when debits equal credits, red while they differ */
form.jn table.jn-lines tr.jn-total.jn-ok td { background: var(--good-soft); color: var(--good); }
form.jn table.jn-lines tr.jn-total.jn-off td { background: var(--bad-soft); color: var(--bad); }
form.jn table.jn-lines tr.jn-total.jn-off .jn-oob, form.jn table.jn-lines tr.jn-total.jn-off .jn-oob b { color: var(--bad); }
/* round 1139 (Greyfinch order of 22 Nov 2026, item 13): New journal's grid without box borders (a line under the row, the field framed
   while it has the cursor), debit and credit wide, the rate a short chip, the account wider than description and contact */
@media (min-width: 761px) {
  form.jn table.jn-lines:not(.bl-lines):has(th:nth-child(7)):not(:has(th:nth-child(8))) th:nth-child(1) { width: 32%; }
  form.jn table.jn-lines:not(.bl-lines):has(th:nth-child(7)):not(:has(th:nth-child(8))) th:nth-child(2) { width: 17%; }
  form.jn table.jn-lines:not(.bl-lines):has(th:nth-child(7)):not(:has(th:nth-child(8))) th:nth-child(3) { width: 7.5%; }
  form.jn table.jn-lines:not(.bl-lines):has(th:nth-child(7)):not(:has(th:nth-child(8))) th:nth-child(4) { width: 13.5%; }
  form.jn table.jn-lines:not(.bl-lines):has(th:nth-child(7)):not(:has(th:nth-child(8))) th:nth-child(5),
  form.jn table.jn-lines:not(.bl-lines):has(th:nth-child(7)):not(:has(th:nth-child(8))) th:nth-child(6) { width: 15%; }
}
form.jn table.jn-lines:not(.bl-lines) tr.jn-line td { border-bottom: 1px solid var(--line); }
form.jn table.jn-lines:not(.bl-lines) tr.jn-line input:not(:focus), form.jn table.jn-lines:not(.bl-lines) tr.jn-line select:not(:focus) { border-color: transparent; background: transparent; box-shadow: none; }
form.jn table.jn-lines:not(.bl-lines) tr.jn-line input, form.jn table.jn-lines:not(.bl-lines) tr.jn-line select { width: 100%; box-sizing: border-box; }
form.jn table.jn-lines button.jn-remove svg { width: 16px; height: 16px; vertical-align: middle; }
/* round 1139 (Greyfinch order of 22 Nov 2026, item 6): Opening balances' trial balance a wide account column and debit and credit
   beside it, no empty column between; the totals under the same columns */
#conversion-form table.ob-grid:not(.ob-items), #conversion-form table.conv-totals { width: 100%; max-width: 960px; table-layout: fixed; }
#conversion-form table.ob-grid:not(.ob-items) tr > :nth-child(n+2), #conversion-form table.conv-totals tr > :nth-child(n+2) { width: 10rem; }
#conversion-form table.ob-grid:not(.ob-items) input { width: 100%; box-sizing: border-box; }
#conversion-form .ob-adds { display: flex; gap: 8px; flex-wrap: wrap; }
#conversion-form .ob-adds button[data-ob-show]::before { content: "+\00a0"; }
/* round 1139 (Hartsgill order item 7): the totals and the difference stay in sight at the foot while the grid scrolls; the difference
   green once debits equal credits */
#conversion-form table.conv-totals { position: sticky; bottom: 0; z-index: 5; background: var(--surface); box-shadow: 0 -6px 18px -14px rgba(20, 36, 48, .35); }
#conversion-form table.conv-totals tr.ob-tied td { color: var(--good); background: var(--good-soft); }
#conversion-form section[hidden] { display: none; }
/* round 1080 (design review item 43): the statement's tools by weight: the statement switch framed, Months or Quarters and Headline or
   Full quiet words, the year arrows quiet beside the one range button; the label column wide enough for its names, never broken */
.r6-tools .r6-seg:not(.st-which) { border-color: transparent; }
.r6-tools .r6-seg:not(.st-which) a { font-weight: 500; padding: 6px 8px; }
.r6-tools .r6-seg:not(.st-which) a.on { background: none; box-shadow: inset 0 -2px 0 var(--fg); color: var(--fg); }
.r6-tools .st-step .btn { border-color: transparent; background: none; box-shadow: none; }
/* round 1095 (design probe N16 on Profit and loss: Full 33.8 px at 500 beside the year arrows and "12 months" 36 px at 600): the quiet
   words and the year step one control height and one weight; phones keep their 44 px targets */
@media (min-width: 56.01rem) {
  .r6-tools .r6-seg:not(.st-which) a { min-height: 36px; display: inline-flex; align-items: center; }
}
.r6-tools .st-step b { font-weight: 500; }
/* round 1095 (design probe N17 on New journal: the Amounts select stood 8 px right of Narration): the option bar keeps the main row's
   columns; Reverse on takes the Date's 144 px, so Amounts starts under Narration */
@media (min-width: 40.01rem) {
  form.jn .jn-opts > .jn-rev { flex: 0 0 auto; min-width: 144px; }
}
form.st-range { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: center; padding: 8px 12px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
form.st-range button { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 56.01rem) {
  :root main table.r6-pl tbody th, :root main table.r6-pl thead th:first-child { min-width: 14rem; width: 14rem; max-width: 18rem; white-space: nowrap;
    hyphens: manual; overflow-wrap: normal; }
}
/* round 1112 (test_r1008: the German balance sheet and cash flow 81 and 95 px past a 1440 px window: a German line name of 18rem on one
   line beside thirteen month columns): below 1800 px a German page gives the label column 12rem and lets a long name take a second
   line; a month column takes the width of its figure at 12 px (no 66 px floor) */
@media (min-width: 56.01rem) and (max-width: 1799px) {
  :root:lang(de) main table.r6-pl tbody th, :root:lang(de) main table.r6-pl thead th:first-child { min-width: 12rem; width: 12rem; max-width: 12rem;
    white-space: normal; hyphens: auto; overflow-wrap: break-word; line-height: 1.25; }
  :root:lang(de) main table.r6-pl td { min-width: 0; font-size: var(--t12); }
  :root:lang(de) main table.r6-pl td .r6-fig { padding-left: 1px; padding-right: 1px; }
}
/* round 1080 (item 44): a nil figure of a statement is an empty cell; (item 45) a creditor line in debit is marked */
table.r6-pl .r6-zero, table.r6-plm .r6-zero { display: none; }
.st-debit { margin-left: 6px; }
/* round 1080 (design review item 28): the line a tax rate needs (a car's blocked VAT) is a mark on the picker's corner with its tooltip;
   the line's row keeps its height */
.jn-tax, td.jn-tax { position: relative; }
:root small.note.tax-hint { position: absolute; top: -6px; right: 2px; width: 18px; height: 18px; margin: 0; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface); font-size: 0; line-height: 1; display: inline-flex; align-items: center;
  justify-content: center; cursor: help; z-index: 3; box-sizing: border-box; overflow: visible; white-space: normal; }
:root small.note.tax-hint::before { content: "i"; font-size: var(--text-xs); font-weight: 700; font-style: italic; color: var(--ink-2); }
:root small.note.tax-hint:hover::after, :root small.note.tax-hint:focus::after { content: attr(data-tip); position: absolute; top: 22px; right: 0;
  width: max-content; max-width: 240px; padding: 6px 8px; border-radius: 6px; background: var(--fg); color: var(--surface); font-size: 12px;
  font-style: normal; font-weight: 400; line-height: 1.35; text-align: left; box-shadow: var(--shadow); }
@media (pointer: coarse) { :root small.note.tax-hint::before { padding: 13px; } }
/* round 1080 (item 29): Two ways to book this stands under the line it belongs to */
table.jn-lines tr.bl-ways-row > td { padding: 0 8px 8px; border-top: 0; }
table.jn-lines tr.bl-ways-row .ways-fold { margin: 0; }
@media (max-width: 600px) { table.jn-lines tr.bl-ways-row, table.jn-lines tr.bl-ways-row > td { display: block; width: 100%; box-sizing: border-box; } }
:root main form.fa-dep table.kit td, :root main form.fa-dep table.kit th { height: var(--row-dense); padding-top: 2px; padding-bottom: 2px; }
/* round 1080 (item 28): where the rate came from (From the account) is a small floating label on the picker's edge, never a line that
   makes the row taller */
:root table.jn-lines td.jn-tax .deftax-why { position: absolute; top: -5px; left: 8px; margin: 0; padding: 0 3px; font-size: var(--text-xs); line-height: 12px;
  background: var(--surface); white-space: nowrap; max-width: calc(100% - 36px); overflow: hidden; text-overflow: ellipsis; z-index: 2; pointer-events: none; }
/* round 1140 (Brackenly order item 16): Supplier abroad's words whole on a line under the box; a press reaches the box and its list */
:root table.jn-lines td.jn-tax .deftax-why.deftax-under { position: static; display: block; white-space: normal; max-width: none; overflow: visible;
  margin: 2px 0 0; padding: 0; background: none; line-height: 1.3; }
/* round 1074b (design review, item 20): Company details as one card per topic, the label above the value, one Edit per card */
.prof-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 12px; }
.prof-card h3 { margin: 0 0 8px; font-size: var(--h3); }
.prof-dl { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
.prof-dl > div > dt { font-size: var(--text-s, 12px); color: var(--muted); margin: 0; }
.prof-dl > div > dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.prof-edit { margin-top: 10px; }
/* round 1074b: Year end a field of its own on When do your books start? */
/* round 1126 (Embercroft review, item 23): the three choices as compact cards in one row; the year end one line, Next at its right */
form.start-pick fieldset.start-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 64rem; }
form.start-pick .start-card { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 8px; padding: 12px 14px; }
form.start-pick .start-card .pick-main { font-size: var(--text-m, 15px); font-weight: 600; min-height: 32px; align-items: flex-start; line-height: 22px; }
form.start-pick .start-card .pick-main input { flex: none; margin: 1px 0 0; }
form.start-pick .start-card small { flex-basis: auto; }
form.start-pick .start-card #start-opening-link { margin-top: auto; }
form.start-pick .start-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 64rem; margin-top: 12px; }
form.start-pick .start-foot p { margin: 0; display: flex; align-items: center; gap: 8px; }
form.start-pick .start-foot label { font-weight: 600; }
@media (max-width: 47.99rem) { form.start-pick fieldset.start-cards { grid-template-columns: 1fr; } }
/* round 1142 (greyfinch item 27): one question, two big choices, one date with the year end beside it */
form.start-pick fieldset.start-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; }
form.start-pick legend.start-q { font-weight: 600; font-size: var(--text-l, 17px); margin: 0 0 8px; padding: 0; }
form.start-pick label.start-big { flex-direction: row; align-items: center; min-height: 64px; font-size: var(--text-l, 17px); font-weight: 600; cursor: pointer; }
form.start-pick label.start-big input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
form.start-pick p.start-existing { display: none; align-items: center; gap: 12px; max-width: 40rem; margin: 0 0 8px; }
form.start-pick:has(input[name=choice][value=switch]:checked) p.start-existing { display: flex; }
form.start-pick .start-foot { max-width: 40rem; }
form.start-pick p.start-ye { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
form.start-pick p.start-ye label { font-weight: 600; }
form.start-pick .start-foot input[type=date] { width: 11rem; }
@media (max-width: 47.99rem) { form.start-pick fieldset.start-cards.two { grid-template-columns: 1fr; } form.start-pick .start-foot p { flex-wrap: wrap; } }
/* round 1126 (items 10, 11, 12): Opening balances: a refusal beside its row; the posted page read only */
form#conversion-form tr.ob-err > td { color: var(--bad, #b3261e); font-size: var(--text-s); padding-top: 0; border-top: 0; }
form#conversion-form input[aria-invalid=true] { border-color: var(--bad, #b3261e); }
form#conversion-form button.link { background: none; border: 0; padding: 0 0 0 12px; color: var(--do, #0B7A75); cursor: pointer; font: inherit; font-size: var(--text-s); font-weight: 500; }
form#conversion-form button.link:hover { text-decoration: underline; }
p.ob-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
p.ob-head #ob-edit { margin-left: auto; }
.ob-posted-line { display: inline-flex; align-items: center; gap: 6px; color: var(--good); font-weight: 600; }
.ob-posted-line::before { content: "✓"; }
table.ob-read td.num, table.ob-read th.num { text-align: right; }
/* round 1072b (MIKA 21, BASIC 44.7): the sign up subtitle centred under the title; the side lines plain grey text, never as loud as
   the main button; the title off the card's top edge */
.door main { padding-top: 2.5rem; }
.door .lead { margin-left: auto; margin-right: auto; }
.door .signup-side { padding: 0; border: 0; background: none; color: var(--muted); font-size: var(--text-s); }
/* round 1142 (greyfinch item 28, leftover item 21): one headline benefit under the title, the trial and its price beneath, one column */
.door .lead.signup-benefit { color: var(--fg); font-size: var(--text-l, 1.125rem); margin-bottom: .5rem; }
.door p.signup-price { color: var(--muted); margin: 0 auto 1.5rem; }
.door .signup-grid.one { grid-template-columns: minmax(0, 1fr); max-width: 26rem; margin: 0 auto; }
/* round 1142 (item 33): Not listed is a text link of its own under the register's suggestions */
.door p.pick-typed-line, form.add-business p.pick-typed-line { margin: 0 0 .5rem; font-size: var(--text-s); text-align: left; }
p.pick-typed-line a { display: inline-flex; align-items: center; min-height: 44px; }
/* round 1142 (item 35): the password's strength, one word beside the rule */
.pw-checks li.pw-strength { list-style: none; color: var(--muted); }
.pw-checks li.pw-strength[data-level="strong"] { color: var(--good, #1a7f4b); }
/* round 1142 (hartsgill item 26): Industry as chips, one click picks; the register suggestions read as a menu, not a field */
#kind-industry .lbl { display: block; font-weight: 600; margin: 0 0 6px; text-align: left; }
.ind-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1rem; text-align: left; }
.ind-chips label.ind-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2, var(--line)); border-radius: 18px;
  background: var(--surface); cursor: pointer; font-size: var(--text-s); font-weight: 500; margin: 0; }
.ind-chips label.ind-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ind-chips label.ind-chip:has(input:checked) { border-color: var(--accent, #0B7A75); background: var(--accent-soft, #E3F5F3); color: var(--fg); }
.ind-chips label.ind-chip:has(input:focus-visible) { outline: 2px solid var(--accent, #0B7A75); outline-offset: 2px; }
@media (max-width: 40rem) { .ind-chips label.ind-chip { min-height: 44px; } }
#ch-picks { box-shadow: 0 6px 20px rgba(0, 0, 0, .10); }
/* round 1142 (brackenly items 13, 14): what a setup save did, one line with a tick, the whole text on hover */
p.setup-said { margin: 8px 0; max-width: 46rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ok, #1a7f4b); font-weight: 500; }
/* round 1142 (hartsgill item 30): each setup row a card with Set up beside its words, no chevron far right */
ol.setup-list details.setup-row > summary { align-items: center; padding-right: 0; }
ol.setup-list details.setup-row > summary::after { content: none; }
ol.setup-list details.setup-row > summary > .say { flex: 0 1 auto; }
ol.setup-list details.setup-row > summary > .row-go { flex: none; margin-left: 8px; min-height: 32px; padding: 0 12px; font-size: var(--text-s); }
ol.setup-list details.setup-row[open] > summary > .row-go { display: none; }
/* round 1142 (brackenly item 11): Check your email: a long address wraps inside the card; Resend and Use another address are text links */
.door main .lead { overflow-wrap: anywhere; }
.door .sent-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin: 1rem 0; font-size: var(--text-s); }
.door .sent-links form { margin: 0; }
.door button.text-link { min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent, #0B7A75); font: inherit; text-decoration: underline; cursor: pointer; width: auto; }
.door .sent-links a { display: inline-flex; align-items: center; min-height: 44px; }
/* round 1142 (hartsgill item 11): Making your books, a moving bar and its three steps */
.door .making-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 0 0 1rem; }
.door .making-bar span { display: block; width: 40%; height: 100%; background: var(--accent, #0B7A75); border-radius: 3px; animation: making 1.4s ease-in-out infinite; }
@keyframes making { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.door ol.making-steps { display: flex; gap: 1.25rem; justify-content: center; list-style: none; padding: 0; margin: 0 0 1rem; color: var(--muted); }
/* round 1142 (greyfinch item 14): the required mark of a setup field */
label span.req { color: var(--accent, #0B7A75); margin-left: 2px; font-weight: 600; }
/* round 1142 (items 16, 32): People, one table: the addresses whole */
table.people-table td.person-email { white-space: nowrap; overflow: visible; text-overflow: clip; max-width: none; }
/* round 1072b (MIKA 22): Back on Sign up with email is a small text link at the card's top left */
.door main:has(> .door-back) { position: relative; padding-top: 3rem; }
.door a.door-back { position: absolute; top: .5rem; left: 1.25rem; display: inline-flex; align-items: center; min-height: 2.75rem; margin: 0;
  font-size: var(--text-s); color: var(--muted); text-decoration: none; }
.door a.door-back::before { content: "\2039"; margin-right: .35rem; font-size: var(--text-m); }   /* round 1091a: on the type scale (was 1.1em) */
.door a.door-back:hover { color: var(--fg); text-decoration: underline; }
/* round 1072b (MIKA 23: the lookup list cut its third result in half): the list keeps round 1055's 15rem at most, business.js ends it
   on a whole row (the rest scroll in whole rows too); the name as typed is its first row, not stuck to the bottom */
#ch-picks { scroll-snap-type: y proximity; }
#ch-picks > * { scroll-snap-align: start; }
#ch-picks button.pick-typed { position: static; border-top: 0; }

/* Round 1088 (owner order of 20 Nov 2026, A and B; DESIGN-RULES 7.5, 7.13 to 7.15, 9.7). 1. The fold of a group of folds (kit.section
   fold=...): one line of 46 px, the arrow, the title and its key value; one open at most (details name); hover, pressed and focus within
   120 ms. 2. Rows inside: label, value, one action; action buttons one width, one right edge. 3. The segmented choice: a click saves,
   the chosen one wears the tick. 4. API keys: the head's one Create API key, the table under it, the sheet on one left edge. */
:root body:not(.door) main details.kit-fold { display: block; margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
:root body:not(.door) main details.kit-fold > summary.kit-fold-head { display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 0 16px;
  cursor: pointer; border-radius: var(--r); transition: background-color .12s ease, box-shadow .12s ease; user-select: none; }
:root body:not(.door) main details.kit-fold > summary.kit-fold-head::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 4px 0 2px;
  border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .12s ease; }
:root body:not(.door) main details.kit-fold[open] > summary.kit-fold-head::before { transform: rotate(45deg); }
:root body:not(.door) main details.kit-fold > summary.kit-fold-head:hover { background: var(--hover); }
:root body:not(.door) main details.kit-fold > summary.kit-fold-head:active { background: var(--sel); }
:root body:not(.door) main details.kit-fold > summary.kit-fold-head:focus-visible { outline: 2px solid var(--do); outline-offset: 2px; }
:root body:not(.door) main details.kit-fold[open] > summary.kit-fold-head { border-radius: var(--r) var(--r) 0 0; border-bottom: 1px solid var(--line); }
:root body:not(.door) main details.kit-fold > summary.kit-fold-head > h3 { margin: 0; padding: 0; font-size: var(--h3); font-weight: 600; line-height: 1.3; white-space: nowrap; }
:root body:not(.door) main details.kit-fold > summary.kit-fold-head > .kit-fold-key { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--muted); font-size: var(--text-m); }
:root body:not(.door) main details.kit-fold > .kit-fold-body { padding: 0; }
:root body:not(.door) main details.kit-fold > .kit-fold-body > ul.set-rows { margin: 0; border: 0; border-radius: 0 0 var(--r) var(--r); background: transparent; }
/*    round 1099 (ux_alignment UX3 on Bank, Statements: the table 16 px in, its Add account 20 px in): a fold's table stands at the inset
      of the fold's other parts (the section's 20 px, 14 px on a phone), as its buttons do */
:root body:not(.door) main details.kit-fold > .kit-fold-body > .scroll { margin: 0 20px; padding: 8px 0 12px; }
@media (max-width: 56rem) { :root body:not(.door) main details.kit-fold > .kit-fold-body > .scroll { margin: 0 14px; } }
:root body:not(.door) main details.kit-fold ul.set-rows > li { transition: background-color .12s ease; }
:root body:not(.door) main details.kit-fold ul.set-rows > li:hover { background: var(--surface-2); }
:root body:not(.door) main details.kit-fold ul.set-rows .sr-a { justify-content: flex-end; }
:root body:not(.door) main details.kit-fold ul.set-rows { --ra-w: 120px; }     /* the row Edit of the page kit takes the same width */
:root body:not(.door) main details.kit-fold ul.set-rows .sr-a > .btn,
:root body:not(.door) main details.kit-fold ul.set-rows .sr-a > form.inline > button,
:root body:not(.door) main details.kit-fold ul.set-rows .sr-a > details.set-inline:not([open]) > summary.btn { box-sizing: border-box; min-width: 120px !important; justify-content: center; }
:root body:not(.door) main details.kit-fold ul.set-rows .sr-t code { font-size: var(--text-s); }
:root body:not(.door) main details.kit-fold ul.set-rows .sr-t > .help-mark { margin-inline: 4px 0; }
:root body:not(.door) main details.kit-fold ul.set-rows .sr-t:has(> .help-mark) { flex-direction: row; align-items: center; }
:root body:not(.door) main details.kit-fold ul.set-rows > li.sr-seg { flex-wrap: wrap; }
:root body:not(.door) main details.kit-fold ul.set-rows .seg-now { color: var(--muted); }
/* the segmented choice: one control, its parts touching; the chosen part tinted with a tick; a click saves (no Save button) */
:root body:not(.door) main form.seg { display: inline-flex; flex-wrap: wrap; margin: 0; border: 1px solid var(--line-2); border-radius: var(--rc); overflow: hidden; }
:root body:not(.door) main form.seg > button { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; min-height: 36px;
  margin: 0; padding: 4px 14px; border: 0; border-radius: 0; background: var(--surface); color: var(--fg); font: inherit; font-size: var(--text-s); cursor: pointer;
  transition: background-color .12s ease, color .12s ease; }
:root body:not(.door) main form.seg > button + button { border-left: 1px solid var(--line-2); }
:root body:not(.door) main form.seg > button:hover { background: var(--hover); }
:root body:not(.door) main form.seg > button:active { background: var(--sel); }
:root body:not(.door) main form.seg > button:focus-visible { outline: 2px solid var(--do); outline-offset: -2px; }
:root body:not(.door) main form.seg > button[aria-pressed="true"] { background: var(--do-soft); color: var(--do-strong); font-weight: 600; }
:root body:not(.door) main form.seg > button[aria-pressed="true"] > b::before,
:root body:not(.door) main form.seg > button[aria-pressed="true"]:not(:has(> b))::before { content: "\2713\00a0"; }
:root body:not(.door) main form.seg > button > b { font-weight: 600; font-size: var(--text-s); }
:root body:not(.door) main form.seg > button > small { font-size: var(--text-xs); color: var(--muted); font-weight: 400; white-space: nowrap; }
/* /api-keys: the table under the head at once; the empty line plain; a revoked key grey */
:root body:not(.door) main p.keys-none { margin: 8px 0; color: var(--muted); }
:root body:not(.door) main table.kit.api-keys tr.gone td { color: var(--muted); }
/* the sheet Create API key: every label, tick box and radio on one left edge, the tick on the line of its words, one company a row,
   the button its own width at the bottom right */
:root body:not(.door) .kit-sheet > .sheet-body form.key-form { gap: 16px; }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form > .kf-row { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form > .kf-row > label, :root body:not(.door) .kit-sheet > .sheet-body form.key-form > .kf-row > legend {
  padding: 0; margin: 0 0 6px; font-size: var(--text-xs); font-weight: 600; color: var(--muted); }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form > .kf-row > input#ak-name { width: 100%; box-sizing: border-box; }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form .kf-opts { display: flex; flex-direction: column; gap: 6px; }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form ul.kf-cos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form label.tick { display: flex; align-items: center; gap: 8px; min-height: 32px; margin: 0; padding: 0 6px;
  border-radius: var(--rc); cursor: pointer; font-size: var(--text-m); line-height: 1.3; transition: background-color .12s ease; }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form label.tick:hover { background: var(--hover); }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form label.tick > input { flex: none; width: 16px; height: 16px; margin: 0; cursor: pointer; }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form label.tick > .no { flex: none; min-width: 22px; text-align: right; color: var(--muted); font-size: var(--text-s);
  font-variant-numeric: tabular-nums; }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form label.tick > .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form label.tick > small { flex: none; color: var(--muted); font-size: var(--text-s); }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form label.tick > small.why { margin-left: auto; font-size: var(--text-xs); }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form li.off label.tick { cursor: default; color: var(--muted); }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form li.off label.tick:hover { background: none; }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form li.all { border-bottom: 1px solid var(--line); padding-bottom: 2px; margin-bottom: 2px; }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form > .kf-acts { display: flex; flex-direction: row; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 4px; }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form .kf-count { color: var(--muted); font-size: var(--text-s); }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form > .kf-acts > button:disabled { opacity: .5; cursor: not-allowed; }
:root body:not(.door) .kit-sheet > .sheet-body form.key-form > .kf-acts > button { width: auto; flex: none; }
/* after Create: the key and the base address, each with Copy */
:root body:not(.door) main ul.set-rows.key-made .sr-t code { font-size: var(--text-s); overflow-wrap: anywhere; word-break: break-all; }
:root body:not(.door) main p.key-ref { margin: 8px 0; }
:root body:not(.door) main [data-copy].copied::after { content: "\00a0\2713"; }
/* round 1075c (design review, MIKA 11): the invoice as a document: the customer left, status and money right */
:root main .inv-doc { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin: 0 0 var(--s4); }   /* round 1098: the page head's summary, no card */
:root main .inv-doc .inv-doc-left { display: flex; flex-direction: column; gap: 2px; min-width: 14rem; }
:root main .inv-doc .inv-who { font-size: var(--t18, 1.125rem); font-weight: 600; }
:root main .inv-doc .inv-ref { color: var(--muted); margin-top: 6px; }
:root main .inv-doc .inv-doc-right { display: grid; gap: 4px; justify-items: end; text-align: right; }
:root main .inv-doc .inv-fig > span { color: var(--muted); margin-right: 8px; }
@media (max-width: 40rem) { :root main .inv-doc .inv-doc-right { justify-items: start; text-align: left; } }
/* round 1075c (MIKA 14): the currency beside Amounts are, one row */
:root main #w-form .w-amt-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
/* Round 1091 (owner order of 20 Nov 2026 part C5 and C6, docs/DESIGN-RULES.md 7.15 and 9.7): the feel of every page, in one place.
   1. Everything clickable (button, link, summary, tab, row, fold head, the date field's calendar mark) has a pointer, a hover state,
      a pressed state and a focus ring, drawn at once and eased over 120 ms. The layer is the weakest of the sheet (declared first, at
      its top): a component that draws its own hover, pressed or focus look keeps it. */
@layer ux-feel {
  :where(button, a[href], summary, [role="button"], [role="tab"], [role="switch"], tr[data-href], .rr-row, .fold-head, [data-fold] > .kit-head,
         .datefield-pick, label:has(> input:is([type="checkbox"], [type="radio"]))) {
    cursor: pointer; transition: background-color .12s ease, color .12s ease, border-color .12s ease, box-shadow .12s ease, filter .12s ease; }
  /* each :hover selector stands alone (no list inside a pseudo class), so the gate's reading of the sheet finds every one */
  button:hover, summary:hover, [role="button"]:hover, [role="tab"]:hover, tr[data-href]:hover, .rr-row:hover, .fold-head:hover,
  [data-fold] > .kit-head:hover, .datefield-pick:hover { background-color: var(--hover); }
  a[href]:hover { color: var(--turquoise-strong); }
  :where(button, a.btn, summary, [role="button"], [role="tab"], [role="switch"], tr[data-href], .fold-head, .datefield-pick):active { filter: brightness(.92); }
  :where(button, a[href], summary, [role="button"], [role="tab"], [role="switch"], .datefield-pick):focus-visible { outline: none; box-shadow: var(--focus); }
  :where(button, a.btn, summary.btn):where(:disabled, [aria-disabled="true"]) { cursor: not-allowed; filter: none; }
}
/* 2. The parts whose own rules leave the hover flat, named here so the kit draws it: a fold's head tints as a row does (its corners as
      the card's), a figure of the page head darkens its words, a disclosure's words take the link colour, the calendar mark turns
      turquoise, a buttons' summary has the pointer its button has. */
:root main [data-fold] > .fold-head:hover, :root main [data-fold] > header.kit-head:hover { background-color: var(--hover); }
:root main [data-fold="shut"] > :is(.fold-head, header.kit-head) { border-radius: inherit; }
:root main [data-fold="open"] > :is(.fold-head, header.kit-head) { border-start-start-radius: inherit; border-start-end-radius: inherit; }
:root main .ph-sum a.ph-fig:hover, :root main .ph-sum a.ph-fig:hover small { color: var(--fg); }
:root details:not(.kit-sheet):not(.kit-more):not(.help-mark) > summary:not(.btn):hover { color: var(--turquoise-strong); }
details.help-mark > summary:hover { background-color: var(--hover); color: var(--fg); }
.datefield .datefield-pick:hover { color: var(--do); background-color: var(--hover); }
:root summary.btn, :root .rr-row { cursor: pointer; }
table.mg-grid tr.mg-row:hover { background-color: var(--hover); }
/*    the chosen tab, chip or entry darkens a shade (the chosen tab's line turns turquoise), a switch and a framed button of a plain form
      answer as every button does, a link of a list of pages darkens as every link does */
:root main a.on:hover, :root main a[aria-current]:hover, :root main [role="tab"][aria-selected="true"]:hover { filter: brightness(.96); }
:root body:not(.door) main .u-tabs > [aria-selected="true"]:hover, :root body:not(.door) main .chips.page-tabs > [aria-selected="true"]:hover { border-bottom-color: var(--do) !important; }
:root button.switch:hover { filter: brightness(.92); }
:root form:not([method="post" i]) button.btn:not(.primary):not(.act):hover { background: var(--do-soft); color: var(--do-strong); }/* 3. A press shows at once: a button pressed is drawn darker (the layer above), a form sent marks its button busy (nav.js aria-busy)
      with a turning ring inside it, and a save that kept the page ticks its button (nav.js .is-saved) for a moment. */
:root :is(button, a.btn, summary.btn)[aria-busy="true"] { position: relative; color: transparent !important; pointer-events: none; }
:root :is(button, a.btn, summary.btn)[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 1em; height: 1em;
  border: 2px solid var(--line-2); border-top-color: var(--do); border-radius: 50%; animation: kit-turn .7s linear infinite; }
@keyframes kit-turn { to { transform: rotate(360deg); } }
:root :is(button, a.btn).is-saved::before { content: "\2713\00a0"; }
/*    a form of one choice (data-autosave) saves as the choice changes: no Save button, a tick and the word after the choice */
:root form[data-autosave] :is(button:not([type="button"]), input[type="submit"]) { display: none; }
:root form[data-autosave].is-saved::after { content: "\2713\00a0Saved"; align-self: center; margin-left: var(--s2); color: var(--ok); font-size: var(--t13); white-space: nowrap; }
:root:lang(de) form[data-autosave].is-saved::after { content: "\2713\00a0Gespeichert"; }
@media (prefers-reduced-motion: reduce) { :root :is(button, a.btn, summary.btn)[aria-busy="true"]::after { animation: none; } }
/* 4. Controls sit straight (7.15): a tick box or radio stands on the line of its words, the middle of the box on the middle of the
      first line; a row of section tabs wraps on a wide screen, so no tab is cut by the window (a phone still scrolls it sideways). */
/*    (the sheet's first rule, "input, select, button", gave a tick box the 2 rem of a field: a 13 px box in a 32 px frame, 11 px above
      its words) */
input:is([type="checkbox"], [type="radio"]) { height: auto; padding: 0; vertical-align: middle; margin-block: 0; }
/*    a tick label of words that wrap: the box stays on the first line, not in the middle of the lines */
:root body:not(.door) label.tick { align-items: flex-start; }
:root body:not(.door) label.tick > input:is([type="checkbox"], [type="radio"]) { flex: none; margin-top: calc((1lh - 13px) / 2); }
/*    round 1098 (gate ALIGN on P&L compare, "% of sales" 2 px off): a tick in a bar of fields was a block label (".bar label"), its box
      inline on the text's baseline; it is a row of box and words as every tick label is */
:root body:not(.door) .bar label.tick { display: inline-flex; gap: .35rem; }
/*    round 1098 (gate SAVE on Control, "Save who approves" alone at the foot's left): a page form's Save with its code stands at the foot's
      right end, as a sheet's and a dialog's do (5 below) */
:root main form .bar.save-foot { justify-content: flex-end; align-items: center; }
/*    (the section tabs wrap on a wide screen: round 1091a, with the tabs' own rules) */
/* 5. A sheet's own button (Save, Create, Post) stands in the sheet's foot at the right end, as a dialog's does (Xero, QuickBooks), and
      stays in sight while the sheet scrolls; never alone at the foot's left under the last field. */
/*    (in the first layer, its marks important: the form rows of layer ux-n15 hold their cells to a column with important marks, and of
      two important marks the earlier layer's wins) */
@layer ux-feel {
  :root .kit-sheet > .sheet-body form > :is(div.kit-actions, :is(div, p):has(> :is(button:not([type="button"]), input[type="submit"]):only-child),
      div.bar:has(> div > button:only-child):not(:has(> div > :is(input, select, textarea, label)))):not(:has(~ :not(p.muted, p.expl, input[type="hidden"]))) {
    position: sticky !important; bottom: 0; z-index: 1; display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: flex-end !important; gap: var(--s2);
    align-items: center !important; align-self: stretch !important; width: auto !important; max-width: none !important; grid-column: 1 / -1;
    margin: var(--s2) 0 0; padding: var(--s3) 0 0; border-top: 1px solid var(--line); background: var(--surface); }
}

/* HQ hotfix 21 Nov 2026 (owner 04:59, DESIGN-RULES 16): settings rows are whole lines. A row with one action answers the pointer
   anywhere; a link to a page is a quiet arrow, not a framed button; the autonomy levels are lines that save on the click */
:root body:not(.door) main ul.set-rows > li:has(.sr-a > a[href]:only-child, .sr-a > details:only-child > summary, .sr-a > button:only-child, .sr-a > form:only-child > button:only-of-type) { cursor: pointer; transition: background-color .12s ease; }
:root body:not(.door) main ul.set-rows > li:has(.sr-a > a[href]:only-child, .sr-a > details:only-child > summary, .sr-a > button:only-child, .sr-a > form:only-child > button:only-of-type):hover { background: var(--hover); }
:root body:not(.door) main ul.set-rows > li:has(details[open]) { cursor: default; background: transparent; }
:root body:not(.door) main ul.set-rows .sr-a > a.btn[href]:not(.primary):not([data-connect-sheet]):not([target]) { border-color: transparent !important; background: transparent !important; color: var(--muted) !important;
  min-width: 0 !important; width: auto !important; padding: 0 2px 0 8px !important; box-shadow: none !important; }
:root body:not(.door) main ul.set-rows .sr-a > a.btn[href]:not(.primary):not([data-connect-sheet]):not([target])::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
:root body:not(.door) main ul.set-rows > li:hover .sr-a > a.btn[href]:not(.primary):not([data-connect-sheet]):not([target]) { color: var(--do) !important; }
:root body:not(.door) main form.pick-rows { margin: 0; display: block; }
:root body:not(.door) main form.pick-rows > button.pick-row { all: unset; box-sizing: border-box; display: flex; align-items: baseline; gap: 12px; width: 100%; min-height: 38px; padding: 8px 16px 8px 46px;
  position: relative; cursor: pointer; font: inherit; color: var(--ink, inherit); border-bottom: 1px solid var(--line); transition: background-color .12s ease; }
:root body:not(.door) main form.pick-rows > button.pick-row:hover { background: var(--hover); }
:root body:not(.door) main form.pick-rows > button.pick-row:active { background: var(--sel); }
:root body:not(.door) main form.pick-rows > button.pick-row:focus-visible { outline: 2px solid var(--do); outline-offset: -2px; }
:root body:not(.door) main form.pick-rows > button.pick-row::before { content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 14px; margin-top: -8px; border-radius: 50%;
  border: 2px solid var(--line-strong, var(--muted)); box-sizing: border-box; background: var(--surface); }
:root body:not(.door) main form.pick-rows > button.pick-row[aria-pressed="true"]::before { border: 5px solid var(--do); }
:root body:not(.door) main form.pick-rows > button.pick-row[aria-pressed="true"] { background: var(--sel); }
:root body:not(.door) main form.pick-rows > button.pick-row > b { font-weight: 600; white-space: nowrap; }
:root body:not(.door) main form.pick-rows > button.pick-row > small { color: var(--muted); font-size: var(--text-s); }
:root body:not(.door) main form.pick-rows > .pick-code { padding: 10px 16px; border-bottom: 1px solid var(--line); }

/* ===== KIT: GROUPS, BOXED SUMMARY, CARD ==========================================================================================   Design job 1121-072129-02 (owner's choice of 21 Nov 2026, Approvals mock A; DESIGN-RULES 7.2, 8.2, 8.3, 9.1). Three parts of the kit
   any page may take: kit.summary(box=True) the summary line as one white bar of 44 px, its labels small and its figures at 15 px, the Next
   at its right end (next_button: the page's one filled button); kit-card a white card that is the table itself (no title of its own: the
   first column head names the list); kit.group_table, alike rows folded into one with a count and an arrow, rows of 46 px. */
:root body:not(.door) main .page-head > .ph-sum[data-box] { box-sizing: border-box; flex-wrap: nowrap; gap: 32px; height: 44px; min-height: 44px; margin-top: 12px;
  padding: 0 6px 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
:root body:not(.door) main .ph-sum[data-box] .ph-fig { display: inline-flex; align-items: baseline; column-gap: 8px; min-height: 0; font-size: var(--t15); }
:root body:not(.door) main .ph-sum[data-box] .ph-fig small { font-size: var(--t13); color: var(--muted); font-weight: 400; }
:root body:not(.door) main .ph-sum[data-box] .ph-fig b { font-weight: 500; color: var(--fg); }
:root body:not(.door) main .ph-sum[data-box] a.ph-fig b { color: var(--id); }
:root body:not(.door) main .ph-sum[data-box] .ph-next { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: var(--t13); font-weight: 400; color: var(--muted); }
:root body:not(.door) main .ph-sum[data-box] .ph-next.ph-next-btn a.btn.primary { --ctl-h: 32px; --btn-fs: var(--t13); box-sizing: border-box; min-height: 32px !important;
  height: 32px !important; padding: 0 12px !important; font-size: var(--t13) !important; font-weight: 500; line-height: 30px; color: var(--act-ink); }
:root body:not(.door) main .kit-card { margin: 12px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
:root body:not(.door) main .kit-card > .scroll { margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; overflow-x: auto; }
:root body:not(.door) main table.kit.kit-groups { width: 100%; min-width: 860px; table-layout: fixed; border-collapse: collapse; margin: 0; font-size: var(--t13); }
:root body:not(.door) main table.kit.kit-groups :is(th, td) { box-sizing: border-box; height: 52px; padding: 0 8px; border: 0; border-top: 1px solid var(--grid);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; max-width: none; background: none; }
:root body:not(.door) main table.kit.kit-groups thead th { height: 32px; border-top: 0; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  font-size: var(--th); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
:root body:not(.door) main table.kit.kit-groups :is(th, td).kit-ar { width: 56px; padding: 0 8px 0 16px; color: var(--muted); }
:root body:not(.door) main table.kit.kit-groups :is(th, td):nth-child(2) { width: 316px; }
:root body:not(.door) main table.kit.kit-groups :is(th, td):nth-child(3) { width: 80px; }
:root body:not(.door) main table.kit.kit-groups :is(th, td):nth-child(4) { width: 136px; }
:root body:not(.door) main table.kit.kit-groups :is(th, td):nth-child(5) { width: 128px; }
:root body:not(.door) main table.kit.kit-groups :is(th, td):nth-child(6),
:root body:not(.door) main table.kit.kit-groups :is(th, td):nth-child(7) { width: 112px; }
:root body:not(.door) main table.kit.kit-groups :is(th, td).kit-fill { width: auto; padding: 0; }
:root body:not(.door) main table.kit.kit-groups :is(th, td).num { text-align: right; font-variant-numeric: tabular-nums; }
:root body:not(.door) main table.kit.kit-groups tbody > tr { cursor: pointer; transition: background-color .12s ease; }
:root body:not(.door) main table.kit.kit-groups tbody > tr:hover { background: var(--hover); }
:root body:not(.door) main table.kit.kit-groups tbody > tr:active { background: var(--sel); }
:root body:not(.door) main table.kit.kit-groups tbody > tr:focus-visible { outline: 2px solid var(--id); outline-offset: -2px; }
:root body:not(.door) main table.kit.kit-groups tr.kit-grp-head > td:nth-child(2) { font-weight: 500; }
:root body:not(.door) main table.kit.kit-groups td:is(:nth-child(6), :nth-child(7)) { color: var(--muted); }
:root body:not(.door) main table.kit.kit-groups a.kit-row-link { color: inherit; text-decoration: none; }
:root body:not(.door) main table.kit.kit-groups a.kit-row-link:hover { text-decoration: underline; }
:root body:not(.door) main table.kit.kit-groups .kit-arrow { display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .12s ease; }
:root body:not(.door) main table.kit.kit-groups tbody.kit-grp.open .kit-arrow { transform: translateY(-2px) rotate(45deg); }
:root body:not(.door) main table.kit.kit-groups .kit-state.ok::before { content: "\2713"; margin-right: 6px; color: var(--id); }
:root body:not(.door) main table.kit.kit-groups tfoot td { border-top: 1px solid var(--fg); font-weight: 700; }
/* beside its record (from 1600 px): the name column takes what the fixed ones leave, the filler goes */
:root.bs-on body:not(.door) main .bs-host table.kit.kit-groups { min-width: 0; }
:root.bs-on body:not(.door) main .bs-host table.kit.kit-groups :is(th, td):nth-child(2) { width: auto; }
:root.bs-on body:not(.door) main .bs-host table.kit.kit-groups :is(th, td).kit-fill { display: none; }
:root.bs-on body:not(.door) main .bs-host table.kit.kit-groups tr.bs-row > td { background: var(--sel); }
:root.bs-on body:not(.door) main .bs-host table.kit.kit-groups tr.bs-row:focus-visible { outline: 0; }
@media (max-width: 56rem) { :root body:not(.door) main .page-head > .ph-sum[data-box] { height: auto; flex-wrap: wrap; gap: 4px 16px; padding: 8px 12px; } }
/* round 1113 (Bills review): the status a quiet word, no pill per row; overdue grey beside the date; the pager's line; on a phone the
   list is date, supplier and what is due, no sideways scroll, the tabs one strip */
:root main table.mg-bills .bl-st { color: var(--muted); white-space: nowrap; }
:root main table.mg-bills .bl-st.good { color: var(--good, var(--muted)); }
:root main table.mg-bills small.bl-late { color: var(--muted); font-weight: 400; display: block; line-height: 1.2; white-space: nowrap; }
:root main table.mg-bills td.mg-due-date { white-space: normal; line-height: 1.2; }
:root main table.mg-bills small.bl-late-ph { display: none; }
:root main table.mg-bills.bl-topay.bl-nopaid td.mg-due-date { white-space: nowrap; }
:root main table.mg-bills.bl-topay.bl-nopaid td.mg-due-date small.bl-late { display: inline; margin-left: 6px; }
@media (min-width: 56.01rem) { :root main table.mg-bills .bl-stsub { display: none; } }
:root main nav:is(.bl-pager, .kit-pager) { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
:root main nav:is(.bl-pager, .kit-pager) > span.muted { margin-right: 8px; }
:root main nav:is(.bl-pager, .kit-pager) > span.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
@media (max-width: 56rem) {
  :root main table.mg-bills :is(th.mg-st, td.mg-st) { display: none !important; }
  :root main:has(table.mg-bills) .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  :root main:has(table.mg-bills) .chips > a { flex: none; }
  :root main table.mg-bills small.bl-late-ph { display: block; }
  :root main table.mg-bills .mg-sub.bl-stsub { display: block; margin-left: 0; line-height: 1.2; }
  :root main table.mg-grid.mg-bills.bl-nopaid :is(th, td).mg-gross { display: table-cell !important; }
  :root main:has(table.mg-bills) .ph-sum { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  :root main:has(table.mg-bills) .ph-sum > * { flex: none; white-space: nowrap; }
}
/* round 1113b (phone head, 390 px: the ⋯ stood alone on a row of 44 px under the title): on Bills the title and its buttons share one row */
/* round 1145: never narrower than its longest word (the 20 px title of round 1132, rule N2, cut "Eingangsrechnungen" at 390): a title
   too long for the row takes its own row and the buttons the row under it */
@media (max-width: 40rem) { :root body:not(.door) main:has(table.mg-bills) .page-head:not(:has(> a.crumb)) > h1 { flex: 1 1 0 !important; min-width: min-content !important; } }
/* ===== BANK LINE PATHWAY (round 1114, owner order of 21 Nov 2026) =====================================================================
   One row grammar for To reconcile: 46 px, one line, fixed columns in the order's widths: tick 32, date 88, payee 1fr (at least 200),
   amount 112, sign 28, OK 72, proposal 1.4fr, note 160, paperclip 40, menu 32. The bank's facts left under "Bank statement", the books'
   side under "In your books". OK a teal outline in its fixed column, filled on hover. No red: a refusal is one grey line with Edit. */
:root main .rr-row:not(.rd-row):not(.ax-row) { grid-template-columns: 32px 88px minmax(200px, 1fr) 112px 28px 72px minmax(0, 1.4fr) 160px 40px 32px;
  grid-template-areas: "tick date who amt sign ok chip note clip more"; column-gap: 8px; padding: 0 8px 0 4px; }
:root main .rr.rr-noticks .rr-row:not(.rd-row):not(.ax-row) { grid-template-columns: 0 88px minmax(200px, 1fr) 112px 28px 72px minmax(0, 1.4fr) 160px 40px 32px; padding-left: 0; }
:root main .rr-row .rr-signc { grid-area: sign; display: grid; place-items: center; color: var(--muted); overflow: visible; }
:root main .rr-row .rr-note { grid-area: note; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--text-xs); }
:root main .rr-row .rr-note > * { flex: none; }
:root main .rr-row .rr-note .rr-tag { margin: 0; background: none; border: 0; padding: 0; color: var(--muted); }
:root main .rr-row .rr-was, :root main .rr-row .rr-sign, :root main .rr-row .rr-twin { color: var(--muted); font-size: var(--text-xs); margin: 0; white-space: nowrap; }
:root main .rr-row .rr-sign + .rr-sign::before, :root main .rr-row .rr-note > * + *::before { content: "· "; }
:root main .rr-row .rr-accb { cursor: pointer; }
:root main .rr-row .rr-accb.rr-acc-name { font-weight: var(--weight-strong); color: var(--fg); }
:root main .rr-row .rr-accb:hover { text-decoration: underline; }
:root main .rr-row .rr-okc .rr-ok, :root main .rr .rr-row .rr-okc .rr-ok.primary { width: 64px; min-width: 64px; background: var(--surface); color: var(--do); border: 1px solid var(--do);
  transition: background 120ms, color 120ms; }
:root main .rr .rr-row .rr-okc .rr-ok:hover, :root main .rr .rr-row .rr-okc .rr-ok:focus-visible { background: var(--do); color: var(--do-ink); border-color: var(--do); }
:root main .rr .rr-row .rr-okc .rr-ok.rr-pickb { color: var(--fg); border-color: var(--line-2); }
:root main .rr .rr-row .rr-okc .rr-ok.rr-pickb:hover { background: var(--hover); color: var(--fg); }
:root main .rr-row.rr-locked .rr-date, :root main .rr-row.rr-locked .rr-amt { color: var(--muted); }
:root main .rr-row .rr-lock { display: block; }
:root main .rr-clipb.need { color: var(--muted); opacity: .55; }
:root main .rr-why { background: none; padding: 2px 12px 8px 132px; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
:root main .rr-twin { color: var(--muted); }
:root main .rr-grid.rr-pile { box-shadow: inset 0 0 0 2px var(--do); }
/* the head: the account's figures flat in one line, the filters and the one filled button, the heads of the two sides */
:root main .rr-head .rr-figs { flex: 1 0 100%; display: flex; align-items: baseline; gap: 24px; min-height: 28px; font-size: var(--text-m, 15px); }
:root main .rr-head .rr-fig { display: inline-flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
:root main .rr-head .rr-fig small { color: var(--muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .02em; }
:root main .rr-head .rr-fig.good .num { color: var(--ok); }
:root main .rr-head .rr-tools { order: 5; flex: 1 0 100%; display: flex; align-items: center; gap: 12px; }
:root main .rr-head .rr-kinds { display: inline-flex; gap: 4px; flex: 1 1 auto; }
:root main .rr-head .rr-kind { border: 1px solid transparent; background: none; color: var(--muted); padding: 0 10px; height: 28px; border-radius: 6px; font: inherit; font-size: var(--text-s); cursor: pointer; }
:root main .rr-head .rr-kind:hover { background: var(--hover); }
:root main .rr-head .rr-kind[aria-pressed="true"] { color: var(--fg); border-color: var(--line); background: var(--surface); }
/* round 1145: the filters of a list without the Bank head (Months, lines: rr-tools) are words with no frame, as high as the search field
   beside them (one control height); round 1114 f36abb41 had framed 28 px chips beside the 36 px field (UX1, UX9) */
:root main .rr-head .rr-tools .rr-kinds { gap: 14px; }
:root main .rr-head .rr-tools .rr-kind { border: 0; padding: 0; height: var(--ctl-h); border-radius: 0; font-size: var(--t13); white-space: nowrap; }
:root main .rr-head .rr-tools .rr-kind:hover { background: none; color: var(--fg); }
:root main .rr-head .rr-tools .rr-kind[aria-pressed="true"] { border: 0; background: none; font-weight: var(--weight-medium, 500); }
:root main .rr-head .rr-okprop { flex: none; margin-left: auto; }
.rr-okform { display: contents; }          /* round 1114: OK all proposed is a submit in its own form; the layout is the button's */
:root main .rr-head .rr-cols { order: 9; flex: 1 0 100%; display: grid; grid-template-columns: 32px 88px minmax(200px, 1fr) 112px 28px 72px minmax(0, 1.4fr) 160px 40px 32px;
  column-gap: 8px; padding: 0 8px 0 4px; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
:root main .rr-head .rr-col-bank { grid-column: 2 / 5; }
:root main .rr-head .rr-col-books { grid-column: 6 / 9; }
/* the panel: Create's fields left, the receipt's drop zone right */
:root main .rp-pane.rp-with-drop { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: stretch; }
:root main .rp-pane.rp-with-drop > .rp-dropzone { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px;
  padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--rc); color: var(--muted); font-size: var(--text-s); text-align: center; cursor: pointer; }
:root main .rp-pane.rp-with-drop > .rp-dropzone:hover, :root main .rp-pane.rp-with-drop > .rp-dropzone:focus-visible { border-color: var(--do); color: var(--do); outline: none; }
:root main .rp-pane.rp-with-drop > .rp-dropzone.has { border-style: solid; color: var(--fg); }
:root main .rp-why { margin: 6px 0 0; font-size: var(--text-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root main .rp-why .rp-link { margin-left: 4px; }
:root main .rp-note.rp-lock { color: var(--fg); }
@media (max-width: 87.5rem) {
  :root main .rr-row:not(.rd-row):not(.ax-row), :root main .rr-head .rr-cols { grid-template-columns: 32px 72px minmax(160px, 1fr) 104px 24px 72px minmax(0, 1.3fr) 112px 32px 32px; }
  :root main .rr.rr-noticks .rr-row:not(.rd-row):not(.ax-row) { grid-template-columns: 0 72px minmax(160px, 1fr) 104px 24px 72px minmax(0, 1.3fr) 112px 32px 32px; }
}
@media (max-width: 40rem) {
  /* a phone: two lines inside the same 46 px; payee and amount on top, the proposal under them; OK and the menu the row's height */
  :root main .rr-row:not(.rd-row):not(.ax-row), :root main .rr.rr-noticks .rr-row:not(.rd-row):not(.ax-row) { grid-template-columns: 0 44px minmax(0, 1fr) auto 64px 28px;
    grid-template-rows: 22px 20px; grid-template-areas: "tick date who amt ok more" "tick sign chip chip ok more"; column-gap: 6px; padding: 0 4px; }
  :root main .rr-row .rr-note, :root main .rr-row .rr-clip { display: none; }
  /* round 1145: the bank row's tick only; Account transactions keeps its ticks on a phone for Find and recode (round 1114 f36abb41
     hid every .rr-row's tick, .ax-row too) */
  :root main .rr-row:not(.ax-row) .rr-tick { visibility: hidden; }
  :root main .rr-head .rr-cols { display: none; }
  :root main .rr-head .rr-figs { gap: 12px; font-size: var(--text-s); flex-wrap: wrap; }
  :root main .rr-head .rr-tools { flex-wrap: wrap; }
  :root main .rr-head .rr-kinds { overflow-x: auto; max-width: 100%; }
  :root main .rp-pane.rp-with-drop { grid-template-columns: 1fr; }
  :root main .rr-why { padding-left: 12px; }
  :root main .rr-row .rr-okc .rr-ok, :root main .rr .rr-row .rr-okc .rr-ok.primary { width: 56px; min-width: 56px; height: 40px; }
}
/* round 1114b (HQ look findings 4, B23: "ADONIS FOODS EUROPE ..." cut at 22 characters while the row had room): the bank's side
   (payee and its text) and the books' side share the row 1.3 to 1; inside the payee cell the grey bank text gives way first, the
   payee's name last */
:root main .rr-row:not(.rd-row):not(.ax-row), :root main .rr-head .rr-cols, :root main .rc .rr-cols {
  grid-template-columns: 32px 88px minmax(220px, 1.3fr) 112px 28px 72px minmax(0, 1fr) 160px 40px 32px; }
:root main .rr.rr-noticks .rr-row:not(.rd-row):not(.ax-row) { grid-template-columns: 0 88px minmax(220px, 1.3fr) 112px 28px 72px minmax(0, 1fr) 160px 40px 32px; }
:root main .rr-row:not(.rd-row):not(.ax-row) > .rr-who { display: flex; align-items: baseline; }
:root main .rr-row:not(.rd-row):not(.ax-row) > .rr-who > .rr-payee { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root main .rr-row:not(.rd-row):not(.ax-row) > .rr-who > .rr-text { flex: 0 10000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 87.5rem) {
  :root main .rr-row:not(.rd-row):not(.ax-row), :root main .rr-head .rr-cols, :root main .rc .rr-cols {
    grid-template-columns: 32px 72px minmax(180px, 1.25fr) 104px 24px 72px minmax(0, 1fr) 112px 32px 32px; }
  :root main .rr.rr-noticks .rr-row:not(.rd-row):not(.ax-row) { grid-template-columns: 0 72px minmax(180px, 1.25fr) 104px 24px 72px minmax(0, 1fr) 112px 32px 32px; }
}
@media (max-width: 40rem) {
  :root main .rr-row:not(.rd-row):not(.ax-row), :root main .rr.rr-noticks .rr-row:not(.rd-row):not(.ax-row) { grid-template-columns: 0 44px minmax(0, 1fr) auto 64px 28px; }
}
/* round 1114b (owner order of 21 Nov 2026 15:32, first picture in one second): the quiet word while the fresh picture comes, 13 px grey,
   no banner, no spinner; round 1122 makes it the kit's one place */
:root main .kit-refreshing { font-size: var(--t13); color: var(--muted); white-space: nowrap; align-self: center; }
/* Bank, Receipts: the bank row's grammar, Drop where OK stands */
:root main .rc .rr-cols { display: grid; grid-template-columns: 32px 88px minmax(200px, 1fr) 112px 28px 72px minmax(0, 1.4fr) 160px 40px 32px; column-gap: 8px;
  padding: 0 8px 4px 4px; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
:root main .rc .rr-col-bank { grid-column: 2 / 5; } :root main .rc .rr-col-books { grid-column: 6 / 9; }
:root main .rc .rr-chip.rc-acc { background: none; }
:root main .rc .rc-more { margin-top: 8px; font-size: var(--text-s); }
@media (max-width: 40rem) { :root main .rc .rr-cols { display: none; } }

/* round 1114, critic round 1 (layout, words, density): one head line, no pill per row, buttons inside their columns, phone fits */
:root main .rr-row .rr-chip.rr-sure, :root main .rr-row .rr-chip.rr-pick { background: none; padding: 0; }
:root main .rr-row .rr-okc .rr-ok, :root main .rr .rr-row .rr-okc .rr-ok.primary { width: 100%; min-width: 0; padding: 0 4px; }
:root main .rr-head { flex-wrap: wrap; align-items: center; gap: 8px 16px; }
:root main .rr-head .rr-figs { flex: 0 1 auto; order: 1; gap: 16px; }
:root main .rr-head .rr-tools { flex: 1 1 auto; order: 2; }
:root main .rr-head .rr-q { order: 3; flex: 0 1 280px; max-width: 280px; }
:root main .rr-head .rr-hmenu, :root main .rr-head .rr-xlsx, :root main .rr-head .rr-span, :root main .rr-head .rr-span-done { order: 4; }
:root main .rr-head .rr-cols { order: 9; }
:root main .rr-head .rr-col-tick { grid-column: 1; display: grid; place-items: center; }
:root main .rr-head .rr-col-bank { grid-column: 2 / 5; } :root main .rr-head .rr-col-books { grid-column: 6 / 9; }
:root main .rr:has(.rp:not([hidden])) .rr-head .rr-okprop { background: var(--surface) !important; color: var(--do) !important; border-color: var(--do) !important; }
:root main .rp .rp-head .rp-x { margin-left: auto; }
:root main .rp .rp-line-of { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
:root main .rp-main { min-width: 0; }
:root main .ph-sum a.ph-fig.bk-chip { border-color: transparent; background: none; padding: 0 8px; }
:root main .ph-sum a.ph-fig.bk-chip.on { border-color: transparent; background: none; box-shadow: inset 0 -2px 0 var(--do); }
@media (max-width: 40rem) {
  :root main .ph-sum[data-bank-chips] { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  :root main .ph-sum[data-bank-chips] > * { flex: none; }
  :root main .b6-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  :root main .b6-tabs > * { flex: none; }
  :root main .rr-head .rr-q { flex: 1 1 100%; max-width: none; }
  :root main .rp-grid.rp-one { grid-template-columns: minmax(0, 1fr); }
  :root main .rp .rp-pane input, :root main .rp .rp-pane select { max-width: 100%; box-sizing: border-box; }
}

/* round 1114, critic round 1 (interaction): the panel's refusal grey, the phone panel inside the screen, the duplicate's sign */
:root main .rp .rp-err { background: none; color: var(--muted); border: 0; padding: 4px 0; }
:root main .rr-row .rr-dup { font-size: var(--text-xs); color: var(--muted); }
@media (max-width: 40rem) {
  :root main .rp-pane.rp-with-drop { grid-template-columns: minmax(0, 1fr); }
  :root main .rp-why { white-space: normal; }
}

/* round 1114, critic round 2: the row's buttons inside their columns, the phone head compact, To do's Open beside its words */
:root main .rr .rr-row:not(.rd-row):not(.ax-row) .rr-okc > .rr-ok { width: 100% !important; min-width: 0 !important; max-width: 100%; box-sizing: border-box; }
:root main .rr .rr-row:not(.rd-row):not(.ax-row) .rr-more > .rr-dots { width: 28px !important; min-width: 0 !important; }
@media (max-width: 40rem) {
  :root main .rr-row:not(.rd-row):not(.ax-row) .rr-signc { display: none; }
  
  :root main .rr-head .rr-figs { flex-wrap: nowrap; gap: 8px; font-size: var(--text-xs); }
  :root main .rr-head .rr-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  :root main .rr-head .rr-kinds { flex: none; }
  :root main .rr-head .rr-q { flex: 1 1 0; min-width: 0; }
}

/* round 1114, HQ look note block B: the head in two rows; the filled button in the head, the panel's OK outlined */
:root main .ph-sum[data-bank-chips] { flex-wrap: nowrap; align-items: center; }
:root main .ph-sum[data-bank-chips] .rr-slot-top { display: flex; align-items: center; gap: 16px; margin-left: auto; flex: none; }
:root main .rr-slot-top .rr-figs { display: flex; gap: 16px; align-items: baseline; font-size: var(--text-s); }
:root main .rr-slot-top .rr-fig { display: inline-flex; gap: 6px; align-items: baseline; font-variant-numeric: tabular-nums; white-space: nowrap; }
:root main .rr-slot-top .rr-fig small { color: var(--muted); font-size: var(--text-xs); }
:root main .rr-slot-top .rr-fig.good .num { color: var(--ok); }
:root main .rr-slot-top .rr-okprop, :root main .rr:has(.rp:not([hidden])) .rr-okprop { background: var(--do) !important; color: var(--do-ink) !important; border-color: var(--do) !important; }
:root main .rr-slot-top .rr-okprop:hover, :root main .rr-slot-top .rr-okprop:focus-visible { background: var(--do-strong) !important; border-color: var(--do-strong) !important; }
:root main .rp .rp-ok.primary { background: var(--surface) !important; color: var(--do) !important; border: 1px solid var(--do) !important; }
:root main .rp .rp-ok.primary:hover { background: var(--do) !important; color: var(--do-ink) !important; }
:root main .b6-bar { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
:root main .b6-bar .b6-slot { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
:root main .b6-slot .rr-kinds { display: inline-flex; gap: 2px; }
:root main .b6-slot .rr-kind { border: 0; background: none; color: var(--muted); padding: 0 8px; height: 32px; font: inherit; font-size: var(--text-s); cursor: pointer; border-radius: 6px; }
:root main .b6-slot .rr-kind:hover { background: var(--hover); }
:root main .b6-slot .rr-kind[aria-pressed="true"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--do); border-radius: 0; }
:root main .b6-bar .b6-slot input.rr-q { width: 160px !important; max-width: 160px !important; flex: 0 1 160px !important; min-width: 96px; }
:root main .b6-bar .b6-slot input.rr-q:focus { width: 240px !important; max-width: 240px !important; flex-basis: 240px !important; }
:root main .b6-slot .rr-q:focus { width: 280px; }
:root main .rr-hpop .rr-hlink { display: block; padding: 7px 10px; color: var(--fg); text-decoration: none; border-radius: 6px; }
:root main .rr-hpop .rr-hlink:hover { background: var(--hover); }
:root main .rr-row .rr-none { color: var(--muted); font-weight: var(--weight-normal, 400); }
:root main .rr-row:not(.rr-booked) .rr-okc.rr-okc-none + .rr-chip { cursor: pointer; }
@media (max-width: 40rem) {
  :root main .ph-sum[data-bank-chips] { flex-wrap: wrap; }
  :root main .ph-sum[data-bank-chips] .rr-slot-top { margin-left: 0; flex: 1 1 100%; justify-content: space-between; }
  :root main .b6-bar { flex-wrap: wrap; }
  :root main .b6-bar .b6-slot { margin-left: 0; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; }
  :root main .b6-slot .rr-q, :root main .b6-slot .rr-q:focus { width: auto; flex: 1 1 0; min-width: 96px; }
}
@media (min-width: 40.01rem) { :root body header #receipt-form > label.btn { display: none; } }
:root main .rp .rp-head .rp-in-head { margin: 0 0 0 auto; padding: 0; display: inline-flex; }
:root main .rp .rp-head .rp-in-head + .rp-x { margin-left: 8px; }
:root main .ph-sum.rr-has-slot > a.bk-chip { display: none; }
:root main .ph-sum.rr-has-slot > .b6-acc-pick { flex: none; }

/* round 1114, critic round 3 */
/* the panel's OK outlined over the row action look of layer ux-n15 (an important rule of an earlier layer wins) */
@layer ux-feel {
  :root body:not(.door) main .rp .rp-ok.primary, :root body:not(.door) main .rp .rp-ok.primary.row-act { background: var(--surface) !important; color: var(--do) !important; border: 1px solid var(--do) !important; }
  :root body:not(.door) main .rp .rp-ok.primary:hover, :root body:not(.door) main .rp .rp-ok.primary.row-act:hover { background: var(--do) !important; color: var(--do-ink) !important; }
}
:root main .rr-row .rr-chip.rr-pick { margin: 0; }
:root main .rr-row .rr-cs.rr-none { color: var(--muted) !important; font-weight: var(--weight-normal, 400); }
:root main .rr-row .rr-date { display: flex; align-items: center; gap: 4px; }
:root main .rr-row .rr-date .rr-lock { flex: none; color: var(--muted); }
:root main .b6-bar .b6-tabs { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
:root main .b6-bar .b6-tabs > * { flex: none; }
:root main .rp .rp-line-of { display: block; width: 100%; min-width: 0; box-sizing: border-box; }
:root main .rr-slot-top .rr-figs { font-size: var(--text-m, 15px); }
:root main .rr-slot-top .rr-fig:last-child .num { font-weight: var(--weight-medium, 500); }
@media (max-width: 40rem) {
  :root main .ph-sum[data-bank-chips] .rr-slot-top { flex-wrap: wrap; gap: 8px; }
  :root main .ph-sum[data-bank-chips] .rr-slot-top .rr-okprop { flex: 1 1 100%; }
  :root main .rr-slot-top .rr-figs { font-size: var(--text-s); gap: 10px; }
}

/* round 1114, final check */
@layer ux-feel {
  :root body:not(.door) main .rr-row .rr-chip.rr-pick { box-shadow: none !important; background: none !important; }
}
:root main .b6-slot .rr-kind { white-space: nowrap; flex: none; }
:root main .rp .rp-in-head, :root main .rp .rp-acts-one .rp-side { flex: none; white-space: nowrap; margin: 0 0 0 12px; padding: 0; }
:root main .rr-row .rr-tick .rr-lock { color: var(--muted); }
@layer ux-feel {
  :root body:not(.door) main .b6-tabs > button[role=tab]:hover, :root body:not(.door) main .b6-tabs > a[role=tab]:hover { background: var(--hover) !important; color: var(--fg) !important; }
}
@media (max-width: 40rem) {
  :root main .b6-bar .b6-slot { flex-wrap: wrap; overflow: visible; row-gap: 6px; }
  :root main .b6-slot .rr-kinds { flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; }
  :root main .b6-bar .b6-slot input.rr-q, :root main .b6-bar .b6-slot input.rr-q:focus { flex: 1 1 0 !important; width: auto !important; max-width: none !important; min-width: 0 !important; }
}

/* ===== BANK HEAD (round 1114, owner order of 21 Nov 2026 10:23): three lines of three kinds ============================================ */
/* 1 the head line, 56 px: Bank, the one account selector, the balances in grey, the one filled button, ⋯ */
:root body:not(.door) main .page-head.b6-head { display: block; margin: 0; padding: 0; min-height: 0; }
:root body:not(.door) main .page-head.b6-head > :not(.b6-headrow):not(details.kit-sheet[open]) { display: none !important; }
:root body:not(.door) main .page-head.b6-head .kit-actions:has(details.kit-sheet[open]) { display: block !important; }
:root body:not(.door) main .page-head.b6-head .kit-actions:has(details.kit-sheet[open]) > :not(details.kit-sheet) { display: none !important; }
:root body:not(.door) main .page-head.b6-head details.kit-sheet > summary, :root body:not(.door) main:has(.b6-headrow) details#hand-in-sheet > summary { display: none !important; }
:root body:not(.door) main .b6-headrow { display: flex; align-items: center; gap: 16px; height: 52px; flex-wrap: nowrap; min-width: 0; }
:root body:not(.door) main .b6-headrow > h1, :root body:not(.door) main .b6-headrow h1 { margin: 0 !important; font-size: var(--t24); line-height: 32px; flex: none !important; width: auto !important; min-width: 0 !important; }
:root body:not(.door) main .b6-select:not([open]) > .b6-select-pop, :root body:not(.door) main .b6-more:not([open]) > .b6-more-pop { display: none !important; }
:root body:not(.door) main .b6-headrow .b6-select { position: relative; flex: none; }
:root body:not(.door) main .b6-headrow .b6-select > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg); font-size: var(--t15); cursor: pointer; white-space: nowrap; }
:root body:not(.door) main .b6-headrow .b6-select > summary::-webkit-details-marker { display: none; }
:root body:not(.door) main .b6-headrow .b6-select > summary:hover { background: var(--hover); }
:root body:not(.door) main .b6-headrow .b6-select-caret { color: var(--muted); font-size: 12px; }
:root body:not(.door) main .b6-select-pop { position: absolute; z-index: 60; top: 38px; left: 0; min-width: 280px; padding: 4px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--rc); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; }
:root body:not(.door) main .b6-select-pop .b6-pick-item { display: flex; justify-content: space-between; gap: 16px; padding: 7px 10px; border-radius: 6px; color: var(--fg); text-decoration: none; font-size: var(--t15); }
:root body:not(.door) main .b6-select-pop .b6-pick-item:hover { background: var(--hover); }
:root body:not(.door) main .b6-select-pop .b6-pick-item.on { font-weight: var(--weight-strong); }
:root body:not(.door) main .b6-select-pop .b6-pick-item.zero { color: var(--muted); }
:root body:not(.door) main .b6-select-pop .b6-pick-item b { font-weight: var(--weight-normal, 400); font-variant-numeric: tabular-nums; }
:root body:not(.door) main .b6-headrow .rr-slot-top { display: flex; align-items: center; gap: 16px; margin-left: auto; flex: 0 1 auto; min-width: 0; }
:root body:not(.door) main .b6-headrow .rr-slot-top .rr-figs { display: flex; gap: 12px; font-size: var(--t13); color: var(--muted); white-space: nowrap; }
:root body:not(.door) main .b6-headrow .rr-slot-top .rr-fig small { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--muted); }
:root body:not(.door) main .b6-headrow .rr-slot-top .rr-fig .num { color: var(--muted); font-weight: 400 !important; }
:root body:not(.door) main .b6-headrow .rr-slot-top .rr-okprop { flex: none; height: 36px; }
:root body:not(.door) main .b6-headrow .b6-more { position: relative; flex: none; }
:root body:not(.door) main .b6-headrow .b6-more > summary { width: 36px; min-width: 36px; height: 36px; padding: 0; justify-content: center; }
:root body:not(.door) main .b6-headrow .b6-more-pop { position: absolute; right: 0; left: auto; top: 40px; z-index: 60; min-width: 13rem; }
:root body:not(.door) main .b6-more-pop .rr-hlink { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; padding: 7px 10px; border-radius: 6px; color: var(--fg); text-decoration: none; cursor: pointer; }
:root body:not(.door) main .b6-more-pop .rr-hlink:hover, :root body:not(.door) main .b6-more-pop .rr-hlink:focus-visible { background: var(--hover); outline: none; }
/* 2 the tab line: plain text tabs, the active one underlined */
:root body:not(.door) main .b6 .b6-bar { height: 38px; margin: 0; gap: 0; border-bottom: 1px solid var(--line); }
:root body:not(.door) main .b6 .b6-bar > :not(.b6-tabs) { display: none !important; }
@layer ux-feel {
  :root body:not(.door) main .b6 .b6-tabs { display: flex; gap: 24px; height: 38px; align-items: stretch; }
  :root body:not(.door) main .b6 .b6-tabs > [data-tab], :root body:not(.door) main .b6 .b6-tabs > a.b6-tab-link {
    border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; height: 38px !important; min-height: 38px !important;
    font-size: var(--t15) !important; font-weight: 400 !important; color: var(--muted) !important; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; }
  :root body:not(.door) main .b6 .b6-tabs > [data-tab][aria-selected="true"] { color: var(--fg) !important; box-shadow: inset 0 -2px 0 var(--do) !important; }
  :root body:not(.door) main .b6 .b6-tabs > [data-tab]:hover, :root body:not(.door) main .b6 .b6-tabs > a.b6-tab-link:hover { color: var(--fg) !important; background: none !important; }
  :root body:not(.door) main .b6 .b6-tabs > [data-tab] b { font-weight: 400; margin-left: 6px; }
}
/* 3 the filter line: quiet words at the left, the search at the right */
:root body:not(.door) main .rr-head { margin: 0 !important; gap: 0; }
:root body:not(.door) main .rr-head .rr-filters { flex: 1 0 100%; display: flex; align-items: center; height: 36px; gap: 16px; }
:root body:not(.door) main .rr-filters .rr-kinds { display: inline-flex; gap: 14px; flex: 1 1 auto; }
:root body:not(.door) main .rr-filters .rr-kind { border: 0; background: none; padding: 0; height: 28px; font: inherit; font-size: var(--t13); color: var(--muted); cursor: pointer; white-space: nowrap; }
:root body:not(.door) main .rr-filters .rr-kind:hover { color: var(--fg); }
:root body:not(.door) main .rr-filters .rr-kind[aria-pressed="true"] { color: var(--fg); font-weight: var(--weight-medium, 500); }
:root body:not(.door) main .rr-filters input.rr-q { margin-left: auto; width: 280px !important; max-width: 280px !important; min-width: 0 !important; flex: 0 1 280px !important; height: 28px; font-size: var(--t13); }
:root body:not(.door) main .rr-filters .rr-col-tick { width: 32px; flex: none; display: grid; place-items: center; margin-right: -4px; }
:root body:not(.door) main .b6-headrow .ph-more, :root body:not(.door) main .b6-head .ph-more { display: none !important; }
:root body:not(.door) main .b6-headrow .page-head { display: contents; }
:root body:not(.door) main .b6 .b6-bar { margin-bottom: 0 !important; }
:root body:not(.door) main .b6 .b6-work { margin-top: 0 !important; padding-top: 0 !important; }
@media (max-width: 40rem) {
  :root body:not(.door) main .b6-headrow { height: auto; min-height: 48px; flex-wrap: wrap; gap: 8px 12px; padding: 4px 0; }
  :root body:not(.door) main .b6-headrow > h1 { font-size: var(--h1); }
  :root body:not(.door) main .b6-headrow .rr-slot-top { flex: 1 1 100%; margin-left: 0; flex-wrap: wrap; gap: 8px; }
  :root body:not(.door) main .b6-headrow .rr-slot-top .rr-figs { flex: 1 1 100%; gap: 10px; font-size: 12px; }
  :root body:not(.door) main .b6-headrow .rr-slot-top .rr-okprop { flex: 1 1 auto; }
  :root body:not(.door) main .b6 .b6-tabs { overflow-x: auto; scrollbar-width: none; gap: 18px; }
  :root body:not(.door) main .rr-filters input.rr-q { width: 96px !important; flex: 0 1 96px !important; }
  :root body:not(.door) main .rr-filters { min-width: 0; overflow: hidden; }
  :root body:not(.door) main .rr-filters .rr-kinds { min-width: 0; }
  :root body:not(.door) main .rr-filters .rr-kinds { overflow-x: auto; scrollbar-width: none; gap: 12px; }
}

/* round 1114, head critics round 1 */
@layer ux-feel {
  :root body:not(.door) main .b6-headrow h1 { font-size: var(--t24) !important; line-height: 32px !important; font-weight: 600 !important; }
    :root body:not(.door) main .b6-headrow .b6-more > summary.btn { width: var(--ctl-h) !important; min-width: var(--ctl-h) !important; max-width: var(--ctl-h) !important; height: var(--ctl-h) !important; min-height: var(--ctl-h) !important; padding: 0 !important; }
}
:root body:not(.door) main .b6-headrow { height: 52px !important; }      /* 52, so the first bank line stands within 150 px of the top bar */
/* round 1128 (Embercroft order items 28, 30): Import statement in the head line; no bank line ever: one card, no tabs */
:root body:not(.door) main .b6-headrow .b6-import { flex: none; height: var(--ctl-h); }      /* round 1145: 36 px, 44 on the phone as every control */
:root body:not(.door) main .b6.b6-nolines .b6-tabs, :root body:not(.door) main .b6.b6-nolines .b6-slot, :root body:not(.door) main .b6.b6-nolines .b6-stm { display: none !important; }
:root body:not(.door) main .b6-first { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; max-width: 960px; margin: 16px 0 0; padding: 16px; }
:root body:not(.door) main .b6-first > p { margin: 0; font-size: var(--t15); }
:root body:not(.door) main .b6-first-acts { display: flex; gap: 8px; flex-wrap: wrap; }
/* round 1128 (item 29: "tiny grey Pick buttons"): the words of a line that waits for its account in the action colour */
:root main .rr-row .rr-cs.rr-none { color: var(--do) !important; font-weight: var(--weight-medium, 500); }
:root main .rr-row:hover .rr-cs.rr-none { text-decoration: underline; }
@media (max-width: 40rem) { :root body:not(.door) main .b6-first-acts { width: 100%; } :root body:not(.door) main .b6-first-acts > .btn { flex: 1 1 auto; min-height: 44px; } }
:root body:not(.door) main .b6-headrow .b6-select > summary { height: var(--ctl-h); }
:root body:not(.door) main .b6-headrow .rr-slot-top { margin-left: 0 !important; flex: 1 1 auto; }
:root body:not(.door) main .b6-headrow .rr-slot-top .rr-figs { font-size: var(--t13); }
:root body:not(.door) main .b6-headrow .rr-slot-top .rr-fig small { font-size: var(--t13); }
:root body:not(.door) main .b6-headrow .rr-slot-top .rr-figs { margin-right: auto; }
:root body:not(.door) main .b6-headrow .rr-slot-top { justify-content: flex-end; }
:root body:not(.door) main .b6 .b6-tabs { gap: 24px !important; }
:root body:not(.door) main .rr-head .rr-filters { height: 28px !important; }
:root body:not(.door) main .rr-head .rr-cols { height: 22px; align-items: center; }
@media (max-width: 40rem) {
  :root body:not(.door) main .b6-headrow { height: auto !important; min-height: 48px; }
  :root body:not(.door) main .b6-headrow h1 { font-size: var(--h1) !important; }
  :root body:not(.door) main .b6-headrow .rr-slot-top .rr-figs { order: 3; flex: 1 1 100%; font-size: 12px; }
  :root body:not(.door) main .b6-headrow .rr-slot-top .rr-okprop { order: 1; margin-left: 0; }
  :root body:not(.door) main .b6-headrow .rr-slot-top .b6-more { order: 2; }
  /* round 1145 (N16): on the phone the selector shares the line with OK all: one padding and one font for the group */
  :root body:not(.door) main .b6-headrow .b6-select > summary { padding: 0 var(--btn-px); font-weight: var(--weight-medium, 500); }
}
:root body:not(.door) main .page-head.b6-off-list .rr-okprop { display: none !important; }
:root body:not(.door) main .b6-headrow .b6-more { margin: 0 !important; }
:root body:not(.door) main .b6 .b6-tabs > [data-tab]:focus-visible, :root body:not(.door) main .b6 .b6-tabs > a.b6-tab-link:focus-visible { outline: 2px solid var(--do) !important; outline-offset: 2px; }
:root body:not(.door) main .b6-headrow .b6-select > summary.btn, :root body:not(.door) main .b6-headrow .b6-select > summary { list-style: none; }
@media (max-width: 40rem) {
  :root body:not(.door) main .b6-headrow .rr-slot-top { position: relative; }
  :root body:not(.door) main .b6-headrow .rr-slot-top .b6-more { position: static; }
  :root body:not(.door) main .b6-headrow .b6-more-pop { left: 0 !important; right: 0 !important; top: 44px; min-width: 0; }
}
:root body:not(.door) main .b6 .b6-bar { height: 36px !important; margin: 0 !important; }
@layer ux-feel {
  :root body:not(.door) main .b6 .b6-tabs { height: 36px !important; }
  :root body:not(.door) main .b6 .b6-tabs > [data-tab], :root body:not(.door) main .b6 .b6-tabs > a.b6-tab-link { height: 36px !important; min-height: 36px !important; }
  :root body:not(.door) main .rr-filters input.rr-q { height: 28px !important; min-height: 28px !important; }
}
:root body:not(.door) main .b6 { margin-top: 0 !important; }
:root body:not(.door) main .b6 .b6-work, :root body:not(.door) main .b6 .b6-rr, :root body:not(.door) main .b6 .rr { margin-top: 0 !important; padding-top: 0 !important; }
:root body:not(.door) main .rr-head .rr-filters { margin: 0 !important; }
:root body:not(.door) main .rr-head .rr-cols { height: 20px !important; margin: 0 !important; }
:root body:not(.door) main .rr-head .rr-cols .rr-col-tick { height: 20px; }
:root body:not(.door) main .page-head.b6-head { margin-bottom: 0 !important; padding-bottom: 0 !important; }
:root body:not(.door) main:has(.page-head.b6-head), :root body:not(.door) main:has(.page-head.b6-head) > * { row-gap: 0 !important; gap: 0 !important; }
:root body:not(.door) main .page-head.b6-head + *, :root body:not(.door) main .b6 > .b6-bar { margin-top: 0 !important; }
:root body:not(.door) main .b6, :root body:not(.door) main .b6 .b6-work, :root body:not(.door) main .b6 .rr { gap: 0 !important; row-gap: 0 !important; }
:root body:not(.door) main .b6 .rr-head { padding: 0 !important; row-gap: 0 !important; }
:root body:not(.door) main .rr-head .rr-cols .rr-col-tick { height: 20px !important; min-height: 0 !important; }
:root body:not(.door) main .b6-headrow .b6-select > summary::before, :root body:not(.door) main .b6-headrow .b6-select > summary::after,
:root body:not(.door) main .b6-headrow .b6-more > summary::before, :root body:not(.door) main .b6-headrow .b6-more > summary::after { content: none !important; display: none !important; }
:root body:not(.door) main .b6-headrow .b6-select > summary::-webkit-details-marker, :root body:not(.door) main .b6-headrow .b6-more > summary::-webkit-details-marker { display: none; }
:root body:not(.door) main .b6-headrow .b6-select > summary, :root body:not(.door) main .b6-headrow .b6-more > summary { list-style: none !important; }
:root body:not(.door) main .rp .rp-grid.rp-one { grid-template-columns: minmax(16rem, 1.6fr) minmax(10rem, 1.1fr) minmax(9rem, 1fr) minmax(10rem, 1.2fr) auto; }
:root body:not(.door) main .rp input.rp-acc { text-align: left; min-width: 0; width: 100%; }
@media (max-width: 40rem) { :root body:not(.door) main .rp .rp-grid.rp-one { grid-template-columns: minmax(0, 1fr); } }
/* round 1128 (Embercroft order of 21 Nov 2026, item 29: at 1366 px the Drop receipt box lay over OK, the click went to the box): the
   fields' row shrinks inside its column; a panel under 880 px wide (a narrow window, the panel beside the list from 1600 px) has the
   drop zone under the fields as one line */
:root body:not(.door) main .rp { container: rp / inline-size; }
:root body:not(.door) main .rp .rp-pane.rp-with-drop > * { min-width: 0; }
/* round 1137 (Greyfinch, item 19: the tax rate read "Purchases star"): the tax rate column the wider, contact and description narrower */
:root body:not(.door) main .rp .rp-grid.rp-one { grid-template-columns: minmax(11rem, 1.6fr) minmax(6rem, 0.9fr) minmax(6rem, 1.4fr) minmax(6rem, 1fr) auto; }
@container rp (max-width: 55rem) {
  :root body:not(.door) main .rp .rp-pane.rp-with-drop { grid-template-columns: minmax(0, 1fr); }
  :root body:not(.door) main .rp .rp-pane.rp-with-drop > .rp-dropzone { flex-direction: row; min-height: 44px; padding: 6px 12px; }
}
@media (max-width: 40rem) { :root body:not(.door) main .rp .rp-grid.rp-one { grid-template-columns: minmax(0, 1fr); } }
/* To do: one line per bank account */
:root main ol.todo-banks { margin: 0 0 var(--s3); }
:root main li.todo-bank .jl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root main li.todo-bank .jl .cnt { font-weight: var(--weight-normal, 400); color: var(--muted); }

/* ===== HOME AND TO DO (round 1115) ======================================================================================================
   Owner order of 21 Nov 2026, P1 items 2 and 3, the mock "6.1 Home" and "6.2 To do" of the work pages review: the company and the month
   in the title's row with the one filled button; one grey sentence; a flat strip of five figures without boxes (thin rules between);
   twelve month columns; tax dates; one grey AI line. To do: one flat list of rows 46 px, one line, fixed columns. */
:root body:not(.door) main .page-head:has(> .hm-month) > h1 { margin-right: 0; order: 0; flex: 0 1 auto; }
:root body:not(.door) main .page-head:has(> .hm-month) > :not(h1):not(.hm-month) { order: 2; }
:root body:not(.door) main .page-head > .ph-sub.hm-month { order: 1; flex: 0 1 auto; margin: 0 auto 0 12px; color: var(--muted);
  font-size: var(--t15); line-height: 1.4; align-self: center; white-space: nowrap; }
/* an empty summary line (no figures: the Next line is gone) takes no row in the head */
:root body:not(.door) main .page-head > .ph-sum:not(:has(> :not([hidden]))) { display: none; }
/* the head ends where the page's list ends */
:root body:not(.door) main .page-head:has(> .hm-month) { max-width: 1280px; }
:root body:not(.door) main:has(ol.tdf) .page-head { max-width: 900px; }
.hm { max-width: 1280px; }
.hm .hm-sent { color: var(--muted); font-size: var(--t15); margin: 0 0 12px; }
.hm .hm-mm { display: none; }
.hm .hm-strip { display: grid; grid-template-columns: minmax(360px, 1.7fr) repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.hm .hm-fig { padding: 12px 16px; border-left: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm .hm-fig:first-child { border-left: 0; padding-left: 0; }
.hm a.hm-fig { text-decoration: none; color: inherit; border-radius: 6px; transition: background-color 120ms; }
.hm a.hm-fig:hover .hm-v, .hm a.hm-fig:focus-visible .hm-v { color: var(--accent); }
.hm a.hm-fig:active { background: var(--sel); }
.hm .hm-two > a.hm-go { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; border-radius: 6px; }
.hm .hm-two > a.hm-go:hover .hm-v, .hm .hm-two > a.hm-go:focus-visible .hm-v { color: var(--accent); }
.hm .hm-d a.hm-lm { font-weight: 400; }
.hm .hm-d a.hm-lm .hm-was { color: var(--accent); }
.hm .hm-cash { position: relative; }
:root body:not(.door) main .hm .hm-cash > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px; padding: 0; min-height: 0; text-align: left; }
.hm .hm-cash > summary::-webkit-details-marker { display: none; }
:root body:not(.door) main .hm .hm-cash > summary::before, :root body:not(.door) main .hm .hm-cash > summary::after { content: none; display: none; }
/* HQ look findings 3 (H8): the label reads as the other four (no caret); the figure itself opens the accounts */
.hm .hm-cash > summary:hover .hm-v { color: var(--accent); }
.hm .hm-rec { color: var(--muted); }
.hm .hm-diff { font-weight: 600; margin-right: 4px; }      /* round 1141 (item 19): bank and books apart, the difference first */
.hm .hm-l { font-size: var(--t12); color: var(--muted); }
.hm .hm-v { font-size: var(--t24); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--fg); text-decoration: none; }
.tdf .tdf-nc { color: var(--muted); font-weight: 400; font-size: var(--t12); }
/* below 1700 px the cash pair takes the strip's first row, the four figures the second: no figure is ever cut (seven figures and
   a grey line under each need some 220 px) */
@media (max-width: 1700px) {
  .hm .hm-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm .hm-cash { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .hm .hm-strip > .hm-fig:nth-child(2) { border-left: 0; padding-left: 0; }
}
@media (max-width: 1200px) {
  .hm .hm-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  :root body:not(.door) main .page-head > .ph-sub.hm-month { display: none; }
  .hm .hm-mm { display: inline; }
  /* To do: what and the figure on the first line, the date or state under it in grey, the button beside both */
  .tdf > li { grid-template-columns: minmax(0, 1fr) auto 112px; grid-template-rows: 20px 18px; column-gap: 10px; row-gap: 0;
    height: 58px; align-content: center; }
  .tdf .tdf-s { grid-column: 1; grid-row: 1; }
  .tdf .tdf-n { grid-column: 2; grid-row: 1; }
  .tdf .tdf-w { grid-column: 1 / 3; grid-row: 2; }
  .tdf .btn { grid-column: 3; grid-row: 1 / 3; min-height: 44px; }
}
.hm .hm-ml { overflow: visible; }
.hm a.hm-v:hover { color: var(--accent); }
.hm .hm-v small { font-size: var(--t12); color: var(--muted); font-weight: 500; margin-right: 4px; }
.hm .hm-v small.hm-sep { margin-left: 10px; }
.hm .hm-tick { font-size: var(--t12); color: var(--ok); font-weight: 500; margin-left: 6px; }
.hm .hm-d { font-size: var(--t12); color: var(--muted); font-variant-numeric: tabular-nums; line-height: 16px; }      /* a second grey line rather than cut */
.hm .hm-d a { color: var(--accent); font-weight: 600; text-decoration: none; }
.hm .hm-accts { list-style: none; margin: 0; padding: 4px 12px 8px; font-size: var(--t13); position: absolute; left: 0; top: calc(100% + 1px);
  z-index: 20; width: min(760px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(18, 36, 38, .08); }
.hm .hm-accts a.hm-an { color: var(--fg); font-weight: 600; text-decoration: none; }
.hm .hm-accts a.hm-an:hover { color: var(--accent); }
.hm .hm-accts li { display: grid; grid-template-columns: minmax(0, 1.4fr) 110px 110px minmax(0, 1.6fr); gap: 10px; align-items: center;
  height: 32px; border-top: 1px solid var(--line); white-space: nowrap; }
.hm .hm-accts li > span { overflow: hidden; text-overflow: ellipsis; }
.hm .hm-accts li.hm-ah { color: var(--muted); font-size: var(--t12); border-top: 0; height: 24px; }
.hm .hm-accts .num { text-align: right; font-variant-numeric: tabular-nums; }
.hm .hm-accts .hm-at { color: var(--muted); font-size: var(--t12); }
.hm .hm-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 28px; margin: 0 0 6px; }
.hm .hm-lbl { font-size: var(--t12); color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.hm .hm-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 150px; }
.hm .hm-mo { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; text-decoration: none;
  border-radius: 5px; transition: background-color 120ms; }
.hm .hm-mo:hover .hm-col, .hm .hm-mo:focus-visible .hm-col { outline: 2px solid var(--accent-soft); }
.hm .hm-col { display: flex; flex-direction: column-reverse; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.hm .hm-col i { display: block; }
.hm .hm-col .a, .hm .hm-leg i.a { background: var(--accent); }
.hm .hm-col .b, .hm .hm-leg i.b { background: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
.hm .hm-col .c, .hm .hm-leg i.c { background: transparent; }
.hm .hm-ml { font-size: var(--t12); color: var(--muted); text-align: center; margin-top: 4px; white-space: nowrap; }
.hm .hm-ml b { color: var(--ok); }
.hm .hm-mn { color: var(--muted); font-weight: 400; font-size: var(--t12); }
.hm .hm-leg { display: flex; gap: 16px; font-size: var(--t12); color: var(--muted); margin: 8px 0 0; flex-wrap: wrap; }
.hm .hm-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; border: 1px solid var(--line); vertical-align: -1px; }
.hm .hm-nc { color: var(--muted); font-weight: 400 !important; font-size: var(--t12); white-space: nowrap; }
.hm .hm-trow { display: grid; grid-template-columns: minmax(0, 1fr) 130px; column-gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--fg); font-size: var(--t13); transition: background-color 120ms; }
.hm .hm-trow:last-child { border-bottom-color: transparent; }
.hm .hm-trow:hover .hm-ts { color: var(--accent); }
.hm .hm-trow:active { background: var(--sel); }
.hm .hm-mo .hm-col { transition: outline-color 120ms; }
.hm .hm-mo:active .hm-col { outline: 2px solid var(--accent); }
.hm .hm-earlier { color: var(--muted); text-decoration: none; }
.hm .hm-earlier b { color: var(--muted); font-weight: 400; }
.hm .hm-ml .hm-mn { margin-left: 3px; }
.hm .hm-ai a:hover, .hm .hm-ai a:focus-visible { color: var(--accent); text-decoration: underline; }
.hm .hm-ts { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm .hm-trow .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.hm .hm-tw { grid-column: 1 / -1; color: var(--muted); font-size: var(--t12); line-height: 16px; }
.hm .hm-ai { margin: 8px 0 0; font-size: var(--t13); color: var(--muted); }
.hm .hm-ai i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--act); margin-right: 7px; }
.hm .hm-ai a { color: var(--fg); text-decoration: none; }
@media (max-width: 900px) {
  .hm .hm-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hm .hm-fig { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .hm .hm-cash { grid-column: 1 / -1; border-top: 0; }
  .hm .hm-grid { grid-template-columns: minmax(0, 1fr); }
  .hm .hm-cols { gap: 3px; }
  .hm .hm-mn { display: block; font-size: var(--t12); }
  .hm .hm-ml { font-size: var(--t12); white-space: normal; line-height: 14px; letter-spacing: -0.2px; }
  .hm .hm-d { white-space: normal; }          /* a phone: the grey line under a figure in two lines rather than cut */
  .hm .hm-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hm .hm-v { font-size: var(--t20); }
  .hm .hm-ml b { display: none; }
  .hm .hm-mo.locked .hm-col { border-color: var(--ok); border-width: 2px; }
  .hm .hm-accts li { grid-template-columns: minmax(0, 1fr) 84px 84px; }
  .hm .hm-accts .hm-at { display: none; }
  .hm a.hm-fig, .hm .hm-cash > summary, .hm .hm-two > a.hm-go { min-height: 44px; }
  .hm .hm-d a.hm-lm { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 40rem) {
  /* a phone: To do's title and its icon buttons on one line */
  :root body:not(.door) main:has(ol.tdf) .page-head > h1 { flex: 1 1 0 !important; white-space: nowrap !important;
    overflow: hidden; text-overflow: ellipsis; min-width: 0 !important; }
  :root body:not(.door) main:has(ol.tdf) .page-head { flex-wrap: nowrap !important; }
  :root body:not(.door) main .page-head > .ph-sub.hm-month { display: none; }
  .hm .hm-mm { display: inline; }
}
/* a plain link answers the pointer (the Next link that did on every page is gone): underline on hover */
:root body:not(.door) main a[href]:not([class]):hover { text-decoration: underline; text-decoration-thickness: 2px; }
:root body:not(.door) main button:not([class]):not(:disabled):hover { filter: brightness(0.94); }
/* the top bar's search stays 280 px until it has focus (7.22), also where the Upload receipt button left room beside it */
:root:root:root body:not(.door) header.topbar form.find { flex: 0 1 280px !important; max-width: 280px !important; }
:root:root:root body:not(.door) header.topbar form.find input:not(:focus) { max-width: 280px !important; }
:root body:not(.door) nav.journey .j-ai:hover { color: var(--fg); }
/* order item 4: no Upload receipt button in the top bar; the form stays for a file dropped on any page (boot.js) and the phone's Snap */
#receipt-form { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* To do: one flat list (todo_flat.rows) */
.tdf { list-style: none; margin: 0; padding: 0; max-width: 900px; border-top: 1px solid var(--line); }
.tdf > li { display: grid; grid-template-columns: minmax(0, 1fr) 110px 200px 120px; gap: 12px; align-items: center; height: 46px;
  border-bottom: 1px solid var(--line); font-size: var(--t13); }
.tdf .tdf-s { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdf .tdf-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.tdf .tdf-w { color: var(--muted); font-size: var(--t12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root body:not(.door) main .tdf .btn { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; justify-content: center; text-align: center; }
.tdf-none { color: var(--muted); }
@media (max-width: 700px) {
  /* a phone: what and the figure on the first line, the date or state under it in grey, the button beside both */
  .tdf > li { grid-template-columns: minmax(0, 1fr) auto 112px; grid-template-rows: 20px 18px; column-gap: 10px; row-gap: 0;
    height: 58px; align-content: center; }
  .tdf .tdf-s { grid-column: 1; grid-row: 1; }
  .tdf .tdf-n { grid-column: 2; grid-row: 1; }
  .tdf .tdf-w { grid-column: 1 / 3; grid-row: 2; }
  .tdf .btn { grid-column: 3; grid-row: 1 / 3; min-height: 44px; }
}
/* round 1147 (round 1145 walk: no way to park a job from the flat To do): each row ends in ⋯ with Later, its own column */
.tdf > li { grid-template-columns: minmax(0, 1fr) 110px 200px 120px 36px; }
.tdf .tdf-x { display: flex; justify-content: flex-end; position: relative; }
:root body:not(.door) main .tdf .tdf-x > .kit-more > summary.btn { width: 36px; padding: 0; }
:root body:not(.door) main .tdf .tdf-x .acts-pop .btn { width: auto; min-height: 0; }
@media (max-width: 1000px) {
  .tdf > li { grid-template-columns: minmax(0, 1fr) auto 112px 44px; }
  .tdf .tdf-x { grid-column: 4; grid-row: 1 / 3; }
  :root body:not(.door) main .tdf .tdf-x > .kit-more > summary.btn { width: 44px; min-height: 44px; }
}
/* round 1120 (order of 21 Nov 2026, P1.6: one bill): the document left, the fields right, under them the bank line that paid it; one
   field a row of 46 px (label 240 px, value); below 1200 px the fields first, the document under them */
:root main .bv { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: start; }
@media (min-width: 75rem) { :root main .bv { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  :root main .bv.bv-nodoc { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); } }
:root main .bv > .bv-doc img.pdfpage { max-height: 70vh; width: auto; }
:root main .bv.bv-nodoc > .bv-doc form.bv-drop .dropzone { min-height: 6rem; }
:root main .bv-side table.bv-lines { width: 100%; table-layout: fixed; }
:root main .bv-side table.bv-lines td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root main .bv-side table.bv-lines :is(th, td):nth-child(1) { width: 35%; }
:root main .bv-side table.bv-lines :is(th, td):nth-child(2) { width: 25%; }
:root main .bv-side table.bv-lines :is(th, td):nth-child(3) { width: 25%; }
:root main .bv-side table.bv-lines :is(th, td):last-child { width: 15%; }
:root main .bv-side .scroll:has(> table.bv-lines) { overflow: visible; }
:root main p.vat-grey { color: var(--muted); margin: var(--s1) 0; font-size: var(--t13); }
@media (max-width: 74.99rem) { :root main .bv:not(.bv-new) > .bv-side { order: -1; }
  :root main .bv.bv-new > .bv-doc img.pdfpage { max-height: 40vh; } }
:root main .bv > .bv-doc { min-width: 0; }
:root main .bv > .bv-doc img.pdfpage { max-width: 100%; margin: 0; box-shadow: none; }
:root main .bv > .bv-doc p.bv-doc-h { margin: 0 0 var(--s2); height: 2rem; display: flex; align-items: center; gap: var(--s2); white-space: nowrap; overflow: hidden; }
:root main .bv > .bv-doc p.bv-doc-h > a { overflow: hidden; text-overflow: ellipsis; }
:root main .bv > .bv-doc form.bv-drop { margin: 0; }
:root main .bv > .bv-doc form.bv-drop .dropzone { min-height: 16rem; }
:root main .bv > .bv-side { min-width: 0; }
:root main dl.bv-facts { display: block; margin: 0 0 var(--s4); }
:root main dl.bv-facts > .bv-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); align-items: center; height: 46px; border-bottom: 1px solid var(--line);
  column-gap: var(--s4); }
:root main dl.bv-facts > .bv-row > dt { color: var(--muted); font-size: var(--t13); white-space: nowrap; }
:root main dl.bv-facts > .bv-row > dd { margin: 0; display: flex; align-items: center; gap: var(--s2); min-width: 0; white-space: nowrap; overflow: hidden; font-size: var(--t15); }
:root main dl.bv-facts > .bv-row > dd > a { overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
:root main dl.bv-facts > .bv-row > dd > .bv-who { overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
:root main dl.bv-facts > .bv-row > dd > form.inline { margin-left: auto; flex: none; }
:root main .bv-side table.bv-lines td.bv-acc, :root main .bv-side table.bv-lines td.bv-memo { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root main .bv.bv-new > .bv-side form { max-width: none; }
@media (max-width: 40rem) {
  :root main dl.bv-facts > .bv-row { grid-template-columns: 7rem minmax(0, 1fr); height: 46px; }
  :root main dl.bv-facts > .bv-row > dd > .bv-who { display: none; }
  :root main .vat-prev-lead { display: block; }
  :root main dl.bv-facts > .bv-row > dd .bv-acct { display: none; }
  :root:root main #vat-file-boxes table { width: 100% !important; table-layout: fixed; }
  :root:root main #vat-file-boxes table :is(th, td).fig-code { display: none !important; }
  :root:root main #vat-file-boxes table :is(th, td):first-child { width: 46%; }
  :root:root main #vat-file-boxes table td:first-child { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; }
  :root:root main .bv-side table.bv-lines { display: table !important; width: 100% !important; table-layout: fixed !important; }
  :root:root main .bv-side table.bv-lines tr { display: table-row !important; height: 46px; }
  :root:root main .bv-side table.bv-lines :is(th, td) { display: table-cell !important; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; }
  :root:root main .bv-side table.bv-lines :is(th, td):is(:nth-child(2), :nth-child(3)) { display: none !important; }
  :root:root main .bv-side table.bv-lines td.bv-acc span.muted { display: none; }
  :root main .bv > .bv-doc form.bv-drop .dropzone { min-height: 8rem; }
  :root main .bv-side table.bv-lines :is(th, td):is(:nth-child(2), :nth-child(3)) { display: none; }
  :root main .bv-side table.bv-lines td.bv-acc { max-width: none; }
}

/* ===== ALIGN ============================================================================================================================
=======
   HQ hotfix of 21 Nov 2026 (owner 04:53: "go through every page and make sure everything is aligned"; DESIGN-RULES 7.17, 7.18, 8.10 to
   8.14, 9.9, 11.7, 15.8). The gate measured 1280 px only; on a wide window rows wrapped, fold titles stood in the middle and a row's
   button sat a screen away from its words. tools/align_probe.py measures these rules at 1280, 1920 and 2560 px on every page (WRAP,
   STAGGER, LEFT, CENTRE, RIGHT, VMID, FAR, INDENT, TILE); tools/ship.sh does not deploy a page whose count rises. Keep this block and
   DESIGN VARIANTS after it last in the file. */

/* 1. A fold of the kit: the head reads from the left: its arrow, the title, the key value (owner 21 Nov 2026, chosen at HQ Design: the
      arrow before the title, DESIGN-RULES 8.12); the words inside start on the arrow's edge (CENTRE, LEFT, INDENT). */
:root body:not(.door) main details.kit-fold > summary.kit-fold-head { justify-content: flex-start !important; text-align: left !important; }
:root body:not(.door) main details.kit-fold > summary.kit-fold-head > h3 { flex: none !important; margin: 0 !important; text-align: left !important; }
:root body:not(.door) main details.kit-fold > summary.kit-fold-head > .kit-fold-key { flex: 0 1 auto !important; margin: 0 !important; text-align: left !important; }
:root body:not(.door) main details.kit-fold > .kit-fold-body { margin: 0 !important; padding: 0 !important; }
:root body:not(.door) main details.kit-fold > .kit-fold-body > :not(ul.set-rows):not(.scroll):not(form.pick-rows) { margin-left: 16px; margin-right: 16px; }
:root body:not(.door) main details.kit-fold > .kit-fold-body > .scroll { margin: 0 16px !important; padding: 4px 0 12px; }
:root body:not(.door) main details.kit-fold > .kit-fold-body > .scroll > table.kit :is(th, td):first-child { padding-left: 0; }

/* 2. A section of the frame: the title (a fold's arrow before it, rule 8.12) starts where the words under it start, and a table that
      fills its section starts its first column on the same edge (INDENT). */
:root body:not(.door) main section.kit-sec > header.kit-head > h2 { padding-left: 0 !important; }
:root body:not(.door) main section.kit-sec > header.kit-head.fold-head > h2 { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; }
:root body:not(.door) main section.kit-sec > header.kit-head.fold-head > h2 > .fold-btn { order: 0; margin: 0 var(--s2) 0 0 !important; }
:root body:not(.door) main section.kit-sec > header.kit-head.fold-head > h2 > .fold-key { order: 2; margin-left: 8px; }
:root body:not(.door) main section.kit-sec > :is(.scroll, .lines) > table :is(th, td):first-child,
:root body:not(.door) main section.kit-sec > .scroll > .lines > table :is(th, td):first-child,
:root body:not(.door) main section.kit-sec > .scroll > div > .lines > table :is(th, td):first-child { padding-left: 20px; }
:root body:not(.door) main section.kit-sec > :is(.scroll, .lines) > table :is(th, td):last-child,
:root body:not(.door) main section.kit-sec > .scroll > .lines > table :is(th, td):last-child,
:root body:not(.door) main section.kit-sec > .scroll > div > .lines > table :is(th, td):last-child { padding-right: 20px; }
/* key figures of one strip share one width (TILE) */
:root body:not(.door) main .stats > .stat { flex: 1 1 0; min-width: 0; }
/* round 1145 (r540, r552: /cockpit 182 px past a 1280 px window, German 207): a figure's words that do not fit its share of the strip
   take a second line inside it; with the share of 0 (e2794067) and the stat's nowrap, "-36.5% beside Sep 20,967.58" ran past the window */
:root body:not(.door) main .stats:not(.h6-figs) > .stat { flex-wrap: wrap; white-space: normal; }
/* round 1145 (r1054 walk at 390: Fixed assets, an asset's four figures ran to 421 px): on a phone the figures wrap, one width
   each by its words; a basis of 0 kept all four on one line and their labels ran past the screen (no sideways scroll at 390) */
@media (max-width: 56rem) { :root body:not(.door) main .stats > .stat { flex: 1 1 auto; } }

/* 3. Settings: a panel is at most 882 px wide (its rows 840 px), so a row's button stays near its words (FAR, rule 9.9) and no
      half empty card stands beside the rows. A panel's title stands on the edge of the boxes under it; a table without a box starts its words there. */
:root body:not(.door) main .set-panels { max-width: 882px; }
:root body:not(.door) main ul.set-rows { max-width: 840px; box-sizing: border-box; }
:root body:not(.door) main .set-panel > .scroll { margin-left: 20px; margin-right: 20px; }
:root body:not(.door) main .set-panel > .scroll > table.kit :is(th, td):first-child { padding-left: 0; }

/* 4. One row grammar for a settings row (rule 8.10): the list is ONE grid and every row lies on its columns (subgrid), so the labels,
      the values and the actions of all rows share their edges by construction, in every language: the label (240 px), the value on the
      same line (cut with its whole text on hover), a second action where a row has one, and the row's last action, as wide as the
      widest of the list. A set of choices is the row's value and stands in the value column; a switch stands at the row's end. */
@media (min-width: 48rem) {
  :root body:not(.door) main ul.set-rows { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto auto; column-gap: 16px; }
  :root body:not(.door) main ul.set-rows > li { grid-column: 1 / -1; }
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg) { display: grid !important; grid-template-columns: subgrid; align-items: center; column-gap: 16px;
    min-height: 52px; padding: 4px 16px; box-sizing: border-box; }
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-t:has(> b):not(:has(> .help-mark)) { display: contents !important; }
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-t:has(> .help-mark),
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-t:not(:has(> b)) { grid-column: 1 / span 2; display: flex; flex-direction: row; align-items: baseline; gap: 16px; min-width: 0; }
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-t > b { grid-column: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-t:has(> b):not(:has(> .help-mark)) > :is(small, img) { grid-column: 2; }
  :root body:not(.door) main ul.set-rows > li:not(:has(details[open])) > .sr-t:has(> b):not(:has(> .help-mark)) > small { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    line-height: 44px; }
  :root body:not(.door) main ul.set-rows > li:not(:has(details[open])) > .sr-t > small * { white-space: nowrap; }
  :root body:not(.door) main ul.set-rows > li > .sr-t > small .untrusted { display: inline; overflow: visible; vertical-align: baseline; }
  /* the actions lie on the list's own columns: the last in column 4, one before it in column 3 */
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-a { display: contents !important; }
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-a > * { grid-column: 4; justify-self: stretch; min-width: 0; margin: 0; }
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-a > :not(:last-child) { grid-column: 3; }
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-a > :is(button.switch, form:has(> button.switch:only-of-type)) { justify-self: end; }
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-a > form:not(:has(> button + button)) { display: flex; }
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-a > form:not(:has(> button + button)) > button:not(.switch) { flex: 1 1 auto; }
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-a > details:not([open]) > summary.btn { display: flex !important; box-sizing: border-box; width: 100%; }
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-a > details[open] { grid-column: 1 / -1; grid-row: 2; }
  /* a row without a second action gives that column to its value */
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg):not(:has(> .sr-a > :nth-child(2))) > .sr-t:has(> b):not(:has(> .help-mark)) > :is(small, img) { grid-column: 2 / span 2; }
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-a > form:has(> button + button) > button { white-space: nowrap; }
  /* a set of choices is the value */
  :root body:not(.door) main ul.set-rows > li:not(.sr-seg):not(:has(> .sr-t > small)) > .sr-a > form:has(> button + button) { grid-column: 2 / span 3; justify-self: start; align-self: center; }
  /* every framed action at least 136 px, its words centred; a quiet arrow (rule 16.7) ends on the same right edge */
  :root body:not(.door) main ul.set-rows { --ra-cw: 0px !important; --ra-w: 0px !important; }
  :root body:not(.door) main ul.set-rows .sr-a > a.btn:is(.primary, [data-connect-sheet], [target]),
  :root body:not(.door) main ul.set-rows .sr-a > button.btn:not(.switch),
  :root body:not(.door) main ul.set-rows .sr-a > form:not(:has(> button + button)) > button:not(.switch),
  :root body:not(.door) main ul.set-rows .sr-a > details:not([open]) > summary.btn { box-sizing: border-box !important; min-width: 136px !important; --ctl-h: 32px; --btn-fs: var(--text-s);
    justify-content: center !important; padding-inline: 8px !important; white-space: nowrap; }
  :root body:not(.door) main ul.set-rows .sr-a > a.btn[href]:not(.primary):not([data-connect-sheet]):not([target]) { justify-content: flex-end !important; --btn-fs: var(--text-s); }
  /* the state of a feed inside a row: one line */
  :root body:not(.door) main ul.set-rows .sr-t .fs { flex-direction: row; align-items: baseline; gap: 8px; }
  /* round 1111 (DESIGN-RULES 16.2, 16.3): a line that is its own click (a link with its arrow, a choice or fields opened under it) lies
     on the same columns: the label in the list's 240 px, the value beside it, the arrow or the chevron at the row's right end */
  :root body:not(.door) main ul.set-rows > li.sl { display: block !important; padding: 0 !important; }
  :root body:not(.door) main ul.set-rows > li.sl > :is(a.sl-go, details.set-line > summary) { display: grid !important; grid-template-columns: 240px minmax(0, 1fr) auto;
    column-gap: 16px; align-items: center; }
  :root body:not(.door) main ul.set-rows > li.sl > :is(a.sl-go, details.set-line > summary) > .sr-t { display: contents !important; }
  :root body:not(.door) main ul.set-rows > li.sl > :is(a.sl-go, details.set-line > summary) > .sr-t > b { grid-column: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  :root body:not(.door) main ul.set-rows > li.sl > :is(a.sl-go, details.set-line > summary) > .sr-t > small { grid-column: 2; min-width: 0; }
  :root body:not(.door) main ul.set-rows > li.sl > :is(a.sl-go, details.set-line > summary) > :is(.sl-arrow, .sl-chev) { grid-column: 3; justify-self: end; }
}

/* 5. Bank and card accounts as tiles (rule 11.7). Design job 1122-022415-a (Bank accounts, the jury's Make cleaner mock): three to a row
      (four from 1,600 px, the net position the fourth), each tile four lines of fixed heights 16 px apart: the logo, the name and the bank
      with the ⋯ menu (40); Balance and its figure (24); the feed state and what is left to reconcile (24); the one button, 152 px, at the
      right edge (32). Labels 12 grey, figures 15 medium, the feed 13 grey; the filled Reconcile is the page's one filled button. */
:root body:not(.door) main .ba-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 16px; }
:root body:not(.door) main .set-panel > .ba-cards { margin: 12px 20px 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
:root body:not(.door) main .ba-card { display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; min-width: 0; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--rc, 12px); background: var(--surface); transition: border-color .12s ease, background .12s ease; }
:root body:not(.door) main .ba-card:not(.ba-pos):hover { border-color: var(--line-strong); }
:root body:not(.door) main .ba-card > .bt-head { display: flex; align-items: center; gap: 12px; height: 40px; min-width: 0; }
:root body:not(.door) main .ba-card .bt-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: var(--t12);
  font-weight: 700; object-fit: contain; }
:root body:not(.door) main .ba-card .bt-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
:root body:not(.door) main .ba-card .ba-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--t15); line-height: 20px;
  font-weight: 700; color: var(--fg); text-decoration: none; }
:root body:not(.door) main .ba-card a.ba-name:hover { text-decoration: underline; }
:root body:not(.door) main .ba-card .ba-sub { min-width: 0; min-height: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted);
  font-size: var(--t12); line-height: 16px; }
:root body:not(.door) main .ba-card .bt-ttl { font-size: var(--t15); line-height: 20px; font-weight: 700; }
:root body:not(.door) main .ba-card > .bt-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 24px; min-width: 0; }
:root body:not(.door) main .ba-card > .bt-f > small { font-size: var(--t12); line-height: 16px; color: var(--muted); white-space: nowrap; }
:root body:not(.door) main .ba-card .ba-bal { font-size: var(--t15); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
:root body:not(.door) main .ba-card > .bt-f.bt-tot { height: 32px; margin-top: -8px; padding-top: 8px; border-top: 1px solid var(--line); align-items: flex-end; }
:root body:not(.door) main .ba-card > .bt-f.bt-tot b { font-size: var(--t15); font-weight: 700; }
:root body:not(.door) main .ba-card .fs { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; min-width: 0; overflow: hidden;
  font-size: var(--t13); color: var(--muted); white-space: nowrap; }
:root body:not(.door) main .ba-card .fs .fs-badge { padding: 0; border: 0; background: none; font-size: var(--t13); font-weight: 400; color: var(--muted); }
:root body:not(.door) main .ba-card .fs .fs-badge.good { color: var(--ok); font-weight: 500; }
:root body:not(.door) main .ba-card .fs .fs-badge.todo { color: var(--amber); font-weight: 500; }
:root body:not(.door) main .ba-card .fs .fs-under { font-size: var(--t13); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
:root body:not(.door) main .ba-card .fs .fs-under::before { content: "· "; }
:root body:not(.door) main .ba-card .bt-ico { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
:root body:not(.door) main .ba-card .bt-wait { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: var(--t13); font-weight: 500; color: var(--fg); white-space: nowrap; }
:root body:not(.door) main .ba-card .bt-wait > i { width: 8px; height: 8px; border-radius: 4px; background: var(--do); }
:root body:not(.door) main .ba-card .bt-none { flex: none; font-size: var(--t12); color: var(--muted); white-space: nowrap; }
:root body:not(.door) main .ba-card > .ba-acts { display: flex; align-items: center; justify-content: flex-end; gap: 8px; height: 32px; margin-top: auto; }
:root body:not(.door) main .ba-card > .ba-acts > .btn { box-sizing: border-box !important; flex: 0 1 152px; width: 152px; min-width: 0 !important; --ctl-h: 32px; --btn-fs: var(--t13);
  padding-inline: 8px !important; justify-content: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
:root body:not(.door) main .ba-card > .ba-acts > .btn:not(.primary) { color: var(--fg); border-color: var(--line); background: var(--surface); }
:root body:not(.door) main .ba-card > .ba-acts > .btn:not(.primary):hover { background: var(--hover); border-color: var(--line-strong); }
/* the net position: the fourth tile from 1,600 px, its figure then leaves the summary line */
:root body:not(.door) main .ba-card.ba-pos { display: none; }
@media (min-width: 1600px) {
  :root body:not(.door) main .ba-cards:has(> .ba-pos) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  :root body:not(.door) main .ba-card.ba-pos { display: flex; }
  :root body:not(.door) main .ph-sum .ph-fig.ph-wide-off { display: none; }
}
@media (max-width: 79.99rem) { :root body:not(.door) main .ba-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 56rem) { :root body:not(.door) main .ba-cards { grid-template-columns: minmax(0, 1fr); } }
/* the kit's quiet ⋯ (kit.more(dots=True)): a 32 px mark, no frame, its word for a screen reader; the menu opens at its right edge */
:root body:not(.door) main details.kit-more.kit-dots { flex: none; margin-left: auto; }
:root body:not(.door) main details.kit-more.kit-dots > summary.btn { --ctl-h: 32px; position: relative; box-sizing: border-box; width: 32px !important; min-width: 32px !important; height: 32px;
  min-height: 32px !important; padding: 0 !important; overflow: hidden; color: transparent !important; border: 0 !important; background: none !important; box-shadow: none !important;
  border-radius: 8px; transition: background .12s ease; }
:root body:not(.door) main details.kit-more.kit-dots > summary.btn::after { content: none; }
:root body:not(.door) main details.kit-more.kit-dots > summary.btn::before { content: "⋯"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--do); }
:root body:not(.door) main details.kit-more.kit-dots > summary.btn:hover { background: var(--do-soft) !important; }
:root body:not(.door) main details.kit-more.kit-dots > .acts-pop { left: auto; right: 0; min-width: 176px; padding: 4px; gap: 0; }
:root body:not(.door) main details.kit-more.kit-dots > .acts-pop > .btn { --ctl-h: 32px; --btn-fs: var(--t13); justify-content: flex-start; min-height: 32px; height: 32px; padding: 0 8px; border: 0; background: none;
  box-shadow: none; color: var(--fg); font-size: var(--t13); font-weight: 400; }
:root body:not(.door) main details.kit-more.kit-dots > .acts-pop > .btn:hover { background: var(--hover); }

/* ===== DESIGN VARIANTS ===================================================================================================================
   HQ hotfix of 21 Nov 2026 (owner: "design decisions where we can have solution A/B/C, and each time we choose", with a link to the live
   rendered variant). static/boot.js sets html[data-dv-<key>="B"] for this browser tab from ?dv=<key>.B (several: ?dv=rowact.B,tile.B;
   ?dv=off ends it). A is always what is live without the switch. HQ, Development, Design lists the decisions; the chosen variant then
   becomes the rule above and its block here goes. */
.dv-flag { position: fixed; right: 12px; bottom: 12px; z-index: 90; padding: 6px 12px; border-radius: 999px; background: var(--fg); color: var(--surface);
  font-size: var(--text-xs); font-weight: 600; text-decoration: none; box-shadow: var(--shadow); }
.dv-flag:hover { background: var(--do-strong); }
@media (min-width: 48rem) {
  /* rowact: where a row's action stands on a wide window. A (live): a panel at most 882 px, the action at the row's end. B: the action
     first, its words right after it, rows as wide as the page. C: rows in two columns. */
  html[data-dv-rowact="B"] body:not(.door) main .set-panels, html[data-dv-rowact="B"] body:not(.door) main ul.set-rows { max-width: 1480px; }
  html[data-dv-rowact="B"] body:not(.door) main ul.set-rows { grid-template-columns: auto auto 240px minmax(0, 1fr); }
  html[data-dv-rowact="B"] body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-a > * { grid-column: 2; grid-row: 1; }
  html[data-dv-rowact="B"] body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-a > :not(:last-child) { grid-column: 1; }
  html[data-dv-rowact="B"] body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-a > :is(button.switch, form:has(> button.switch:only-of-type)) { justify-self: start; }
  html[data-dv-rowact="B"] body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-t > b { grid-column: 3; grid-row: 1; }
  html[data-dv-rowact="B"] body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-t:has(> b):not(:has(> .help-mark)) > :is(small, img) { grid-column: 4; grid-row: 1; }
  html[data-dv-rowact="B"] body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-t:has(> .help-mark), html[data-dv-rowact="B"] body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-t:not(:has(> b)) { grid-column: 3 / span 2; grid-row: 1; }
  html[data-dv-rowact="B"] body:not(.door) main ul.set-rows > li:not(.sr-seg):not(:has(> .sr-t > small)) > .sr-a > form:has(> button + button) { grid-column: 4; justify-self: start; }
  html[data-dv-rowact="B"] body:not(.door) main ul.set-rows > li:not(.sr-seg) > .sr-a > details[open] { grid-column: 1 / -1; grid-row: 2; }
  html[data-dv-rowact="C"] body:not(.door) main .set-panels, html[data-dv-rowact="C"] body:not(.door) main ul.set-rows { max-width: 1480px; }
  html[data-dv-rowact="C"] body:not(.door) main .set-panel ul.set-rows { grid-template-columns: repeat(2, 200px minmax(0, 1fr) auto auto); }
  html[data-dv-rowact="C"] body:not(.door) main .set-panel ul.set-rows > li { grid-column: span 4; border-top: 0; border-bottom: 1px solid var(--line); }
  html[data-dv-rowact="C"] body:not(.door) main .set-panel ul.set-rows > li:nth-child(odd) { border-right: 1px solid var(--line); }
  html[data-dv-rowact="C"] body:not(.door) main .set-panel ul.set-rows > li:has(details[open]) { grid-column: 1 / -1; }
}
/* HQ hotfix 21 Nov 2026, second part (looked at in the owner's Chrome 06:55): a fold's title stands at the left beside its arrow, its value
   right after it (it stood in the middle of the line, the value at the far right); the tick of a plain segmented choice stands in its line */
:root:root body:not(.door) main details.kit-fold > summary.kit-fold-head { justify-content: flex-start !important; }
:root:root body:not(.door) main details.kit-fold > summary.kit-fold-head > .kit-fold-key { margin-left: 0 !important; }
:root:root body:not(.door) main form.seg > button:not(:has(> b)) { flex-direction: row !important; align-items: center !important; white-space: nowrap !important; }

/* HQ hotfix 21 Nov 2026, third part (owner 06:58, DESIGN-RULES 7.17 to 7.19, 16.2, 16.7; looked at in his Chrome at 1,280 by 575): the page
   is the page. A notice strip is one line of 32 px; the search field 280 px; the page head one line of 36 px; the groups of Settings a
   line of tabs in place of a second menu; a group without a frame around frames; a setting one line of 52 px (density C, owner 21 Nov 2026 at HQ Design): name 200 px, value, and
   no framed button (the line is the click) */
:root:root:root body:not(.door) div.top > form.find { flex: 0 1 280px !important; max-width: 280px !important; }
:root:root body:not(.door) main#main > :is(#trial-ended, #payment-failed, #account-closing, #archived) { display: flex !important; align-items: center; flex-wrap: wrap;
  gap: 4px 10px; min-height: 32px !important; padding: 2px 12px !important; margin: 6px 0 4px !important; font-size: var(--t13); line-height: 1.3; border-radius: 8px;
  box-shadow: none !important; width: fit-content; max-width: 100%; box-sizing: border-box; }
:root:root:root body:not(.door) main#main > :is(#trial-ended, #payment-failed, #account-closing, #archived) :is(a.btn, button) { margin: 0 !important;
  min-height: 24px !important; height: 24px !important; min-width: 0 !important; width: auto !important; padding: 0 10px !important; font-size: var(--t12) !important; }
:root:root body:not(.door) main#main > :is(#trial-ended, #payment-failed, #account-closing, #archived) form { margin: 0 !important; display: inline-flex; }
:root:root body:not(.door):has(#trial-ended) .top a.btn.upgrade { display: none !important; }
:root:root body:not(.door) main#main .page-head { margin: 0 0 4px !important; padding: 0 !important; min-height: 36px !important; row-gap: 0 !important; }
/* round 1145: the page title 20 px (DESIGN-RULES 6.1, N2; round 1132 37ca24e1): 9a5f0b0f named the size var(--h1), which the wide
   screen sets to 24 (HQ 17 Nov, kept for the other h1), so every page head stood at 24; the head sets its own --h1 back to 20 */
:root:root body:not(.door) main#main .page-head h1 { --h1: var(--t20); font-size: var(--h1) !important; line-height: 36px !important; margin: 0 !important; }
/* round 1125 (Embercroft review, item 27: New bill and New journal stood mid head, New bill's title in the middle of its row): the title
   takes the free room of its line, so the page's main button stands at the right, beside the head's More (⋯) */
:root:root body:not(.door) main#main .page-head > .next-act { margin-left: auto !important; }
main .page-head > details.ph-more .ph-menu-part { display: flex; flex-direction: column; gap: 12px; width: 20rem; max-width: calc(100vw - 48px);
  padding: 0 0 12px; margin: 0 0 4px; border-bottom: 1px solid var(--line); }
main .page-head > details.ph-more .ph-menu-part .jn-save-row button { width: auto; }
/* round 1125 (items 3, 26, 36): the bill form's rows that show only where they apply, and the Rate beside Currency with its unit */
:root main form.bl table.bl-lines tr:is(.bl-home, .bl-pva)[hidden], :root main form.bl .bl-s30[hidden] { display: none !important; }
:root main form.bl .bl-s30 { margin: 6px 0 0; font-size: var(--text-s); display: flex; align-items: center; gap: 6px; }
:root main form.bl .bl-rate-in { display: inline-flex; align-items: center; gap: 6px; }
:root main form.bl #bl-rate { width: 6.5rem; }
:root main form.bl .bl-rate-in .bl-unit { color: var(--muted); font-size: var(--text-s); white-space: nowrap; display: inline-block; min-width: 6rem; }
:root main form.bl tr.bl-pva #bl-pva { width: 100%; box-sizing: border-box; text-align: right; }
:root main form.bl .bl-credit { margin-left: 6px; color: var(--bad) !important; background: var(--bad-soft) !important; font-weight: 600;
  font-size: var(--text-s); padding: 1px 8px; border-radius: 999px; }
/* item 26 (Helen, Dana: "a Supplier country box appears and pushes Date, Currency and Amounts onto a second row"; the reservation of
   round 1075c lost to a later [hidden] rule): Supplier country and Rate keep their places from the start, shown when asked */
@media (min-width: 56.01rem) {
  :root:root body:not(.door) main form.bl :is(#bl-country-box, #bl-rate-box)[hidden] { display: block !important; visibility: hidden; }
}
:root:root body:not(.door) main#main .page-head > .next-act ~ :is(.ask-ai-form, .ai-on, a.ask-ai) { margin-left: 0 !important; }
:root:root body:not(.door) main#main .page-head > h1:not(:has(~ :is(.next-act, .ask-ai-form, .ai-on, a.ask-ai, .ph-fields))) { margin-right: auto !important; }
:root:root body:not(.door) main#main .page-head > .ph-sum:not(:has(:is(a, button, b, .ph-fig, .chip))) { display: none !important; }
:root:root body:not(.door) main#main .page-head > :is(.ask-ai-form, .ai-on, a.ask-ai) { margin-left: auto !important; }
:root:root body:not(.door) main div.settings.shown { display: block !important; }
:root:root body:not(.door) main div.settings > nav.set-nav { display: flex !important; flex-direction: row !important; width: auto !important; height: 38px; gap: 2px;
  padding: 0 !important; margin: 0 0 10px !important; background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important; box-shadow: none !important; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; position: static !important; }
:root:root body:not(.door) main div.settings > nav.set-nav::-webkit-scrollbar { display: none; }
:root:root body:not(.door) main div.settings > nav.set-nav a { flex: none; display: flex !important; align-items: center; height: 38px !important; min-height: 0 !important;
  padding: 0 10px !important; margin: 0 !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important;
  background: transparent !important; white-space: nowrap; box-shadow: none !important; outline-offset: -2px; transition: background-color .12s ease; }
:root:root body:not(.door) main div.settings > nav.set-nav a:hover { background: var(--hover) !important; }
:root:root body:not(.door) main div.settings > nav.set-nav a small { display: none !important; }
:root:root body:not(.door) main div.settings > nav.set-nav a b { font-weight: 500; font-size: var(--t15); }
:root:root body:not(.door) main div.settings > nav.set-nav a[aria-current] { border-bottom-color: var(--do) !important; color: var(--do-strong) !important; }
:root:root body:not(.door) main div.settings > nav.set-nav a[aria-current] b { font-weight: 600; }
:root:root body:not(.door) main div.settings > div.set-panels { width: auto !important; max-width: none !important; margin: 0 !important; }
:root:root body:not(.door) main div.settings > div.set-panels > .set-panel { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
:root:root body:not(.door) main div.settings > div.set-panels > .set-panel > header.kit-head { display: none !important; }
:root:root body:not(.door) main div.settings > div.set-panels > .set-panel > section.kit-sec { padding: 0 !important; margin: 0 0 12px !important; border: 0 !important;
  background: transparent !important; box-shadow: none !important; }
:root:root body:not(.door) main div.settings > div.set-panels > .set-panel > section.kit-sec > header.kit-head { min-height: 28px !important; height: 28px; padding: 0 2px !important;
  margin: 0 !important; border: 0 !important; }
:root:root body:not(.door) main div.settings > div.set-panels > .set-panel > section.kit-sec > header.kit-head h2 { font-size: var(--th) !important; font-weight: 600 !important;
  color: var(--muted) !important; margin: 0 !important; }
:root:root body:not(.door) main div.settings ul.set-rows > li { min-height: 52px !important; padding: 0 16px !important; flex-wrap: nowrap !important; }
:root:root body:not(.door) main div.settings ul.set-rows > li:has(details[open]) { flex-wrap: wrap !important; padding-bottom: 8px !important; }
:root:root body:not(.door) main div.settings ul.set-rows .sr-t { flex-direction: row !important; align-items: baseline !important; gap: 0 !important; flex: 1 1 auto; min-width: 0; overflow: hidden; }
:root:root body:not(.door) main div.settings ul.set-rows .sr-t > b { flex: 0 0 200px; width: 200px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:root body:not(.door) main div.settings ul.set-rows .sr-t > small { flex: 1 1 auto; min-width: 0; font-size: var(--t13) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 40rem) { :root:root body:not(.door) main div.settings ul.set-rows .sr-t > b { flex-basis: 120px; width: 120px; } }
/* the frame of a line's action is drawn by rules of the later layers with !important; of important rules the first layer wins */
@layer ux-feel {
  :root:root:root body:not(.door) main div.settings ul.set-rows .sr-a > :is(a.btn:not(.primary), details > summary) { border-color: transparent !important;
    background: transparent !important; box-shadow: none !important; color: var(--muted) !important; min-width: 0 !important; width: auto !important; padding: 0 0 0 8px !important;
    font-size: var(--t13) !important; font-weight: 400 !important; }
  :root:root:root body:not(.door) main div.settings ul.set-rows > li:hover .sr-a > :is(a.btn:not(.primary), details > summary) { color: var(--do) !important;
    background: transparent !important; }
  :root:root:root body:not(.door) main div.settings ul.set-rows .sr-a > details[open] > summary { display: none !important; }
}

/* HQ hotfix 21 Nov 2026 (gate HOVER, found when the head changed the sample): the journey's AI link and a figure answer the pointer */
:root:root body:not(.door) main nav.journey a.j-ai:hover { color: var(--do) !important; background: var(--hover); }
:root:root body:not(.door) main .stats > a.stat:hover { background: var(--hover) !important; }

/* HQ Design 21 Nov 2026 (rows 52 px, rule 8.2): a status chip in a section's head (Receivables, Agrees with ledger) keeps the head one line */
:root body:not(.door) main section.kit-sec > header.kit-head > .kit-aside > .help-row { display: inline-flex; align-items: center; margin: 0; }
/* HQ hotfix 21 Nov 2026, fourth part (seen live in the owner's Chrome 08:58, option A chosen by him): the rows of Settings run the whole
   width (the grid of round 1113 held them at 840 px); Edit that opens in place is quiet text at the right edge like the arrow lines (the
   selector of part three never reached the summary); a switch is 36 px, not the width of the buttons' column; the strip's button 24 px */
@layer ux-feel {
  :root:root:root body:not(.door) main div.settings ul.set-rows .sr-a > details > summary, :root:root:root body:not(.door) main div.settings ul.set-rows .sr-a > a.btn:not(.primary) {
    border-color: transparent !important; background: transparent !important; box-shadow: none !important; color: var(--muted) !important; padding: 0 !important; font-size: var(--t13) !important; font-weight: 400 !important; justify-content: flex-end !important; }
  :root:root:root body:not(.door) main div.settings ul.set-rows > li:hover .sr-a > details > summary, :root:root:root body:not(.door) main div.settings ul.set-rows > li:hover .sr-a > a.btn:not(.primary) {
    color: var(--do) !important; background: transparent !important; }
  :root:root:root body:not(.door) main div.settings ul.set-rows .sr-a > details[open] > summary { display: none !important; }
  /* the quiet actions keep the width of their column (gate ALIGN: one width, one right edge); their words stand at its right edge */
  :root:root:root body:not(.door) main div.settings ul.set-rows { max-width: none !important; width: auto !important; }
  :root:root:root body:not(.door) main div.settings ul.set-rows .sr-a > form.inline { width: auto !important; min-width: 0 !important; justify-content: flex-end !important; justify-self: end !important; }
  :root:root:root body:not(.door) main div.settings ul.set-rows .sr-a button.switch { width: 36px !important; min-width: 36px !important; max-width: 36px !important; flex: none !important; }
  :root:root:root body:not(.door) main#main > #trial-ended :is(a.btn, button) { margin: 0 !important; min-height: 24px !important; height: 24px !important; min-width: 0 !important;
    width: auto !important; padding: 0 10px !important; font-size: var(--t12) !important; }
}
/* Round 1111 (owner order of 21 Nov 2026, DESIGN-RULES 16.2 to 16.7): one line per setting, the whole line the click. A line to a page
   is a link with an arrow (a.sl-go); a line with a choice or a field opens it under the line (details.set-line, its summary the line;
   a second click closes it); a save ticks the line (nav.js). */
:root body:not(.door) main ul.set-rows > li.sl { display: block; padding: 0 !important; min-height: 0; }
:root body:not(.door) main :is(ul.set-rows > li.sl > a.sl-go, ul.set-rows > li.sl > details.set-line > summary, details.set-line.conn-kind > summary, a.sl-go.sl-choice) {
  box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 4px 16px;
  cursor: pointer; color: inherit; text-decoration: none; list-style: none; transition: background-color .12s ease; }
:root body:not(.door) main :is(ul.set-rows > li.sl > a.sl-go, ul.set-rows > li.sl > details.set-line > summary, details.set-line.conn-kind > summary, a.sl-go.sl-choice):hover { background: var(--hover); text-decoration: none; }
:root body:not(.door) main :is(ul.set-rows > li.sl > a.sl-go, ul.set-rows > li.sl > details.set-line > summary, details.set-line.conn-kind > summary, a.sl-go.sl-choice):active { background: var(--sel, var(--accent-soft)); }
:root body:not(.door) main :is(ul.set-rows > li.sl > a.sl-go, ul.set-rows > li.sl > details.set-line > summary, details.set-line.conn-kind > summary, a.sl-go.sl-choice):focus-visible { outline: 2px solid var(--do); outline-offset: -2px; }
:root body:not(.door) main details.set-line > summary::-webkit-details-marker { display: none; }
:root body:not(.door) main details.set-line > summary::before, :root body:not(.door) main details.set-line > summary::after { content: none !important; }
:root body:not(.door) main .sl-go .sr-t, :root body:not(.door) main details.set-line > summary .sr-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: row; align-items: baseline; gap: 10px; overflow: hidden; }
:root body:not(.door) main .sl-go .sr-t > b, :root body:not(.door) main details.set-line > summary .sr-t > b { flex: none; white-space: nowrap; font-weight: 600; }
:root body:not(.door) main .sl-go .sr-t > small, :root body:not(.door) main details.set-line > summary .sr-t > small { flex: 1 1 auto; min-width: 0; color: var(--muted); font-size: var(--text-s);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
:root body:not(.door) main .sl-arrow { flex: none; width: 7px; height: 7px; margin: 0 4px 0 10px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); }
:root body:not(.door) main .sl-go:hover .sl-arrow { border-color: var(--do); }
:root body:not(.door) main .sl-chev { flex: none; width: 7px; height: 7px; margin: 0 4px 3px 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .12s ease; }
:root body:not(.door) main details.set-line[open] > summary .sl-chev { transform: rotate(-135deg); margin-bottom: -3px; }
:root body:not(.door) main details.set-line[open] > summary { background: var(--surface-sunken, transparent); }
:root body:not(.door) main details.set-line > form.pick-rows { border-top: 1px solid var(--line); }
:root body:not(.door) main details.set-line > form.pick-rows > button.pick-row:last-of-type { border-bottom: 0; }
:root body:not(.door) main details.set-line > form.sl-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px 12px; border-top: 1px solid var(--line); margin: 0; }
:root body:not(.door) main details.set-line > form.sl-field label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
:root body:not(.door) main details.set-line > form.sl-field .sl-submit { display: none; }
:root body:not(.door) main details.set-line > .sl-body { padding: 4px 16px 12px; border-top: 1px solid var(--line); }
:root body:not(.door) main details.set-line > .sl-body > form.sl-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 0; margin: 0; }
:root body:not(.door) main details.set-line > .sl-body > form.sl-field .sl-submit { display: none; }
:root body:not(.door) main .sl-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; flex-wrap: wrap; }
:root body:not(.door) main .sl-sub + .sl-sub { border-top: 1px solid var(--line); }
:root body:not(.door) main .sl-sub .sr-t { display: flex; align-items: baseline; gap: 10px; }
:root body:not(.door) main .sl-sub .sr-t small { color: var(--muted); font-size: var(--text-s); }
:root body:not(.door) main .sl-sub-a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
:root body:not(.door) main .sl-sub-a form { margin: 0; }
:root body:not(.door) main details.set-line.set-more > ul.set-rows { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
:root body:not(.door) main details.set-line .ai-steps { margin: 8px 0; padding-left: 20px; }
:root body:not(.door) main details.set-line .ai-status.good { color: var(--ok); font-weight: 600; }
:root body:not(.door) main .conn-kinds details.set-line { border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 8px; background: var(--surface); }
:root body:not(.door) main .conn-kinds .sl-body > a.sl-choice { padding: 4px 0; }
:root body:not(.door) main .conn-kinds .sl-body > * + * { border-top: 1px solid var(--line); }
/*    the tick of a save: the line it was made on (nav.js marks it for a moment) */
:root body:not(.door) main details.set-line.is-saved > summary .sr-t > small::after, :root body:not(.door) main li.sl.is-saved .sr-t > small::after { content: "\00a0\2713"; color: var(--ok); font-weight: 600; }
:root body:not(.door) main ul.set-rows > li.is-saved .sr-t > small::after { content: "\00a0\2713"; color: var(--ok); font-weight: 600; }
/* ===== ALIGN =====================================================================================================================

/* Round 1111 (DESIGN-RULES 16.2, 16.3; order part J8, option A): a line that is its own click lies on the 42 px line of HQ's third part:
   name 200 px (120 px on a phone), the value cut with an ellipsis, the arrow or the chevron at the right end; a switch in the value
   column; what a line opens stands under it on the same left edge */
:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl { display: block !important; padding: 0 !important; min-height: 0 !important; }
:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > :is(a.sl-go, details.set-line > summary) { display: grid !important;
  grid-template-columns: 200px minmax(0, 1fr) auto; column-gap: 0; align-items: center; min-height: 42px !important; padding: 0 16px !important; }
:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > :is(a.sl-go, details.set-line > summary) > .sr-t { display: contents !important; }
:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > :is(a.sl-go, details.set-line > summary) > .sr-t > b { grid-column: 1; width: auto; }
:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > :is(a.sl-go, details.set-line > summary) > .sr-t > small { grid-column: 2; }
:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > details.set-line > :not(summary) { margin-left: 0; }
:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > details.set-line > form.sl-field,
:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > details.set-line > .sl-body { padding-left: 216px !important; }
:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > details.set-line > form.pick-rows > button.pick-row { padding-left: 246px !important; }
:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > details.set-line > form.pick-rows > button.pick-row::before { left: 218px !important; }
@media (max-width: 40rem) {
  :root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > :is(a.sl-go, details.set-line > summary) { grid-template-columns: 120px minmax(0, 1fr) auto; }
  :root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > details.set-line > :is(form.sl-field, .sl-body) { padding-left: 16px !important; }
  :root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > details.set-line > form.pick-rows > button.pick-row { padding-left: 46px !important; }
  :root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > details.set-line > form.pick-rows > button.pick-row::before { left: 18px !important; }
}
/* 8 (order part I.8): a group or a line reached by its address stands under the top bar, not behind it */
:root body:not(.door) main :is(.set-panel, details.set-line, details.kit-fold, [id^="set-"]) { scroll-margin-top: 64px; }
/*    a switch stands in the value column in place of the word On or Off; the whole line presses it (order part J8) */
:root:root:root body:not(.door) main div.settings ul.set-rows > li:not(.sl):has(> .sr-a > form > button.switch:only-of-type):not(:has(> .sr-t > small)) > .sr-a > form { grid-column: 2 !important; justify-self: start !important; }

/* Round 1111 for the ship of 4b2903dc (gate ALIGN FAR at 1,920 px: Edit 1,008 px from Backups kept): from 1,440 px the lines of a Settings
   group stand in two columns (order part J8, option A), so a line is about 640 px wide and its quiet Edit at the right edge stays within
   480 px of its words; a line whose change stands open takes both columns */
@layer ux-feel {
  @media (min-width: 90rem) {
    :root:root:root:root body:not(.door) main div.settings ul.set-rows { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      column-gap: 32px !important; }
    :root:root:root:root body:not(.door) main div.settings ul.set-rows > li:not(.sr-seg) { grid-column: auto !important; display: grid !important;
      grid-template-columns: 200px minmax(0, 1fr) auto auto !important; column-gap: 16px !important; border-top: 0 !important; border-bottom: 1px solid var(--line); }
    :root:root:root:root body:not(.door) main div.settings ul.set-rows > li:is(.sr-seg, :has(details[open])) { grid-column: 1 / -1 !important; }
    /* a line that is its own click (round 1111: a link, a choice or fields under it) keeps its own row grammar in its column */
    :root:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl:not(.sr-seg) { display: block !important; }
    :root:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl-more, :root:root:root:root body:not(.door) main div.settings details ul.set-rows { grid-column: 1 / -1 !important; }
  }
}
/* Round 1111 (the word budget of round 1117: a choice is no button): the levels as lines to pick, a radio each, the look of the pick rows */
:root body:not(.door) main form.pick-rows > label.pick-row { box-sizing: border-box; display: flex; align-items: baseline; gap: 12px; width: 100%; min-height: 38px;
  padding: 8px 16px 8px 46px; position: relative; cursor: pointer; font-size: var(--t15); color: var(--ink, inherit); border-bottom: 1px solid var(--line); margin: 0;
  transition: background-color .12s ease; }
:root body:not(.door) main form.pick-rows > label.pick-row:hover { background: var(--hover); }
:root body:not(.door) main form.pick-rows > label.pick-row > input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
:root body:not(.door) main form.pick-rows > label.pick-row::before { content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; border: 2px solid var(--muted); box-sizing: border-box; background: var(--surface, #fff); }
:root body:not(.door) main form.pick-rows > label.pick-row:has(input:checked)::before { border: 5px solid var(--do); }
:root body:not(.door) main form.pick-rows > label.pick-row:has(input:checked) { background: var(--sel); }
:root body:not(.door) main form.pick-rows > label.pick-row:has(input:focus-visible) { outline: 2px solid var(--do); outline-offset: -2px; }
:root body:not(.door) main form.pick-rows > label.pick-row > b { font-weight: 600; white-space: nowrap; font-size: var(--t15); }
:root body:not(.door) main form.pick-rows > label.pick-row > .pick-say { color: var(--muted); font-size: var(--t15); }
@layer ux-feel { :root:root:root body:not(.door) main form.pick-rows > button.pick-go { display: none !important; } }
/*    a line's value on the line's own top (the budget of round 1117 reads a value that stands 6 px or more under its line's top as a sub
      line): the name and the value fill the line's height, their words in its middle */
@layer ux-feel {
  :is(:root:root:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > a.sl-go, :root:root:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > details.set-line > summary) { align-items: stretch !important;
    padding-top: 0 !important; padding-bottom: 0 !important; }
  :is(:root:root:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > a.sl-go, :root:root:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > details.set-line > summary) > .sr-t { align-items: stretch !important;
    align-self: stretch !important; }
  :is(:root:root:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > a.sl-go, :root:root:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > details.set-line > summary) > .sr-t > :is(b, small) { line-height: 44px !important;
    align-self: stretch !important; }
  :is(:root:root:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > a.sl-go, :root:root:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > details.set-line > summary) > :is(.sl-arrow, .sl-chev) { align-self: center !important; }
  :root:root:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > details.set-line { padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; }
  :root:root:root:root:root body:not(.door) main div.settings ul.set-rows > li.sl > details.set-line > summary { min-height: 44px !important; margin-top: 0 !important; }
}
/*    the levels stand in a bordered list, its edge under the heading (gate ALIGN INDENT: a heading stands on the edge of the box under it) */
/*    the names stand on the heading's left edge (gate ALIGN INDENT), the round mark of the choice at the line's right end */
:root:root body:not(.door) main form.pick-rows:has(> label.pick-row) { border-top: 1px solid var(--line); margin-left: 0 !important; margin-right: 0 !important; }
:root:root body:not(.door) main form.pick-rows > label.pick-row { padding-left: 20px !important; padding-right: 48px !important; }
:root:root body:not(.door) main details.kit-fold > .kit-fold-body > form.pick-rows > label.pick-row { padding-left: 16px !important; }
:root:root body:not(.door) main form.pick-rows > label.pick-row::before { left: auto !important; right: 18px; }
:root:root body:not(.door) main form.pick-rows:has(> label.pick-row) > label.pick-row:last-of-type { border-bottom: 0; }
/*    Who books what: the levels and the pause on top of the page, above the tabs */
:root body:not(.door) main .who-lead { margin: 0 0 16px; }
/* round 1132 (design rule N1, tools/design_probe.py: at 1280 x 700 the first work row above y 240; DESIGN-RULES 7.19: one head line):
   Months lines keep their figures in the head line beside the title; Profit and loss keeps its closing stock note there and the
   fulfilment line tight on the tools; New journal and Bank's Statements tab without the extra gaps above the first row */
@media (min-width: 56.01rem) {
  :root:root main div.page-head > div.ph-sum.ph-sum[data-inline] { order: 1; flex: 0 1 auto; min-height: 36px; margin: 0 auto 0 16px; flex-wrap: nowrap; }
  :root:root body:not(.door) main .page-head > p.ph-sub.st-stock { order: 1; flex: 0 1 auto; min-width: 0; margin: 0 auto 0 16px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; font-size: var(--t13); line-height: 36px; }
  :root body:not(.door) main #app > p#pl-fulfil { margin-bottom: 4px; }
  :root body:not(.door) main form.jn > .jn-head.jn-main { margin-bottom: 8px; }
  :root body:not(.door) main #bank6 > #b6-stm { margin-top: 0; }
  :root body:not(.door) main #b6-stm > details.kit-fold > .kit-fold-body > .scroll:first-child { padding-top: 0; }
  :root body:not(.door) main .page-head.b6-head:has(~ #bank6 #b6-stm) { margin-bottom: 0 !important; }
  :root body:not(.door) main #b6-stm > details.kit-fold > .kit-fold-body > .scroll:first-child > table.kit tr:first-child > th { padding-top: 4px; padding-bottom: 4px; }
}
/* Round 1111 part 2 (HQ order 112108, finding 19: the knob stayed left while on): a switch's knob stands right when on, whatever row
   rule sizes the button */
:root:root:root body:not(.door) button.switch { position: relative !important; padding: 0 !important; }
:root:root:root body:not(.door) button.switch > .switch-knob { position: absolute !important; top: 2px !important; left: 2px !important; transition: left .12s ease; }
:root:root:root body:not(.door) button.switch[aria-checked="true"] > .switch-knob { left: auto !important; right: 2px !important; }
/* Round 1111 part 2 (HQ order 112108, finding 1): the pencil beside a bank account's name renames it in place */
:root body:not(.door) main .ba-card details.ba-rename { display: inline-block; margin-left: 6px; }
:root body:not(.door) main .ba-card details.ba-rename > summary.ba-pen { list-style: none; cursor: pointer; color: var(--muted); padding: 0 4px; border-radius: 4px; }
:root body:not(.door) main .ba-card details.ba-rename > summary.ba-pen::-webkit-details-marker { display: none; }
:root body:not(.door) main .ba-card details.ba-rename > summary.ba-pen:hover { color: var(--do); background: var(--hover); }
:root body:not(.door) main .ba-card details.ba-rename[open] > form.sl-field { display: flex; gap: 6px; margin: 4px 0; }
:root body:not(.door) main .ba-card details.ba-rename .sl-submit { display: none; }
/* Round 1111 part 2 (HQ order 112108, finding 22): the language menu at the foot of the side menu opens inside the window */
:root body:not(.door) .rail .bottom details.lang-pick form.lang { left: 0 !important; right: auto !important; }
/* Round 1111 part 2 (order part K): in the Connect AI sheet the address and its Copy wrap inside the sheet */
:root body:not(.door) .sheet-body .ai-guide .ai-steps li { overflow-wrap: anywhere; max-width: 100%; }
:root body:not(.door) .sheet-body .ai-guide .ai-steps code { white-space: normal; word-break: break-all; }
:root body:not(.door) .sheet-body .ai-guide .ai-steps code + button { display: flex; margin: 6px 0 0; }
:root body:not(.door) .sheet-body :is(.ai-guide, .sl-sub) { max-width: 100%; box-sizing: border-box; min-width: 0; }
/* Round 1111 part 2b (HQ order 112108, finding 9, with rule N19): the Automatic posting switch always stands under the levels of Your AI,
   on the 42 px line of J8, and the three levels on 36 px, so every fold head of Your AI stays on the first screen at 1,280 by 700 */
@media (min-width: 48rem) {
  :root:root:root body:not(.door) main div.settings ul.set-rows > li:has(> .sr-a > form#set-ai-resume) { min-height: 42px !important; padding-top: 0 !important;
    padding-bottom: 0 !important; }
  :root:root:root body:not(.door) main form#set-ai-level > label.pick-row { min-height: 36px !important; padding-top: 7px !important; padding-bottom: 7px !important; }
}
/* round 1140 (Brackenly order item 9): New credit note as New invoice: the credit note as it will look stands right from 1200 px */
@media (min-width: 75rem) {
  .write-split:has(form.write input[name="kind"][value="credit_note"]) { grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem); }
  .write-split:has(form.write input[name="kind"][value="credit_note"]) > .doc-preview { position: sticky; top: var(--s4); max-width: none; }
}
/* round 1140 (Brackenly order item 19: each address line in its own grey barred box): the invoice's customer and address as plain lines */
.inv-addr .untrusted, .inv-who .untrusted { display: block; background: none; border: 0; padding: 0; color: inherit; white-space: normal; }
.inv-addr { display: block; color: var(--ink-2); }
/* round 1140 (Brackenly order item 18: "INV-01187 o..."): the invoices list's number whole on its line */
:root main table.mg-inv td.mg-no { white-space: nowrap; }
:root main table.mg-inv th.mg-no { min-width: 9rem; }
/* round 1140 (Hartsgill item 22, Brackenly 19): 540 fits New invoice's quantity */
@media (min-width: 75rem) { form.w-inv table.w-lines th:nth-child(2) { width: 5.5rem; } }
/* round 1148 (Kingsdown review, items 21, 22, 24): the bank panel's refusal and the Split's reason in red, the field it names marked;
   a company without VAT has no Tax rate cell, so Account is wide and first with no gap; the receipt's drop zone smaller; the rule's
   words stand beside its tick */
:root main .rp .rp-err, :root main .rp .rp-okwhy { color: var(--bad); }
:root main .rp input[aria-invalid="true"] { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
:root body:not(.door) main .rp .rp-grid.rp-one.rp-novat { grid-template-columns: minmax(16rem, 2fr) minmax(9rem, 1.2fr) minmax(9rem, 1.4fr) auto; }
:root main .rp .rp-rulew:disabled { opacity: .55; }
@media (min-width: 40.01rem) {
  :root main .rp-pane.rp-with-drop { grid-template-columns: minmax(0, 1fr) 140px; }
  :root main .rp-pane.rp-with-drop > .rp-dropzone { min-height: 64px; padding: 8px; }
}
@media (max-width: 40rem) { :root body:not(.door) main .rp .rp-grid.rp-one.rp-novat { grid-template-columns: minmax(0, 1fr); } }
