/* The office (public/office.html), on top of staff.css: its colours, type and controls. The
   navigation is its own raised panel beside the page, Settings its own menu at the panel's foot
   (Roger, 21.10.2026: the left pane separate, a little more 3D, not flat). Depth comes from layered
   surfaces: the page backdrop, raised sheets for panels, and the navigation lifted highest. Below
   1000px the panel is a drawer behind the menu button. Chart colours checked with the dataviz
   validator (CVD and contrast) against each theme's card surface. */
:root{--chart-1:#1f5fbf;--chart-2:#c46a00;
  --backdrop:#e9ecf0;--sheet:var(--surface);--side-w:248px;
  --lift-1:0 1px 1px rgba(11,1,4,.04),0 2px 6px rgba(11,1,4,.06);
  --lift-2:0 1px 2px rgba(11,1,4,.05),0 6px 16px rgba(11,1,4,.07),0 16px 40px rgba(11,1,4,.06);
  --lift-3:0 2px 4px rgba(11,1,4,.06),0 12px 32px rgba(11,1,4,.12)}
@media screen{:root[data-theme=dark]{--chart-1:#5a8ee6;--chart-2:#c47612;
  --backdrop:#141922;
  --lift-1:0 1px 2px rgba(0,0,0,.3),0 2px 6px rgba(0,0,0,.25);
  --lift-2:0 1px 2px rgba(0,0,0,.35),0 8px 24px rgba(0,0,0,.35);
  --lift-3:0 2px 6px rgba(0,0,0,.4),0 16px 40px rgba(0,0,0,.45)}}

body.oshell{background:var(--backdrop)}
.shell{min-height:100vh}
.shell>.side{position:fixed;z-index:30;top:12px;bottom:12px;left:12px;width:var(--side-w);display:flex;flex-direction:column;
  background:var(--sheet);border:1px solid var(--edge);border-radius:14px;box-shadow:var(--lift-3);overflow:hidden}
.brand{display:block;padding:12px 20px 8px;border-bottom:1px solid var(--line);line-height:0}
.brand img{height:38px;width:auto}
.snav{flex:1;overflow-y:auto;padding:6px 10px;display:flex;flex-direction:column;gap:2px}
.snav a,.setnav a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-radius:8px;color:var(--ink);text-decoration:none;font-weight:700;font-size:.92rem}
.snav a{font-size:.96rem;padding:4px 12px;line-height:1.4}
.snav a:hover,.setnav a:hover{background:var(--fill)}
.snav a[aria-current=page],.setnav a[aria-current=page]{background:var(--accent-tint);color:var(--accent-ink);box-shadow:inset 3px 0 0 var(--accent)}
.ogroup{display:block;padding:14px 12px 4px;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--faint)}
/* the navigation's sections (Roger, 22.10.2026: "I want to see where Overview, Customers, and Reports
   start and end"): each a block with its heading, a hairline between blocks */
