/* AI Accountant v4 screens, in the look of S2 (Accountant3): its light "ledger paper" tokens (S2 style.css L61-88), Geist and
   JetBrains Mono served from /static/fonts, the sidebar, the company workspace chrome (S2 .wf-*), the month report and its
   table (S2 categorize.js .cm-*), the row window, the documents workspace (S2 .dw-*). Light only: there is no dark theme. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/geist-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/geist-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/geist-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oxanium'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/oxanium-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oxanium'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/oxanium-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oxanium'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/oxanium-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/space-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/space-mono-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg-0: #EFEFEE; --bg-1: #FFFFFF; --bg-2: #E8E8E6; --bg-3: #DCDCD9; --bg-hover-1: #ECECEA; --bg-soft: #F6F6F4;
  --line-1: #E0E0DD; --line-2: #CDCDC9; --line-3: #ADADA8;
  --ink-1: #18181A; --ink-2: #46464A; --ink-3: #6B6B71; --ink-4: #8A8A90;
  --good: #2E8B6F; --good-soft: #D9EEE3; --warn: #8F6610; --warn-soft: #F2E5C2;
  --bad: #C0464A; --bad-soft: #F4DCDD; --info: #3A6FA8; --info-soft: #DCE7F2;
  --accent: #B85C16; --accent-soft: #FBE5CC; --accent-ink: #5C2C0B; --accent-fg: #FFFFFF;
  --st-zoho: #2E8B6F; --st-decided: #A8D8C4; --st-decided-ink: #14432F; --st-person: #F2E5C2; --st-person-ink: #5C4310;
  --st-open: #EDEDEA; --st-open-ink: #6B6B71; --st-failed: #C0464A;
  --radius-s: 4px; --radius-m: 6px; --radius-l: 10px;
  --sans: 'Geist', -apple-system, system-ui, "Segoe UI", sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.45 var(--sans); background: var(--bg-0); color: var(--ink-1); min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
h1 { font-size: 22px; font-weight: 500; margin: 0; }
h2 { font-size: 16px; font-weight: 600; margin: 0; }
h3 { font-size: 14px; font-weight: 600; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.caps { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); font-weight: 400; }

/* ── the shell: S2's sidebar (232 px; a 56 px rail inside a client) and the work area ── */
.app { display: flex; min-height: 100vh; }
.side { flex: 0 0 232px; background: var(--bg-1); border-right: 1px solid var(--line-1); display: flex; flex-direction: column; justify-content: space-between;
        position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 8px; padding: 18px 18px 16px; border-bottom: 1px solid var(--line-1); color: var(--ink-1); }
.logo-icon { width: 24px; height: 24px; border-radius: 6px; background: var(--info); color: #fff; display: inline-flex; align-items: center; justify-content: center;
             font: 600 10.5px var(--mono); flex: 0 0 auto; }
.logo-mark { font: 500 11px var(--mono); letter-spacing: .3em; color: var(--accent); }
.user { display: flex; align-items: center; gap: 10px; padding: 14px 18px; min-width: 0; }
.avatar { width: 28px; height: 28px; border-radius: 7px; background: var(--accent-soft); border: 1px solid var(--line-2); color: var(--accent-ink);
          display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; flex: 0 0 auto; }
.user-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { font: 10.5px var(--mono); color: var(--ink-4); }
.user > div { min-width: 0; }
.nav { display: flex; flex-direction: column; }
.sec { padding: 6px 8px 4px; display: flex; flex-direction: column; }
.sec-label { font: 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); padding: 8px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 6px; font-size: 13.5px; color: var(--ink-2); position: relative; }
.nav a:hover { background: var(--bg-hover-1); color: var(--ink-1); }
.nav a.on { background: var(--bg-2); color: var(--ink-1); }
.nav a.on::before { content: ""; position: absolute; left: -8px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--accent); }
.nav .ico { width: 16px; text-align: center; color: var(--ink-3); font-size: 13px; flex: 0 0 auto; }
.side-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line-1); display: flex; flex-direction: column; gap: 8px; }
.side-foot .who { font: 10.5px var(--mono); color: var(--ink-4); overflow-wrap: anywhere; }
.signout { font: inherit; font-size: 13px; color: var(--ink-2); background: none; border: 0; padding: 4px 0; text-align: left; cursor: pointer; }
.signout:hover { color: var(--accent); }
.main { flex: 999 1 640px; min-width: 0; padding: 0 32px 48px; display: flex; flex-direction: column; gap: 14px; }
.main > :first-child:not(.wf) { margin-top: 24px; }

/* ── the client workspace chrome (S2 loadCompanyPage, .wf-*) ── */
.wf { display: flex; flex-direction: column; gap: 0; }
.wf-top { display: flex; align-items: center; gap: 16px; padding: 22px 0 8px; flex-wrap: wrap; }
.wf-switcher { position: relative; }
.wf-switch { display: inline-flex; align-items: center; gap: 6px; font: 600 17px var(--sans); color: var(--ink-1); padding: 4px 8px; margin-left: -8px;
             border-radius: 6px; border: 1px solid transparent; background: transparent; cursor: pointer; }
.wf-switch:hover { background: var(--bg-hover-1); border-color: var(--line-1); }
.wf-caret { font-size: 11px; color: var(--ink-4); }
.wf-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; min-width: 240px; max-height: 60vh; overflow-y: auto; background: var(--bg-1);
           border: 1px solid var(--line-1); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); padding: 4px; display: flex; flex-direction: column; }
.wf-menu a { padding: 7px 10px; border-radius: 5px; font-size: 13.5px; color: var(--ink-2); }
.wf-menu a:hover { background: var(--bg-hover-1); color: var(--ink-1); }
.wf-menu a.on { color: var(--accent); font-weight: 500; }
.wf-meta { font: 11.5px var(--mono); color: var(--ink-4); }
.wf-actions { margin-left: auto; display: flex; gap: 6px; }
.wf-strip { display: flex; align-items: stretch; gap: 4px; padding-top: 6px; border-bottom: 1px solid var(--line-1); margin-bottom: 14px; overflow-x: auto; }
.wf-stage { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px 8px 0 0; border: 1px solid transparent; border-bottom: none;
            font-size: 16px; font-weight: 500; color: var(--ink-2); white-space: nowrap; flex: 1 1 auto; }
.wf-stage:hover { background: var(--bg-hover-1); color: var(--ink-1); }
.wf-stage.on { background: var(--bg-1); border-color: var(--line-1); box-shadow: inset 0 -2px 0 var(--accent); color: var(--ink-1); }
.wf-stage .ico { color: var(--ink-3); font-size: 15px; }
.wf-sep { display: flex; align-items: center; color: var(--line-3); font-size: 13px; }

/* month chips (S2 .wf-month) */
.months { display: flex; flex-wrap: wrap; gap: 6px; }
.month { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-1);
         font: 500 11.5px var(--sans); color: var(--ink-2); }
.month:hover { background: var(--bg-hover-1); color: var(--ink-1); }
.month.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

/* ── shared components ── */
.card { background: var(--bg-1); border: 1px solid var(--line-1); border-radius: var(--radius-l); padding: 16px; }
.card.narrow { width: 100%; max-width: 400px; padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.card-head { display: flex; align-items: center; gap: 12px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line-1); flex-wrap: wrap; }
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mut { color: var(--ink-3); }
.dim4 { color: var(--ink-4); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-4); text-align: left; padding: 9px 8px;
     background: var(--bg-soft); border-bottom: 1px solid var(--line-1); white-space: nowrap; }
td { padding: 9px 8px; border-bottom: 1px solid var(--line-1); vertical-align: middle; font-size: 13px; }
tr.sel td { background: color-mix(in oklab, var(--accent) 6%, var(--bg-1)); }
.chip { display: inline-block; padding: 1px 7px; border-radius: 3px; font: 500 10.5px var(--mono); letter-spacing: .03em; white-space: nowrap;
        border: 1px solid var(--line-2); color: var(--ink-3); background: var(--bg-1); }
.chip.good { color: var(--good); border-color: color-mix(in oklab, var(--good) 45%, var(--line-2)); background: var(--good-soft); }
.chip.warn { color: var(--warn); border-color: color-mix(in oklab, var(--warn) 45%, var(--line-2)); background: var(--warn-soft); }
.chip.bad { color: var(--bad); border-color: color-mix(in oklab, var(--bad) 45%, var(--line-2)); background: var(--bad-soft); }
.chip.info { color: var(--info); border-color: color-mix(in oklab, var(--info) 45%, var(--line-2)); background: var(--info-soft); }
.chip.accent { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 55%, var(--line-2)); text-transform: uppercase; letter-spacing: .08em; }
.btn { font: 500 13px var(--sans); padding: 6px 12px; border-radius: var(--radius-m); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink-1);
       min-height: 32px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn:hover { background: var(--bg-3); color: var(--ink-1); }
.btn.ghost { background: var(--bg-1); }
.btn.pri { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn.pri:hover { background: color-mix(in oklab, var(--accent) 88%, black); color: var(--accent-fg); }
.btn.dng { color: var(--bad); border-color: color-mix(in oklab, var(--bad) 45%, var(--line-2)); background: var(--bad-soft); }
.btn.sm { min-height: 26px; padding: 3px 9px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.inp, .sel { font: 13px var(--sans); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-m); background: var(--bg-1); color: var(--ink-1); min-height: 32px; }
textarea.inp { font: 12.5px/1.6 var(--mono); }
.kv { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 13px; }
.kv dt { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); padding-top: 2px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.placeholder { border: 1px dashed var(--line-3); background: var(--bg-1); border-radius: var(--radius-l); padding: 28px; color: var(--ink-2); }
.err { color: var(--bad); }
.pb-acts .good { color: var(--good); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--line-3); flex: 0 0 auto; }
.dot.zoho { background: var(--st-zoho); } .dot.decided { background: var(--st-decided); } .dot.person { background: #C9A453; }
.dot.open { background: var(--line-3); } .dot.failed { background: var(--st-failed); }

/* toast, modal, slide-out */
.toasts { position: fixed; right: 16px; bottom: 60px; display: flex; flex-direction: column; gap: 8px; z-index: 80; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink-1); color: #fff; border-radius: 8px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-size: 13px; border-left: 4px solid var(--info); }
.toast.good { border-left-color: var(--good); }
.toast.warn { border-left-color: #C9A453; }
.toast.bad { border-left-color: var(--bad); }
.overlay { position: fixed; inset: 0; background: rgba(24, 24, 26, .35); z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; }
.overlay.right { justify-content: flex-end; align-items: stretch; padding: 0; }
.modal { background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 12px; padding: 20px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto;
         display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .22); }
.slideout { background: var(--bg-1); border-left: 1px solid var(--line-2); width: min(620px, 100vw); height: 100%; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ── Clients home (S2 company cards) ── */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.ccard { display: flex; flex-direction: column; color: inherit; padding: 18px 20px 0; transition: border-color 120ms; }
.ccard:hover { border-color: var(--line-3); }
.ccard-name { font-size: 17px; font-weight: 500; color: var(--ink-1); }
.ccard-name:hover { color: var(--accent); }
.ccard-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 0; }
.cnum { font: 500 26px var(--mono); line-height: 1.15; }
.cnum.person { color: var(--warn); } .cnum.zoho { color: var(--good); }
.cnum .of { font-size: 13px; color: var(--ink-4); }
.ccard-foot { border-top: 1px solid var(--line-1); padding: 12px 0; font-size: 12.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.ccard-last { padding: 0 0 14px; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.ccard-links { display: flex; gap: 14px; padding: 0 0 14px; font-size: 12.5px; }
.page-head { display: flex; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; padding: 24px 32px 18px; margin: 0 -32px 8px; border-bottom: 1px solid var(--line-1); }
.page-head .grow { flex: 1 1 260px; }

/* ── Month report (S2 cmRenderReport) ── */
.rep { padding: 0; }
.rep-title { font-size: 16px; font-weight: 600; }
.funnel-block { padding: 14px 16px; border-bottom: 1px solid var(--line-1); }
.funnel { display: flex; height: 26px; border-radius: 4px; overflow: hidden; font: 600 11px var(--mono); background: var(--bg-2); }
.fseg { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; }
.fseg.zoho { background: var(--st-zoho); color: #fff; } .fseg.decided { background: var(--st-decided); color: var(--st-decided-ink); }
.fseg.person { background: var(--st-person); color: var(--st-person-ink); } .fseg.open { background: var(--st-open); color: var(--st-open-ink); }
.fseg.failed { background: var(--st-failed); color: #fff; }
.legend { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 9px; font-size: 12.5px; color: var(--ink-2); }
.leg { display: inline-flex; align-items: center; gap: 6px; font: inherit; background: none; border: 0; padding: 2px 0; color: inherit; cursor: pointer; }
.leg:hover { color: var(--accent); }
.leg i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.leg b { font-weight: 600; color: var(--ink-1); }
.leg.zoho i { background: var(--st-zoho); } .leg.decided i { background: var(--st-decided); } .leg.person i { background: var(--st-person); }
.leg.open i { background: var(--st-open); border: 1px solid var(--line-2); } .leg.failed i { background: var(--st-failed); }
.leg.reviewed { margin-left: auto; } .leg.reviewed i { background: none; width: auto; height: auto; color: var(--good); font-style: normal; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cols3 > div { padding: 16px; border-right: 1px solid var(--line-1); min-width: 0; }
.cols3 > div:last-child { border-right: none; }
.blockrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-1); font-size: 13px; }
.blockrow:last-child { border-bottom: none; }
.blockn { font: 600 13px var(--mono); min-width: 22px; }
.blockrow .show { margin-left: auto; font: inherit; font-size: 12px; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }
.st-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, .9fr) 74px; gap: 8px; padding: 8px 0;
          border-bottom: 1px solid var(--line-1); font-size: 12.5px; align-items: baseline; }
.st-row.head { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-4); }
.st-row:last-child { border-bottom: none; }
.st-row > * { min-width: 0; overflow-wrap: anywhere; }
.box-note { margin-top: 12px; background: var(--bg-soft); color: var(--ink-2); border-radius: 6px; padding: 10px 12px; font-size: 13px; }

/* the chip row and the table (S2 cmRenderTable) */
.list-card { padding: 0; }
.chipbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 12px; border-bottom: 1px solid var(--line-1); }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--bg-1);
         font: 400 12.5px var(--sans); color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.fchip:hover { background: var(--bg-hover-1); }
