/* New design: additions to core.css (the design's own stylesheet, copied from design/core/core.css and stripped of the docs shell,
   the Simulated label and the tour). Everything a macro under templates/nd/_kit/ needs that the design drew with an inline style or
   with its demo JavaScript lives here, so no template carries style= (pre-commit step 9, nd-templates). */

/* page frame: one container named "spec", so core.css's @container spec rules answer to the real page width */
.nd-frame { container-type: inline-size; container-name: spec; min-height: 100vh; background: var(--bg); color: var(--ink); }
.nd-main { padding: 0 0 80px; min-width: 0; }
.nd-page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px 0; }
.nd-page-head h1 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.nd-page-head .sp { flex: 1; }
.nd-content { padding: 0 16px; }
.nd-skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 200; }
.nd-skip:focus { left: 8px; top: 8px; }
.nd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body { padding-inline: 0; }
.nd-frame .hdr { padding-inline: 16px; }
.nd-frame .mods { margin-bottom: 0; }
.nd-frame .tscroll { padding: 0 16px; }
.hdr a.sel, .hdr a.lnk, .hdr a.iconbtn, .mods a, a.btn, a.tile, a.sel { text-decoration: none; color: inherit; }
.mods a { display: inline-flex; align-items: center; gap: 6px; height: 30px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.mods a[aria-current="page"], .mods a.on { color: var(--accent); border-color: var(--accent); }
.mods a:hover { color: var(--ink); }
.tiles { padding: 12px 16px; }
/* Check 77 (owner, 7 Nov 2026) as a class: EVERY tab strip of the firm app (.tabs: Final review reports, Settings, Billing, Bank feeds, Review, Clients, dialogs) keeps each label on one line
   and scrolls sideways when the strip does not fit; the strip shrinks inside its row instead of wrapping its buttons. The 4 px padding, given back by the margin, keeps the focus ring visible. */
.tabs { max-width: 100%; min-width: 0; flex-wrap: nowrap; }
.tabs > :is(button, a) { flex: 0 0 auto; white-space: nowrap; }
.tabs.tabs-over { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; padding: 4px; margin: -4px; }      /* set by nd.js only while the strip is wider than its room, so a tab's tip is never cut while it fits */
/* Check 77: a report table (P&L, Balance Sheet, Cash Flow) is as wide as its columns, not the 760 px floor of the work tables, so its months show on a narrow window; wider than the box, it scrolls sideways */
.tscroll table.t.tree { min-width: 0; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }

/* floating layer, bottom right (D33): toasts stack above the bar; D63 layer order page < toast 30 < in-page modal 20 < global modal 100 < popover 120 */
.nd-toasts { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); z-index: 130; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.nd-toasts .toast { position: static; transform: none; pointer-events: auto; right: auto; left: auto; bottom: auto; }   /* the artifact's toast has no shadow */
.nd-toasts .toast .btn.toast-undo { text-decoration: none; padding: 0 9px; }
.nd-toasts .toast .toast-undo, .nd-toasts .toast .toast-x { color: inherit; border-color: currentColor; }   /* mock gate 15 Nov 2026 item 7: core.css paints Undo #fff, unreadable on the light toast of dark mode; the toast's own text colour reads in both */   /* Undo is the quiet secondary beside the primary OK (30 Oct 2026) */
.nd-toasts .toast .tmsg { overflow-wrap: anywhere; }
.nd-floatbar { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); z-index: 25; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: var(--shadow); }
.nd-floatbar[hidden] { display: none; }

/* dialogs live on body (nd.js moves them), over the parent page */
.gshade.shade { align-items: flex-start; overflow: auto; padding-top: 6vh; }
/* UX-25 (owner, 1 Nov 2026): ONE dialog layer. Every box (a plain .shade as much as a .gshade) is fixed over the whole window at 100, above Full view (90); a menu or popover is higher (125 to 140). */
.shade:not(.gshade):not(.pt-menu) { position: fixed; inset: 0; z-index: 100; padding: 16px; padding-top: 6vh; overflow: auto; align-items: flex-start; }
.modal.wide { width: min(980px, 96%); } .modal.mid { width: min(640px, 96%); } .modal.narrow { width: min(420px, 96%); }
.modal .mhead { display: flex; align-items: flex-start; gap: 8px; } .modal .mhead h4 { flex: 1; margin: 0 0 6px; }
.modal .mbody { max-height: min(62vh, calc(100vh - 220px)); overflow: auto; } .modal .mfoot-note { margin-right: auto; color: var(--ink-2); font-size: 12px; align-self: center; }
.modal.l3 .mbody table.t { min-width: 640px; }
.modal.l3 tfoot td { font-weight: 600; border-top: 1.5px solid var(--ink-3); background: var(--surface-2); }
.modal .foot { flex-wrap: wrap; }
/* D169 (R5): every dialog fits the window. It never grows past the window height (at 768 px: 676 px, with its 46 px top gap and 46 px below); what is inside scrolls and the foot (Cancel, the main button, set sticky below, "Check 99") stays in view.
   The one-off 92% / 90% limits of .modal.rc and .modal.tl are gone in favour of this rule. Attachments opens top-anchored at the same y as every other dialog (it was centred, 259 px down). */
.modal { max-height: calc(100vh - 92px); overflow: auto; }
.gshade.shade.ndm29.ndm29 { align-items: flex-start; }
.shade.l3-shade { z-index: 105; }               /* the third level opens over the conversation or the group dialog it came from */

/* POPOVERS built by nd.js: always above any dialog (D63) */
.pop { z-index: 140; }
.pop .pi i { margin-left: auto; font-style: normal; color: var(--ink-3); font-size: 11px; }
.pop .pi small { color: var(--ink-3); }
.pop.two .pi { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 1px; } .pop.two .pi small { color: var(--ink-2); font-weight: 400; font-size: 12px; }          /* Decision 148 A: the Ledger list, the when-you-pay line under each choice */
.pop input.pfind { margin: 2px 2px 6px; width: calc(100% - 4px); }
.pop .pnone { color: var(--ink-3); padding: 8px 10px; }
.pop.rangepop { width: 320px; max-width: calc(100vw - 16px); padding: 10px; display: grid; gap: 8px; }
.pop.rangepop .presets { display: flex; flex-wrap: wrap; gap: 4px; }
.pop.rangepop .rfields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.pop.rangepop label { display: grid; gap: 2px; font-size: 11px; color: var(--ink-2); }
.pop.rangepop .rerr { color: var(--bad); font-size: 12px; }
.rsel-opts { display: none; }
.rsel[data-locked] { border-style: dashed; background: var(--surface-2); color: var(--ink-2); cursor: not-allowed; }