.snav{gap:0}
.nsec{display:flex;flex-direction:column;gap:1px;padding:2px 0 6px}
.nsec+.nsec{border-top:1px solid var(--line);padding-top:4px}
.nsec .ogroup{padding:6px 12px 2px;font-size:.74rem;color:var(--muted)}
.soon{font-size:.66rem;font-weight:800;color:var(--faint);text-transform:uppercase;letter-spacing:.05em}
.sfoot{border-top:1px solid var(--line);padding:8px 10px;display:flex;flex-direction:column;gap:4px;background:var(--fill)}
.sset{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:8px;color:var(--ink);font-weight:800;font-size:.92rem;text-decoration:none}
.sset svg{width:18px;height:18px;flex:none}
.sset:hover{background:var(--surface)}
.sset[aria-current=page]{background:var(--surface);color:var(--accent-ink);box-shadow:var(--lift-1)}
.me{position:relative;display:block}
.mebtn{width:100%;display:flex;flex-direction:column;align-items:flex-start;background:var(--surface);border:1px solid var(--edge);border-radius:8px;padding:8px 12px;text-align:left;box-shadow:var(--lift-1)}
.mebtn b{font-size:.88rem;color:var(--ink-strong);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mebtn span{font-size:.75rem;color:var(--muted);font-weight:700}
.me .mpop{top:auto;bottom:calc(100% + 8px);left:0;right:0;min-width:0}
.me .mpop #mtheme{display:block}
.mtop{display:none}
.main{min-width:0;padding:24px 28px 56px calc(var(--side-w) + 40px)}
.opane{min-width:0;max-width:1500px}
.opane h1{margin-bottom:4px;font-size:1.75rem}
.scrim{position:fixed;inset:0;background:rgba(11,1,4,.35);z-index:25}
@media(max-width:999px){
  .shell>.side{top:0;bottom:0;left:0;border-radius:0 14px 14px 0;transform:translateX(-105%);transition:transform .2s ease;width:min(300px,86vw)}
  .shell>.side.open{transform:none}
  .mtop{display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:20;background:var(--sheet);border-bottom:1px solid var(--edge);box-shadow:var(--lift-1);padding:8px 16px}
  .mtop .logo img{height:38px;width:auto}
  .mmenu{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;background:var(--surface);border:2px solid var(--control);border-radius:8px;padding:0}
  .mmenu svg{width:20px;height:20px}
  .mnow{margin-left:auto;font-weight:800;font-size:.9rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .main{padding:16px 16px 48px}
}
@media(prefers-reduced-motion:reduce){.shell>.side{transition:none}}
.testbar{position:relative;z-index:35}
/* The bars at the top of every office page (Roger, 25.10.2026: the beta banner), sticky; --bars-h is their
   height, set by office.html, so the panel, the phone's top bar and the pages' own sticky parts sit below. */
.obars{position:sticky;top:0;z-index:35}
.testbar.beta{font-size:.96rem;padding:7px 19px;line-height:1.4}   /* about 20% larger (Roger, 25.10.2026) */
/* The banner on a phone (audit E-M1, 30.10.2026: four lines, a quarter of the screen, on every page): one short
   line, and it scrolls away with the page; the sticky parts below then sit at the top. The desktop keeps the
   full sentence, in view. */
.beta-short{display:none}
@media(max-width:999px){
  .beta-long{display:none}
  .beta-short{display:inline}
  .testbar.beta{font-size:.72rem;padding:6px 12px;line-height:1.35}   /* one line from 375 points wide; a narrower phone wraps it, never cuts it */
  /* The test group's TEST bar is a safety cue: while it shows, both bars stay in view as before. */
  .obars:not(:has(#testbar:not([hidden]))){position:static}
  .oshell:not(:has(#testbar:not([hidden]))){--bars-h:0px}
  html:not(:has(#testbar:not([hidden]))){scroll-padding-top:0}
}
html{scroll-padding-top:var(--bars-h,0px)}
.shell>.side{top:calc(12px + var(--bars-h,0px))}
.oshell .bk-day,.oshell .mk-who{top:calc(16px + var(--bars-h,0px))}
@media(min-width:900px){.oshell .qcols .qtot{top:calc(16px + var(--bars-h,0px))}}
.oshell .qmain .qtside{top:calc(12px + var(--bars-h,0px))}
@media(max-width:999px){
  .shell>.side{top:var(--bars-h,0px)}
  .mtop{top:var(--bars-h,0px)}
}
@media(min-width:1000px){.previewing .shell>.side{top:calc(40px + var(--bars-h,0px))}}   /* below the Preview strip (public/preview.js) */

/* depth: panels are raised sheets on the backdrop */
.oshell .panel{border:1px solid var(--edge);border-radius:12px;box-shadow:var(--lift-2);background:var(--sheet)}
.oshell .qcard{border-radius:12px;box-shadow:var(--lift-1)}
.synced{color:var(--faint);font-size:.8rem;margin:0 0 14px}
.synced.stale{color:var(--accent-ink);font-weight:700}   /* lib/office.py freshness: what is old, and from when */
.ogrid{display:grid;gap:18px;align-items:start;grid-template-columns:minmax(0,1fr)}   /* minmax(0,…): a wide table scrolls in its panel, never the page (round H) */
@media(min-width:1200px){.ogrid.pair{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.ogrid>.panel+.panel{margin-top:0}
.opane>.panel+.panel{margin-top:18px}
.panel h2{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.more-link{display:inline-block;margin-top:10px;font-weight:800;font-size:.85rem;color:var(--ink-strong)}

/* Settings and Admin: their own list as tabs above the page at every width, kept at the top on scroll (round P,
   Roger 1.11.2026: the list's 200 px column squeezed Admin's pages). One row; on a narrow phone it scrolls sideways
   inside itself, never the page. */
.setframe{display:grid;gap:18px;grid-template-columns:minmax(0,1fr)}
.setnav{display:flex;flex-direction:row;flex-wrap:nowrap;gap:2px;overflow-x:auto;scrollbar-width:thin;background:var(--sheet);border:1px solid var(--edge);
  border-radius:12px;box-shadow:var(--lift-1);padding:6px;position:sticky;top:var(--bars-h,0px);z-index:15}
@media(max-width:999px){.setnav{top:calc(var(--bars-h,0px) + 57px)}}   /* below the phone's top bar */
.setnav .ogroup{display:none}   /* the name is the nav's label and the top bar's */
.setnav a{flex:none;white-space:nowrap}
.setnav a[aria-current=page]{box-shadow:inset 0 -3px 0 var(--accent)}
.setbody{min-width:0}

/* the figures strip: label over value, side by side, above a table or chart */
.figs{display:flex;flex-wrap:wrap;margin:0 0 18px;background:var(--sheet);border:1px solid var(--edge);border-radius:12px;box-shadow:var(--lift-1)}
.figs .fig{flex:1 1 160px;padding:12px 18px;border-left:1px solid var(--line);min-width:0}
.figs .fig:first-child{border-left:0}
.figs dt{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.figs dd{margin:2px 0 0;font-family:var(--head);font-weight:800;font-size:1.3rem;color:var(--ink-strong);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.figs .fig.bad dd{color:var(--accent-ink)}
.panel .figs{box-shadow:none;background:var(--fill);border-color:var(--line)}
/* the Income dashboard's leaks: one line each, the count first (round E, E-M8) */
.leaks{list-style:none;margin:0;padding:0}.leaks li{padding:8px 0;border-top:1px solid var(--line)}.leaks li:first-child{border-top:0}.leaks li.bad b{color:var(--accent-ink)}
@media(max-width:599px){.figs .fig{flex-basis:50%;border-left:0;border-top:1px solid var(--line)}.figs .fig:nth-child(-n+2){border-top:0}.figs .fig:nth-child(even){border-left:1px solid var(--line)}}

/* the one office table (office-table.js): fixed layout, headers over their data, numbers right */
.otools{display:flex;justify-content:flex-end;gap:8px;margin:0 0 8px}
.otable-wrap{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--sheet)}
.otable{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.9rem}
.otable th{background:var(--fill);text-align:left;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:9px 12px;vertical-align:bottom}
.otable td{padding:10px 12px;border-top:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
.otable .num{text-align:right;font-variant-numeric:tabular-nums}
.otable td.num{white-space:nowrap}
.otable tbody tr:hover{background:color-mix(in srgb,var(--fill) 60%,transparent)}
.otable tr.on,.otable tr.kcur{background:var(--fill)}
.otable tr.kcur{box-shadow:inset 3px 0 0 var(--accent)}
.otable tfoot td{font-weight:800;border-top:2px solid var(--edge)}
.otable a{color:var(--ink-strong);font-weight:800}
.otable .stack{display:block}
.otable .sub,.stack .sub{display:block;color:var(--muted);font-size:.8rem}
.sortbtn{background:none;border:0;padding:0;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer;text-align:inherit}
.sortbtn:hover{color:var(--ink-strong)}
.otable .dir{color:var(--accent-ink)}
.otable-box .more{max-width:240px;margin:12px auto 0}
.otable-box .quiet{border:1px solid var(--line);border-radius:10px;background:var(--sheet)}
.colpick{position:relative}
.colpick summary{list-style:none;cursor:pointer}
.colpick summary::-webkit-details-marker{display:none}
.colmenu{position:absolute;right:0;top:calc(100% + 6px);z-index:15;background:var(--surface);border:1px solid var(--edge);border-radius:10px;box-shadow:var(--lift-3);padding:8px;min-width:220px;display:flex;flex-direction:column}
.colmenu label{display:flex;gap:10px;align-items:center;padding:7px 8px;border-radius:6px;font-weight:700;font-size:.88rem;cursor:pointer}
.colmenu label:hover{background:var(--fill)}
.colmenu input{width:18px;height:18px;accent-color:var(--accent)}
.linkbtn{background:none;border:0;padding:6px 8px;color:var(--muted);font-weight:700;font-size:.84rem;text-decoration:underline;text-underline-offset:2px;text-align:left}
@media(max-width:799px){
  .otable thead{display:none}
  .otable,.otable tbody,.otable tfoot,.otable tr,.otable td{display:block;width:100%}
  .otable colgroup{display:none}
  .otable tr{border-top:1px solid var(--line);padding:10px 12px}
  .otable tbody tr:first-child{border-top:0}
  .otable td{border:0;padding:2px 0;text-align:left!important;white-space:normal!important}
  .otable td.none{display:none}
  .otable td:not(.lead)[data-l]::before{content:attr(data-l) " ";color:var(--muted);font-size:.78rem;font-weight:700}
  .otable td.lead{font-size:.95rem}
  .otable td.hl::before{content:none!important}
  .otable td.hl .cl{color:var(--muted);font-size:.78rem;font-weight:700}
}
.otable td .cl{display:none}
@media(max-width:799px){.otable td.hl .cl{display:inline}}

/* help(): a word or a button with what it means, on hover, focus or a tap (31.10.2026) */
.hlp{display:inline}
.hlp-l{font:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit;background:none;border:0;padding:0;margin:0;cursor:help;
  text-align:inherit;text-decoration:underline dotted;text-decoration-thickness:1px;text-underline-offset:3px}
.hlp-l .hlp-i{display:inline-block;margin-left:3px;text-decoration:none;font-size:.95em}
.hlp-l.hlp-only{text-decoration:none;min-width:28px;min-height:28px;padding:2px 4px;font-size:1rem;line-height:1;vertical-align:middle;color:var(--muted);border-radius:6px}
.hlp-l:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
.hlp-u{text-decoration:underline dotted;text-decoration-thickness:1px;text-underline-offset:3px}
.hlp-t{position:fixed;z-index:80;width:max-content;max-width:min(300px,calc(100vw - 16px));padding:10px 12px;background:var(--sheet);
  color:var(--ink);border:1px solid var(--edge);border-radius:10px;box-shadow:var(--lift-2);font:400 .86rem/1.45 var(--body);
  text-transform:none;letter-spacing:normal;white-space:normal;text-align:left;overflow-wrap:break-word}
.hlp-t[hidden]{display:none}
.hlp-w{display:block;white-space:pre-line}
.hlp-x{display:block;margin:8px 0 0 auto;padding:6px 12px;border:1px solid var(--edge);border-radius:8px;background:var(--fill);
  color:var(--ink-strong);font:700 .82rem/1 var(--body);cursor:pointer}
.hlp-x[hidden]{display:none}

/* the Overview's figures open their lists */
.figs .fig.press{cursor:pointer;border-radius:0;position:relative}
.figs .fig.press:hover{background:color-mix(in srgb,var(--fill) 70%,transparent)}
.figs .fig.press:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.figs .fig.press.on{background:var(--fill);box-shadow:inset 0 -3px 0 var(--accent)}
.figs .fig.press dt::after{content:" ›";color:var(--faint)}
.figs .fig.press.on dt::after{content:" ⌄"}
.tilelist{margin:0 0 18px}
.tl-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tl-head h2{margin:0}
.tl-head h2:focus{outline:none}
.tl-sum{margin:6px 0 12px;color:var(--muted);font-size:.9rem}
.days-note{margin:10px 0 0;color:var(--muted);font-size:.84rem}

/* hotkeys: the "?" overlay and Settings > Hotkeys */
.keyhelp{position:fixed;inset:0;z-index:60;background:rgba(11,1,4,.4);display:flex;align-items:flex-start;justify-content:center;padding:8vh 16px 16px;overflow:auto}
.keybox{background:var(--surface);border:1px solid var(--edge);border-radius:14px;box-shadow:var(--lift-3);padding:20px 22px;width:min(520px,100%)}
.keybox dl{margin:8px 0 12px}
.keybox dl div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid var(--line);font-size:.9rem}
.keybox dl div:first-child{border-top:0}
.keybox dd{margin:0;white-space:nowrap}
kbd{display:inline-block;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.8rem;font-weight:700;background:var(--fill);border:1px solid var(--edge);border-bottom-width:2px;border-radius:5px;padding:1px 7px;color:var(--ink-strong)}
.keylist{margin:6px 0 14px}
.keyrow{display:grid;grid-template-columns:minmax(0,1fr) 9em auto;gap:6px 14px;align-items:center;padding:9px 0;border-top:1px solid var(--line);font-size:.9rem}
.keyrow:first-child{border-top:0}
.keyrow .klabel{font-weight:700}
.keyrow.changed .klabel::after{content:" · changed";color:var(--muted);font-weight:400;font-size:.8rem}
.keyrow .kact{display:flex;gap:6px;align-items:center}
.keyrow .note{grid-column:1/-1}
.keyrow .note:empty{display:none}
.listen{color:var(--accent-ink);font-weight:800;font-size:.85rem}
.quiet-in{color:var(--faint)}
@media(max-width:599px){.keyrow{grid-template-columns:minmax(0,1fr) auto}.keyrow .kact{grid-column:1/-1}}
.howto{color:var(--muted);font-size:.86rem;margin:8px 0 0;max-width:72ch}

.pill{display:inline-block;border-radius:4px;padding:1px 8px;font-size:.75rem;font-weight:800;background:var(--fill);color:var(--muted);white-space:nowrap}
.pill.active{background:var(--ok-tint);color:var(--ok-ink)}
.pill.cancelled,.pill.failed,.pill.how-bank{background:var(--accent-tint);color:var(--accent-ink)}
.pill.suspended,.pill.unpaid,.pill.how-office{background:var(--warn-tint);color:var(--warn-ink)}
.smallbtn{background:var(--surface);color:var(--ink);border:2px solid var(--control);border-radius:6px;padding:5px 12px;font-weight:800;font-size:.82rem;white-space:nowrap}
.smallbtn:hover{border-color:var(--ink)}
/* The watermark (Roger, 25.10.2026): one word or phrase across the page area, diagonal, light and thin, the
   page readable and usable through it. Below the panel, the top bars, dialogs and drawers. Coming soon on
   Segments and the Ads dashboard, Not in use yet on Book a visit. */
.owm{position:fixed;top:var(--bars-h,0px);bottom:0;left:calc(var(--side-w) + 24px);right:0;z-index:10;pointer-events:none;user-select:none;
  display:flex;align-items:center;justify-content:center;overflow:hidden}
/* the shared one fades in once the page under it has drawn (office.html watermark) */
#owm{opacity:0;transition:opacity .4s ease}
#owm.on{opacity:1}
@media(prefers-reduced-motion:reduce){#owm{transition:none}}
.owm span{transform:rotate(-24deg);white-space:nowrap;font-family:var(--body);font-weight:400;letter-spacing:.04em;line-height:1;
  font-size:clamp(3rem,8vw,7.5rem);color:color-mix(in srgb,var(--ink) 20%,transparent)}
:root[data-theme=dark] .owm span{color:color-mix(in srgb,var(--ink) 22%,transparent)}
@media(max-width:999px){.owm{left:0}.owm span{font-size:clamp(2.2rem,12vw,4.5rem);transform:rotate(-30deg)}}
.smallbtn:disabled{color:var(--on-disabled);border-color:var(--edge);background:var(--disabled);cursor:default}
a.smallbtn{display:inline-block;text-decoration:none}
.ddacts{display:flex;flex-wrap:wrap;gap:6px;align-items:flex-start}
/* Stop a service sits in a .stack (its note goes under it): in the row it lines up with the other buttons (06.11.2026). */
.ddacts .stack{display:inline-block}
.otable .ddacts .stack>.smallbtn{margin:0}
/* Direct Debits (30.10.2026): Stop a service beside Cancel; Collect again under a failed collection, and its dialog */
.ddacts select{border:2px solid var(--control);border-radius:6px;background:var(--surface);color:var(--ink);font:inherit;font-weight:800;font-size:.82rem;padding:4px 8px;max-width:100%}
.otable .stack>.smallbtn{margin:4px 0 2px}
dialog.again .again-lines{display:flex;flex-direction:column;gap:8px;margin:8px 0}
dialog.again .again-lines label{display:flex;gap:10px;align-items:center;font-weight:700;font-size:.9rem}
dialog.again .again-lines input{width:18px;height:18px;flex:none;accent-color:var(--accent)}
dialog.again .again-total{font-weight:800;margin:4px 0 12px}
dialog.again p.again-note{font-size:.86rem;color:var(--muted)}
.note{font-size:.8rem;color:var(--accent-ink);font-weight:700}

.chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.chip{background:var(--surface);border:2px solid var(--control);border-radius:6px;padding:6px 12px;font-weight:800;font-size:.85rem;display:inline-flex;gap:8px;align-items:center}
.chip[aria-pressed=true]{background:var(--ink-strong);border-color:var(--ink-strong);color:var(--surface)}
.chip .count{font-size:.72rem}


.osearch{position:relative;max-width:720px;margin-bottom:16px}
.osearch input{width:100%;height:52px;padding:0 14px;border:2px solid var(--control);border-radius:var(--r);font:inherit;font-size:1rem;background:var(--surface);color:var(--ink)}
.osearch input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--focus)}
.hits{display:flex;flex-direction:column;gap:8px}
.hit{display:block;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r);padding:12px 14px;color:var(--ink);text-decoration:none}
.hit:hover{border-color:var(--ink)}
.hit b{color:var(--ink-strong)}
.hit span{display:block;color:var(--muted);font-size:.84rem}

.jobs-list details{border-top:1px solid var(--line);padding:10px 0}
.jobs-list details:first-child{border-top:0}
.jobs-list summary{cursor:pointer;font-weight:800;display:flex;gap:10px;flex-wrap:wrap;align-items:baseline}
.jobs-list summary .sub{font-weight:400;color:var(--muted);font-size:.85rem}
.notes{list-style:none;margin:8px 0 0;padding:0 0 0 12px;border-left:2px solid var(--line)}
.notes li{margin:0 0 8px;font-size:.9rem;white-space:pre-wrap;overflow-wrap:anywhere}
.notes time{display:block;color:var(--faint);font-size:.75rem;font-weight:700}
.contact{font-size:.9rem;margin:0 0 4px;overflow-wrap:anywhere}

/* charts: inline SVG, one axis, thin marks, the hover is a title on each mark */
.chart{width:100%;height:auto;display:block;overflow:visible}
.chart text{font-family:var(--body);font-size:11px;fill:var(--muted)}
.chart .grid{stroke:var(--line);stroke-width:1}
.chart .s1{fill:var(--chart-1)}.chart .s2{fill:var(--chart-2)}
.chart .l1{stroke:var(--chart-1);stroke-width:2;fill:none}
.chart .hitbox{fill:transparent}
.chart g:hover .bar{opacity:.8}
.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:.8rem;color:var(--muted);margin:6px 0 0}
.legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.legend .k1{background:var(--chart-1)}.legend .k2{background:var(--chart-2)}
details.tbl{margin-top:10px;font-size:.85rem}
details.tbl summary{cursor:pointer;color:var(--muted);font-weight:700}
.hbar{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,2fr) auto;gap:10px;align-items:center;font-size:.88rem;margin:0 0 8px}
.hbar .track{height:14px;background:var(--fill);border-radius:3px;overflow:hidden}
.hbar .track i{display:block;height:100%;background:var(--chart-1);border-radius:0 4px 4px 0}

/* Settings (public/office-settings.js): Permissions, Prices, Notifications, and the emailed code */
.pp{display:grid;gap:8px;padding:12px 0;border-top:1px solid var(--line)}
.pp:first-of-type{border-top:0}
@media(min-width:700px){.pp{grid-template-columns:minmax(0,1fr) auto;align-items:start}}
.pp.off{opacity:.65}
.pn b{color:var(--ink-strong)}
.pn small{display:block;color:var(--muted);font-size:.8rem}
.pn .mail{font-size:.84rem;color:var(--muted);overflow-wrap:break-word}
.pn input{width:100%;max-width:320px;height:40px;padding:0 10px;border:2px solid var(--control);border-radius:6px;font:inherit;background:var(--surface);color:var(--ink);margin-top:4px}
.pn .smallbtn{margin-top:6px}
.pp .chips{margin:0}
.chip:disabled{cursor:default;opacity:.85}
.pscroll{overflow-x:auto;margin:0 0 6px}
.pgrid{border-collapse:collapse;width:100%;font-size:.88rem}
.pgrid th{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:6px 8px;text-align:center}
.pgrid td{border-top:1px solid var(--line);padding:8px;text-align:center}
.pgrid td:first-child{text-align:left;font-weight:700}
.pgrid td small{display:block;font-weight:400;color:var(--muted);font-size:.78rem}
.pgrid input{width:20px;height:20px;accent-color:var(--accent)}
.codebox{margin-top:12px}
.codebox .to{font-size:.85rem;color:var(--muted);margin:4px 0 8px}
.code-in{font-family:ui-monospace,Menlo,Consolas,monospace!important;font-size:1.5rem!important;letter-spacing:.4em;max-width:220px}
.panel h3{font-size:.95rem;margin:16px 0 6px}
.panel ul{margin:0 0 6px;padding-left:20px;font-size:.9rem}
.svc-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:10px 0;border-top:1px solid var(--line);font-size:.92rem}
.svc-row:nth-child(2){border-top:0}
.svc-row .amt{font-weight:800;font-variant-numeric:tabular-nums;text-align:right}
.svc-row .nxt{grid-column:1/-1;color:var(--muted);font-size:.82rem}
details.hist{border-top:1px solid var(--line);padding:10px 0}
details.hist summary{cursor:pointer;font-weight:800}
details.hist table{width:100%;border-collapse:collapse;margin-top:8px;font-size:.88rem}
details.hist td{padding:6px 0;border-top:1px dashed var(--line)}
details.hist td small{color:var(--muted)}
details.hist .num{text-align:right;font-variant-numeric:tabular-nums;font-weight:700}
.two-f{display:grid;gap:0 12px}
@media(min-width:500px){.two-f{grid-template-columns:1fr 1fr}}
.net{color:var(--muted);font-size:.84rem;margin:-4px 0 6px;min-height:1em}
.field textarea{width:100%;padding:10px 13px;border:2px solid var(--control);border-radius:6px;font:inherit;background:var(--surface);color:var(--ink)}
.nt-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.nts{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.nt{position:relative;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r);padding:12px 14px 12px 30px;cursor:default;overflow-wrap:anywhere}
.nt .dot{position:absolute;left:12px;top:18px;width:8px;height:8px;border-radius:50%;background:transparent}
.nt.unread{cursor:pointer}
.nt.unread .dot{background:var(--accent)}
.nt p{margin:4px 0 0;font-size:.9rem;color:var(--ink)}
.nt .meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:6px;font-size:.8rem;color:var(--muted)}
.ty{border-top:1px solid var(--line);padding:12px 0}
.ty:first-child{border-top:0}
.ty-top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center}
.ty p{margin:4px 0 0;color:var(--muted);font-size:.88rem}
.sw{display:flex;gap:16px;align-items:center}
.sw label{display:flex;gap:6px;align-items:center;font-weight:700;font-size:.85rem}
.sw input{width:20px;height:20px;accent-color:var(--accent)}
/* services by amount, and a page per service */
.svcname,.svcname a{font-weight:800;color:var(--ink-strong)}
.cellbtn{background:none;border:0;padding:0;font:inherit;font-weight:800;color:var(--ink-strong);text-decoration:underline;text-underline-offset:2px;font-variant-numeric:tabular-nums;cursor:pointer}
.tools{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 12px}
.tools select,.ranges input{height:40px;border:2px solid var(--control);border-radius:6px;background:var(--surface);color:var(--ink);font:inherit;font-size:.9rem;padding:0 8px;max-width:100%}
.ranges .range{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;font-weight:700;color:var(--muted)}
.back{margin:0 0 6px;font-size:.88rem}
.back a{color:var(--muted);font-weight:700}
.legend .kgap{background:var(--accent);opacity:.25}
.chart .l2{stroke:var(--chart-2);stroke-width:2;fill:none}
.chart .gap{fill:var(--accent);opacity:.14}
.chart .now{stroke:var(--ink-strong);stroke-width:1;stroke-dasharray:3 3}
.chart .nowtxt{fill:var(--ink-strong);font-weight:800}
.chart .chipbg{fill:var(--ink-strong)}
.chart .chiptx{fill:var(--surface);font-weight:800;font-size:10px}
.chart .dur{fill:var(--ink-strong);font-weight:700}
.chart .cnt{fill:var(--muted)}
.chart .pbar{stroke:var(--chart-1);stroke-width:4;stroke-linecap:round}
.chart .pbar.cur{stroke:var(--chart-2)}
.chart .edge{stroke:var(--ink-strong);stroke-width:1.1;stroke-dasharray:3 4;opacity:.85}
.chart .phit{stroke:transparent;stroke-width:22;cursor:crosshair}
.chart .prange .hover{visibility:hidden}
.chart .prange:hover .hover,.chart .prange:focus .hover,.chart .prange.on .hover{visibility:visible}
.chart .prange:focus{outline:none}
.pwrap{padding-top:4px}

/* the bar at the top right: one search for the office and the notifications bell. On a phone it sits
   in the top bar beside the menu button. */
.otop{display:flex;justify-content:flex-end;margin:0 0 14px;max-width:1500px;min-height:42px}
.obar{display:flex;align-items:center;gap:10px}
.ofind{display:flex;align-items:center;gap:10px;height:42px;min-width:300px;padding:0 10px 0 12px;background:var(--sheet);border:1px solid var(--edge);border-radius:10px;box-shadow:var(--lift-1);color:var(--muted);font:inherit;font-size:.9rem;font-weight:700;cursor:text;text-align:left}
.ofind:hover{border-color:var(--control);color:var(--ink)}
.ofind svg,.fs-in svg{width:18px;height:18px;flex:none}
.ofind-t{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ofind kbd{font-size:.72rem}
.bell{position:relative}
.bellbtn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;background:var(--sheet);border:1px solid var(--edge);border-radius:10px;box-shadow:var(--lift-1);color:var(--ink)}
.bellbtn:hover{border-color:var(--control)}
.bellbtn svg{width:20px;height:20px}
.bub{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--accent);color:var(--on-accent);font-size:.7rem;font-weight:800;line-height:20px;text-align:center;box-shadow:0 0 0 2px var(--sheet)}
.bpop{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:min(380px,calc(100vw - 32px));background:var(--surface);border:1px solid var(--edge);border-radius:12px;box-shadow:var(--lift-3);padding:10px 12px 12px}
.bhead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 2px 8px;border-bottom:1px solid var(--line)}
.bhead b{color:var(--ink-strong)}
.blist{max-height:min(60vh,440px);overflow-y:auto}
.blist .quiet{margin:12px 2px}
.bitem{display:flex;gap:10px;align-items:flex-start;padding:10px 2px;border-top:1px solid var(--line)}
.bitem:first-child{border-top:0}
.bitem.bad{box-shadow:inset 3px 0 0 var(--accent);padding-left:10px}
.btext{flex:1;min-width:0;font-size:.88rem;overflow-wrap:anywhere}
.btext b{display:block;color:var(--ink-strong)}
.btext span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--ink)}
.btext time{display:block;color:var(--faint);font-size:.75rem;font-weight:700;margin-top:2px}
.bclear{flex:none;background:var(--surface);border:1px solid var(--edge);border-radius:6px;padding:3px 9px;font-size:.78rem;font-weight:800;color:var(--muted)}
.bclear:hover{border-color:var(--ink);color:var(--ink)}
.bmore{font-size:.8rem;color:var(--muted);margin:6px 2px 0}
.bpop .more-link{margin-top:8px}
dialog.fsearch{width:min(680px,calc(100vw - 24px));padding:0;margin-top:10vh;overflow:hidden}
dialog.fsearch::backdrop{background:rgba(11,1,4,.4)}
.fs-in{display:flex;align-items:center;gap:10px;padding:0 16px;border-bottom:1px solid var(--line);color:var(--muted)}
.fs-in input{flex:1;min-width:0;height:56px;border:0;background:transparent;color:var(--ink);font:inherit;font-size:1.05rem;outline:none}
.fs-res{max-height:min(60vh,520px);overflow-y:auto;padding:4px 8px 8px}
.fs-res:empty{display:none}
.fs-res .quiet{margin:14px 8px}
.fs-group h3{margin:10px 8px 4px;font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.fs-hit{display:block;position:relative;padding:8px 10px;border-radius:8px;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
.fs-hit b{display:block;color:var(--ink-strong);padding-right:84px}
.fs-hit span{display:block;font-size:.83rem;color:var(--muted)}
.fs-hit:hover,.fs-hit.on{background:var(--fill)}
.fs-hit.on{box-shadow:inset 3px 0 0 var(--accent)}
.fs-sm{position:absolute;top:8px;right:10px;font-size:.78rem;font-weight:800;color:var(--muted)}
.fs-help{margin:0;padding:8px 16px;border-top:1px solid var(--line);font-size:.78rem;color:var(--muted);background:var(--fill)}
@media(max-width:999px){
  .otop{display:none}
  .mtop .obar{margin-left:auto;gap:8px}
  .mtop .mnow{display:none}
  .ofind{min-width:0;width:42px;padding:0;justify-content:center;cursor:pointer}
  .ofind-t,.ofind kbd{display:none}
  .fs-help{display:none}
  dialog.fsearch{margin-top:12px}
}
/* Email log: a bounce's reason on hover */
.hover-why{cursor:help;text-decoration:underline dotted;text-underline-offset:2px}
dialog.msg-compose{width:min(720px,calc(100vw - 24px))}
#newMsg{width:auto;margin:0}
.msg-sent .filters{margin-bottom:12px}
/* Sign-ups inside the office: the sign-ups screen in a frame that fills the page below the bars */
.sframe{display:block;width:100%;border:0;background:transparent;margin-top:8px}
/* An email's state (office.html mail): the pills side by side, wrapping on a phone. */
.mailst{display:inline-flex;flex-wrap:wrap;gap:4px}
.mailst .pill[title]{cursor:help}
/* Settings > Manual and Technical appendix (office-manual.js): readable text on a phone, the contents first, a
   wide table scrolling inside its own box. */
.manual{max-width:46em;line-height:1.55;overflow-wrap:break-word}
.manual h2{margin:1.8em 0 .5em;padding-top:.6em;border-top:1px solid var(--edge);scroll-margin-top:90px}
.manual h3{margin:1.4em 0 .4em;scroll-margin-top:90px}
.manual h4{margin:1.1em 0 .3em}
.manual ul,.manual ol{padding-left:1.4em}
.manual li{margin:.25em 0}
.manual code{background:var(--fill);border-radius:4px;padding:0 4px;font-size:.92em}
.manual .mtoc{background:var(--sheet);border:1px solid var(--edge);border-radius:12px;padding:12px 16px;margin-bottom:8px}
.manual .mtoc ol{margin:.4em 0 0;columns:2 16em}
.manual .mtable{overflow-x:auto;margin:.8em 0}
.manual table{border-collapse:collapse;min-width:100%}
.manual th,.manual td{border:1px solid var(--edge);padding:6px 8px;text-align:left;vertical-align:top}
/* Customer clean-up: how to work the page, and one line under each choice saying what it does (audit E-H4) */
.cu-how{margin:4px 0 12px;max-width:72ch}
.cu-how p{margin:0 0 4px;color:var(--ink)}
.cu-opt{display:flex;flex-direction:column;gap:4px;flex:1 1 200px;max-width:300px}
.cu-opt .btn{width:100%}
.cu-means{margin:0;font-size:.82rem;color:var(--muted);line-height:1.35}
/* The customer page's hotkey hints mean nothing on a touch screen (audit E-M13) */
@media(hover:none) and (pointer:coarse){.cact kbd{display:none}}
/* Row buttons a thumb can hit on a phone: 44 points tall (audit E-L1) */
@media(max-width:800px){
  .oshell .otable .smallbtn,.oshell .na-act .smallbtn,.oshell .na-act a.smallbtn{min-height:44px;padding:8px 14px;display:inline-flex;align-items:center}
}

/* One person on Admin › People and activity and Admin › Permissions (round H): the name, login and email first, one
   line each, never covered; roles and buttons beside them, or under them when there is no room (a phone). */
.people-list{display:flex;flex-direction:column}
.person{display:flex;flex-wrap:wrap;gap:6px 16px;padding:12px 0;border-top:1px solid var(--line);align-items:flex-start}
.people-list>.person:first-child{border-top:0}
.person-who{flex:1 1 15em;min-width:0;display:flex;flex-direction:column;gap:1px}
.person-who b{color:var(--ink-strong)}
.person-who>span,.person-who .mailrow{color:var(--muted);font-size:.84rem;overflow-wrap:anywhere}
.person-who input{width:100%;max-width:320px;height:36px;padding:0 10px;border:2px solid var(--control);border-radius:6px;font:inherit;background:var(--surface);color:var(--ink);margin-top:4px}
.person-who .person-roles{color:var(--ink);font-weight:700;font-size:.8rem}
.person-side{flex:0 1 auto;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.person-side .chips{margin:0;gap:4px}
.person-side .rolechips .chip{padding:3px 10px;font-size:.78rem;min-height:0}
.person-below{flex:1 1 100%;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.person-below select{width:100%;max-width:420px;height:40px;padding:0 8px;border:2px solid var(--control);border-radius:6px;font:inherit;font-size:.86rem;background:var(--surface);color:var(--ink)}
.person-below .note{font-size:.78rem;color:var(--accent-ink)}
.person-below .pnotes{width:100%}
.person.off .person-who b{color:var(--faint)}
details.retired{margin-top:10px;border-top:1px solid var(--line);padding-top:8px}
details.retired summary{cursor:pointer;font-weight:700;padding:6px 0}
details.addperson{margin-top:10px}
details.addperson summary{cursor:pointer;font-weight:700;padding:6px 0}
@media(max-width:699px){.person-side{flex-basis:100%}}

/* Sign-ups: Include completed, above the filters (round H); the Completed pill greyed while they are hidden */
.pipe-done{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-weight:700}
.pipe-done input{width:18px;height:18px;accent-color:var(--accent);margin:0}
.chip.chip-hidden{color:var(--faint)}
.chip.chip-hidden .count{opacity:.6}
.chip .chip-note{font-weight:400;font-size:.76rem;margin-left:6px}

/* The customer page's booking link (round H item 7), at the foot of Direct Debits, marked Not in use yet */
.cbook{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.cbook-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bk-text{width:100%;margin:10px 0 6px;padding:10px 12px;border:2px solid var(--control);border-radius:6px;font:inherit;font-size:.88rem;background:var(--surface);color:var(--ink)}

/* Admin › Prices, How visits are offered (round M): the matrix scrolls inside its own box on a phone, never the page */
.vr{margin-top:18px}
.vr-unit{align-items:center;margin:4px 0 4px}
.vr-speed{display:block;margin:0 0 10px;color:var(--muted)}
.vr-wrap{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:8px}
.vr-table{border-collapse:collapse;min-width:820px;width:100%;font-size:.84rem}
.vr-table th,.vr-table td{padding:8px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.vr-table thead th{font-size:.76rem;color:var(--muted);white-space:nowrap}
.vr-name{min-width:150px;position:sticky;left:0;background:var(--surface);z-index:1}
.vr-name b{display:block}
.vr-grip{cursor:grab;color:var(--muted);margin-right:4px;float:left}
.vr-arrows{display:flex;gap:4px;margin-top:6px}
.vr-arrows .mini{padding:2px 9px}
.vr-row.vr-drag{opacity:.45}
.vr-row.vr-over{outline:2px dashed var(--accent);outline-offset:-2px}
.vr-cell{display:grid;gap:4px}
.vr-f{display:grid;grid-template-columns:5.2em minmax(4.5em,1fr);gap:4px;align-items:center;font-size:.74rem;color:var(--muted)}
.vr-f input,.vr-f select{width:100%;min-width:0;padding:4px 6px;border:2px solid var(--control);border-radius:6px;font:inherit;font-size:.82rem;background:var(--surface);color:var(--ink)}
.vr-f input::placeholder{color:var(--faint)}
.vr-save{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:12px}
.vr-save .okmsg,.vr-save .alert{margin:0}
/* What's new (office-whats-new.js), from the mockup Roger approved on 17.11.2026 (docs/mockups/whats-new.html) */
.wn-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.wn-col{max-width:720px}
.wn-h{font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--faint);margin:22px 0 4px}
.wn{padding:14px 0;border-top:1px solid var(--line)}
.wn-h+.wn{border-top:0}
.wn-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.wn-page{font-weight:800;color:var(--ink-strong);text-decoration:none}
.wn-page:hover{text-decoration:underline}
.wn-date{font-size:.8rem;color:var(--faint);font-variant-numeric:tabular-nums}
.wn.draft .wn-head .hlp-l{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--accent-ink);text-decoration:underline dotted;text-underline-offset:3px}
.wn-text{margin:4px 0 0;max-width:65ch;line-height:1.5}
.wn-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
.wn-foot>.hlp .hlp-l{font-size:.8rem;color:var(--muted);text-decoration:underline dotted;text-underline-offset:3px}
.wn-acts{display:flex;gap:8px;flex-wrap:wrap}
.wn-edit{display:grid;gap:10px}
.wn-edit textarea{width:100%;box-sizing:border-box;font:inherit}
.wn-row{display:grid;gap:10px;grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
@media(max-width:560px){.wn-row{grid-template-columns:1fr}}
.wn-edit .wn-acts{justify-content:flex-end}