.fchip b { font: 400 10.5px var(--mono); color: var(--ink-4); }
.fchip.on { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 60%, var(--line-2)); color: var(--accent-ink); }
.fchip.on b { color: var(--accent-ink); }
.search { width: 230px; }
table.lines { table-layout: auto; }
table.lines td { white-space: normal; }
.lines .bank { overflow-wrap: anywhere; color: var(--ink-1); }
.lines .bank:hover { color: var(--accent); }
.amt { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.amt.neg { color: #C0464A; } .amt.pos { color: #3A6FA8; }
.cur { font: 10px var(--mono); color: var(--ink-4); margin-left: 3px; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.state.person { color: var(--warn); } .state.failed { color: var(--bad); } .state.open { color: var(--ink-3); }
.flag { color: var(--warn); font-size: 11px; margin-left: 6px; }
.who { font-size: 12px; color: var(--ink-3); }
.dec { color: var(--ink-1); overflow-wrap: anywhere; }
.dec.none { color: var(--ink-4); }
.tickcell { text-align: center; }
.tickcell input { width: 16px; height: 16px; accent-color: var(--good); }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 10px 12px; font-size: 12px; color: var(--ink-3); }

/* ── the row window (S2 cmOpenWindow): over the month, facts only ── */
.rw-back { position: fixed; inset: 0; z-index: 60; background: rgba(24, 24, 26, .35); overflow-y: auto; padding: 16px 24px; }
.rw { max-width: 1320px; margin: 0 auto; background: var(--bg-1); border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .22); overflow: hidden; }
.rw:focus { outline: none; }
.rw[aria-busy="true"] .rw-cols { opacity: .55; transition: opacity .15s; }
.rw-head { display: flex; gap: 8px 18px; padding: 12px 18px 10px; border-bottom: 1px solid var(--line-1); flex-wrap: wrap; align-items: center; }
.rw-title { flex: 1 1 420px; min-width: 0; }
.rw-title h2 { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.rw-sub { font: 11.5px var(--mono); color: var(--ink-3); margin-top: 2px; overflow-wrap: anywhere; }
.rw-amount { text-align: right; }
.rw-amount .big { font: 500 21px var(--mono); }
.rw-acts { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; font-size: 13px; }
.rw-acts .row { gap: 6px; }
.rw-nav { display: flex; gap: 6px; align-items: center; }
.navbtn { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg-1); display: inline-flex; align-items: center;
          justify-content: center; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.navbtn:hover { background: var(--bg-hover-1); color: var(--ink-1); }
.navbtn:disabled { opacity: .4; cursor: default; }
.chain { display: flex; gap: 6px; align-items: stretch; padding: 12px 20px; border-bottom: 1px solid var(--line-1); flex-wrap: wrap; }
.step { flex: 1 1 170px; min-width: 0; border: 1px solid var(--line-1); border-radius: 6px; padding: 9px 12px; display: flex; gap: 10px; align-items: center; }
.step .t { font-size: 13px; font-weight: 600; }
.step .s { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step > div { min-width: 0; }
.step .ok { margin-left: auto; color: var(--good); }
.step.warn { border-color: color-mix(in oklab, var(--warn) 45%, var(--line-2)); background: color-mix(in oklab, var(--warn-soft) 55%, var(--bg-1)); }
.step.bad { border-color: color-mix(in oklab, var(--bad) 45%, var(--line-2)); background: color-mix(in oklab, var(--bad-soft) 55%, var(--bg-1)); }
.chev { display: flex; align-items: center; color: var(--line-3); }
.actbar { display: flex; gap: 8px 12px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line-1); background: var(--bg-soft); flex-wrap: wrap; }
.actbar .grow { flex: 1 1 20px; }
/* UI fixes 1: two columns that fit a 1440 x 900 screen; one column under 1100 px */
.rw-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rw-col { min-width: 0; padding: 8px 18px 10px; display: flex; flex-direction: column; }
.rw-col + .rw-col { border-left: 1px solid var(--line-1); }
.rw-zoho { margin-top: 8px; background: var(--bg-soft); border: 1px solid var(--line-1); border-radius: 8px; padding: 8px 12px 4px; }
.rw .sect { padding: 8px 0; gap: 6px; }
.rw .sect h2 { font-size: 15px; }
.rw .sect h3 { font-size: 13px; }
.rw .kv2 { grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); gap: 3px 12px; font-size: 12.5px; }
.rw .kv2 dt.wide { grid-column: 1; }
.rw .kv2 dd.wide { grid-column: 2 / span 3; }
.rw table td, .rw table th { padding: 5px 6px; }
@media (max-width: 1100px) {
  .rw-cols { grid-template-columns: minmax(0, 1fr); }
  .rw-col + .rw-col { border-left: none; border-top: 1px solid var(--line-1); }
}
@media (max-width: 560px) {
  .rw .kv2 { grid-template-columns: max-content minmax(0, 1fr); }
  .rw .kv2 dd.wide { grid-column: 2; }
}
.sect { padding: 14px 0; border-bottom: 1px solid var(--line-1); display: flex; flex-direction: column; gap: 8px; }
.sect:last-child { border-bottom: none; }
.pill-row { display: flex; gap: 8px; align-items: center; }
.rw table td, .rw table th { white-space: normal; overflow-wrap: anywhere; }
.rw-foot { display: flex; gap: 14px; justify-content: flex-end; align-items: center; padding: 6px 18px; border-top: 1px solid var(--line-1); background: var(--bg-soft);
           font: 11.5px var(--mono); color: var(--ink-4); flex-wrap: wrap; }
.zoho-link { white-space: nowrap; font-size: 12.5px; }

@media (max-width: 760px) {
  .main { padding: 0 14px 32px; }
  .page-head { margin: 0 -14px 8px; padding: 18px 14px 14px; }
  .rw-back { padding: 0; }
  .cgrid { grid-template-columns: minmax(0, 1fr); }
}

/* ===== P5b: Documents by month and Instructions (classes added for static/screens/documents.js and instructions.js) ===== */
.btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.dc-page, .ins-page { display: flex; flex-direction: column; gap: 14px; }
.dc-head { justify-content: space-between; }
.dc-links { gap: 14px; }
.dc-reading { display: flex; flex-direction: column; gap: 10px; }
.dc-reading-head, .dc-stats, .dc-bystate, .dc-counts, .dc-filters { gap: 10px 22px; }
.dc-counts, .dc-filters { gap: 8px; }
.dc-stat b { font-size: 15px; }
.dc-refusals h3 { margin-bottom: 4px; }
.dc-refusals ul, .dc-list-plain, .dc-versions { margin: 0; padding-left: 18px; }
.dc-list-plain { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 4px; }
.dc-nz { border-style: dashed; border-color: #C9A453; color: var(--st-person-ink); background: var(--st-person); }
.dc-nz.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.dc-split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.dc-list { flex: 3 1 420px; min-width: 0; padding: 0; }
.dc-preview { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 8px; max-height: calc(100vh - 16px); overflow: auto; }

.ins-card, .ins-panel { overflow-wrap: anywhere; }
.dc-preview-head { justify-content: space-between; }
.dc-row { cursor: pointer; }
.dc-row:hover td { background: var(--bg-hover-1); }
.dc-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dc-empty { padding: 12px 8px; }
.dc-list td.dc-nw { white-space: nowrap; }
.dc-file { min-height: 120px; }
.dc-frame { width: 100%; height: 420px; border: 1px solid var(--line-2); border-radius: var(--radius-m); background: var(--bg-2); }
.dc-img { max-width: 100%; max-height: 420px; border: 1px solid var(--line-2); border-radius: var(--radius-m); }
.dc-sec { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-1); padding-top: 10px; }
.dc-link-row { gap: 8px 12px; }
.dc-grow { flex: 1 1 120px; min-width: 0; overflow-wrap: anywhere; }
.dc-marks { gap: 8px; }
.dc-reason { width: 100%; resize: vertical; }
.dc-pick { display: flex; flex-direction: column; gap: 4px; }
.dc-versions li { margin-bottom: 4px; }
.ins-top { justify-content: space-between; }
.ins-panel { display: flex; flex-direction: column; gap: 12px; }
.ins-head { justify-content: space-between; }
.ins-body { display: flex; flex-wrap: wrap; gap: 16px; }
.ins-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ins-history { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ins-ver { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.ins-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ins-pair.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ins-text { width: 100%; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; margin: 0; resize: vertical; }
.ins-read { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: var(--radius-m); padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; }
.ins-old { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ins-err { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ins-settings { display: flex; flex-direction: column; gap: 10px; }
.ins-sethead { justify-content: space-between; align-items: baseline; }
/* the settings groups: one column on a narrow screen, two on a wide one, three on a wider one */
.ins-sets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 900px) { .ins-sets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .ins-sets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ins-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ins-tbl th, .ins-tbl td { text-align: left; vertical-align: top; padding: 6px 0; border-top: 1px solid var(--line-1); overflow-wrap: anywhere; }
.ins-tbl tr:first-child th, .ins-tbl tr:first-child td { border-top: 0; }
.ins-tbl th { width: 38%; padding-right: 12px; font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-4); font-weight: 400; padding-top: 8px; }
.ins-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.ins-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ins-card { display: flex; flex-direction: column; gap: 8px; }
.ins-via { font-style: italic; }
@media (max-width: 640px) { .dc-frame { height: 320px; } }
/* ===== end P5b ===== */
/* ── helpers of the screens ── */
.spread { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1 1 220px; }
.pad { padding: 12px; } .pad-s { padding: 4px 8px; } .pad-top { padding-top: 8px; }
.push { margin-left: auto; }
.nowrap { white-space: nowrap; }
td.wide { min-width: 140px; max-width: 280px; white-space: normal; overflow-wrap: anywhere; }
td.wrap { max-width: 130px; white-space: normal; overflow-wrap: anywhere; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--bg-soft); }
.sr-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.preview-frame { width: 100%; height: 70vh; border: 1px solid var(--line-2); border-radius: var(--radius-m); background: var(--bg-2); }
.preview-img { max-width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: var(--radius-m); }
.stmts { margin-top: 6px; }
.stmts td, .stmts th { padding: 7px 6px; font-size: 12.5px; white-space: normal; overflow-wrap: anywhere; }
/* ── P6 admin pages (users, connections, plans, writes, team, settings): classes of static/screens/admin_*.js ── */
/* one header row for each admin page (owner 2026-11-11): the title, one muted line, the page's controls on the right */
.adm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 40px; }
.adm-head .adm-note { font-size: 13px; min-width: 0; flex: 0 1 auto; }
.adm-head .adm-actions { margin-left: auto; align-items: flex-end; }
.adm-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.adm-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.adm-field .inp, .adm-field .sel { width: 100%; }
.adm-bar .adm-field { min-width: 150px; }
.adm-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; max-height: 220px; overflow: auto; padding: 8px; border: 1px solid var(--line-1); border-radius: var(--radius-m); background: var(--bg-1); }
.adm-check { display: flex; align-items: center; gap: 8px; }
.adm-sec { display: flex; flex-direction: column; gap: 12px; }
.adm-sub { display: flex; flex-direction: column; gap: 10px; padding: 8px 4px 12px; }
.adm-pre { margin: 0; padding: 10px 12px; max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg-2); border: 1px solid var(--line-1); border-radius: var(--radius-m); font: 12.5px/1.45 var(--mono); }
.adm-text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 60ch; }
.adm-key { min-width: 0; flex: 1 1 260px; }
.adm-click { cursor: pointer; }
.adm-click:hover td { background: var(--bg-hover-1); }
tr.adm-off td { color: var(--ink-3); }
.adm-limit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 0; border-bottom: 1px solid var(--line-1); }
.adm-limit.col { flex-direction: column; align-items: stretch; justify-content: flex-start; }
.adm-limit .inp.n { width: 110px; }
.slideout .adm-sec { padding: 12px; }
/* P6 admin tables: one long unbroken value (a chip, a key, a report type) wraps and never widens the whole table */
.adm-tbl td, .adm-tbl .chip, .adm-sec .chip, .adm-limit, .adm-limit > div { overflow-wrap: anywhere; }
.adm-tbl .chip, .adm-sec .chip { white-space: normal; }