/* A. Account + tax code pair (persona item 1): always together, cannot be hidden from the column chooser */
.at-pair { display: grid; gap: 1px; min-width: 0; }
.at-pair .at-acct { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-pair .at-tax { color: var(--ink-2); font-size: 11.5px; }
.at-pair .at-tax.none { color: var(--bad); font-weight: 600; }
th.at-head .cap { margin: 0; }
td.money small { display: block; color: var(--ink-3); font-size: 11px; }

/* B. The account and tax-code editor (persona item 2): rsel pair, from -> to line, Post press; nothing writes on Enter or blur */
.acct-edit { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.acct-edit .ae-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@container spec (max-width: 560px) { .acct-edit .ae-row { grid-template-columns: 1fr; } }
.acct-edit .ae-row label { display: grid; gap: 3px; font-size: 11.5px; color: var(--ink-2); }
.acct-edit .rsel { width: 100%; }
.acct-edit .ae-from-to { display: grid; gap: 2px; padding: 6px 8px; border-radius: var(--r-ctl); background: var(--surface-2); font-size: 12.5px; }
.acct-edit .ae-from-to[data-dirty="0"] { color: var(--ink-3); }
.acct-edit .ae-from-to[data-dirty="1"] { background: var(--warn-soft); color: var(--ink); }
.ae-from-to .arrow { color: var(--ink-3); padding: 0 4px; }
.acct-edit .foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.acct-edit .foot .note { margin-right: auto; color: var(--ink-2); font-size: 12px; }
.prepared { box-shadow: inset 3px 0 0 var(--unc); background: var(--warn-soft); }       /* a prepared (proposed, not posted) row: AI prepares, the accountant presses (owner rule 29 Oct) */

/* C. Locked (D33): a reconciled line or a closed period; the reason is words, never only an icon */
.locked-note { display: inline-flex; gap: 6px; align-items: center; padding: 3px 8px; border-radius: var(--r-ctl); background: var(--surface-2); color: var(--ink-2); font-size: 12px; border: 1px dashed var(--line-2); }
.locked-note svg { color: var(--ink-3); }
tr.is-locked td { color: var(--ink-2); }

/* D. States: empty, not connected, Xero, loading, error (persona item 8) */
.state { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 28px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-card); background: var(--surface); margin: 12px 0; }
.state .state-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.state h3 { margin: 0; font-size: 15px; } .state p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.state .btnrow { justify-content: center; }
.state.bad .state-ic { background: var(--bad-soft); color: var(--bad); }
.state.warn .state-ic { background: var(--warn-soft); color: var(--warn); }
.state.xero .state-ic { background: var(--accent-soft); color: var(--accent); }
.state .state-books { font-size: 12px; color: var(--ink-3); }
.loading-rows { display: grid; gap: 10px; padding: 12px 16px; }
.loading-rows .skeleton { height: 14px; } .loading-rows .skeleton.short { width: 40%; }
.notice { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: var(--r-ctl); background: var(--surface-2); color: var(--ink); margin: 8px 16px; }
.notice.warn { background: var(--warn-soft); } .notice.bad { background: var(--bad-soft); } .notice.ok { background: var(--ok-soft); }

/* E. Forms and fields */
.field { display: grid; gap: 4px; margin-bottom: 10px; } .field > label { font-weight: 600; font-size: 12px; color: var(--ink-2); }
.field .req { color: var(--bad); } .field .hint { color: var(--ink-3); font-size: 12px; } .field .err { color: var(--bad); font-size: 12px; }
.field input, .field textarea, .field select { font: inherit; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--bg); color: var(--ink); min-height: 28px; max-width: 100%; }
.field textarea { padding: 6px 9px; min-height: 72px; }
.field.bad input, .field.bad textarea { border-color: var(--bad); }
.btnrow { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nd-form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 8px 0; }

/* F. Conversation dialog (D59) */
.conv-item { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--r-ctl); background: var(--surface-2); margin-bottom: 8px; }
.conv-item .at-pair { margin-top: 2px; }
.conv-hist { display: grid; gap: 8px; max-height: 32vh; overflow: auto; margin-bottom: 8px; }
.conv-hist .arow { display: flex; gap: 10px; align-items: flex-start; }
.conv-see { color: var(--ink-2); font-size: 12px; margin-top: 6px; }
.conv-already { display: flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: var(--r-ctl); background: var(--warn-soft); margin-bottom: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.chips button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 2px 10px; height: 24px; }
.chips button:hover { background: var(--accent-soft); }