/* ── P5 (step 7): Team page — digest groups, write health, usage ── */
.adm-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 20px; align-items: start; }
.adm-digest { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.adm-group { display: flex; flex-direction: column; gap: 8px; }
.adm-digest-item { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid var(--line-1); border-radius: var(--radius-m); background: var(--bg-1); min-width: 0; }
.adm-health { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }

/* ── Documents by month in S2's documents workspace (.dw-*): the reading panel, the Showing control, the table, the docked window ── */
.dc-reading { padding: 16px 18px; }
.dc-reading-head { gap: 10px 18px; }
.dc-when { margin-left: auto; }
.dc-stats { gap: 8px 10px; align-items: baseline; }
.dc-stat { font-size: 14px; }
.dc-stat b { font: 600 15px var(--mono); }
.live { display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px var(--mono); color: var(--good); text-transform: uppercase; letter-spacing: .1em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in oklab, var(--good) 22%, transparent); display: inline-block; }
.dc-counts { gap: 10px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: var(--bg-1); }
.seg-btn { font: 13px var(--sans); padding: 6px 12px; color: var(--ink-2); background: var(--bg-1); border: 0; border-right: 1px solid var(--line-2); cursor: pointer; white-space: nowrap; }
.seg-btn:last-child { border-right: 0; }
.seg-btn:hover { background: var(--bg-hover-1); }
.seg-btn b { font: 500 12px var(--mono); margin-left: 4px; color: var(--ink-3); }
.seg-btn.on { background: var(--accent); color: #fff; }
.seg-btn.on b { color: #fff; }
.dc-filters { gap: 8px 10px; }
.dc-list table { font-size: 13px; }
.dc-list th { padding: 9px 8px; }
.dc-fname { font-size: 12.5px; color: var(--ink-2); }
.dc-fname .chip { margin-top: 3px; }
.dc-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.chip.dashed { border-style: dashed; }
.tag { display: inline-block; font: 500 10.5px var(--mono); padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.t-bill { background: #DCE7F2; color: #28527A; } .t-inv { background: #D9EEE3; color: #1C5B47; } .t-rec { background: #F2E5C2; color: #5C4310; }
.t-tr { background: #E8E8E6; color: #46464A; } .t-cn { background: #E9E3F7; color: #4A3A86; } .t-none { background: #F1F1EF; color: #8A8A90; }
.dc-preview { padding: 16px 18px; }
.dc-preview h2 { font-size: 15px; overflow-wrap: anywhere; }
.dc-sec h3 { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-4); }
.dc-marks .btn:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Instructions (S2 card and key/value style) ── */
.ins-panel h2 { font-size: 16px; }
.ins-read { background: var(--bg-soft); }
.ins-settings > .ins-sethead h2 { font-size: 16px; }
.ins-card h3 { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); }
.ins-via { font-style: normal; font-size: 11.5px; color: var(--ink-4); }

/* ── Admin: S2's Settings page, a tab bar over the page ── */
.adm-title { font-size: 22px; font-weight: 500; }
.tabbar { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line-1); }
.tab { padding: 8px 14px; font-size: 13px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink-1); }
.tab.on { color: var(--ink-1); font-weight: 500; border-bottom-color: var(--accent); }
.adm-inner { display: flex; flex-direction: column; gap: 14px; }
.adm-inner h1 { font-size: 20px; font-weight: 600; }

/* ── Sign-in (S2's login card, one Google button) ── */
.brand { font-size: 22px; font-weight: 600; color: var(--ink-1); }
.gbtn { min-height: 42px; font-size: 14px; }

/* the card's counts are a link to the month: they keep the ink of the numbers */
.ccard-counts, .ccard-counts:hover { color: var(--ink-1); }
/* the docked document window scrolls as one: its parts keep their height (the file frame is never squeezed) */
.dc-preview > * { flex-shrink: 0; }

table.lines td { overflow-wrap: anywhere; }
/* the month chip's status dot (S2 .wf-month-dot): no line · lines not in Zoho yet · every line in Zoho */
.mdot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: 0 0 auto; background: var(--line-3); }
.mdot.open { background: #C9A453; } .mdot.done { background: var(--good); } .mdot.none { background: var(--line-3); }

/* ── Documents by month (owner 2026-11-06): the list never scrolls sideways (static/table.js: fixed layout, shares of the
   width); the preview can be hidden and is as wide as the person drags it (--pw, saved for the person); under the list when
   the content area is narrower than about 1200 px ── */
.dc-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
.dc-split.with-preview { grid-template-columns: minmax(0, 1fr) 14px minmax(320px, var(--pw, 600px)); }
.dc-list { padding: 0; min-width: 0; overflow: hidden; }
.dc-splitter { align-self: stretch; cursor: col-resize; touch-action: none; position: relative; min-height: 120px; }
.dc-splitter::after { content: ""; position: absolute; top: 0; bottom: 0; left: 6px; width: 2px; border-radius: 1px; background: var(--line-2); }
.dc-splitter:hover::after, .dc-splitter:active::after { background: var(--accent); }
.dc-preview { min-width: 0; }
.dc-list .chip { white-space: normal; max-width: 100%; }
@media (max-width: 1320px) {
  .dc-split.with-preview { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .dc-splitter { display: none; }
  .dc-preview { position: static; max-height: none; }
}

/* the month report's statements (review S2): dates, period and balances never break letter by letter */
.stmts td, .stmts th { overflow-wrap: normal; }
.stmts td.mono, .stmts th { white-space: nowrap; }
.stmts td:first-child { overflow-wrap: anywhere; }

/* the row window's Zoho records (review N5): the record type is one word on one line */
.rw table[data-table="records"] td:first-child, .rw table[data-table="records"] th { white-space: nowrap; overflow-wrap: normal; }

/* admin tables (review S4): each scrolls in its own box at a readable width; the page never scrolls sideways */
.adm-inner, .adm-inner > *, .adm-sec, .adm-sub { min-width: 0; max-width: 100%; }
.adm-tbl { overflow-x: auto; max-width: 100%; }
.adm-tbl table { min-width: 640px; }
.adm-tbl td, .adm-tbl .chip { overflow-wrap: break-word; }
.adm-tbl th { white-space: nowrap; }

/* ── the configurable table (static/table.js; owner 2026-11-06): the bar, the panels, a table that always fits its box ── */
.ct { display: flex; flex-direction: column; min-width: 0; }
.ct-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line-1); }
.ct-gap { flex: 1 1 10px; }
.ct-viewlabel { display: inline-flex; align-items: center; gap: 6px; }
.ct-views { min-height: 26px; padding: 3px 8px; font-size: 12.5px; max-width: 220px; }
.btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.ct-panel { padding: 12px; border-bottom: 1px solid var(--line-1); background: var(--bg-soft); }
/* the Columns panel (S2's .cm-colspanel, owner 2026-11-07): available fields on the left, the columns shown, in order, on the right */
.ct-panel:has(.cm-colspanel) { padding: 0; }
.cm-caps { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.cm-dim { color: var(--ink-3); font-size: 11.5px; }
.cm-right { margin-left: auto; }
.cm-colspanel { background: var(--bg-0); }
.cm-colspanel-head, .cm-colspanel-foot { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 11.5px; flex-wrap: wrap; }
.cm-colspanel-head { border-bottom: 1px solid var(--line-1); }
.cm-colspanel-foot { border-top: 1px solid var(--line-1); }
.cm-colspanel-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); }
.cm-avail { padding: 6px 14px 10px; border-right: 1px solid var(--line-1); max-height: 340px; overflow-y: auto; column-count: 2; column-gap: 20px; }
.cm-chosen { padding: 10px 14px; max-height: 340px; min-height: 120px; overflow-y: auto; }
.cm-chosen > .cm-caps { padding-bottom: 6px; }
.cm-grpbox { break-inside: avoid; }
.cm-plain { text-transform: none; letter-spacing: 0; font-family: var(--sans); }
.cm-grp { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); padding: 10px 0 5px; break-inside: avoid; }
.cm-fld { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 5px; font-size: 12px; color: var(--ink-2); break-inside: avoid; }
.cm-fld:hover { background: var(--bg-hover-1); }
.cm-fld.used, .cm-fld.used .cm-fldnm { color: var(--ink-4); }
.cm-fldnm { color: var(--ink-1); }
.cm-add { font: inherit; color: var(--accent); cursor: pointer; font-size: 15px; line-height: 1; background: none; border: 0; padding: 0 2px; }
.cm-inuse { font-size: 10.5px; }
.cm-fld[draggable="true"] { cursor: grab; }
.cm-fld.dragging { opacity: .4; }
.cm-pick { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 12.5px; color: var(--ink-1); background: var(--bg-1);
           border: 1px solid var(--line-1); border-radius: 6px; margin-bottom: 5px; cursor: grab; user-select: none; }
.cm-pick:active { cursor: grabbing; }
.cm-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cm-pick.dragging { opacity: .35; border-style: dashed; border-color: var(--accent); }
.cm-pick.cm-gap { color: var(--ink-4); border: 1px dashed var(--accent); background: var(--accent-soft); }
.cm-hd { color: var(--line-3); letter-spacing: 1px; }
.cm-x { font: inherit; color: var(--ink-4); cursor: pointer; padding: 0 4px; font-size: 11px; background: none; border: 0; }
.cm-x:hover { color: var(--bad); }
@media (max-width: 760px) { .cm-colspanel-body { grid-template-columns: minmax(0, 1fr); } .cm-avail { border-right: none; border-bottom: 1px solid var(--line-1); } }
/* a heading dragged: its cells are tinted, the heading follows the pointer */
body.ct-col-dragging, body.ct-col-dragging * { cursor: grabbing !important; user-select: none; }
.ct-table th { cursor: grab; }
.ct-table .ct-lift { background: var(--accent-soft); }
.ct-table th.ct-lift { z-index: 3; color: var(--accent-ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .14); }
.ct-table th.ct-lift .ct-grip { display: none; }
.ct-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; margin-bottom: 10px; }
.ct-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ct-f .inp, .ct-f .sel { width: 100%; }
.ct-range { flex-wrap: nowrap; gap: 6px; }
.ct-range .inp { min-width: 0; flex: 1 1 0; }
.ct-note { padding: 8px 12px; font-size: 12.5px; color: var(--warn); background: var(--warn-soft); border-bottom: 1px solid var(--line-1); }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; }
.ct-box { min-width: 0; overflow: hidden; }
table.ct-table { width: 100%; table-layout: fixed; min-width: 0; }
.ct-table th { position: relative; padding: 0; overflow: hidden; }
.ct-sort { font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left;
           width: 100%; padding: 9px 12px 9px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-table th.sorted .ct-sort { color: var(--accent); }
.ct-grip { position: absolute; top: 0; right: 0; width: 7px; height: 100%; cursor: col-resize; touch-action: none; }
.ct-grip:hover, .ct-grip:active { background: color-mix(in oklab, var(--accent) 30%, transparent); }
.ct-table td { overflow: hidden; overflow-wrap: break-word; white-space: normal; }
.ct-table td.nowrap { white-space: nowrap; text-overflow: ellipsis; }
.ct-table td.ct-open { text-align: right; }
.ct-table tr.click:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ct-table tr.sel td { background: color-mix(in oklab, var(--accent) 9%, var(--bg-1)); }

/* the amount's figure keeps one line, its currency may go under it; a one-line cell too narrow ends in an ellipsis and carries its whole text as its title (table.js) */
.ct-table .nowrap { white-space: nowrap; }
.ct-table td .amt { white-space: normal; }
.ct-table td .amt .cur { display: inline-block; }
.ct-table td .tag { white-space: normal; }

/* ── ST1: the coverage block of "Statements of the month" and the statement window ── */
.cov { margin: 6px 0 10px; display: grid; gap: 6px; }
.cov-row { border: 1px solid var(--line-1); border-radius: var(--radius-m); padding: 7px 9px; background: var(--bg-soft); }
.cov-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cov-name { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.cov-head .chip { margin-left: auto; }
.cov-gap { color: var(--bad); }
.cov-twice { color: var(--warn); }
.cov-lines { color: var(--ink-2); overflow-wrap: anywhere; }
.stmts tr.click a { font-weight: 600; }
.rw.sw { max-width: 1440px; }
.sw-proof { padding: 14px 20px; border-bottom: 1px solid var(--line-1); }
.sw-proof .row { gap: 10px; align-items: center; flex-wrap: wrap; }
.sw-reason { margin-top: 8px; font-size: 14px; }
.sw-facts { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.sw-break { color: var(--bad); }
.sw-warn { margin-top: 10px; background: var(--warn-soft); color: var(--st-person-ink); border-radius: var(--radius-m); padding: 8px 10px; }
.sw-warn ul { margin: 4px 0 0; padding-left: 18px; }
.sw-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); gap: 16px; padding: 14px 20px; }
.sw-lines-box, .sw-file { min-width: 0; }
.sw-file .dc-frame { height: 640px; }
.sw-lines tr.brk td { background: var(--bad-soft); }
.sw-lines tr.dim td { color: var(--ink-4); }
.sw-brk { color: var(--bad); margin-top: 2px; white-space: normal; }
.chip.sm { font-size: 10.5px; padding: 0 5px; margin-left: 4px; }
.dc-stmt { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
@media (max-width: 1100px) { .sw-split { grid-template-columns: minmax(0, 1fr); } .sw-file .dc-frame { height: 420px; } }
.sw-lines td[data-col="balance_computed"] .sw-brk { font-family: var(--sans); text-align: right; }
.sw-lines td.n { white-space: nowrap; overflow-wrap: normal; }
.sw-lines th { white-space: normal; overflow-wrap: normal; }
.sw-lines th .ct-sort { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: normal; }
/* ── L1b (step 7): Team page — Work analytics, S1's card in the light S2 look ── */
.wa-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.wa-top h3 { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); }
.wa-periods .seg-btn { padding: 4px 12px; font-size: 12.5px; }
.wa-note { margin-top: -4px; }
.wa-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wa-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; min-width: 0; }
.wa-headline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.wa-name { font-size: 15px; font-weight: 600; }
.wa-totals { margin-left: auto; color: var(--ink-3); }
.wa-totals b, .wa-rhythm b { color: var(--ink-1); font-weight: 600; }
.wa-rhythm { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; color: var(--ink-3); }
.wa-rhythm span { cursor: default; }
.wa-strip { display: flex; gap: 2px; margin: 2px 0; }
.wa-day { flex: 1 1 0; min-width: 2px; height: 30px; border-radius: 3px; background: var(--bg-2); }
.wa-fold > summary { cursor: pointer; padding: 2px 0; list-style-position: inside; }
.wa-fold[open] > summary { margin-bottom: 6px; }
.wa-tbl table { width: 100%; min-width: 640px; border-collapse: collapse; }
.wa-tbl th { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); text-align: left; padding: 9px 12px;
             background: var(--bg-soft); border-bottom: 1px solid var(--line-1); white-space: nowrap; }
.wa-tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-1); }
.wa-tbl .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wa-tbl td:first-child { overflow-wrap: anywhere; }
.wa-err { color: var(--bad); }
.wa-factor { font-variant-numeric: tabular-nums; }
.wa-green { color: var(--good); } .wa-amber { color: var(--warn); } .wa-red { color: var(--bad); }
.wa-tools { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.wa-chip { display: inline-block; padding: 3px 12px; border: 1px solid var(--line-2); border-radius: 999px; font: 12.5px var(--mono); color: var(--ink-2); background: var(--bg-1); }
/* the day strip: the server's shade in 21 steps (no inline style under the page's CSP) */
.wa-day.s1 { background: rgba(58, 111, 168, 0.05); }
.wa-day.s2 { background: rgba(58, 111, 168, 0.10); }
.wa-day.s3 { background: rgba(58, 111, 168, 0.15); }
.wa-day.s4 { background: rgba(58, 111, 168, 0.20); }
.wa-day.s5 { background: rgba(58, 111, 168, 0.25); }
.wa-day.s6 { background: rgba(58, 111, 168, 0.30); }
.wa-day.s7 { background: rgba(58, 111, 168, 0.35); }
.wa-day.s8 { background: rgba(58, 111, 168, 0.40); }
.wa-day.s9 { background: rgba(58, 111, 168, 0.45); }
.wa-day.s10 { background: rgba(58, 111, 168, 0.50); }
.wa-day.s11 { background: rgba(58, 111, 168, 0.55); }
.wa-day.s12 { background: rgba(58, 111, 168, 0.60); }
.wa-day.s13 { background: rgba(58, 111, 168, 0.65); }
.wa-day.s14 { background: rgba(58, 111, 168, 0.70); }
.wa-day.s15 { background: rgba(58, 111, 168, 0.75); }
.wa-day.s16 { background: rgba(58, 111, 168, 0.80); }
.wa-day.s17 { background: rgba(58, 111, 168, 0.85); }
.wa-day.s18 { background: rgba(58, 111, 168, 0.90); }
.wa-day.s19 { background: rgba(58, 111, 168, 0.95); }
.wa-day.s20 { background: rgba(58, 111, 168, 1.00); }
@media (max-width: 700px) { .wa-totals { margin-left: 0; } }

/* Report a problem (report.js; S2's ADR-104): the button on every screen, the form with the pictures */
.rp-dock { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 6px;
           font: 500 12px var(--sans); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2);
           background: var(--bg-1); color: var(--ink-2); box-shadow: 0 2px 8px rgba(24, 24, 26, .12); cursor: pointer; }
.rp-dock:hover { color: var(--ink-1); background: var(--bg-2); }
.rp-dock.busy { opacity: .6; cursor: progress; }
.rp-dock .rp-ico { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%;
                   background: var(--bad-soft); color: var(--bad); font-weight: 700; font-size: 11px; }
.modal.rp-modal { max-width: 880px; display: flex; flex-direction: column; gap: 10px; }
.rp-text { width: 100%; box-sizing: border-box; font: 13px/1.5 var(--sans); resize: vertical; }
.rp-pics { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.rp-pic { border: 1px solid var(--line-2); border-radius: var(--radius-m); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rp-pic-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.rp-pic-head span { flex: 1 1 auto; }
.rp-paste-empty { border-style: dashed; }
.rp-canvas { width: 100%; height: auto; cursor: crosshair; border: 1px solid var(--line-1); touch-action: none; }
.rp-warn { font-size: 12px; color: var(--warn); background: var(--warn-soft); border-radius: var(--radius-m); padding: 6px 10px; }
.rp-actions { margin-top: 4px; }
@media (max-width: 640px) { .rp-pics { grid-template-columns: 1fr; } .rp-dock .txt { display: none; } }

/* The client request (month.js): the prompt for Claude Code */
.cr-prompt { width: 100%; box-sizing: border-box; min-height: 120px; }
.modal .row .grow { flex: 1 1 auto; }
.modal img.rp-full { max-width: 100%; height: auto; border: 1px solid var(--line-1); }
.modal pre.rp-ctx { max-height: 60vh; overflow: auto; white-space: pre-wrap; word-break: break-word; background: var(--bg-2); padding: 10px; border-radius: var(--radius-m); }
.modal:has(img.rp-full) { max-width: min(1200px, 96vw); }

/* My feedback (step 7 L2) */
.fb-filter { margin: 0 0 14px; }
.fb-list { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.fb-head { font-size: 12.5px; }
.fb-type { font-weight: 500; }
.fb-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.fb-answer { border-left: 3px solid var(--good); padding: 4px 0 4px 12px; margin-top: 8px; }
.fb-answer p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 0; }
.fb-noanswer { margin: 4px 0 0; }
.nav-count { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-fg);
  font: 600 11px var(--sans); text-align: center; }
.nav-count[hidden] { display: none; }
.q-wrap { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin: 0 0 24px; }
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.q-head h2 { margin: 0; font-size: 18px; }
.q-item { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.q-meta { font-size: 12.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.q-topic { margin: 0; font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.q-label { font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.q-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.q-ask { background: var(--accent-soft); color: var(--accent-ink); border-radius: var(--radius-m); padding: 12px 16px; }
.q-ask .q-label { color: var(--accent-ink); }
.q-ask p { margin: 0; font-size: 16px; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-tbl-box { overflow-x: auto; border: 1px solid var(--line-1); border-radius: var(--radius-m); }
.q-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.q-tbl th { text-align: left; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); padding: 7px 10px; }
.q-tbl td { padding: 7px 10px; border-top: 1px solid var(--line-1); overflow-wrap: anywhere; }
.q-opts { display: flex; flex-direction: column; gap: 8px; }
.q-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 12px 14px; border-radius: var(--radius-m);
  border: 1px solid var(--line-2); background: var(--bg-1); color: var(--ink-1); font: 14px var(--sans); cursor: pointer; }
.q-opt:hover { background: var(--bg-hover-1); }
.q-opt.on { border: 2px solid var(--accent); background: var(--accent-soft); padding: 11px 13px; }
.q-opt:disabled { cursor: default; opacity: .6; }
.q-opt.on:disabled { opacity: 1; }
.q-key { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; background: var(--bg-2); color: var(--ink-2); }
.q-opt.on .q-key { background: var(--accent); color: var(--accent-fg); }
.q-opt-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.q-opt-title { font-weight: 600; overflow-wrap: anywhere; }
.q-post { border-collapse: collapse; font-size: 12.5px; }
.q-post th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 2px 14px 2px 0; }
.q-post td { padding: 2px 14px 2px 0; }
.q-post .num { text-align: right; font-family: var(--mono); }
.q-change { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; font-weight: 400; }
.q-place { display: flex; flex-direction: column; gap: 4px; }
.q-diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .q-diff { grid-template-columns: minmax(0, 1fr); } }
.q-diff-h { font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.q-lines { border-radius: var(--radius-s); padding: 6px 8px; font-size: 13px; line-height: 1.45; }
.q-lines.was { background: var(--bad-soft); color: var(--ink-1); }
.q-lines.was .q-line { text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--bad) 60%, transparent); }
.q-lines.now { background: var(--good-soft); color: var(--ink-1); }
.q-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.q-form { display: flex; flex-direction: column; gap: 8px; }
.q-form textarea { font: 14px var(--sans); padding: 10px; border-radius: var(--radius-m); border: 1px solid var(--line-2); resize: vertical; min-height: 64px; }
.q-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.q-actions .btn.pri { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.q-mine { border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; }
.q-reply { border-left: 3px solid var(--good); padding: 4px 0 4px 12px; }
.q-mine p, .q-reply p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* ── Team page in sections (owner 2026-11-11): the second tab bar, the alarms, the people table, the quality grid ── */
.tm-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tm-alarm-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.tm-alarm { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid color-mix(in oklab, var(--bad) 40%, var(--line-2)); border-radius: var(--radius-m); background: var(--bad-soft); }
.tm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); flex: none; }
.wa-chips { display: flex; }
.wa-back { align-self: flex-start; font-size: 13px; padding: 4px 0; }
.wa-people .wa-name { font-size: 14px; }
.wa-people td.wa-each, .wa-people th.wa-each { width: 30%; min-width: 140px; }
.wa-strip.mini { margin: 0; gap: 1px; }
.wa-strip.mini .wa-day { height: 18px; border-radius: 2px; min-width: 1px; }
.tm-q table { width: auto; min-width: 0; border-collapse: collapse; }
.tm-q th, .tm-q td { padding: 4px 6px; border-bottom: 1px solid var(--line-1); white-space: nowrap; }
.tm-q th { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); text-align: left; }
.tm-q .n { text-align: right; }
.tm-q-cell { font: 12.5px var(--mono); min-width: 56px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-1); color: var(--ink-1); cursor: pointer; }
.tm-q-cell:hover { background: var(--bg-hover-1); }
.tm-q-cell.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.tm-q-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tm-q-detail h4 { margin-bottom: 6px; }

/* ── The sidebar's line icons (owner 2026-11-11): one stroke SVG each, drawn as a mask in the text colour (no inline SVG,
   no inline style; data: images are allowed by the page's CSP). ── */
.nav .ico[class*='i-'] { display: inline-block; width: 16px; height: 16px; background-color: currentColor; color: var(--ink-3);
  -webkit-mask: var(--i) center / 16px 16px no-repeat; mask: var(--i) center / 16px 16px no-repeat; }