/* G. Kit specimen page only */
.kit-sec { margin: 24px 16px; } .kit-sec > h2 { margin: 0 0 4px; font-size: 18px; } .kit-sec > .cap { margin: 0 0 10px; }
.kit-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 10px 0; }
.kit-box { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.kit-theme { margin-left: auto; display: flex; gap: 6px; }
.kit-id { color: var(--ink-3); font-size: 11px; font-weight: 600; margin-left: 6px; }

/* H. Pills and badges (C10, C11, C18, C34): one status pill, fill and text always a readable pair in light and dark */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.info { background: var(--accent-soft); color: var(--accent); }
.pill.ai { background: var(--accent-soft); color: var(--ai); }
.menu a { text-align: left; color: var(--ink); padding: 8px 10px; border-radius: var(--r-ctl); display: block; } .menu a:hover, .menu a[aria-current="true"] { background: var(--accent-soft); text-decoration: none; }
.menu input.pfind { margin: 2px 2px 6px; font: inherit; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--bg); color: var(--ink); }
.menu.left { right: auto; left: 0; } .menu { max-height: 60vh; overflow: auto; }
.hdr form.sel input { border: 0; background: none; font: inherit; color: var(--ink); min-width: 120px; padding: 0; min-height: 0; outline: none; }
.hdr .sel[aria-disabled="true"], .hdr .lnk[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.bellbtn .bubble { position: absolute; top: -4px; right: -4px; }
/* UX-35: the old bell stub rules (.bellpop, .rmi as a flex row) are gone; core.css carries the artifact's bell popover (.pop.bellpop, .rmi grid). */
.nd-cell-actions { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.at-pair + .pill { margin-top: 4px; }

/* I. Parts the macros name */
.rsel-wrap { display: block; min-width: 0; position: relative; }
.ft-from { color: var(--ink-2); } .ft-to { font-weight: 600; }
.rangewrap { display: inline-flex; }
.rlabel { white-space: nowrap; }
.nd-flash { display: none; }
.tog { padding: 0; flex: none; }

/* J. Portal nav as real links (the design draws buttons): same rules as .pnav button, the 44 px rule included */
.pnav a { font: inherit; padding: 8px 10px; border-radius: var(--r-ctl); color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.pnav a[aria-current="page"] { background: var(--surface-lav); color: var(--accent); font-weight: 600; }
.brand .pnav a { border-radius: 0; padding: 12px 12px 10px; border-bottom: 2px solid transparent; }
.brand .pnav a[aria-current="page"] { background: none; color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 520px), (pointer: coarse) { .pnav a { min-height: 44px; } }
@container spec (max-width: 700px) { .brand .pnav.pt-nav a { padding: 12px 7px 10px; } }
.brandbar a.who { text-decoration: none; }
a.listbtn.pt-line, span.listbtn.pt-line { text-decoration: none; color: inherit; }
.pt-spec { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; margin: 8px 0 16px; }

/* ---- shell (batch 0): the artifact's global dialogs drew these with inline styles; each one is a class here (CSP: no style=). Numbered in the order of dialogs.html. ---- */
.ndm1 { width: min(640px, 96%); max-height: 92%; overflow: auto; } .ndm2 { float: right; } .ndm3 { display: block; background: var(--surface-2); margin: 0 0 8px; }
.ndm4 { margin-bottom: 8px; } .ndm5 { background: var(--warn-soft); display: flex; gap: 8px; align-items: center; } .ndm6 { display: inline; margin: 0; } .ndm7 { flex-wrap: wrap; }
.ndm8 { width: 100%; margin-top: 8px; } .ndm9 { margin-top: 6px; } .ndm10 { margin: 0 0 0 6px; } .ndm11 { margin: 0; border: 0; background: none; } .ndm12 { min-width: 110px; }
.ndm13 { width: min(560px, 96%); } .ndm14 { margin: 0; } .ndm15 { width: min(460px, 96%); } .ndm16 { background: var(--warn-soft); display: flex; gap: 10px; margin-top: 10px; }
.ndm17 { width: min(480px, 96%); } .ndm18 { background: var(--surface-2); display: block; margin-top: 10px; } #finalWhat { white-space: pre-line; }      /* send-confirm: a send to several people names each on its own line */ .ndm19 { width: min(440px, 96%); }
.ndm20 { width: min(780px, 96%); max-height: 92%; overflow: auto; } .ndm21 { max-height: 52vh; } .ndm22 { min-width: 480px; }
.ndm23 { width: min(640px, 96%); max-height: 90%; overflow: auto; } .ndm24 { margin: 10px 0 4px; } .ndm25 { min-height: 220px; margin: 0; }
.gshade.shade.ndm26 { align-items: flex-start; padding-top: 10vh; } .ndm27 { width: 100%; } .ndm28 { margin-top: 8px; } .gshade.shade.ndm29 { align-items: center; }
.ndm30 { padding: 0 0 8px; } .ndm31 { min-width: 160px; } html body .tscroll table.t.ndm32 { min-width: 420px; } .ndm33 { width: min(560px, 96%); max-height: 92%; overflow: auto; } .ndm34 { margin-top: 10px; } .ndm35 { margin: 0 0 8px; } .ndm36 { margin: 0 0 8px; }
.ndm37 { display: inline-block; min-width: 84px; width: auto; margin: 0; flex: none; white-space: nowrap; text-align: left; } .ndm38 { margin: 4px 8px; }
/* the artifact's layer order (D63): the questions sit over the dialogs they come from */
#m-undo, #m-final, #m-conf { z-index: 110; } #m-cvt, #m-txd, #m-prev { z-index: 105; } #m-tplnew { z-index: 106; }
/* tooltips on the top layer (D63, nd.js): the CSS ::before tooltip is off, the node #nd-tip carries the same look */
[data-tip]:hover::before, [data-tip]:focus-visible::before { content: none !important; display: none !important; }
.tip { position: fixed; inset: auto; margin: 0; border: 0; overflow: visible; background: var(--ink); color: var(--bg); padding: 4px 8px; border-radius: 4px; font: 500 11.5px/1.45 var(--font); white-space: normal; width: max-content; max-width: min(300px, calc(100vw - 16px)); text-align: left; pointer-events: none; }
/* a control drawn disabled: dashed tab, the reason on hover (D30) */
.mods a[aria-disabled="true"] { border-bottom-style: dashed; border-bottom-color: var(--line-2); }
.pop a.pi { text-decoration: none; } .pop .pi[hidden] { display: none; }

/* D85: the notice row with an action (bfRo, archived), the books-changed row (frDrift) and the once-only line (plOnce) */
.notice .grow, .opt.drift .grow { flex: 1; }
.notice:has(.btn) { align-items: center; }
.opt.drift { background: var(--warn-soft); margin: 0 16px 8px; display: flex; gap: 10px; align-items: center; }
.cap.once { margin: 4px 0 0; }

#m-att .sel2 { white-space: nowrap; }
#m-att tbody td:nth-child(2) { white-space: nowrap; }

/* D89 on the real page (30 Oct 2026): the artifact measures its container inside the design page (188 px narrower than the screen); here the container is the whole window. The wide reconciliation grid
   (core.css: 24 + 150 + 3 figures + 476 px of icons) needs about 1060 px, so up to 1100 px the icons keep their slots on the second line, exactly as the artifact draws it below 900 px. Figures stay in their columns. */
@container spec (min-width: 901px) and (max-width: 1100px) {
  .rec { grid-template-columns: 24px minmax(0, 1fr) 100px 112px 112px; }
  .rec .acts { grid-column: 2 / -1; }
}

/* D88: the month-state block (design #cState: margin:6px 16px), the one not-read block of the Close, the check pages and Bank feeds */
.cs-block { margin: 6px 16px; }
/* the Close recon row's compare cell when no statement balance is typed yet: a real input that fits the 112 to 150 px column (owner, 30 Oct 2026) */
.rec form.cmpin { margin: 0; min-width: 0; }
.rec form.cmpin .sel { width: 100%; min-width: 0; box-sizing: border-box; }

/* Upload a statement preview (owner finding 30 Oct 2026): date and amount stay on one line, the status wraps as plain text */
#stmtRows td:nth-child(1), #stmtRows td:nth-child(3) { white-space: nowrap; }
#stmtRows .cap { margin: 0; }

/* ---- the shared table kit, part 1 (D91 to D93; design/core/core.css v95-v97; tablekit.js). Existing parts and tokens only; these rules place them. ---- */
/* a money value never wraps: the sign and the amount stay together, the amount column is as wide as its widest value, the other columns give way (owner, 30 Oct 2026) */
td.money, th.num, .money, .bk-hit { white-space: nowrap; font-variant-numeric: tabular-nums; }
td.money { text-align: right; }
/* the heading is the menu button: it reads as the heading it replaces */
table.kit-t th .ppf-h { border: 0; background: none; font: inherit; color: inherit; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; text-align: left; border-radius: var(--r-ctl); }
table.kit-t th .ppf-h svg { width: 12px; height: 12px; color: var(--ink-3); }
table.kit-t th .ppf-h:hover, table.kit-t th .ppf-h[aria-expanded="true"] { color: var(--accent); }
table.kit-t th .ppf-h:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
table.kit-t th .ppf-h .dot { margin-left: 2px; }
/* filter chips above the table, and the menu */
[data-ppf-chips] { flex-wrap: wrap; gap: 6px; } [data-ppf-chips]:empty { display: none; }
[data-ppf-chips] .tchip { margin-left: 0; display: inline-flex; align-items: center; gap: 2px; padding-right: 2px; }
.pop.ppf-pop { box-sizing: border-box; width: 280px; max-width: calc(100vw - 16px); max-height: min(520px, calc(100vh - 16px)); overflow: hidden; display: flex; flex-direction: column; gap: 1px; }
.pop.ppf-pop > * { flex: none; }
.pop.ppf-pop > .ppf-vals { flex: 1 1 auto; min-height: 102px; overflow-y: auto; }
.pop.ppf-pop > .btn { align-self: flex-start; position: sticky; bottom: 0; background: var(--bg); }
.pop.ppf-pop .in { width: 100%; box-sizing: border-box; min-height: 32px; }
.pop.ppf-pop .ppf-grp { display: grid; gap: 6px; padding: 2px 8px 6px; }
.pop.ppf-pop .ppf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pop.ppf-pop .ppf-sa { display: flex; gap: 12px; padding: 0 8px; }
.pop.ppf-pop .ppf-vals { display: grid; gap: 1px; max-height: 190px; overflow: auto; }
.pop.ppf-pop .ppf-vals .cap { margin: 0 0 0 auto; }
.pop.ppf-pop > .btn { justify-self: start; margin: 6px 8px 2px; }
.pop.ppf-pop .pi .i { flex: none; }
@media (max-width: 520px), (pointer: coarse) { .pop.ppf-pop .pi { min-height: 44px; } }
/* spreadsheet habits */
table.t.kit-t .ppf-frz { position: sticky; z-index: 1; }
table.t.kit-t td.ppf-frz { background: var(--surface); }
table.t.kit-t th.ppf-frz { z-index: 2; }
table.t.kit-t .ppf-frz-last { box-shadow: inset -1px 0 0 var(--line); }
table.t.kit-t th { position: relative; white-space: normal; }
table.kit-t th .ppf-h { white-space: normal; }
.ppf-grip { position: absolute; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; z-index: 2; }
.ppf-grip:hover { box-shadow: inset -2px 0 0 var(--accent-line); }
table.t td.ppf-hit { background: var(--accent-soft); } table.t td.ppf-hit-on { outline: 2px solid var(--accent); outline-offset: -2px; }
[data-ppf-find] { align-items: center; gap: 6px; }
/* full view: only the table box, filling the window, headings pinned (D92) */
html.ppf-lock { overflow: hidden; }
.kit-box.ppf-full { position: fixed; inset: 0; z-index: 90; margin: 0; display: flex; flex-direction: column; background: var(--surface); }
.kit-box.ppf-full > .ctrls, .kit-box.ppf-full > .gridbar, .kit-box.ppf-full > .pager { flex: none; padding-top: 6px; padding-bottom: 6px; }
.kit-box.ppf-full > .tscroll { flex: 1; min-height: 0; overflow: auto; max-width: none; }
.kit-box.ppf-full table.t thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); } .kit-box.ppf-full table.t thead th.ppf-frz { z-index: 4; }
html.ppf-lock .nd-toasts { z-index: 130; }
/* the table fold (11 Nov 2026, Decisions card 121 A): Collapse beside Full view; a folded table keeps only its top line. Not shown in Full view. */
.kit-box.kit-folded > :not(.gridbar) { display: none; } .kit-box.kit-folded > .gridbar { padding-bottom: 8px; } .kit-box.kit-folded [data-ppf-hint] { display: none; } .kit-box:not(.kit-folded) [data-kit-vline] { display: none; } .kit-box.kit-folded ~ #clBoard, .kit-box.kit-folded ~ #clPager { display: none; }
.kit-box.ppf-full [data-kit-fold], .kit-box.ppf-full [data-kit-fold-why] { display: none; } .kit-box.kit-plain { border: 0; border-radius: 0; background: none; overflow: visible; }
[data-kit-fold][aria-disabled="true"] { opacity: .5; cursor: not-allowed; } [data-kit-fold] .i { vertical-align: -2px; }
[data-kit-fold-why] { color: var(--ink-3); font-size: 12px; }
.kit-box > [data-ppf-foot] { padding: 6px 16px; }
/* the logged-out page (D114): the artifact's "Logged out" modal over an empty page */
.nd-out { min-height: 100vh; position: relative; }

/* Your settings is on every page now (D114): the Name field and its Save sit 8 px apart, never 4 */
#m-us .kv dd:has(> input.in) { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* design v99 D118: the guided reconciliation panel (templates/nd/recon/_panel.html); the artifact's inline sizes, as classes (no inline style in a template). */
.modal.rc { width: min(640px, 96%); }
.rc-x { float: right; } .rc-intro { margin: 0 0 8px; } .rc-hint { margin: 2px 0 0; } .rc-s4 { margin: 10px 0 4px; }
.rc-stmt { width: 150px; } .rc-note { width: 100%; } .rc-t { min-width: 420px; }
.rc-add { margin: 6px 0 0; } .rc-why { flex: 1; min-width: 160px; } .rc-amt { width: 100px; }
/* G5 payroll check inside #m-recon (templates/nd/recon/_payroll.html): the artifact's own tie-out boxes (.sumcard/.sumbox of #schedules) stacked one per payroll account */
.pr-sec { margin: 4px 0 0; } .pr-sec .kv { margin: 0 0 4px; } .pr-row { margin: 8px 0 0; } .pr-file { margin: 6px 0 8px; }
.pr-cards { display: grid; gap: 8px; margin: 8px 0 0; } .pr-card .sumbox > div b { font-variant-numeric: tabular-nums; }
.pr-act { margin: 2px 0 0; } .pr-act form { display: contents; } .pr-said { margin: 0 auto 0 0; flex: 1 1 220px; } .pr-type { margin: 4px 0 0; } .pr-page { width: 70px; }
.tscroll table.t.pr-files { min-width: 0; width: 100%; } .pr-files td:first-child { overflow-wrap: anywhere; } .pr-files th:last-child, .pr-files td:last-child { white-space: nowrap; width: 1%; }
.pr-row form { display: contents; } .pr-sec td form { display: inline; } .pr-sec .opt.rcleft.gline { background: var(--accent-soft); border-color: var(--accent-line); }
@media (max-width: 560px) { .pr-card .sumbox { grid-template-columns: 1fr; } }
.rc-wrong { margin: 8px 0 0; } .rc-lines { margin: 6px 0 0; } .rc-linescroll { max-height: 240px; overflow: auto; }
/* D107 (V98-6): the Time logged table keeps the artifact's min-width (style="min-width:560px" there; no inline style here) */
#m-time table.t { min-width: 560px; }
/* ON-11: the Firm analytics table keeps the artifact's min-width (design/core/body11.html:4 style="min-width:560px"; no inline style here) */
#firmanalytics table.t { min-width: 560px; }
.modal.tl { width: min(680px, 96%); }   /* the artifact's #m-time: style="width:min(680px,96%);max-height:90%;overflow:auto" */

/* New design v100: the guided Ask the client panel (design/core/_m_v100.html #m-askp). The artifact's inline styles, as classes (CSP). */
.ndm-ak { width: min(680px, 96%); max-height: 92%; overflow: auto; }
.ak-lede { margin: 0 0 8px; } .ak-cap { margin: 2px 0 0; } .ak-row { margin: 6px 0 0; } .ak-nomar { margin: 0; } .ak-pvlab { margin: 0 0 4px; }
.ak-chips { flex-wrap: wrap; margin: 0 0 6px; } .ak-pre { white-space: pre-line; } .ak-qb { display: block; margin: 0 0 6px; } .ak-qh { margin: 0 0 4px; } .ak-qt { width: 100%; }
.ak-pick { margin: 0 0 4px; }

/* v100c (B6, design/core/core.css:1009-1014): the guided Ask panel on a phone: steps stacked, no sideways scroll */
@media (max-width: 560px) {
  #m-askp .kv { grid-template-columns: minmax(0, 1fr); }
  #m-askp .modal { width: calc(100% - 16px); }
  #m-askp .rsel { max-width: 100%; white-space: normal; }
  #m-askp .opt, #m-askp .detail, #m-askp .pt-fact { overflow-wrap: anywhere; }
  #m-askp .rsel-wrap, #m-askp .btnrow { max-width: 100%; }
  #m-askp .rsel > span { white-space: normal; overflow-wrap: anywhere; text-align: left; }      /* a long real address wraps inside the select (re-review R1) */
  #m-askp .modal { max-width: calc(100vw - 16px); }
}

/* D105 Favourites: the artifact sets these margins inline (design/core/favourites.js:65,70,78,85); the app has no inline style, so they are classes. The rest of the list's CSS is core.css (copied from core-design.html:958-969). */
.fav-pop .fav-note { margin: 4px 10px; } .fav-pop .fav-note[data-fav-empty] { margin-bottom: 8px; }
.fav-pop .fav-cap { margin: 0; } .fav-pop .fav-hint { margin: 6px 10px 2px; }
.fav-pop a.pi { text-decoration: none; } .fav-pop .pi[aria-disabled="true"] { cursor: default; } .fav-pop .pi[aria-disabled="true"]:hover { background: var(--bg); }

/* ONE cue for a pressable value (design D131, owner answer q39 = 39A, 31 Oct 2026): the design's link blue, an underline on point. Used by an amount that opens its lines
   (bank, review, Final review) and by the Split value of a line that may change. A value that cannot be pressed stays plain dark text. */
td .lnk.amt, .bk-hit, td.acct[data-edit], td.acct[data-edit] .txc { color: var(--accent); }
td .lnk.amt { border: 0; background: none; padding: 0; text-decoration: none; font-variant-numeric: tabular-nums; }
td .lnk.amt:hover, .bk-hit:hover, td.acct[data-edit]:hover { text-decoration: underline; background: none; }
/* v101 D131 in the app's tables (owner rule 31 Oct 2026): ONE cue for a pressable value. The amount that opens its lines (.bk-hit, .lnk.amt) is the value in the link blue,
   underlined on point; no box, no dotted rule. Checked with tools/dev/nd_local/walk_v101.py cue (the design's own v101-one-cue-check logic). */
table.t td .bk-hit[role="button"], table.t td .lnk.amt { color: var(--accent); border: 0; background: none; padding: 0; margin: 0; text-decoration: none; cursor: pointer; }
table.t td .bk-hit[role="button"]:hover, table.t td .lnk.amt:hover { color: var(--accent); background: none; text-decoration: underline; }

/* V103 (design/core/_v103_settings.js): the archived line, the Close and Bring it back dialogs; the artifact's inline styles as classes (the page's CSP has no inline style) */
.arch-line { background: var(--warn-soft); margin: 8px 16px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.arch-line > .arch-t { flex: 1; min-width: 200px; }
.modal .opt.cf-what { background: var(--surface-2); display: block; margin: 0 0 10px; }
.cf-what .cf-c0 { margin: 0; }
.cf-what .cf-c4 { margin: 4px 0 0; }
.cf-err { margin: 6px 0 0; color: var(--bad); }
.cf-mail { margin: 8px 0 0; }
.cf-p8 { margin: 0 0 8px; }
.cf-p6 { margin: 0 0 6px; }
.cf-lead { margin: 8px 0 4px; }
.cf-c0 { margin: 0; }
.opt.cf-phrase { display: block; background: var(--surface-2); margin: 0 0 6px; }
/* v104d (N4), design/core/core.css:1090: Connect, Request Xero access and Waiting for a Xero connection sit in the client cell's own slot, under the name (never wrapping at 390 px: M6) */
#clients .cname > [data-reconn], #clients .cname > [data-xreq], #clients .cname > [data-xwait] { align-self: flex-start; margin-top: 4px; }

/* EX-DLG-STAY-01 (owner rule 1 Nov 2026): the done line of a save inside a dialog sits in the dialog, above its foot, never in the corner; empty, it takes no room. */
.dlg-done:empty { display: none; }
.dlg-done { margin: 8px 0 0; }
.dlg-done .toast { position: static; transform: none; left: auto; right: auto; bottom: auto; width: fit-content; max-width: 100%; }

/* UX-23: the one disabled-reason line (nd.js WHY): in place under the greyed control, a fact box (box, band, paper), never under 12 px */
.why-line { display: block; margin: 6px 0 0; padding: 6px 10px; background: var(--warn-soft); color: var(--ink); border-radius: var(--r-ctl); font-size: 12px; line-height: 1.4; max-width: 46ch; white-space: normal; text-align: left; font-weight: 400; }
td > .why-line { margin-left: 0; }

/* UX-23: the two ways on for a line asked before sit on their own row under its words */
.ak-pick { flex-wrap: wrap; }
.ak-asked-next { flex-basis: 100%; display: flex; gap: 8px; padding-left: 26px; }

/* D144 Back to top on the real pages: the window is the scroller, so the part is fixed at the corner (the artifact floats it inside its scrolling box) */
.cr-jump.cr-fixed { position: fixed; float: none; right: 16px; bottom: 16px; margin: 0; }

/* D144: the checklist bar of a task row (no inline style: the width is a class) and the line under a name */
table.ckt-t .crow-bar i b.ckt-w0 { width: 0%; }
table.ckt-t .crow-bar i b.ckt-w10 { width: 10%; }
table.ckt-t .crow-bar i b.ckt-w20 { width: 20%; }
table.ckt-t .crow-bar i b.ckt-w30 { width: 30%; }
table.ckt-t .crow-bar i b.ckt-w40 { width: 40%; }
table.ckt-t .crow-bar i b.ckt-w50 { width: 50%; }
table.ckt-t .crow-bar i b.ckt-w60 { width: 60%; }
table.ckt-t .crow-bar i b.ckt-w70 { width: 70%; }
table.ckt-t .crow-bar i b.ckt-w80 { width: 80%; }
table.ckt-t .crow-bar i b.ckt-w90 { width: 90%; }
table.ckt-t .crow-bar i b.ckt-w100 { width: 100%; }
table.ckt-t .ckt-cap { margin: 0; }
/* N1 (persona review 5 Nov 2026, D88): the Bank Feeds row's own line ("9 to code, 2 receipts missing. Statement received. Not reconciled yet.") is drawn under the account name at every width; the per-row columns that would carry it are hidden (D144-H2) */
#bfSec table.ckt-t:not([data-ckt-room-now="0"]) .ckt-name .rmx { display: block !important; }
table.ckt-t tr.ghd > td { background: var(--surface-2); }
/* Q48 A: the Status cell's mark sits beside its word on one line (every kit table: Close, Clients, Accruals, Reconciliations) */
table.ckt-t td > .ckt-st { display: inline-flex; align-items: center; gap: 6px; }

/* UX-12: the attachment preview fills its pane: a PDF frame and an image take the pane's full width and a tall box; a large image is held inside it. ONE rule for every Attachments, Client communication and Review preview. */
#m-prev .docprev { padding: 0; overflow: hidden; }
#m-prev .docprev .cap { display: block; padding: 14px; }
#m-prev .prevframe { display: block; width: 100%; height: min(70vh, 640px); min-height: 320px; border: 0; background: var(--surface); }
#m-prev .previmg { display: block; width: 100%; max-width: 100%; max-height: min(70vh, 640px); object-fit: contain; margin: 0 auto; background: var(--surface); }
#m-prev .modal.ndm13 { width: min(860px, 96%); }
input.in.nc61 { min-height: 36px; } /* N11: the Add task box is the big target (rule 13: boxes are at least 36 px) */

/* UX-34 (owner, 2 Nov 2026): an open inline detail is marked on its row, its chevron turns (core.css .exp.open), and its Close (x) sits in the detail's top right corner (tablekit.js syncDetail) */
tr.ckt-open > td { background: var(--accent-soft); }
td.ckt-detail { position: relative; padding-right: 48px; } td.ckt-detail > [data-detail-x] { position: absolute; top: 6px; right: 8px; z-index: 1; }
.ckt-nm > .exp { margin-right: 4px; vertical-align: middle; }

/* UX-35 (owner, 2 Nov 2026) personal reminders: the artifact's inline styles as classes (design/core/build.py:130-141, body11.html:10). core.css already carries the bell, .rmi and .rowtools rules. */
.rem-w520 { width: min(520px, 96%); max-height: 92%; overflow: auto; } .rem-w560 { width: min(560px, 96%); max-height: 92%; overflow: auto; }
.rem-x { float: right; } .rem-ctx { display: block; background: var(--surface-2); margin: 0 0 8px; } .rem-pre { flex-wrap: wrap; } .rem-n { width: 72px; }
.rem-c0 { margin: 0; } .rem-c10 { margin-top: 10px; } .rem-full { width: 100%; } .rem-ph { margin: 2px 6px; } .rem-next { margin: 12px 16px; }
.rem-box { display: block; margin: 12px 16px; background: var(--surface-2); } .rem-lbl { margin: 6px 0 0; border: 0; background: none; } .rem-tz { margin: 6px 0 0; }
.rem-dig-c { display: block; margin-top: 10px; } .rem-dig-l { margin: 2px 0; } .modal .foot .sp { flex: 1; }
/* a filled bell once the row holds one of the person's reminders; the tools stay visible then, and while the small Saved sits beside them */
.rowtools:has(.iconbtn.on), .rowtools:has(.ckt-saved) { opacity: 1; } .rowtools .iconbtn.on svg { fill: currentColor; }
.rowtools { white-space: nowrap; }
.rmi .rmx[hidden], .rmx[hidden] { display: none; } .rmi .rmx { display: flex; }

/* UX-38: the bell pulses once when a reminder falls due (not under reduced motion) */
@media (prefers-reduced-motion: no-preference) { .bellbtn.rm-pulse { animation: rmPulse 1.2s ease-out 1; } }
@keyframes rmPulse { 0% { box-shadow: 0 0 0 0 var(--danger, #c0392b); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tp { display: inline-flex; gap: 6px; flex-wrap: nowrap; align-items: center; } .tp .rsel-wrap { min-width: 0; } .tz-wrap { display: block; margin-top: 6px; }
.tprow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .tprow .tz-wrap { flex: 1 1 200px; margin-top: 0; min-width: 0; } .tprow .tz-wrap .rsel { width: 100%; }

/* Q54 (D160-D162): the Status list of a worked-out status (Bank Feeds, Accruals, Account Reconciliations): the head, the rule and the reasons under greyed items, as the artifact's `.u54-app .menu` draws them */
.pop .u54-mh { margin: 8px 12px 6px; max-width: 320px; white-space: normal; }
/* p43 4a: the status list in the rule-17 shape (artifact p43a .px-ipop): state as title, Set by Pingtail, What you can do, one grey line */
.pop .u54-ipop { display: grid; gap: 4px; padding: 10px 12px 2px; max-width: 340px; white-space: normal; font-size: 12.5px; }
.pop .u54-ipt { font-size: 13px; }
.pop .u54-ipg { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-top: 4px; }
.pop .u54-ipi { padding: 2px 12px; max-width: 340px; white-space: normal; font-size: 12.5px; }
.pop .u54-ipop .u54-ipi { padding: 0; }
.pop .u54-ipgrey { color: var(--ink-3); padding-top: 6px; }

.pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.pop > p.cap { margin: 0 12px 6px; font-size: 11.5px; max-width: 320px; white-space: normal; }
.pop button.pi:disabled { color: var(--ink-3); cursor: not-allowed; background: none; }

/* UX-29 (brief of 7 Nov 2026): the "works best on a wider screen" note shows on every work page under 768 px, not only on a phone (the two-column rule stays at 560 px) */
@container spec (max-width: 767px) { .wide-note { display: flex; } }

/* q89 A: Manage clients > Checklist (design/core/body11.html:1, pane ob1): the tabs and the caption at the design's 16 px, the steps' list full width */
.ob-tabs { margin: 12px 16px; } .ob-tabs.tabs-over { margin: 8px 12px; }
.ob-head { padding: 0 16px; } .ob-head .pbar { margin: 6px 0 12px; }
#ob1 .grp .row .title .cap { margin: 0 0 0 6px; }
/* q93 A (owner, 7 Nov 2026): each step's status is the design's pill .cmp (core.css:122-123), a label, never a button; one width so the steps line up; the step's buttons on the right */
.setup-pill { min-width: 84px; text-align: center; flex: none; font-size: 12px; font-weight: 600; }
.setup-acts { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
/* D5 (owner note on q89): a client's "Setup n of m" fact box and Finish setup sit on one line under its status */
.cl-setup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.setup-mark { white-space: nowrap; }
/* q90 A: the new firm's short table (design/core/body2.html:37: style="min-width:0") */
.tscroll table.t.cl-new-t { min-width: 0; }
.cl-new-next { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Check 99 (owner, 7 Nov 2026) as a class: in EVERY dialog the foot with its buttons stays in view and only what is above it scrolls (Conversation, Create Close, Add client, Connect a ledger,
   Check before posting, the rule warning...; .rb and .acc dialogs already pin theirs). The foot sticks to the bottom of whatever scrolls (the dialog when it has its own height limit, else the window); the 10 px padding is given back by
   the bottom margin, so a dialog that fits looks exactly as before (its top margin is the design's, so a line drawn close above the foot is never covered). #m-xfer keeps its own ruled foot (core.css, v101d N9). */
.modal:not(.rb):not(.acc) .foot { position: sticky; bottom: -10px; z-index: 5; background: var(--surface); padding-bottom: 10px; margin-bottom: -10px; }

/* Check 103 (owner, 7 Nov 2026): the next-step line is a press in the design's link style (accent, the arrow + words), set apart from the status above it by weight; the client's wait is the
   same press, quieter (the secondary ink, regular weight). Shared by every list row that carries a next step (Clients, Manage clients). */
.lnk.cl-go { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--accent); font-size: 13px; text-align: left; }
.lnk.cl-go-wait { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; color: var(--ink-2); font-size: 12px; text-align: left; }
.lnk.cl-go .i, .lnk.cl-go-wait .i { flex: none; }
.cl-next { margin: 4px 0 0; } .cl-wait { margin: 2px 0 0; }

/* Check 104 (owner, 7 Nov 2026): the one "type this first" line under a box (nd.js needSay); the box itself takes the design's aria-invalid style (core.css). Inside a row it takes the row's full width. */
.need-line { color: var(--bad); font-size: 12px; line-height: 16px; margin: 4px 0 0; flex-basis: 100%; }

/* Check 113 (owner, 7 Nov 2026), a principle: the ONE best next action on a screen is its primary button, never faint (DESIGN-PRINCIPLES rule 18). .is-next is the shared modifier: the
   design's primary look plus a short, soft ring that runs twice when the page opens and then stops; none under prefers-reduced-motion. */
.btn.is-next { animation: nd-next 1.4s ease-in-out .5s 2; }
@keyframes nd-next { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 24%, transparent); } }
@media (prefers-reduced-motion: reduce) { .btn.is-next { animation: none; } }
.bk-ext-why { margin: 0 8px 0 auto; } .bk-next { justify-content: center; margin: -8px 0 16px; }
/* Check 103: the next-step press is a box (Box, band, paper: a control you press), the same whether it is a link or a button */
.lnk.cl-go, .lnk.cl-go-wait { border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface-3, var(--surface)); padding: 2px 8px; min-height: 26px; text-decoration: none; }

/* Check 99 (owner, 7 Nov 2026): a dialog's done line is the first row of its foot (nd.js dlgDone): the full width, above the buttons, inside the sticky foot, so it is always seen whole */
.foot > .dlg-done { flex: 1 0 100%; order: -1; margin: 0 0 8px; }

/* q92 A (owner, 7 Nov 2026; app/web/nd/nav.py): "Back to <the place you came from>" is one more part of the design's path (.crumb, core.css:983-992), its link in the weight of the
   design's own "..." part; on the design's second line (.crumbline) the path after it gets the divider the tab row gives every crumb (.mods .crumb). An empty Back slot takes no room. */
.crumb[hidden] { display: none; }
.crumb.cback .lnk { font-weight: 600; }
.crumbline .cback:not([hidden]) + .crumb { padding-left: 18px; margin-left: 18px; border-left: 1px solid var(--line); height: 18px; }

/* Check 122 (owner, 7 Nov 2026) as a class: a dialog's textarea grows with its text up to this height, then scrolls inside itself (nd.js keeps it above the sticky foot while you type) */
.modal textarea { max-height: min(40vh, 240px); overflow-y: auto; }

/* owner, 7 Nov 2026 (Checklist pane, design #ob1): the fill is drawn by CSS from data-pct (a fixed set of widths, CSP-safe, no script needed; manage.js sets the same width too); the caption reads as the pane's heading. */
.ob-head .cap { color: var(--ink); font-weight: 600; }
.pbar > i[data-pct] { background: var(--accent); }
.pbar > i[data-pct="0"]{width:0%} .pbar > i[data-pct="1"]{width:1%} .pbar > i[data-pct="2"]{width:2%} .pbar > i[data-pct="3"]{width:3%} .pbar > i[data-pct="4"]{width:4%} .pbar > i[data-pct="5"]{width:5%} .pbar > i[data-pct="6"]{width:6%} .pbar > i[data-pct="7"]{width:7%} .pbar > i[data-pct="8"]{width:8%} .pbar > i[data-pct="9"]{width:9%} .pbar > i[data-pct="10"]{width:10%} .pbar > i[data-pct="11"]{width:11%} .pbar > i[data-pct="12"]{width:12%} .pbar > i[data-pct="13"]{width:13%} .pbar > i[data-pct="14"]{width:14%} .pbar > i[data-pct="15"]{width:15%} .pbar > i[data-pct="16"]{width:16%} .pbar > i[data-pct="17"]{width:17%} .pbar > i[data-pct="18"]{width:18%} .pbar > i[data-pct="19"]{width:19%} .pbar > i[data-pct="20"]{width:20%} .pbar > i[data-pct="21"]{width:21%} .pbar > i[data-pct="22"]{width:22%} .pbar > i[data-pct="23"]{width:23%} .pbar > i[data-pct="24"]{width:24%} .pbar > i[data-pct="25"]{width:25%} .pbar > i[data-pct="26"]{width:26%} .pbar > i[data-pct="27"]{width:27%} .pbar > i[data-pct="28"]{width:28%} .pbar > i[data-pct="29"]{width:29%} .pbar > i[data-pct="30"]{width:30%} .pbar > i[data-pct="31"]{width:31%} .pbar > i[data-pct="32"]{width:32%} .pbar > i[data-pct="33"]{width:33%} .pbar > i[data-pct="34"]{width:34%} .pbar > i[data-pct="35"]{width:35%} .pbar > i[data-pct="36"]{width:36%} .pbar > i[data-pct="37"]{width:37%} .pbar > i[data-pct="38"]{width:38%} .pbar > i[data-pct="39"]{width:39%} .pbar > i[data-pct="40"]{width:40%} .pbar > i[data-pct="41"]{width:41%} .pbar > i[data-pct="42"]{width:42%} .pbar > i[data-pct="43"]{width:43%} .pbar > i[data-pct="44"]{width:44%} .pbar > i[data-pct="45"]{width:45%} .pbar > i[data-pct="46"]{width:46%} .pbar > i[data-pct="47"]{width:47%} .pbar > i[data-pct="48"]{width:48%} .pbar > i[data-pct="49"]{width:49%} .pbar > i[data-pct="50"]{width:50%} .pbar > i[data-pct="51"]{width:51%} .pbar > i[data-pct="52"]{width:52%} .pbar > i[data-pct="53"]{width:53%} .pbar > i[data-pct="54"]{width:54%} .pbar > i[data-pct="55"]{width:55%} .pbar > i[data-pct="56"]{width:56%} .pbar > i[data-pct="57"]{width:57%} .pbar > i[data-pct="58"]{width:58%} .pbar > i[data-pct="59"]{width:59%} .pbar > i[data-pct="60"]{width:60%} .pbar > i[data-pct="61"]{width:61%} .pbar > i[data-pct="62"]{width:62%} .pbar > i[data-pct="63"]{width:63%} .pbar > i[data-pct="64"]{width:64%} .pbar > i[data-pct="65"]{width:65%} .pbar > i[data-pct="66"]{width:66%} .pbar > i[data-pct="67"]{width:67%} .pbar > i[data-pct="68"]{width:68%} .pbar > i[data-pct="69"]{width:69%} .pbar > i[data-pct="70"]{width:70%} .pbar > i[data-pct="71"]{width:71%} .pbar > i[data-pct="72"]{width:72%} .pbar > i[data-pct="73"]{width:73%} .pbar > i[data-pct="74"]{width:74%} .pbar > i[data-pct="75"]{width:75%} .pbar > i[data-pct="76"]{width:76%} .pbar > i[data-pct="77"]{width:77%} .pbar > i[data-pct="78"]{width:78%} .pbar > i[data-pct="79"]{width:79%} .pbar > i[data-pct="80"]{width:80%} .pbar > i[data-pct="81"]{width:81%} .pbar > i[data-pct="82"]{width:82%} .pbar > i[data-pct="83"]{width:83%} .pbar > i[data-pct="84"]{width:84%} .pbar > i[data-pct="85"]{width:85%} .pbar > i[data-pct="86"]{width:86%} .pbar > i[data-pct="87"]{width:87%} .pbar > i[data-pct="88"]{width:88%} .pbar > i[data-pct="89"]{width:89%} .pbar > i[data-pct="90"]{width:90%} .pbar > i[data-pct="91"]{width:91%} .pbar > i[data-pct="92"]{width:92%} .pbar > i[data-pct="93"]{width:93%} .pbar > i[data-pct="94"]{width:94%} .pbar > i[data-pct="95"]{width:95%} .pbar > i[data-pct="96"]{width:96%} .pbar > i[data-pct="97"]{width:97%} .pbar > i[data-pct="98"]{width:98%} .pbar > i[data-pct="99"]{width:99%} .pbar > i[data-pct="100"]{width:100%}

/* ON-13 Search all transactions (design/core/body9.html:2): the form is only a wrapper, the controls stay one toolbar line */
.sr-form { display: contents; } .sr-q { min-width: 240px; } .cap.sr-cap { margin: 6px 16px; }
/* F1 (owner, 10 Nov 2026, Check 128): the answer to a press glows for about 4 s, then settles. One host (nd.js glow()): the done / failed line and the row or object it names. */
.nd-glow { --glow: var(--ok); animation: nd-glow 1.3s ease-in-out 3; }
.nd-glow[data-glow="err"] { --glow: var(--bad, #d92d5b); }
.nd-glow[data-glow="warn"] { --glow: var(--warn, #9a6b00); }
@keyframes nd-glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--glow) 0%, transparent); } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--glow) 38%, transparent), 0 0 18px 2px color-mix(in srgb, var(--glow) 45%, transparent); } }
@media (prefers-reduced-motion: reduce) { .nd-glow { animation: none; box-shadow: 0 0 0 3px var(--glow); } }
/* a table row cannot carry a box-shadow: the row a press names glows by its fill instead (F1, B1) */
tr.nd-glow { animation: nd-glow-row 1.3s ease-in-out 3; }
@keyframes nd-glow-row { 0%, 100% { background-color: transparent; } 50% { background-color: color-mix(in srgb, var(--glow) 20%, transparent); } }
@media (prefers-reduced-motion: reduce) { tr.nd-glow { animation: none; background-color: color-mix(in srgb, var(--glow) 20%, transparent); box-shadow: none; } }

/* lost-screens items 4 and 5: Your settings > Two-factor sign-in windows and Appearance (the same measures as docs/mocks/lost-screens/shoot.py) */
.ts-qr { display: block; width: 132px; height: 132px; background: #fff; padding: 6px; border-radius: 8px; border: 1px solid var(--line); box-sizing: content-box; }
.ts-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 6px 0 4px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.ts-codes span { padding: 6px 10px; background: var(--surface-2); border-radius: 8px; }
.ts-code { width: 220px; }
.ts-more { margin-top: 6px; }
.ts-lead { margin: 0 0 8px; }
.ts-head { margin-top: 10px; }
.ts-note { background: var(--ok-soft); display: flex; gap: 10px; align-items: flex-start; }
.ts-appear { padding: 8px 0; }
.ts-appear .cap { margin: 0 0 4px; }

/* lost-screens item 3b: the Email rows' editor in Templates */
.te-h { margin-top: 12px; }
.te-box { width: 100%; box-sizing: border-box; }
.te-fields { margin: 8px 0 0 12px; }
.te-fixed { background: var(--surface-2); }
.te-tools { margin: 12px 0 0 12px; }
.te-frame { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
/* small-9 item 5 (owner, Check 211: "very light colour, non impressive ... it should look like there is something important"): a FOLDED table's line is the table's name in the normal ink at the weight of a table heading, the row count in the second ink, a clear chevron, on the raised surface with its border; the whole line is one press that expands (the Expand button stays). Every folded table. */
.kit-box.kit-folded > .gridbar { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 16px; margin: 8px 16px; cursor: pointer; }
.kit-box.kit-folded > .gridbar:hover { border-color: var(--ink-3); }
.kit-box.kit-folded [data-kit-vline] { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.kit-box.kit-folded [data-kit-vline] .vl-name { color: var(--ink); font-weight: 600; font-size: 15px; }
.kit-box.kit-folded [data-kit-vline] .vl-chev { color: var(--ink); display: inline-flex; }
.kit-box.kit-folded [data-kit-vline] .vl-chev .i { width: 18px; height: 18px; }

/* small-12 item 2: a header search result is the kind, a title cut with an ellipsis and ONE short second line */
#srchList .srow { width: 100%; align-items: flex-start; justify-content: flex-start; text-align: left; } #srchList .srow .grow { flex: 1; min-width: 0; }
#srchList .srow .srow-t, #srchList .srow .srow-s { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Decision 147 A (owner, 14 Nov 2026; mock docs/mocks/clients-header/, D122 amended): the header's Clients button carries the word (the mock's padding 0 9px), the Onboarding button beside it
   with its "n of m" in the second ink; under a 520 px bar (552 px with the bar's 16 px sides) the word Onboarding hides and the icon with "n of m" stays. Both are links (one press, no menu). */
.hdr a.sel { color: var(--ink); text-decoration: none; }
.hdr .sel.home { padding: 0 9px; }
.hdr .lnk-n { color: var(--ink-2); font-weight: 500; }
@container spec (max-width: 551px) { .hdr .hdr-ob .ob-word { display: none; } }
/* The Clients page and the Onboarding page: the page's title (mock .pg-title), the one row of Clients tabs with + Add client at its right, the numbered steps (mock .step-n, .ob-wrap) */
.pg-title { padding: 6px 16px 0; margin: 0; font-size: 20px; font-weight: 600; }
.cl-tabrow .tabs { flex-wrap: wrap; }
.step-n { color: var(--ink-3); font-weight: 600; margin-right: 8px; }
.ob-page .ob-head { padding: 8px 16px 10px; } .ob-page .ob-head .pbar { margin: 6px 0 0; } .ob-wrap { padding: 0 16px 16px; }
.ob-page .grp .row .title .cap { margin: 0 0 0 6px; }
/* a second line with nothing in it (no Back, no path: the Clients and Onboarding pages carry their own title) takes no room */
.crumbline:has(> .cback[hidden]:only-child) { display: none; }

/* R13 (mock gate ask-ai-again, 15 Nov 2026): every menu item is one visible line where there is room; a menu never runs off the screen, and on a phone
   the toolbar's menu (its button sits near the left edge) opens to the right */
.menu { max-width: calc(100vw - 16px); }
@media (min-width: 521px) { .menu button, .menu a { white-space: nowrap; } }
@media (max-width: 520px) { .df-bar .menuwrap .menu { right: auto; left: 0; } }
@media (max-width: 520px), (pointer: coarse) { .menu button, .menu a { min-height: 44px; } }      /* mock gate N4: a phone's menu item is a 44 px target */
/* Decision 149 A (owner, 15 Nov 2026 12:55; mock docs/mocks/addclient-bankrows/mock.css): Info, Portal, Files, Comments, Search and Start are icons the size of the gear, their word on hover and as the aria-label.
   A running timer shows its time in words ("End 12:03"); Comments keeps its count on the icon, as the bell does. */
.hdr .iconbtn.hdr-ic { width: 28px; height: 28px; }
.hdr .iconbtn.hdr-ic[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.hdr .hdr-ic .bubble { position: absolute; top: -6px; right: -6px; min-width: 14px; height: 14px; line-height: 14px; font-size: 10px; padding: 0 3px; }
.hdr .hdr-timer > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hdr .hdr-timer.is-run { width: auto; display: inline-flex; gap: 5px; padding: 0 9px; color: var(--ink); }
.hdr .hdr-timer.is-run > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