.nav a:hover .ico[class*='i-'] { color: var(--ink-1); }
.nav a.on .ico[class*='i-'] { color: var(--accent); }
.nav .ico.i-clients { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v16M15 9h4a1 1 0 0 1 1 1v11M3 21h18M8 8h3M8 12h3M8 16h3'/%3E%3C/svg%3E"); }
.nav .ico.i-book { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4.5A1.5 1.5 0 0 1 6.5 3H19v15H6.5A1.5 1.5 0 0 0 5 19.5v-15zM5 19.5A1.5 1.5 0 0 0 6.5 21H19v-3M9 7h6M9 11h4'/%3E%3C/svg%3E"); }
.nav .ico.i-feedback { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4V5zM8 9h8M8 12h5'/%3E%3C/svg%3E"); }
.nav .ico.i-today { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16v-5a6 6 0 0 1 12 0v5l2 2H4l2-2zM10 21h4'/%3E%3C/svg%3E"); }
.nav .ico.i-chart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20V11M11 20V4M17 20v-6M3 20h18'/%3E%3C/svg%3E"); }
.nav .ico.i-quality { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-4-7.5M8 12l3 3 9-9'/%3E%3C/svg%3E"); }
.nav .ico.i-inbox { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13l3-8h12l3 8v6H3v-6zM3 13h5l1 3h6l1-3h5'/%3E%3C/svg%3E"); }
.nav .ico.i-heal { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8-8 9-4.6-1-8-4.5-8-9V6l8-3zM12 9v6M9 12h6'/%3E%3C/svg%3E"); }
.nav .ico.i-users { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14a6 6 0 0 1 3.5 6'/%3E%3C/svg%3E"); }
.nav .ico.i-link { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3A4 4 0 0 0 13 5.3l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }
.nav .ico.i-log { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11M4.5 6h.01M4.5 12h.01M4.5 18h.01'/%3E%3C/svg%3E"); }
.nav .ico.i-settings { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h9M17 6h3M4 12h3M11 12h9M4 18h11M19 18h1'/%3E%3Ccircle cx='15' cy='6' r='2'/%3E%3Ccircle cx='9' cy='12' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E"); }
.wa { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.adm-log-switch .seg-btn { text-decoration: none; }
/* ── Work analytics: one person's day (owner 2026-11-12): the strip's days are buttons; the day opens under the strip ── */
.wa-hint { margin: 0; }
button.wa-day { border: 0; padding: 0; cursor: pointer; font: inherit; }
button.wa-day:hover { outline: 1px solid var(--line-3); }
button.wa-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button.wa-day.sel { box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 4px var(--accent); }
.wa-dayview { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid color-mix(in oklab, var(--accent) 45%, var(--line-2));
              border-radius: var(--radius-l); background: var(--bg-1); min-width: 0; }
.wa-dayhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wa-dayhead h4 { margin: 0; font-size: 15px; font-weight: 600; min-width: 150px; }
.wa-daystep, .wa-dayclose { min-width: 32px; font-size: 16px; line-height: 1; }
.wa-dayclose { margin-left: auto; }
.wa-daytotals { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--ink-3); }
.wa-daytotals b { color: var(--ink-1); font-weight: 600; }
.wa-tl { display: grid; grid-template-columns: repeat(96, minmax(0, 1fr)); gap: 1px; height: 26px; padding: 3px; background: var(--bg-soft);
         border: 1px solid var(--line-1); border-radius: var(--radius-m); }
.wa-q { border-radius: 2px; }
.wa-q:nth-child(4n+1) { box-shadow: inset 1px 0 0 var(--line-1); }
.wa-q.c0, .wa-sw.c0 { background: #3A6FA8; } .wa-q.c1, .wa-sw.c1 { background: #B85C16; } .wa-q.c2, .wa-sw.c2 { background: #2E8B6F; }
.wa-q.c3, .wa-sw.c3 { background: #7A5BB0; } .wa-q.co, .wa-sw.co { background: #C9B98A; } .wa-q.cn, .wa-sw.cn { background: #8A8A90; }
.wa-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; height: 40px; padding: 0 3px; }
.wa-h { background: #9DB4CF; border-radius: 2px 2px 0 0; height: 0; }
.wa-h.h1 { height: 4px; } .wa-h.h2 { height: 8px; } .wa-h.h3 { height: 12px; } .wa-h.h4 { height: 16px; } .wa-h.h5 { height: 20px; }
.wa-h.h6 { height: 24px; } .wa-h.h7 { height: 28px; } .wa-h.h8 { height: 32px; } .wa-h.h9 { height: 36px; } .wa-h.h10 { height: 40px; }
.wa-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); padding: 0 3px; }
.wa-sessions { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; }
.wa-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }
.wa-daygrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 14px 20px; align-items: start; }
.wa-daygrid .wa-tbl table { min-width: 0; }
@media (max-width: 900px) { .wa-daygrid { grid-template-columns: minmax(0, 1fr); } }
.wa-events h5 { margin: 0 0 6px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.wa-events ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.wa-ev { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; }
.wa-ev.error > span:last-child { color: var(--bad); }

/* ── Admin: Healing flow (admin_flow.js; owner 2026-11-12): the design's neon look, a dark panel on the light page ── */
.hf-panel { font-family: 'Oxanium', system-ui, sans-serif; background: #03050A; color: #E3EAF6; border: 1px solid #16203A; border-radius: 12px; padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.hf-top { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.hf-top h2 { color: #E3EAF6; font-size: 16px; font-weight: 600; }
.adm-inner .hf-top h1 { color: #E3EAF6; font-size: 20px; font-weight: 600; margin: 0; }
/* the Healing flow fills the whole work area: no page margin, no second header (owner 2026-11-12) */
.main:has(> .adm-inner > .hf-panel) { padding: 0; }
.main:has(> .adm-inner > .hf-panel) > :first-child { margin-top: 0; }
.adm-inner > .hf-panel { margin: 0; border: 0; border-radius: 0; min-height: 100vh; box-sizing: border-box; padding: 20px clamp(16px, 2.4vw, 32px) 24px; }
.hf-controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.hf-periods { display: flex; border: 1px solid #2A3550; border-radius: 8px; overflow: hidden; background: #070B16; }
.hf-period { font: inherit; font-size: 13px; font-weight: 500; min-height: 40px; padding: 0 14px; border: 0; cursor: pointer; background: transparent; color: #9AA8BE; }
.hf-period[aria-pressed="true"] { background: #16203A; color: #E3EAF6; box-shadow: inset 0 -2px 0 #8FB8FF; }
.hf-period:focus-visible, .hf-close:focus-visible, .hf-link:focus-visible, .hf-pw:focus-visible { outline: 2px solid #8FB8FF; outline-offset: 2px; }
.hf-range { font-size: 12px; color: #9AA8BE; }
.hf-pw { color: #8FB8FF; font-weight: 600; font-size: 13.5px; }
.hf-pw:hover { color: #CFE3FF; }
.hf-note { font-size: 12.5px; color: #9AA8BE; }
.hf-scroll { overflow-x: auto; }
.hf-flow { position: relative; min-width: 1040px; }
.hf-loading { color: #9AA8BE; padding: 40px 0; }
.hf-svg { display: block; width: 100%; height: auto; font-family: 'Oxanium', system-ui, sans-serif; }
.hf-svg [data-k] { cursor: pointer; }
.hf-svg .lf { stroke-dasharray: 22 190; animation: hf-flow 5.5s linear infinite; }
.hf-svg .lf-slow { stroke-dasharray: 30 260; animation: hf-slow 9s linear infinite; }
@keyframes hf-flow { to { stroke-dashoffset: -212; } }
@keyframes hf-slow { to { stroke-dashoffset: -290; } }
@media (prefers-reduced-motion: reduce) { .hf-svg .lf, .hf-svg .lf-slow { animation: none; } }
.hf-badge { position: absolute; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; background: #0B1020;
            border: 1px solid rgba(143, 184, 255, 0.8); box-shadow: 0 0 12px rgba(92, 157, 255, 0.55); pointer-events: none; }
.hf-badge.claude { border-color: rgba(217, 119, 87, 0.85); box-shadow: 0 0 14px rgba(217, 119, 87, 0.55); }
.hf-badge.violet { border-color: rgba(207, 198, 255, 0.85); box-shadow: 0 0 12px rgba(183, 169, 255, 0.55); }
.hf-badge img { display: block; width: 100%; height: 100%; }
.hf-logo { position: absolute; left: 90.89%; top: 7.941%; width: 7.945%; height: auto; display: block; border-radius: 6px;
           box-shadow: 0 0 16px rgba(74, 134, 240, 0.6); pointer-events: none; }
.hf-tip { position: absolute; z-index: 5; width: 300px; box-sizing: border-box; background: rgba(7, 11, 22, 0.96); color: #E3EAF6;
          border: 1px solid #8FB8FF; border-radius: 12px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px;
          box-shadow: 0 0 22px rgba(143, 184, 255, 0.28), 0 8px 24px rgba(0, 0, 0, 0.6); }
.hf-tip-head { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.hf-tip-name { font-size: 15px; font-weight: 600; }
.hf-tip-count { font-size: 13px; color: #CFE3FF; }
.hf-tip-route { font-size: 12px; color: #9AA8BE; }
.hf-tip p { font-size: 13px; line-height: 1.5; }
.hf-close { font: inherit; font-size: 16px; line-height: 1; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #2A3550; background: transparent; color: #9AA8BE; cursor: pointer; flex: 0 0 auto; }
.hf-links { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.hf-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 8px;
           border: 1px solid #2A3550; background: #0B1020; color: #E3EAF6; font-size: 13px; }
.hf-link .mono { color: #FFC84A; }

/* the drawing's styles (admin_flow.js puts these classes on; the CSP refuses a style attribute) */
.hf-svg .hf-s0 { display: block; width: 100%; height: auto; font-family: 'Geist', system-ui, sans-serif; }
.hf-svg .hf-s1 { stroke-width: 1.2; stroke-linejoin: round; }
.hf-svg .hf-s2 { fill: #070B16; fill-opacity: 0.82; }
.hf-svg .hf-s3 { fill: #070B16; }
.hf-svg .hf-s4 { fill: none; stroke-width: 1.3; }
.hf-svg .hf-s5 { stroke-width: 2.2; }
.hf-svg .hf-s6 { stroke-width: 2; }
.hf-svg .hf-s7 { fill: none; stroke-linecap: butt; stroke-linejoin: round; }
.hf-svg .hf-s8 { stroke-width: 9.6; }
.hf-svg .hf-s9 { stroke-width: 7.2; }
.hf-svg .hf-s10 { stroke-width: 7.2; }
.hf-svg .hf-s11 { stroke-width: 11.4; }
.hf-svg .hf-s12 { stroke-width: 9; }
.hf-svg .hf-s13 { stroke-width: 9; }
.hf-svg .hf-s14 { fill: none; stroke-opacity: 0.95; stroke-width: 5; stroke-linecap: round; }
.hf-svg .hf-s15 { stroke-width: 8; }
.hf-svg .hf-s16 { stroke-width: 8; }
.hf-svg .hf-s17 { stroke-width: 3.5; }
.hf-svg .hf-s18 { stroke-width: 4; }
.hf-svg .hf-s19 { stroke-width: 4; }
.hf-svg .hf-s20 { stroke-width: 3.5; }
.hf-svg .hf-s21 { stroke-width: 8; }
.hf-svg .hf-s22 { stroke-width: 4; }
.hf-svg .hf-s23 { stroke-width: 8; }
.hf-svg .hf-s24 { stroke-width: 3.5; }
.hf-svg .hf-s25 { stroke-width: 3; }
.hf-svg .hf-s26 { stroke-width: 4; }
.hf-svg .hf-s27 { stroke-width: 8; }
.hf-svg .hf-s28 { stroke-width: 6; }
.hf-svg .hf-s29 { fill: #E3EAF6; paint-order: stroke; stroke: #070B16; stroke-width: 4px; stroke-linejoin: round; }
.hf-svg .hf-s30 { font-size: 14px; font-weight: 600; }
.hf-svg .hf-s31 { cursor: pointer; font: 500 30px 'Space Mono', ui-monospace, monospace; fill: #3CF2D0; }
.hf-svg .hf-s32 { cursor: pointer; font-size: 12px; font-weight: 600; }
.hf-svg .hf-s33 { cursor: pointer; font-size: 10.5px; fill: #9AA8BE; }
.hf-svg .hf-s34 { font: 500 9.5px 'Space Mono', ui-monospace, monospace; letter-spacing: .12em; fill: #9AA8BE; }
.hf-svg .hf-s35 { font-size: 12.5px; font-weight: 600; }
.hf-svg .hf-s36 { font: 500 10.5px 'Space Mono', ui-monospace, monospace; fill: #9AA8BE; }
.hf-svg .hf-s37 { font-size: 12.5px; font-weight: 600; }
.hf-svg .hf-s38 { font: 500 10.5px 'Space Mono', ui-monospace, monospace; fill: #9AA8BE; }
.hf-svg .hf-s39 { cursor: pointer; font-size: 12.5px; font-weight: 600; }
.hf-svg .hf-s40 { cursor: pointer; font: 500 10.5px 'Space Mono', ui-monospace, monospace; fill: #CFC6FF; }
.hf-svg .hf-s41 { font-size: 15px; font-weight: 600; }
.hf-svg .hf-s42 { font: 500 10px 'Space Mono', ui-monospace, monospace; fill: #9AA8BE; }
.hf-svg .hf-s43 { cursor: pointer; font-size: 13.5px; font-weight: 600; fill: #FFD98A; }
.hf-svg .hf-s44 { cursor: pointer; font-size: 13.5px; font-weight: 600; fill: #9FFFEA; }
.hf-svg .hf-s45 { font-size: 13.5px; font-weight: 600; }
.hf-svg .hf-s46 { font-size: 15px; font-weight: 600; }
.hf-svg .hf-s47 { cursor: pointer; font: 500 20px 'Space Mono', ui-monospace, monospace; }
.hf-svg .hf-s48 { fill: #9AA8BE; }
.hf-svg .hf-s49 { fill: #D6CEFF; }
.hf-svg .hf-s50 { cursor: pointer; font-size: 10.5px; fill: #9AA8BE; }
.hf-svg .hf-s51 { cursor: pointer; font-size: 13px; font-weight: 600; }
.hf-svg .hf-s52 { cursor: pointer; font: 500 16px 'Space Mono', ui-monospace, monospace; fill: #FF9E5E; }
.hf-svg .hf-s53 { cursor: pointer; font-size: 13px; font-weight: 600; }
.hf-svg .hf-s54 { cursor: pointer; font: 500 16px 'Space Mono', ui-monospace, monospace; fill: #7FB2FF; }
.hf-svg .hf-s55 { cursor: pointer; font-size: 13px; font-weight: 600; }
.hf-svg .hf-s56 { cursor: pointer; font: 500 16px 'Space Mono', ui-monospace, monospace; fill: #E8EEF9; }
.hf-svg .hf-s57 { cursor: pointer; font-size: 13px; font-weight: 600; }
.hf-svg .hf-s58 { cursor: pointer; font: 500 16px 'Space Mono', ui-monospace, monospace; fill: #FFEB8A; }
.hf-svg .hf-s59 { cursor: pointer; font-size: 13px; font-weight: 600; }
.hf-svg .hf-s60 { cursor: pointer; font: 500 16px 'Space Mono', ui-monospace, monospace; fill: #A3ADC8; }
.hf-svg .hf-s61 { font-size: 13.5px; font-weight: 600; }
.hf-svg .hf-s62 { font: 500 10.5px 'Space Mono', ui-monospace, monospace; fill: #FFC84A; }
.hf-svg .hf-s63 { font-size: 12.5px; font-weight: 600; }
.hf-svg .hf-s64 { cursor: pointer; font: 500 11.5px 'Space Mono', ui-monospace, monospace; fill: #3CF2D0; }
.hf-svg .hf-s65 { cursor: pointer; font: 500 11.5px 'Space Mono', ui-monospace, monospace; fill: #FFC84A; }
.hf-svg .hf-s66 { font-size: 13.5px; font-weight: 600; }
.hf-svg .hf-s67 { font: 500 11.5px 'Space Mono', ui-monospace, monospace; fill: #3CF2D0; }
.hf-svg .hf-s68 { cursor: pointer; font: 500 11.5px 'Space Mono', ui-monospace, monospace; fill: #9AA8BE; }
.hf-svg .hf-s69 { font: 500 28px 'Space Mono', ui-monospace, monospace; fill: #3CF2D0; }
.hf-svg .hf-s70 { font-size: 11.5px; fill: #9AA8BE; }
.hf-svg .hf-s71 { font-size: 11.5px; fill: #9AA8BE; }
.hf-svg .hf-s72 { paint-order: stroke; stroke: #05080F; stroke-width: 4px; stroke-linejoin: round; }
.hf-svg .hf-s73 { cursor: pointer; font-size: 11.5px; fill: #CFE3FF; }
.hf-svg .hf-s74 { cursor: pointer; font-size: 13px; font-weight: 600; fill: #3CF2D0; }
.hf-svg .hf-s75 { cursor: pointer; font-size: 11.5px; fill: #FFD98A; }
.hf-svg .hf-s76 { cursor: pointer; font-size: 11.5px; fill: #FF8FA8; }
.hf-svg .hf-s77 { cursor: pointer; font-size: 11.5px; fill: #FFC28A; }
.hf-svg .hf-s78 { cursor: pointer; font-size: 11.5px; fill: #9CC2FF; }
.hf-svg .hf-s79 { cursor: pointer; font: 500 10.5px 'Space Mono', ui-monospace, monospace; fill: #CFC6FF; }
.hf-svg .hf-s80 { cursor: pointer; font-size: 13px; font-weight: 600; fill: #CFC6FF; }
.hf-svg .hf-s81 { font-weight: 400; fill: #A9A2D6; }
.hf-svg .hf-s82 { cursor: pointer; }
.hf-svg .hf-s83 { paint-order: stroke; stroke: #05080F; stroke-width: 4px; stroke-linejoin: round; }
.hf-svg .hf-s84 { cursor: pointer; font-size: 11.5px; font-weight: 600; fill: #CFC6FF; }
.hf-svg .hf-s85 { cursor: pointer; font-size: 10.5px; fill: #9AA8BE; }
.hf-svg .hf-s86 { pointer-events: none; }
.hf-svg .hf-s87 { fill: none; stroke: #000000; stroke-opacity: 0; stroke-linecap: round; pointer-events: stroke; cursor: pointer; }
.hf-svg .hf-s88 { stroke-width: 60; }
.hf-svg .hf-s89 { stroke-width: 34; }
.hf-svg .hf-s90 { stroke-width: 12; }
.hf-svg .hf-s91 { stroke-width: 12; }
.hf-svg .hf-s92 { stroke-width: 14; }
.hf-svg .hf-s93 { stroke-width: 12; }
.hf-svg .hf-s94 { stroke-width: 26; }
.hf-svg .hf-s95 { stroke-width: 10; }
.hf-svg .hf-s96 { stroke-width: 14; }
.hf-svg .hf-s97 { stroke-width: 30; }
.hf-svg .hf-s98 { stroke-width: 14; }
.hf-svg .hf-s99 { stroke-width: 10; }
.hf-svg .hf-s100 { stroke-width: 10; }
.hf-svg .hf-s101 { stroke-width: 10; }
.hf-svg .hf-s102 { stroke-width: 10; }
.hf-svg .hf-s103 { stroke-width: 26; }
/* the queries to the accountant and the accountant feedback block (owner 2026-11-12, artboard M) */
.hf-svg .hf-q1 { stroke-width: 10; }
.hf-svg .hf-q2 { stroke-width: 7.6; }
.hf-svg .hf-q3 { cursor: pointer; font: 500 20px 'Space Mono', ui-monospace, monospace; fill: #FF9BE4; }
.hf-svg .hf-q4 { cursor: pointer; font: 500 20px 'Space Mono', ui-monospace, monospace; fill: #7FB2FF; }
.hf-svg .hf-q5 { cursor: pointer; font-size: 11px; font-weight: 600; }
.hf-svg .hf-q6 { cursor: pointer; text-decoration: underline; font: 500 11.5px 'Space Mono', ui-monospace, monospace; fill: #FF9BE4; }
.hf-svg .hf-q7 { cursor: pointer; font-size: 12.5px; font-weight: 600; fill: #FF9BE4; }
.hf-svg .hf-q8 { cursor: pointer; font: 500 10.5px 'Space Mono', ui-monospace, monospace; fill: #FF9BE4; }
.hf-svg .hf-q9 { stroke-width: 14; }
/* the Google Drive tile and the Drive refusal band (owner 2026-11-20) */
.hf-svg .hf-d0 { cursor: pointer; font-size: 11.5px; fill: #8DF5BE; }
.hf-svg .hf-d1 { cursor: pointer; font-size: 12px; font-weight: 600; }
.hf-svg .hf-d2 { cursor: pointer; font: 500 11px 'Space Mono', ui-monospace, monospace; fill: #8DF5BE; }
.hf-svg .hf-d3 { cursor: pointer; font: 500 9.5px 'Space Mono', ui-monospace, monospace; fill: #9AA8BE; }
.hf-svg .hf-d5 { fill: #000000; fill-opacity: 0; cursor: pointer; }
.hf-tip.at-driveref { left: 22.808%; top: 59.559%; transform: translate(-50%, 14px); }
.hf-tip.at-drive { left: 1.096%; top: 84.412%; transform: translate(0, calc(-100% - 14px)); }
.hf-svg .hf-r1 { cursor: pointer; font: 400 10px 'Space Mono', ui-monospace, monospace; fill: #9AA8BE; }
.hf-range, .hf-pw, .hf-period { font-family: 'Space Mono', ui-monospace, monospace; }
/* the runs (owner 2026-11-12): three neon boxes under the drawing */
.hf-runs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 6px; }
.hf-run { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 10px; background: #070B16; min-width: 0;
  border: 1.4px solid var(--hf-c); box-shadow: 0 0 14px color-mix(in srgb, var(--hf-c) 45%, transparent), inset 0 0 10px color-mix(in srgb, var(--hf-c) 12%, transparent); }
.hf-run-watch { --hf-c: #B7A9FF; } .hf-run-daily { --hf-c: #3CF2D0; } .hf-run-weekly { --hf-c: #FF6FD8; }
.hf-run-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.hf-run-title { font: 400 10.5px 'Space Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: #9AA8BE; }
.hf-run-state { font: 400 11px 'Space Mono', ui-monospace, monospace; color: #9AA8BE; white-space: nowrap; }
.hf-run-state.on { color: #3CF2D0; } .hf-run-state.late { color: #FFC84A; }
.hf-run-last { font-size: 15px; font-weight: 600; color: #E3EAF6; }
.hf-run-lines { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font: 400 12px 'Space Mono', ui-monospace, monospace; color: #CFD8E8; }
.hf-run-lines > span:only-child { grid-column: 1 / -1; color: #9AA8BE; }
.hf-run-lines .k { color: #9AA8BE; }
.hf-svg .hf-s104 { stroke-width: 12; }
.hf-svg .hf-s105 { stroke-width: 18; }
.hf-svg .hf-s106 { stroke-width: 14; }
.hf-tip.at-plans { left: 22.808%; top: 30.147%; transform: translate(-50%, 14px); }
.hf-tip.at-guard { left: 35.753%; top: 50.000%; transform: translate(14px, -50%); }
.hf-tip.at-accepted { left: 69.521%; top: 25.735%; transform: translate(-50%, 14px); }
.hf-tip.at-zohoref { left: 36.986%; top: 50.000%; transform: translate(14px, -50%); }
.hf-tip.at-retguard { left: 24.110%; top: 5.882%; transform: translate(-50%, 14px); }
.hf-tip.at-retzoho { left: 26.712%; top: 3.529%; transform: translate(-50%, 14px); }
.hf-tip.at-other { left: 22.808%; top: 60.294%; transform: translate(-50%, 14px); }
.hf-tip.at-reports { left: 22.808%; top: 69.118%; transform: translate(-50%, 14px); }
.hf-tip.at-problems { left: 48.630%; top: 77.941%; transform: translate(-50%, calc(-100% - 14px)); }
.hf-tip.at-skill { left: 67.466%; top: 49.412%; transform: translate(14px, -50%); }
.hf-tip.at-instr { left: 67.466%; top: 57.059%; transform: translate(14px, -50%); }
.hf-tip.at-code { left: 67.466%; top: 64.706%; transform: translate(14px, -50%); }
.hf-tip.at-setting { left: 67.466%; top: 72.353%; transform: translate(14px, -50%); }
.hf-tip.at-none { left: 67.466%; top: 80.000%; transform: translate(14px, -50%); }
.hf-tip.at-auto { left: 85.616%; top: 57.353%; transform: translate(-50%, calc(-100% - 14px)); }
.hf-tip.at-todecision { left: 77.740%; top: 73.529%; transform: translate(14px, -50%); }
.hf-tip.at-approved { left: 85.616%; top: 81.176%; transform: translate(-50%, calc(-100% - 14px)); }
.hf-tip.at-waiting { left: 76.712%; top: 76.176%; transform: translate(-50%, calc(-100% - 14px)); }
.hf-tip.at-clientloop { left: 20.274%; top: 75.000%; transform: translate(14px, -50%); }
.hf-tip.at-qsent { left: 32.192%; top: 88.235%; transform: translate(-50%, calc(-100% - 14px)); }
.hf-tip.at-tally { left: 85.616%; top: 56.471%; transform: translate(-50%, 14px); }
.hf-tip.at-monthcheck { left: 48.767%; top: 47.941%; transform: translate(-50%, 14px); }
.hf-tip.at-qauto { left: 71.233%; top: 77.941%; transform: translate(calc(-100% - 14px), -50%); }
.hf-tip.at-qbox { left: 18.767%; top: 44.118%; transform: translate(14px, -50%); }
.hf-tip.at-fbox { left: 18.767%; top: 44.118%; transform: translate(14px, -50%); }
.hf-tip.at-monitor { left: 49.863%; top: 42.647%; transform: translate(14px, -50%); }
.hf-tip.at-failedagain { left: 90.253%; top: 75.294%; transform: translate(calc(-100% - 14px), -50%); }
.hf-tip.at-ftr { left: 20.548%; top: 28.676%; transform: translate(14px, -50%); }
.hf-tip.at-loop { left: 58.904%; top: 95.588%; transform: translate(-50%, calc(-100% - 14px)); }
.hf-badge.b0 { left: 10.685%; top: 8.824%; width: 3.836%; }
.hf-badge.b1 { left: 31.507%; top: 8.824%; width: 3.836%; }
.hf-badge.b2 { left: 32.192%; top: 55.882%; width: 3.836%; }
.hf-badge.b3 { left: 76.712%; top: 51.471%; width: 3.836%; }
.hf-badge.b4 { left: 72.603%; top: 83.088%; width: 3.288%; }
.hf-badge.b5 { left: 94.863%; top: 61.765%; width: 3.836%; }

/* ── Admin → Problems (admin_problems.js; owner 2026-11-12): the watch's decision cards ─────────────────────────────── */
.pb-page { display: flex; flex-direction: column; gap: 14px; }
.pb-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.pb-top h2 { font-size: 17px; margin: 0; } .pb-top h3 { font-size: 16px; margin: 0; } .pb-top h4 { font-size: 14px; margin: 0; }
.pb-nt .pb-top .seg { margin-left: auto; }
.pb-id { color: var(--ink-3); font-size: 12px; }
.pb-label { font: 600 10.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.pb-today, .pb-nt { display: flex; flex-direction: column; gap: 10px; }
.pb-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pb-card { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 12px; }
.pb-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-1); border: 1px solid var(--line-1); border-radius: var(--radius-m); overflow: hidden; }
.pb-strip > div { background: var(--bg-soft); padding: 8px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13px; }
.pb-pf { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.pb-pf dd { margin: 0; }
.pb-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pb-opt { border: 1px solid var(--line-1); border-radius: var(--radius-m); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pb-opt.rec { border-color: var(--accent); }
.pb-opt p { margin: 0; }
.pb-tags { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; }
.pb-attrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; }
.pb-attr { display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border: 1px solid var(--line-1); border-radius: var(--radius-m); min-width: 0; }
.pb-attr span:last-child { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.pb-cq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 10px 12px; background: var(--info-soft); border-radius: var(--radius-m); }
.pb-cq > div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.pb-rec { margin: 0; }
.pb-acts { display: flex; flex-direction: column; gap: 8px; }
.pb-acts .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pb-btn { min-width: 64px; min-height: 34px; }
.pb-btn.pb-yes[aria-pressed="true"], .pb-btn.pb-a[aria-pressed="true"], .pb-btn.pb-b[aria-pressed="true"] { background: var(--good); border-color: var(--good); color: #fff; }
.pb-btn.pb-no[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: #fff; }
.pb-btn.pb-ask[aria-pressed="true"] { background: var(--info); border-color: var(--info); color: #fff; }
.pb-askbox { display: flex; flex-direction: column; gap: 6px; }
.pb-askbox textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; }
.pb-det { border-top: 1px solid var(--line-1); padding-top: 8px; }
.pb-det summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--accent); }
.pb-det-body { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 13px; }
.pb-det-body p { margin: 0; } .pb-det-body ul { margin: 0; padding-left: 18px; } .pb-det-body li { overflow-wrap: anywhere; }
.pb-list { display: flex; flex-direction: column; border: 1px solid var(--line-1); border-radius: var(--radius-m); overflow: hidden; }
.pb-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 9px 12px;
  background: var(--bg-1); border: 0; border-top: 1px solid var(--line-1); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pb-row:first-child { border-top: 0; }
.pb-row:hover { background: var(--bg-hover-1); }
.pb-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pb-row-title { font-weight: 600; }
.pb-row-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pb-empty { padding: 10px 12px; margin: 0; }
@media (max-width: 720px) {
  .pb-strip, .pb-cq, .pb-options { grid-template-columns: minmax(0, 1fr); }
  .pb-row { grid-template-columns: 48px minmax(0, 1fr); } .pb-row-chips { grid-column: 2; justify-content: flex-start; }
}

/* the Problems page's icons (owner 2026-11-12: "add some icons"): masks in the text colour, as the sidebar's */
.pb-ico { display: inline-block; width: 14px; height: 14px; flex: 0 0 auto; vertical-align: -2px; background: currentColor;
  -webkit-mask: var(--i) center / 14px 14px no-repeat; mask: var(--i) center / 14px 14px no-repeat; }
.pb-ico.lg { width: 18px; height: 18px; -webkit-mask-size: 18px 18px; mask-size: 18px 18px; }
.chip .pb-ico { width: 11px; height: 11px; margin-right: 4px; vertical-align: -1px; -webkit-mask-size: 11px 11px; mask-size: 11px 11px; }
.pb-ico.i-skill { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3.5h3.5V6a2 2 0 1 0 4 0V3.5H20V9h-2.5a2 2 0 1 0 0 4H20v7.5H4V15h2.5a2 2 0 1 0 0-4H4V3.5z'/%3E%3C/svg%3E"); }
.pb-ico.i-instructions { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4.5A1.5 1.5 0 0 1 6.5 3H19v15H6.5A1.5 1.5 0 0 0 5 19.5v-15zM5 19.5A1.5 1.5 0 0 0 6.5 21H19v-3M9 7h6M9 11h4'/%3E%3C/svg%3E"); }
.pb-ico.i-code { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5M14 4l-4 16'/%3E%3C/svg%3E"); }
.pb-ico.i-setting { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h9M17 6h3M4 12h3M11 12h9M4 18h11M19 18h1'/%3E%3Ccircle cx='15' cy='6' r='2'/%3E%3Ccircle cx='9' cy='12' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E"); }
.pb-ico.i-none { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E"); }
.pb-ico.i-decide { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.pb-ico.i-approved { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10 8.5v7l5.5-3.5z'/%3E%3C/svg%3E"); }
.pb-ico.i-shipped { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l3 3 5-6'/%3E%3C/svg%3E"); }
.pb-ico.i-no-change { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E"); }
.pb-ico.i-rejected { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9 9l6 6M15 9l-6 6'/%3E%3C/svg%3E"); }
.pb-ico.i-failed-again { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12a8.5 8.5 0 1 0 2.6-6.1L3.5 8.5M3.5 3.5v5h5M12 8v5M12 16h.01'/%3E%3C/svg%3E"); }
.pb-ico.i-folded { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3v6a6 6 0 0 0 6 6h6M15 12l3 3-3 3M6 21v-5'/%3E%3C/svg%3E"); }
.pb-ico.i-blocking { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3h8l5 5v8l-5 5H8l-5-5V8zM12 8v5M12 16h.01'/%3E%3C/svg%3E"); }
.pb-ico.i-around { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20v-6a4 4 0 0 1 4-4h10M15 6l4 4-4 4'/%3E%3C/svg%3E"); }
.pb-ico.i-not { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8' stroke-dasharray='3 3'/%3E%3C/svg%3E"); }
.pb-ico.i-question { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4V5zM10 9a2 2 0 1 1 3 1.7c-.6.4-1 .8-1 1.3M12 14.5h.01'/%3E%3C/svg%3E"); }
.pb-ico.i-search { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E"); }
.pb-kind { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pb-kind.k-skill { color: #B85C16; } .pb-kind.k-instructions { color: var(--info); } .pb-kind.k-code { color: var(--ink-1); }
.pb-kind.k-setting { color: var(--warn); } .pb-kind.k-none { color: var(--ink-3); }
.pb-tabs { margin-left: auto; }
.pb-group { display: flex; flex-direction: column; gap: 10px; }
.pb-group h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0; }
.pb-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.pb-filters .adm-field { min-width: 130px; }
.pb-filters .pb-search { min-width: 220px; flex: 1 1 220px; }
.pb-search-box { position: relative; display: flex; align-items: center; }
.pb-search-box .pb-ico { position: absolute; left: 9px; color: var(--ink-3); pointer-events: none; }
.pb-search-box .inp { padding-left: 30px; width: 100%; }
.pb-cell-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pb-cell-title .t { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ══ The redesign (owner 2026-11-12; design canvas "Accountant4 Dashboard Redesign") ══════════════════════════════════════
   A dark sidebar that keeps its labels inside a client; the client header as tabs (Instructions, Documents, Month checklist)
   above the month strip; the Clients home as rows; the instructions as formatted text; a visible handle on the Documents
   preview. The tables of the Month checklist and Documents (table.js) keep their columns, filters, views, sort and resizing. */
:root { --bg-0: #F4F3F0; --side-bg: #17191E; --side-line: #2A2D35; --side-ink: #C3C6CD; --side-mut: #8E929B; --side-on: #2A2D35;
        --accent-text: #9E4C0E; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-ink); }

/* the sidebar */
.side { background: var(--side-bg); border-right: 0; color: var(--side-ink); }
.logo { border-bottom: 0; padding: 18px 18px 12px; color: #FFFFFF; gap: 10px; }
.logo:hover { color: #FFFFFF; }
.logo-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); font-size: 11.5px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-mark { font: 600 15px var(--sans); letter-spacing: 0; color: #FFFFFF; }
.logo-ver { font: 400 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--side-mut); }
.user { padding: 10px 18px 14px; }
.avatar { background: #3A2A1E; border-color: #4A3626; color: #F2C79E; border-radius: 50%; }
.user-name { color: #FFFFFF; }
.user-role { color: var(--side-mut); }
.sec { padding: 8px 10px 4px; }
.sec-label { color: var(--side-mut); font-size: 10.5px; padding: 8px 10px 6px; }
.nav a { color: var(--side-ink); min-height: 38px; padding: 0 10px; gap: 12px; font-size: 14px; border-radius: 8px; }
.nav a:hover { background: #22252C; color: #FFFFFF; }
.nav a.on { background: var(--side-on); color: #FFFFFF; font-weight: 500; }
.nav a.on::before { left: 0; top: 8px; bottom: 8px; background: #E07A2E; }
.nav .ico[class*='i-'] { color: var(--side-mut); width: 17px; height: 17px; -webkit-mask-size: 17px 17px; mask-size: 17px 17px; }
.nav a:hover .ico[class*='i-'] { color: #FFFFFF; }
.nav a.on .ico[class*='i-'] { color: #F2A15E; }
.nav-count { background: #E07A2E; color: #17191E; font-weight: 600; }
.side-foot { border-top: 1px solid var(--side-line); }
.side-foot .who { color: var(--side-mut); }
.signout { color: var(--side-ink); min-height: 32px; }
.signout:hover { color: #FFFFFF; }

/* the client header: name, then the tabs, then the month strip, on one white band */
.wf { background: var(--bg-1); margin: 0 -32px 18px; padding: 0 32px; border-bottom: 1px solid var(--line-1); }
.wf-top { padding: 20px 0 10px; }
.wf-switch { font-size: 21px; min-height: 40px; }
.wf-strip { gap: 2px; padding-top: 0; margin: 0 -32px; padding-left: 32px; padding-right: 32px; border-bottom: 1px solid var(--line-1); margin-bottom: 0; }
.wf-sep { display: none; }
.wf-stage { flex: 0 0 auto; border: 0; border-radius: 0; padding: 0 16px; min-height: 46px; font-size: 14.5px; color: #55555B;
            border-bottom: 2px solid transparent; background: none; }
.wf-stage:hover { background: none; color: var(--ink-1); border-bottom-color: var(--line-2); }
.wf-stage.on { background: none; border: 0; border-bottom: 2px solid var(--accent); box-shadow: none; color: var(--ink-1); font-weight: 600; }
.wf-stage .ico { font-size: 14px; color: var(--ink-3); }
.wf-stage.on .ico { color: var(--accent); }
.wf-months { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 0 16px; }
.wf-monthnav { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.wf-step { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-1); color: var(--ink-2);
           display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.wf-step:hover { background: var(--bg-hover-1); color: var(--ink-1); }
.wf-cur { min-width: 148px; height: 38px; border-radius: 8px; background: var(--ink-1); color: #FFFFFF; font-weight: 600; font-size: 14px;
          display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; }
.wf-months .months { flex: 1 1 480px; min-width: 0; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding-bottom: 2px; }
/* each month a cell: its name over a bar coloured by the server's status word (done, open, none) */
.wf-months .month { flex: 1 0 58px; flex-direction: column-reverse; align-items: stretch; justify-content: center; gap: 6px; min-height: 42px;
                    padding: 0 8px; border: 0; border-radius: 8px; background: var(--bg-soft); color: #55555B; font-size: 12.5px; text-align: left; white-space: nowrap; }
.wf-months .month:hover { background: var(--bg-hover-1); color: var(--ink-1); }
.wf-months .month.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--accent); }
.wf-months .month::after { content: ""; display: block; height: 4px; border-radius: 2px; background: var(--line-1); order: -1; }
.wf-months .month .mdot { display: block; width: 100%; height: 4px; border-radius: 2px; }
.wf-months .month[data-status]::after { display: none; }
.wf-months .mdot.done { background: var(--good); } .wf-months .mdot.open { background: #D99A2B; } .wf-months .mdot.none { background: var(--line-1); }

/* the Clients home: rows */
.page-head .ccard-search { width: 280px; max-width: 100%; min-height: 40px; font-size: 14px; }
.cgrid { display: flex; flex-direction: column; gap: 0; background: var(--bg-1); border: 1px solid var(--line-1); border-radius: 12px; overflow: hidden; }
.ccard { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 0 12px 0 18px; min-height: 64px; border-bottom: 1px solid #EEEDEA; border-radius: 0; }
.ccard:last-child { border-bottom: 0; }
.ccard:hover { background: #FAF8F5; }
.ccard-ini { width: 36px; height: 36px; border-radius: 9px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
             font-weight: 600; font-size: 13px; background: #FBEADB; color: #7A3A0A; }
.ccard-ini[data-tint="1"] { background: #DCEFE6; color: #1D5A45; } .ccard-ini[data-tint="2"] { background: #E3E8F4; color: #2C4370; }
.ccard-ini[data-tint="3"] { background: #F4E1E2; color: #7E2A2E; } .ccard-ini[data-tint="4"] { background: #EFE7D3; color: #5E4A12; }
.ccard-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; color: var(--ink-1); overflow-wrap: anywhere; padding: 10px 0; }
.ccard-go { width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--ink-3); }
.ccard:hover .ccard-go { color: var(--accent-text); background: var(--bg-hover-1); }
@media (max-width: 760px) { .cgrid { grid-template-columns: none; } }

/* the instructions: one text, formatted to read; Read and Edit */
.ins-mode { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-2); border-radius: 9px; margin-left: auto; }
.ins-mode button { font: 500 13px var(--sans); min-height: 32px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: #55555B; cursor: pointer; }
.ins-mode button.on { background: var(--bg-1); color: var(--ink-1); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.ins-readwrap { display: grid; grid-template-columns: minmax(150px, 200px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .ins-readwrap { grid-template-columns: minmax(0, 1fr); } }
.ins-toc { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 12px; }
.ins-toc .caps { padding: 0 8px 6px; }
.ins-toc-item { font: 13.5px var(--sans); text-align: left; color: var(--ink-2); background: none; border: 0; border-radius: 6px; padding: 7px 8px; cursor: pointer; }
.ins-toc-item:hover { background: var(--bg-hover-1); color: var(--ink-1); }
.ins-toc-item.lvl1 { font-weight: 600; }
.ins-toc-item.lvl3 { padding-left: 20px; font-size: 13px; }
.ins-doc { max-width: 78ch; font-size: 14.5px; line-height: 1.65; color: #2E2E33; overflow-wrap: anywhere; }
.ins-doc .ins-p { margin: 0 0 12px; white-space: pre-line; }
.ins-doc .ins-ul { margin: 0 0 12px; padding-left: 22px; }
.ins-doc .ins-ul li { margin: 2px 0; }
.ins-doc strong { font-weight: 600; color: var(--ink-1); }
.ins-doc .ins-h { margin: 22px 0 8px; font-weight: 600; color: var(--ink-1); scroll-margin-top: 16px; }
.ins-doc .ins-h:first-child { margin-top: 4px; }
.ins-doc .ins-h1 { font-size: 19px; }
.ins-doc .ins-h2 { font-size: 17px; padding-top: 16px; border-top: 1px solid #EEEDEA; }
.ins-doc .ins-h2:first-child { padding-top: 0; border-top: 0; }
.ins-doc .ins-h3 { font-size: 15px; }
.ins-unsaved { color: var(--accent-text); }
.ins-panel textarea.ins-text { font-size: 13.5px; line-height: 1.7; padding: 14px 16px; }

/* the Documents preview: a handle you can see and drag */
.dc-splitter::after { left: 4px; width: 6px; top: 50%; bottom: auto; height: 56px; transform: translateY(-50%); border-radius: 3px; background: var(--line-3); }
.dc-splitter:hover::after, .dc-splitter:active::after { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* cards and tables: a little more air */
.card { border-radius: 12px; }
th { color: #66666C; font-size: 10.5px; }

@media (max-width: 760px) {
  .wf { margin: 0 -14px 14px; padding: 0 14px; }
  .wf-strip { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
}

/* inside a client the sidebar stays a rail of icons, so the Month checklist and Documents tables keep their width */
/* (not where the sidebar is a drawer: see "The phone" at the end) */
@media (min-width: 761px) and (min-height: 501px), (min-width: 1001px) {
  body.in-client .side { flex-basis: 56px; }
  body.in-client .side .logo { flex-direction: column; padding: 18px 0 14px; }
  body.in-client .side .logo-text, body.in-client .side .user > div, body.in-client .side .sec-label, body.in-client .side .nav a .txt,
  body.in-client .side .side-foot .who, body.in-client .side .signout .txt { display: none; }
  body.in-client .side .user { justify-content: center; padding: 14px 0; }
  body.in-client .side .nav a { justify-content: center; padding: 9px 0; }
  body.in-client .side .side-foot { align-items: center; padding: 12px 0; }
  body.in-client .side .nav a .nav-count { position: absolute; top: 2px; right: 4px; margin: 0; padding: 0 5px; min-width: 0; }
  body.in-client .side .nav a.on::before { left: -2px; }
}
.ins-doc code { font: 0.9em var(--mono); background: var(--bg-2); border-radius: 4px; padding: 1px 5px; }
.ins-doc ol.ins-ul { padding-left: 28px; }
.ins-doc .ins-ul li { margin: 6px 0; }
/* the instructions search */
.ins-search { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.ins-search-input { width: 100%; min-height: 42px; font-size: 14.5px; }
.ins-hits { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; border-top: 1px solid var(--line-1); }
.ins-hit { display: grid; grid-template-columns: 64px minmax(0, 200px) minmax(0, 1fr); gap: 4px 12px; align-items: baseline; text-align: left;
           font: 13.5px/1.5 var(--sans); color: var(--ink-1); background: none; border: 0; border-bottom: 1px solid #EEEDEA; padding: 9px 4px; cursor: pointer; }
.ins-hit:hover { background: #FAF8F5; }
.ins-hit-src { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ins-hit-sec { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-hit-line { overflow-wrap: anywhere; }
.ins-hit mark, .ins-doc mark { background: #FBE5CC; color: var(--ink-1); border-radius: 3px; padding: 0 2px; }
@media (max-width: 700px) { .ins-hit { grid-template-columns: minmax(0, 1fr); } }
.ins-flash { animation: ins-flash 1.6s ease-out; border-radius: 4px; }
@keyframes ins-flash { 0%, 30% { background: #FBE5CC; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .ins-flash { animation: none; background: #FBE5CC; } }

/* Help (#help, owner 2026-11-20): the accountants' guide in Russian */
.nav .ico.i-help { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6V14M12 17h.01'/%3E%3C/svg%3E"); }
.help { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.help-toc { display: flex; flex-wrap: wrap; gap: 6px; }
.help-sec { scroll-margin-top: 16px; line-height: 1.55; }
.help-sec h2 { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.help-sec p { margin: 8px 0; }
.help-steps, .help-list { margin: 8px 0; padding-left: 22px; }
.help-steps > li, .help-list > li { margin: 6px 0; }
.help-note { background: var(--bg-soft); border-left: 3px solid var(--line-3); padding: 8px 12px; border-radius: 4px; }
.help-code { background: var(--bg-2); padding: 8px 12px; border-radius: 6px; overflow-x: auto; white-space: pre; font: 12.5px var(--mono); margin: 8px 0; }
.help-sec code { font: 12.5px var(--mono); background: var(--bg-2); padding: 0 4px; border-radius: 3px; }
.help-code code { background: none; padding: 0; }
.help-fig { margin: 10px 0; }
.help-fig img { max-width: 100%; border: 1px solid var(--line-1); border-radius: 6px; }
.help-fig figcaption { font-size: 12.5px; margin-top: 4px; }
.help-table { overflow-x: auto; margin: 8px 0; }
.help-table table { border-collapse: collapse; width: 100%; }
.help-table th, .help-table td { border: 1px solid var(--line-1); padding: 6px 10px; text-align: left; vertical-align: top; }
.help-table th { background: var(--bg-soft); font-weight: 600; }
.help-codebox { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; }
.help-codebox .help-code { flex: 1 1 auto; margin: 0; min-width: 0; }
.help-copy { flex: 0 0 auto; white-space: nowrap; }

/* ── Clients & access (admin_access.js, owner 2026-11-20) ─────────────────────────────────────────── */
.ca-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.ca-stat { background: var(--bg-1); border: 1px solid var(--line-1); border-radius: var(--radius-l); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.ca-stat b { font: 600 28px/1.1 var(--sans); }
.ca-stat span { font-size: 12.5px; color: var(--ink-3); }
.ca-stat.good b { color: var(--good); }
.ca-stat.bad { border-color: color-mix(in oklab, var(--bad) 40%, var(--line-1)); } .ca-stat.bad b { color: var(--bad); }
.ca-stat.warn { border-color: color-mix(in oklab, var(--warn) 40%, var(--line-1)); } .ca-stat.warn b { color: var(--warn); }
.ca-sa { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--bg-1); border: 1px solid var(--line-1); border-radius: var(--radius-l); padding: 10px 14px; }
.ca-sa code { background: var(--bg-soft); padding: 2px 8px; border-radius: var(--radius-s); overflow-wrap: anywhere; }
.ca-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ca-find { flex: 1 1 220px; max-width: 340px; }
.ca-tbl table { min-width: 1080px; }
.ca-tbl td { vertical-align: top; }
.ca-name, .ca-drive, .ca-zoho, .ca-monthbox { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ca-people { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 260px; }
.ca-who { padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; background: var(--bg-1); white-space: nowrap; }
.ca-act { text-align: right; white-space: nowrap; }
.ca-months { display: flex; gap: 4px; }
.ca-m { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 34px; }
.ca-m b { display: block; width: 34px; height: 22px; border-radius: var(--radius-s); font: 500 11px/22px var(--mono); text-align: center; box-sizing: border-box; }
.ca-m span { font: 10px var(--mono); color: var(--ink-3); }
.ca-m.hi b { background: var(--st-zoho); color: #fff; }
.ca-m.mid b { background: var(--st-decided); color: var(--st-decided-ink); }
.ca-m.lo b { background: var(--good-soft); color: var(--st-decided-ink); }
.ca-m.none b { background: var(--bg-soft); color: var(--ink-3); }
.ca-m.gap b { background: var(--bg-1); color: var(--bad); border: 1px dashed var(--bad); line-height: 20px; }
.ca-fix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 10px; border-radius: var(--radius-m); font-size: 13px; max-width: 420px; background: var(--bg-soft); }
.ca-fix.bad { background: var(--bad-soft); } .ca-fix.warn { background: var(--warn-soft); }
.ca-fix > span { flex: 1 1 200px; }
.ca-split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.ca-main { flex: 999 1 520px; min-width: 0; }
.ca-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ca-step { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line-1); }
.ca-tick { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 600 12px var(--mono); background: var(--bg-2); color: var(--ink-3); }
.ca-tick.ok { background: var(--good); color: #fff; } .ca-tick.bad { background: var(--bad); color: #fff; }
.ca-bars { display: flex; flex-direction: column; gap: 6px; }
.ca-mo { display: grid; grid-template-columns: 80px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13px; }
.ca-mo.gap { color: var(--bad); font-weight: 600; }
.ca-track { height: 12px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.ca-mo.gap .ca-track { background: var(--bg-1); border: 1px dashed var(--bad); box-sizing: border-box; }
.ca-fill { height: 100%; background: var(--st-zoho); }
.ca-fill.w0 { width: 0%; }
.ca-fill.w1 { width: 5%; }
.ca-fill.w2 { width: 10%; }
.ca-fill.w3 { width: 15%; }
.ca-fill.w4 { width: 20%; }
.ca-fill.w5 { width: 25%; }
.ca-fill.w6 { width: 30%; }
.ca-fill.w7 { width: 35%; }
.ca-fill.w8 { width: 40%; }
.ca-fill.w9 { width: 45%; }
.ca-fill.w10 { width: 50%; }
.ca-fill.w11 { width: 55%; }
.ca-fill.w12 { width: 60%; }
.ca-fill.w13 { width: 65%; }
.ca-fill.w14 { width: 70%; }
.ca-fill.w15 { width: 75%; }
.ca-fill.w16 { width: 80%; }
.ca-fill.w17 { width: 85%; }
.ca-fill.w18 { width: 90%; }
.ca-fill.w19 { width: 95%; }
.ca-fill.w20 { width: 100%; }
.ca-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ca-list li { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-1); }
.ca-grid th[scope=row] { text-align: left; font-weight: 400; min-width: 200px; }
/* the grid scrolls in its own box (the sideways scrollbar stays in view), the names and the clients stay pinned; each
   person's name is written at 45 degrees so a column is only as wide as its square */
.ca-grid { max-height: calc(100vh - 230px); overflow: auto; border: 1px solid var(--line-1); border-radius: var(--radius-m); }
.ca-grid table { width: auto; border-collapse: separate; border-spacing: 0; }
.ca-grid { padding-right: 110px; }                    /* room for the last name, which leans out to the right */
/* the head row is sticky as a whole (one stacking context), so a leaning name is painted over its neighbours' background */
.ca-grid thead { position: sticky; top: 0; z-index: 2; }
.ca-grid thead th { background: var(--bg-1); vertical-align: bottom; }
.ca-grid th[scope=row] { position: sticky; left: 0; z-index: 1; background: var(--bg-1); }
.ca-grid thead th.ca-corner { position: sticky; left: 0; z-index: 3; vertical-align: bottom; min-width: 200px; }
.ca-ph { height: 132px; width: 44px; min-width: 44px; max-width: 44px; padding: 0 !important; vertical-align: bottom; white-space: nowrap; overflow: visible; }
.ca-ph > div { width: 44px; transform: translate(28px, -4px) rotate(-45deg); transform-origin: bottom left; }
.ca-ph > div > span { display: inline-block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; font: 500 12px var(--sans); color: var(--ink-2);
  text-transform: none; letter-spacing: 0; padding: 2px 6px; border-bottom: 1px solid var(--line-2); }
.ca-grid td.ca-cell-td { text-align: center; padding: 3px 2px; width: 44px; }
.ca-grid .ca-cell { width: 38px; height: 38px; }
.ca-cell { width: 40px; height: 40px; border-radius: var(--radius-m); border: 1px solid var(--line-2); background: var(--bg-1); color: #fff; font: 600 15px var(--mono); cursor: pointer; }
.ca-cell.on { background: var(--good); border-color: var(--good); }
.ca-cell.add { background: var(--good-soft); border: 2px solid var(--good); color: var(--good); }
.ca-cell.del { background: var(--bg-1); border: 2px dashed var(--bad); color: var(--bad); }
.ca-cell.lock { background: var(--bg-soft); border-style: dashed; cursor: not-allowed; }
.ca-save { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: var(--bg-1); border: 1px solid var(--line-1); border-radius: var(--radius-l); padding: 10px 14px; }

/* ══ The phone (owner 2026-11-20) ════════════════════════════════════════════════════════════════════════════════════════
   The sidebar is a drawer: a dark bar stays at the top with the menu button and the page's name, and the button slides the
   same sidebar in from the left (app.js setMenu). That holds under 760 px, and also on a phone turned on its side (up to
   1000 px wide and no more than 500 px high), where an open sidebar would take a quarter of the width; the bar is lower
   there. The tables and tabs change only under 760 px. Nothing here applies to a wider or a taller screen. */
:root { --bar-h: 52px; }
.mbar, .side-back { display: none; }
@media (max-width: 760px), (max-width: 1000px) and (max-height: 500px) {
  .mbar { display: flex; align-items: center; gap: 4px; position: sticky; top: 0; z-index: 50; height: var(--bar-h); padding: 0 6px;
          background: var(--side-bg); color: #FFFFFF; }
  .mbar-btn { width: 44px; height: min(44px, var(--bar-h)); flex: 0 0 auto; border: 0; border-radius: 8px; background: none; color: #FFFFFF; cursor: pointer;
              display: inline-flex; align-items: center; justify-content: center; }
  .mbar-btn:focus-visible { outline: 2px solid #F2A15E; outline-offset: -2px; }
  .mbar-ico { width: 20px; height: 2px; border-radius: 1px; background: currentColor; box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor; }
  .mbar-title { min-width: 0; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app { min-height: calc(100vh - var(--bar-h)); }
  .side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 66; flex: none; width: min(288px, 86vw); height: auto;
          transform: translateX(-100%); visibility: hidden; transition: transform .18s ease, visibility 0s .18s; }
  body.menu-open .side { transform: none; visibility: visible; transition: transform .18s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  body.menu-open { overflow: hidden; }
  .side-back:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(24, 24, 26, .45); }
  .nav a, .signout { min-height: 44px; }
  /* what sticks to the top of a wide screen would stick under the bar here */
  .ins-toc { position: static; }
  /* Report a problem: the round button without its words, so it covers less of the page */
  .rp-dock .txt { display: none; }
}
@media (min-width: 761px) and (max-width: 1000px) and (max-height: 500px) { :root { --bar-h: 40px; } }
@media (prefers-reduced-motion: reduce) { .side, body.menu-open .side { transition: none; } }
@media (max-width: 760px) {
  /* the three tabs of a client fit the width without their icons */
  .wf-stage { flex: 1 1 auto; justify-content: center; padding: 0 8px; font-size: 13.5px; }
  .wf-stage .ico { display: none; }
  /* the Month checklist and Documents tables: every column keeps a width it can be read at, and the table scrolls sideways
     inside its own box; the page itself never moves sideways. Widths are not dragged here (table.js: no column drag by touch). */
  .ct-box { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.ct-table { min-width: calc(var(--ct-cols, 8) * 108px); }
  .ct-grip { display: none; }
  .ins-head .chip { white-space: normal; }
}

/* The Control Tower in full screen (admin_flow.js `full`): the box of the drawing covers the whole screen, the drawing as
   large as fits (it is 1460 by 680, close to a phone on its side). Held upright, the box is turned a quarter, so the phone
   is turned to read it. A tooltip sits at the bottom middle there, at its own size. */
.hf-full, .hf-exit { display: none; }
@media (max-width: 760px), (max-width: 1000px) and (max-height: 500px) {
  .hf-full { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; font-weight: 600; min-height: 40px; padding: 0 14px;
             border: 1px solid #2A3550; border-radius: 8px; background: #070B16; color: #E3EAF6; cursor: pointer; }
  .hf-full:focus-visible, .hf-exit:focus-visible { outline: 2px solid #8FB8FF; outline-offset: 2px; }
  .hf-full-ico { width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 2px; box-sizing: border-box; }
}
.hf-scroll.hf-fs { --fs-w: 100vw; --fs-h: 100vh; position: fixed; inset: 0; z-index: 90; overflow: hidden; background: #03050A;
                   display: flex; align-items: center; justify-content: center; }
@supports (height: 100dvh) { .hf-scroll.hf-fs { --fs-w: 100dvw; --fs-h: 100dvh; } }
.hf-fs .hf-flow { flex: 0 0 auto; min-width: 0; width: min(var(--fs-w), calc(var(--fs-h) * 1460 / 680)); }
@media (orientation: portrait) {
  .hf-scroll.hf-fs { inset: auto; top: 0; left: var(--fs-w); width: var(--fs-h); height: var(--fs-w); transform-origin: 0 0; transform: rotate(90deg); }
  .hf-fs .hf-flow { width: min(var(--fs-h), calc(var(--fs-w) * 1460 / 680)); }
}
/* (the × stands left of the Zoho Books box, where the drawing is empty) */
.hf-fs .hf-exit { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 6px; right: 11%; z-index: 6; width: 40px; height: 40px;
                  font: inherit; font-size: 22px; line-height: 1; border-radius: 50%; border: 1px solid #2A3550; background: rgba(7, 11, 22, .85); color: #E3EAF6; cursor: pointer; }
.hf-fs .hf-flow .hf-tip { left: 50%; top: auto; bottom: 8px; transform: translateX(-50%); width: min(380px, 92%); max-height: 84%; overflow-y: auto; }
body:has(.hf-fs) { overflow: hidden; }
