:root{
  /* Platinum Consultants brand palette (exact hex from PCA branding spec) */
  --blue:#004EFE; --blue-dark:#0038B8; --orange:#FF6D00; --orange-soft:#FFF0E5;
  --grey:#6A6667; --grey-mid:#C9C7C7; --grey-light:#F1F0F0; --blue-lt:#EAF0FF;
  --line:#E2E1E1; --ok:#18703F; --bg:#F7F6F5;
  --ink:#231F20; --muted:#625E5F;
  /* v3.1111.0 — the ink twins (see public/theme.css), so a page that loads only this file still has them. */
  --blue-ink:var(--blue); --accent-ink:var(--accent,var(--blue)); --blue-dark-ink:var(--blue-dark); --blue-2-ink:var(--blue-2,var(--blue));
  --orange-ink:#B24C00;
  /* v3.1119.0 — the brand scale ends here too (the full token set is in public/theme.css). */
  --b-500:#004EFE; --b-600:#0045E0; --b-700:#0038B8; --rad-in:10px; --rad:14px;
}
*{box-sizing:border-box}
/* v3.1119.0 — Inter, served from /fonts/inter/ (the @font-face is at the top of theme.css), then the
   system font. No Google Fonts: nothing goes to a third party to draw a page. */
body{margin:0;font-family:var(--font,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif);background:var(--bg);color:var(--ink);font-size:14px;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
/* ---- NO UNDERLINES, ANYWHERE (v3.405.0) -------------------------------------------------------
   Darren: *"All links or anything that we click on: no underline, please. Just remove it from all
   CSS."* One base rule kills the browser default on every link and its states; the class rules
   below no longer add one back on hover/focus. Link COLOUR is left to the theme (already blue /
   accent), so this changes the underline only, not the palette. */
a,a:link,a:visited,a:hover,a:focus{text-decoration:none}
/* ---- ONE FONT, EVERYWHERE (v3.387.0) ----------------------------------------------------------
   Darren: *"on the filter dropdowns, the font changes. Can we keep this as our standard font,
   please? … I want the fonts to be consistent, not flicking backwards and forwards."* Browsers give
   form controls their own font (a `select` and a date box in particular) unless told otherwise;
   this tells every one of them to use the page's. Sizes are set where each control is styled. */
input,select,textarea,button{font-family:inherit;color:inherit}
select,input[type="date"],input[type="time"],input[type="month"]{font-size:inherit}
h1{font-size:22px;margin:0 0 4px;letter-spacing:-.01em}
h2{font-size:var(--fs-lg,17px);margin:28px 0 10px;color:var(--ink);font-weight:700;letter-spacing:-.01em}
.lead{color:var(--muted);margin:4px 0 14px;max-width:760px}
.hint{font-weight:400;font-size:var(--fs-xs);color:var(--muted)}
code{background:var(--grey-light);padding:1px 5px;border-radius:4px;font-size:var(--fs-xs)}
/* v3.1110.0 (30 September 2026) — A LITERAL IS ONE LONG WORD, and it wraps rather than widening the page: a
   review link, an environment variable, an example key. Measured on a 390px phone: Phone & messages' Google
   review link at 473px, Keys and credentials at 437px. Only breaks where it would otherwise overflow. */
code{overflow-wrap:anywhere}

/* Topbar — PCA sandwich: blue band -> orange accent -> white body -> tabs */
.topbar{background:var(--panel);position:sticky;top:0;z-index:20;box-shadow:0 2px 10px rgba(0,42,140,.10)}
.band{width:100%}
.band-blue{height:7px;background:var(--blue)}
.band-orange{height:3px;background:var(--orange)}
.brandbar{display:flex;align-items:center;gap:16px;padding:12px 22px 10px}
.logo{height:52px;width:auto;display:block}
.brandtext{border-left:2px solid var(--grey-mid);padding-left:16px}
.brand-title{font-weight:800;font-size:19px;color:var(--blue-ink);letter-spacing:.2px;line-height:1.1}
.brand-sub{font-size:var(--fs-xs);color:var(--muted);margin-top:3px}
.tabs{display:flex;gap:5px;flex-wrap:wrap;padding:8px 16px;background:var(--grey-light);border-top:1px solid var(--line)}
.tab{display:inline-flex;align-items:center;gap:7px;background:transparent;border:none;color:var(--grey);padding:8px 14px;font-size:var(--fs-sm);cursor:pointer;font-weight:700;border-radius:var(--r);transition:transform var(--dur-1) var(--ease-out),background var(--dur-2) var(--ease-out),color var(--dur-2) var(--ease-out),box-shadow var(--dur-2) var(--ease-out)}
.tab .tab-ico{font-size:var(--fs-md);line-height:1;transition:transform var(--dur-2) var(--ease-out)}
.tab:hover{color:var(--blue-ink);background:var(--panel);transform:translateY(-2px);box-shadow:0 5px 14px rgba(0,42,140,.12)}
.tab:hover .tab-ico{transform:scale(1.25) rotate(-8deg)}
.tab.active{color:#fff;background:linear-gradient(135deg,var(--blue),var(--blue-dark));box-shadow:0 5px 14px rgba(0,42,140,.28)}
.tab.active .tab-ico{transform:scale(1.15)}
.tab.signout{margin-left:auto;color:var(--muted)}
.tab.signout:hover{background:#fde8e8;color:var(--danger);box-shadow:0 5px 14px rgba(192,57,43,.15)}
/* ---- A TAB DOES NOT SHRINK ON A PHONE (v3.287.0) ---------------------------------------------
   This made `.tab` SMALLER on mobile — 8px 14px down to 7px 10px — which is the one place it should
   grow. The finger is the same size on a phone; the screen is what got smaller. Padding is trimmed
   horizontally so the label still fits, and a min-height puts the tap area back. */
@media(max-width:640px){.brand-title{font-size:16px}.brand-sub{display:none}.logo{height:44px}
  .tab{padding:9px 10px;font-size:12.5px;min-height:40px}}

/* Layout */
main{max-width:none;margin:0;padding:20px 24px}
.view.hidden{display:none}
.hidden{display:none !important}
/* ---- THE PAGE HEADER IS THE BRAND BAND (v3.1119.0, 30 September 2026) ------------------------
   UI refresh v2, which Darren approved: every screen opens the same way — a breadcrumb, the title
   with its About, a one-line summary, and on the right the one primary action — on the brand
   gradient (#004EFE → #0038B8 → #002A8C; one step deeper in dark). It replaces the "← Back to…" line
   (the breadcrumb's parent IS that link) and the blue title on a grey page. public/ui.js
   `pageHeaderHtml()` writes the same markup for a screen that draws its own header. Everything inside
   is re-coloured for the blue below, so a figure, a status or a button in a head stays readable. */
.view-head{display:flex;justify-content:space-between;align-items:center;gap:12px 20px;flex-wrap:wrap;
  position:relative;background:var(--s-hero,linear-gradient(120deg,#004EFE,#0038B8 62%,#002A8C));color:#fff;
  border-radius:var(--rad-lg,20px);padding:20px 28px 22px;margin:0 0 var(--sp-5,24px);box-shadow:var(--sh-2,none)}
.view-head h1{color:#fff;font-size:var(--fs-2xl);font-weight:800;letter-spacing:-.02em;line-height:1.15}
.view-head .lead,.view-head p,.view-head .hint,.view-head .step-of{color:var(--s-hero-muted,#E3EBFF)}
.view-head .lead{font-size:var(--fs-md,14.5px);max-width:70ch;margin:6px 0 0}
.view-head a,.view-head .linkbtn{color:#fff}
.view-head .autosave,.view-head .save-status{color:#fff;background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.26)}
.view-head .btn:not(.primary){background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.28);box-shadow:none}
.view-head .btn:not(.primary):hover{background:rgba(255,255,255,.2);color:#fff;border-color:rgba(255,255,255,.4)}
/* The one attention action on a screen: orange, with INK text (white on #FF6D00 is 2.8:1). */
.view-head .btn.primary{background:var(--orange);border-color:var(--orange);color:#231F20;font-weight:700;box-shadow:0 2px 10px rgba(0,0,0,.18)}
.view-head .btn.primary:hover{background:#FF7A1A;border-color:#FF7A1A;color:#231F20}
.view-head .chip,.view-head .pill{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.26)}
.view-head select,.view-head input{color:var(--ink)}
/* The popped-open About sits on a card, so it takes the card's ink again. */
.view-head .lead.lead-folded.lead-open{color:var(--ink)}
.view-head .lead-open a,.view-head .lead-open .linkbtn{color:var(--accent-ink)}
.view-head .ph-sum{display:block;flex-basis:100%;margin:6px 0 0;color:var(--s-hero-muted,#E3EBFF);font-size:var(--fs-md,14.5px);max-width:70ch}
@media(max-width:640px){.view-head{padding:16px 18px 18px;border-radius:var(--rad,14px)}.view-head h1{font-size:22px}}
/* ---- BE EFFICIENT WITH SPACE (v3.387.0) ------------------------------------------------------
   Darren: *"Once you've been using the system for a long time, you don't need to be told what each
   thing does… have a pop-up to tell you. That should be a standing rule for every screen."*
   app.js `compactViewHead` folds each screen's description behind an About button on the title
   line and puts the back chip on that line too. The title row becomes one flex line; anything else
   in the head (a live figure, a status) keeps its own full-width row. */
.head-compact{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;position:relative}
.head-compact > :not(h1):not(.head-about):not(.area-back):not(.guide-link){flex-basis:100%}
.head-compact h1{margin:0}
.head-compact .area-back{margin:0;order:-1;flex-basis:100%;font-size:12.5px}
.head-about{border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:999px;
  padding:2px 10px;font:inherit;font-size:var(--fs-xs);cursor:pointer;line-height:1.5}
.head-about:hover,.head-about[aria-expanded="true"]{color:var(--ink);border-color:var(--blue)}
/* On the brand band the About pill is glass: white on 14% white over the blue. */
.view-head .head-about{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.28);align-self:center}
.view-head .head-about:hover,.view-head .head-about[aria-expanded="true"]{background:rgba(255,255,255,.24);color:#fff;border-color:rgba(255,255,255,.5)}
.lead.lead-folded{display:none}
/* The pop-up: the same paragraph, exactly as written, beneath the title until the next click. */
.lead.lead-folded.lead-open{display:block;position:absolute;top:100%;left:0;z-index:60;margin:6px 0 0;
  max-width:min(620px,calc(100vw - 48px));background:var(--panel);border:1px solid var(--line);
  border-radius:12px;padding:12px 14px;box-shadow:0 18px 50px rgba(35,31,32,.18);color:var(--ink);font-size:13.5px}
@media print{ .head-about{display:none} .lead.lead-folded{display:block;position:static;box-shadow:none;border:0;padding:0} }
.view-head-actions,.hero-actions,.row{display:flex;gap:10px;flex-wrap:wrap}
/* Tighter top/bottom padding and less gap between panels (v3.417.0, Darren's space pass) — the
   horizontal 18px stays so text does not touch the edge. */
/* ================================================================================================
   `hidden` MEANS HIDDEN (v3.588.0)
   ================================================================================================
   FOUND BY SCREENSHOTTING THE ENQUIRY RECORD, not by reading the code, and it had been shipped
   for four days. `.enq-wants-quoted{display:block; …}` is a CLASS rule, and the `hidden` attribute
   is enforced by the UA sheet as `[hidden]{display:none}` — an element selector. The class wins.
   So the quoted email thread, which v3.556.0 put behind a "Show all" button precisely because
   Darren sent a screenshot of *"a twelve-deep reply chain rendered as one unbroken wall of text"*,
   was on the screen the whole time. The button worked; the hiding never did.

   THIS FILE ALREADY CARRIED THE SAME BUG TWICE, patched one selector at a time
   (`.off-newmenu-list[hidden]`, `.inv-cat-item[hidden]`). Three instances of one mistake is not
   three mistakes, it is a missing rule — and every `hidden` in this app is set from JavaScript that
   means it, so there is nothing here that wants to be revealed by a class.

   Verified before adding: no stylesheet in public/ reveals a `[hidden]` element. */
[hidden]{display:none!important}
/* v3.1119.0 — ONE CARD: 14px radius, a hairline border, a soft shadow (UI refresh v2). A panel
   inside a panel, and .panel.sub, is a grey wash with no border (below, where .panel.sub lives). */
.panel{background:var(--panel);border:1px solid var(--s-line-2,var(--line));border-radius:var(--rad,14px);padding:16px 20px;margin:12px 0;box-shadow:var(--sh-1,none)}
.panel .panel{background:var(--s-sunk,var(--tint));border-color:transparent;box-shadow:none}
@media(max-width:640px){.panel{padding:14px 16px}}
/* ---- A PANEL'S FIRST HEADING DOES NOT ADD ITS OWN GAP (v3.586.0) --------------------------------
   Darren, 10 September 2026, on "What your membership includes": *"This area has too much padding
   at the top."* It is not padding — it is `h2{margin:28px 0 10px}` landing on top of the panel's own
   13px, so every panel whose first child is a bare <h2> opens with 41px of nothing. The panels built
   with `panelHead()` / `.enq-head` already zero it, which is why only some of them look wrong and
   the rest look deliberate. One rule, so the two kinds of panel finally agree. */
.panel > h2:first-child{margin-top:0}

/* Buttons */
.btn{background:var(--panel);border:1px solid var(--line);color:var(--ink);padding:9px 15px;border-radius:var(--rad-in,10px);cursor:pointer;font-size:13.5px;font-weight:600}
.btn:hover{border-color:var(--blue);color:var(--blue-ink)}
/* v3.1119.0 — primary is the brand blue with white text (5.96:1). Orange is the attention colour. */
.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.btn.primary:hover{background:var(--b-600,#0045E0);color:#fff}
.btn.ghost{background:transparent}
.btn.small{padding:6px 11px;font-size:12.5px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.file-btn{display:inline-flex;align-items:center}
.inline{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:var(--fs-sm)}

/* Hero rate */
.rate-hero{background:linear-gradient(120deg,var(--blue),var(--blue-dark));color:#fff;border-radius:var(--r);padding:24px 26px;margin-bottom:28px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.hero-label{text-transform:uppercase;letter-spacing:1px;font-size:var(--fs-xs);opacity:.85}
.hero-rate{font-size:44px;font-weight:800;line-height:1.1}
.hero-unit{font-size:18px;font-weight:500;opacity:.9}
.hero-note{opacity:.85;margin-top:4px;font-size:var(--fs-sm)}
.hero-actions .btn{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.3);color:#fff}
.hero-actions .btn:hover{background:rgba(255,255,255,.25)}
.hero-actions .btn.primary{background:var(--orange);border-color:var(--orange);color:#231F20}

/* Cards */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0}
.card{background:var(--panel);border:1px solid var(--s-line-2,var(--line));border-radius:var(--rad,14px);padding:16px;box-shadow:var(--sh-1,none)}
.card .k{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.card .v{font-size:var(--fs-2xl,28px);font-weight:800;letter-spacing:-.02em;margin-top:4px;color:var(--ink);font-variant-numeric:tabular-nums}

/* Tables */
.table-wrap{overflow:auto;border:1px solid var(--s-line-2,var(--line));border-radius:var(--rad,14px);background:var(--panel)}
/* ---- AN ERROR NOBODY CAN HEAR (v3.287.0) ------------------------------------------------------
   `.save-status` is where roughly every screen in this app puts "Saved", "That did not save" and
   "Enter a valid email". The wording was already good; it was simply invisible to a screen reader,
   because the text is swapped in with no announcement. `polite` rather than `assertive` on purpose:
   it waits for a pause rather than cutting across whatever is being read. */
.save-status{min-height:1.2em}
/* ---- TWO WORDS INSTEAD OF A HUNDRED AND TWENTY INLINE STYLES (v3.363.0) ----------------------
   Darren, 3 Sep 2026: *"Everything with consistent font and colours and simple easy to follow
   structure and layout."*

   The colours were already tokens — `var(--danger)`, `var(--orange)` — so nothing was the WRONG
   red. What was inconsistent is that the same declaration was written inline 120 times:

       style="color:var(--danger)"    86 times
       style="color:var(--orange)"    34 times

   Which is not a cosmetic problem. It is 120 places to change if the token ever moves, 120 chances
   for one of them to be `#d00` instead, and — the reason it matters most — a message whose colour
   is decided at the call site is a message nobody can restyle. Bold-and-red for a failure, and a
   quieter amber for a caution, are decisions about the PRODUCT, not about one line of one screen.

   Two classes, and a test that refuses the inline form coming back. */
/* ---- A NUMBER YOU CAN SEE IS A NUMBER YOU CAN RING (v3.368.0) --------------------------------
   Darren, 4 Sep 2026: *"mobile phones, work phones, emails, etc., are hard to read when they're blue
   and underlined. Maybe we can make them bold and put an icon next to it."*

   Three numbers on a row, all blue and underlined, are three identical links — you have to ring one
   to find out whether it is a desk or a mobile. The icon answers that before anybody dials, which is
   the part the underline never did.

   STILL A LINK: `tel:` and `mailto:` are what make it one tap on a phone, so only the paint changes.
   The colour stays on HOVER and FOCUS — a keyboard user must still be able to see where they are,
   and removing the affordance entirely would trade one problem for a worse one. */
.calls{display:inline-flex;align-items:baseline;gap:4px;color:var(--ink);font-weight:600;
  text-decoration:none;white-space:nowrap;margin-right:10px}
.calls:hover,.calls:focus-visible{color:var(--blue-ink)}
.calls-i{font-size:var(--fs-xs);opacity:.75;font-weight:400}
/* ---- TEXT THEM (v3.371.0) ---------------------------------------------------------------------
   It sits in the same run as the phone numbers and the email, so it takes the same shape — but it is
   a BUTTON, not a link, because it opens a message box on this server rather than handing the job to
   the reader's own phone. `border:0;background:none` is what stops the browser drawing it as a
   chunky form control in the middle of a line of contact details. */
.calls-btn{border:0;background:none;padding:0;cursor:pointer;font:inherit;font-weight:600}
.calls-btn:hover,.calls-btn:focus-visible{color:var(--blue-ink)}
/* ---- CALL, THROUGH OUR OWN PHONE (v3.395.0) ---------------------------------------------------
   A number is a link (so a mobile one-taps) with a small Call button beside it that rings through the
   softphone. Kept together on one non-breaking line so a number and its Call never wrap apart. */
.calls-line{display:inline-flex;align-items:baseline;gap:6px;white-space:nowrap;margin-right:10px}
.calls-line .calls{margin-right:0}
.calls-call{border:1px solid var(--line);background:var(--panel);border-radius:999px;padding:1px 9px;
  cursor:pointer;font:inherit;font-size:var(--fs-xs);font-weight:600;color:var(--blue-ink);white-space:nowrap}
.calls-call:hover,.calls-call:focus-visible{border-color:var(--blue);background:var(--blue-lt)}
.calls-call .calls-i{color:var(--blue-ink);opacity:1}
/* The NUMBER itself is a button that dials through our own phone (v3.403.0) — it looks like the number,
   stays selectable to copy, and carries no form-control chrome. */
.calls-num{border:0;background:none;padding:0;margin:0;font:inherit;font-weight:600;color:var(--ink);
  cursor:pointer;-webkit-user-select:text;user-select:text}
.calls-num:hover,.calls-num:focus-visible{color:var(--blue-ink)}
.calls-num .calls-i{font-size:var(--fs-xs);opacity:.75;font-weight:400}
/* Message sits beside Call as a matching pill (v3.403.0). */
.calls-msg{border:1px solid var(--line);background:var(--panel);border-radius:999px;padding:1px 9px;
  cursor:pointer;font:inherit;font-size:var(--fs-xs);font-weight:600;color:var(--blue-ink);white-space:nowrap}
.calls-msg:hover,.calls-msg:focus-visible{border-color:var(--blue);background:var(--blue-lt)}
.calls-msg .calls-i{opacity:1}
/* A website: bold with a web icon, no ugly blue underline; the underline appears only on hover (v3.403.0). */
.dir-web{display:inline-flex;align-items:baseline;gap:5px;color:var(--ink);font-weight:700;text-decoration:none}
.dir-web:hover,.dir-web:focus-visible{color:var(--blue-ink)}
.dir-web:hover .dir-web-t,.dir-web:focus-visible .dir-web-t{color:var(--blue-ink)}
.dir-web-i{font-size:var(--fs-xs);opacity:.85;font-weight:400}
/* The head office line in the at-a-glance block (v3.395.0). */
.dsum-addr{margin:4px 0 8px;font-size:13.5px}
.dsum-addr .calls-i{margin-right:2px}
/* Screen readers get the word the icon stands for; sighted readers get the icon. `.sr-only` already
   exists at the top of this file — a second copy of it here would be two rules to keep in step. */
/* The membership mark, wherever a member appears. Small, quiet, and never drawn for a row whose
   membership we could not establish — see edgeBadge. */
.edge-badge{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;
  background:var(--blue);color:#fff;font-size:10px;font-weight:800;letter-spacing:.04em;
  vertical-align:middle}
/* ---- THE NOTE ON AN INVOICE IS THE BIGGEST FIELD ON THE FORM (v3.373.0) ----------------------
   Darren: *"note on invoice full-width large rich-text."* It was a two-row textarea inside a 200px
   flex column — the smallest box on the form, for the one field the customer actually reads.

   Its own block OUTSIDE `.edge-form`, because inside it the editor would inherit that 200px basis
   and be exactly where it started. `.wide` would have fixed the width and not the height. */
.inv-note{margin:12px 0 4px}
/* `.rt` is already a full-width column flex in theme.css — this only has to stop the surrounding
   form from constraining it, and nothing here restates what the editor looks like. */
.inv-note .rt{width:100%;margin:0}

/* ---- WHO THE INVOICE IS FOR, PICKED RATHER THAN TYPED (v3.458.0) -----------------------------
   Darren: *"we must select a customer, and we must select a contact. I don't want to type in a
   manual email by default."*

   The block sits BETWEEN the terms row and the lines, because it is the first decision on the form
   and it used to be two text boxes lost in the middle of a flex row. Full width and its own panel
   so the picker's search results have somewhere to open without pushing the amounts around. */
.inv-who{margin:12px 0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;
  background:var(--panel-2)}
.inv-who>h4{margin:0 0 8px}
.inv-who .cp{margin:0 0 6px}
/* Every label in here is its own row at full width. `.edge-form` above is a flex row with a 200px
   basis and this block is deliberately OUTSIDE it (same reason as `.inv-note`) — but a bare <label>
   still lays its text and its control out inline, which measured as "It goes to" jammed against a
   half-width box. */
.inv-who label{display:block;margin:8px 0 0;font-weight:600}
.inv-who label input{display:block;width:100%;margin-top:4px;font-weight:400}
.inv-who label .hint{display:block;font-weight:400;margin-top:4px}
/* The read-only address reads as a FACT, not a field waiting for input — same treatment as any
   other derived value on a form. It stays selectable, because somebody will want to copy it. */
.inv-who #inv-email{background:var(--panel-2);color:var(--ink);cursor:default}
/* What is still missing, or where the address came from. One line, never two: this sits directly
   above the button and a paragraph here is a paragraph nobody reads. */
.inv-goesto{margin:4px 0 0;min-height:1.2em}

/* ---- SELECT SEVERAL RELEASES AND PUBLISH THEM (v3.372.0) --------------------------------------
   Darren: *"I want to be able to select all / multiple and click publish."* The bar sits above the
   table rather than below it, because the thing it acts on is what you are about to scroll through
   — a bulk control under 372 rows is a control nobody finds. */
.chg-bulk{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 4px;
  padding:9px 11px;border:1px solid var(--line);border-radius:var(--r);background:var(--panel-2)}
.chg-all{display:inline-flex;align-items:center;gap:7px;font-weight:700;font-size:var(--fs-sm)}
.chg-all input{width:auto;min-height:0}
/* The count and the caveat take the whole row under the buttons on a narrow screen rather than
   squeezing the buttons — a wrapped button with two words on the second line reads as broken. */
.chg-bulk>.hint{flex:1 1 100%;margin:0}
.chg-tick{width:34px;text-align:center}
.chg-tick input{width:auto;min-height:0;cursor:pointer}
.chg-tick input:disabled{cursor:not-allowed}

/* ---- CLICK THE ROW (v3.370.0) ----------------------------------------------------------------
   Darren: *"when searching for a customer, we should just be able to click it instead of needing to
   click 'Open' as a button."*

   The whole row is the target for a mouse. The Open button STAYS — a `<tr>` is not focusable and a
   row with a click handler announces itself to a screen reader as nothing at all — so the keyboard
   keeps a real control and the mouse gets the easy target. Both go through one handler.

   `cursor:pointer` on the row and nothing else: a hover tint that fights the zebra striping makes a
   table harder to read across, which is the one thing a results list has to be good at. */
.dir-rowopen{cursor:pointer}
.dir-rowopen:hover>td{background:var(--accent-soft)}
/* The links inside it keep their own cursor, because they do something different. */
.dir-rowopen a[href]{cursor:pointer}

/* ---- THE SUMMARY, WHICH IS WHAT COMES UP WHEN SOMEBODY RINGS (v3.370.0) ----------------------
   Darren: *"it should go to a customer summary screen only so that we can see: outstanding invoices
   / quotes / sessions booked / whether they're a member or not... This is also what we'll use when
   somebody calls in."*

   Tiles rather than a table, because this is read at a glance while somebody is talking. `auto-fit`
   with a floor means six tiles on a desk monitor and two on a phone with no breakpoint to maintain.

   THE VALUE IS THE BIGGEST THING IN THE TILE and the label is the smallest. On a table the label
   would be the column heading, read once; here every tile is read on its own, so the number has to
   win and the word has to be findable. */
.dsum-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;
  margin:10px 0 0}
/* v3.443.0 — six tiles on the customer summary: three and three, not four and an orphaned pair. The
   phone's compact card (four tiles) keeps the auto-fit above. */
.dsum-tiles.dsum-six{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:560px){.dsum-tiles.dsum-six{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* ---- AND THE SEVEN OF THEM ON ONE LINE (v3.568.0) -------------------------------------------
   Darren, of the open record: *"there's a lot of wasted space with the member outstanding
   'bookings'. They're taking up a lot of space. They pretty much could fit on one line."*

   MEASURED, before this change: seven tiles at three-per-row came out as THREE ROWS 287px wide
   each, 354px of panel for what is really one strip of numbers. `dsum-strip` is a flex row that
   wraps only when it has to — every tile takes an equal share of the line, and the floor (112px)
   is the width at which a five-figure dollar value and its label still fit. Tighter padding and a
   one-line sub, because the sub is a caption ("next 20 Sep", "2 invoices") and a caption that
   wraps to two lines costs the whole row its height twice over. */
.dsum-tiles.dsum-strip{display:flex;flex-wrap:wrap;gap:8px;grid-template-columns:none}
.dsum-strip .dsum-t{flex:1 1 112px;min-width:0;padding:6px 10px;gap:1px}
.dsum-strip .dsum-l{font-size:10.5px;letter-spacing:.03em}
.dsum-strip .dsum-v{font-size:15.5px;line-height:1.2}
/* The sub is one line and says so with an ellipsis, rather than silently pushing the row taller. */
.dsum-strip .dsum-sub{font-size:11px;max-width:100%;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.dsum-t{display:flex;flex-direction:column;gap:2px;align-items:flex-start;text-align:left;
  border:1px solid var(--line);border-radius:var(--r);background:var(--panel-2);padding:9px 11px;
  font:inherit;color:inherit}
button.dsum-t{cursor:pointer}
button.dsum-t:hover{border-color:var(--ink)}
.dsum-l{font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;
  font-weight:700}
.dsum-v{font-size:var(--fs-lg);line-height:1.25;font-weight:800}
/* THREE TONES, AND THE THIRD IS "WE COULD NOT CHECK" — not a fourth shade of grey. The tokens are
   the shared ones so light and dark can never disagree; a hand-typed hex here is how four different
   ambers ended up in app.js (see --warn in theme.css). Amber for unknown is deliberate: on a screen
   somebody reads out loud to a caller, "nothing owing" spoken when the read failed is the worst
   thing this app can do, so it must not be quiet grey. */
.dsum-v.dsum-good{color:var(--ok)}
.dsum-v.dsum-bad{color:var(--danger)}
.dsum-v.dsum-warn{color:var(--warn)}
/* 0401 — a tile that does not apply. Calm, not amber: "this customer has no login with us"
   is a fact about them, not something we failed at. Muted rather than invisible, because the
   dash still has to be legible as an answer. */
.dsum-v.dsum-none{color:var(--muted);font-weight:600}
.dsum-sub{font-size:11.5px;color:var(--muted);line-height:1.35}
/* Who to ring, above the tiles — the question on an inbound call. Wraps rather than scrolls: a
   number that has run off the side of a panel is a number nobody can read out. */
.dsum-whos{display:flex;flex-wrap:wrap;gap:6px 18px;margin:6px 0 0}
.dsum-who{display:inline-flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.dsum h3{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
/* The company name takes the slack; the record actions sit hard right (v3.414.0, v3.415.0). */
.dsum-head{display:flex;align-items:baseline;gap:12px}
.dsum-head h3{flex:1 1 auto;min-width:0}
.dsum-acts{flex:0 0 auto;display:flex;gap:6px;align-items:baseline;white-space:nowrap}
.dir-openwin,.dir-newenq{background:none;border:1px solid var(--line,#d7dde5);color:var(--blue-ink);
  border-radius:7px;padding:3px 9px;font-size:12.5px;cursor:pointer;white-space:nowrap}
.dir-openwin:hover,.dir-newenq:hover{background:var(--blue);color:#fff;border-color:var(--blue)}
/* The record's section chips sit just under the summary (v3.414.0). */
/* ---- AND THEY STAY THERE WHILE YOU SCROLL (v3.568.0) ----------------------------------------
   Darren wanted them second in the order *"so we can quickly scroll down to the bottom"* — which
   only works if they are still on screen once you have. MEASURED: at a scroll of 600px inside the
   record they had left the viewport entirely (top: -443px), so the record's own nav bar was
   reachable only by scrolling back up to it. Sticky to the top of the record's scroller, with the
   panel's own background behind them so the sections do not show through. */
.dir-secs{margin:2px 0 6px;position:sticky;top:0;z-index:3;background:var(--panel,#fff);
  padding:4px;width:auto}

/* Each kind of result says what it is, so three lists do not read as one long one. */
.dir-kind{margin:16px 0 6px;font-size:13.5px;color:var(--blue-ink)}
/* ---- THE NAME AND THE ABN ON ONE LINE (v3.369.0) ----------------------------------------------
   Darren: *"the ABN should be at the top next to the company name. Shorten the company name and
   stick the ABN to the right side."*

   The heading is a flex row: the name takes the room and the ABN is pushed to the right. The name is
   shortened HERE and not in JavaScript — cutting the string in code puts an ellipsis in a name that
   had plenty of room on a wide screen, and sends a truncated name to anything that copies the
   heading. `text-overflow` shortens only what genuinely does not fit; the full name stays in the DOM
   and in the tooltip. */
#dir-company > h3,
/* v3.380.0 — the SUMMARY heading is the one somebody reads first (it has sat above the record since
   v3.370.0) and it was not in this rule, so the ABN sat beside the name on the second heading and
   nowhere on the first. Both headings are built by dirCoHeadHtml and both are laid out here. */
#dir-summary > h3{display:flex;align-items:baseline;gap:12px}
/* The ABN goes to the RIGHT-HAND END, not merely after the name. `.dir-coname` takes the slack, so
   on a wide screen the two are at opposite ends of the line and on a narrow one the name truncates
   rather than pushing the number off the edge. */
#dir-company > h3 .dir-abn,
#dir-summary > h3 .dir-abn{margin-left:auto}
.dir-coname{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dir-abn{flex:0 0 auto;font-size:12.5px;font-weight:600;color:var(--muted,#5B6472);
  letter-spacing:.02em;white-space:nowrap}
.bad{color:var(--danger);font-weight:600}
.caution{color:var(--orange);font-weight:600}
table{border-collapse:collapse;width:100%;font-size:var(--fs-sm)}
th,td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
/* v3.1119.0 — ONE TABLE HEAD: sticky, quiet small caps in --muted on the card, a hairline under it. */
thead th{background:var(--panel);color:var(--muted);font-weight:700;position:sticky;top:0;z-index:2;
  font-size:11px;letter-spacing:.07em;text-transform:uppercase}
/* Zebra and hover on the ROW, not the cell, so a row that is coloured for a reason (tr.svc-off, a
   warning row) keeps its colour, and a cell that is coloured for a reason keeps its own. */
tbody tr:nth-child(even){background:var(--zebra)}
th.num,td.num,.num{text-align:right;font-variant-numeric:tabular-nums}
tbody tr:hover{background:var(--panel-2)}
.r{text-align:right}
table.mini{width:auto;background:var(--panel);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
table.mini td{border-bottom:1px solid var(--line)}
table.mini td:first-child{color:var(--muted)}
table.mini td:last-child{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
td.total{font-weight:700;color:var(--blue-dark-ink)}

/* Editable grids */
.grid-scroll{overflow:auto;max-height:70vh;border:1px solid var(--line);border-radius:var(--r);background:var(--panel);margin-top:12px}
/* :where(:not([type=checkbox])) — the tick boxes are lbox.css's to draw; see "NOT THE TICK BOXES" in theme.css. */
#emp-grid input:where(:not([type=checkbox])),table.editable input{width:100%;border:1px solid transparent;background:transparent;padding:5px 6px;border-radius:5px;font-size:var(--fs-sm);font-family:inherit}
#emp-grid input:where(:not([type=checkbox])):focus,table.editable input:focus{border-color:var(--blue);background:var(--panel);outline:none}
#emp-grid td,#emp-grid th{padding:3px 4px}
/* Employee grid alignment and column sizing live in theme.css, which loads after this
   sheet and therefore wins. Kept there in one place rather than split across both. */
/* ---- 0572, v3.828.0 — THE NAME AND POSITION BOXES FIT THE NAMES IN THEM ------------------------
   Darren: *"can you make the name expand the width to fit the names? How do we do that efficiently
   for names and positions?"* Not per input — auto-sizing each box is one forced reflow per row on
   every redraw. `--emp-name-ch` / `--emp-position-ch` are set ONCE on the table from the longest
   string in the data (see `empFitWidths`), and every box inherits them. Clamped at both ends there:
   short names must still leave a box worth typing in, and one 60-character title must not push the
   money columns off the screen. The px values are the floor for a browser without custom
   properties, which is also what an unset variable falls back to. */
#emp-grid td.namecol input{min-width:var(--emp-name-ch,130px);text-align:left}
#emp-grid td[data-col="position"] input{min-width:var(--emp-position-ch,150px);text-align:left}
#emp-grid td[data-col="labourType"] select{min-width:130px}
#emp-grid td[data-col="name"] input{min-width:var(--emp-name-ch,140px);text-align:left}
/* The order dropdown at the end of the group bar. */
.egb-sort{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted)}
.egb-sort select{font-size:12.5px;padding:3px 6px;border-radius:6px;border:1px solid var(--line);
  background:var(--panel);color:var(--ink)}
#emp-grid td[data-col="email"] input{min-width:200px;text-align:left}
.col-del{width:34px;text-align:center}
/* ---- THE TICK BOX IS THE PRODUCT, SO IT HAS TO BE TAPPABLE (v3.287.0) -----------------------
   16px against a WCAG 2.5.5 minimum of 24px, an Apple HIG of 44 and a Material 48. On Bulk Invoice
   Credit, Bulk Archive, the Catalogue Archiver and the Prebuild Updater the tick box IS the tool —
   a customer reviewing two hundred rows on a phone mis-taps constantly, and on those screens every
   mis-tap either archives something they meant to keep or spares something they meant to remove.

   The BOX grows to 22px and the CELL carries a 44px tap area, which is the part that actually
   matters: the finger does not have to land on the box, only in the cell. */
.col-chk{width:38px;text-align:center}
.col-chk input{width:22px;height:22px;cursor:pointer}
.col-chk{min-height:44px}
td.col-chk,th.col-chk{padding:4px 8px}
td.col-chk label,th.col-chk label{display:flex;align-items:center;justify-content:center;
  min-height:36px;margin:0}
.bulk-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--blue-lt);border:1px solid #D6E3FF;border-radius:var(--r);padding:10px 14px;margin:12px 0}
.bulk-bar .bulk-count{font-weight:800;color:var(--blue-dark-ink)}
.bulk-bar select,.bulk-bar input{padding:7px 9px;border:1px solid var(--line);border-radius:var(--r);font-size:var(--fs-sm);font-family:inherit;background:var(--panel)}
.bulk-lbl{color:var(--grey);font-size:var(--fs-sm);font-weight:600}
.bulk-hint{color:var(--muted);font-size:var(--fs-xs)}
.bulk-spacer{flex:1 1 auto}
.btn.danger,.btn.small.danger{background:#fbe9e9;color:var(--danger);border:1px solid #f1c9c9}
.btn.danger:hover,.btn.small.danger:hover{background:#f6d5d5}
/* P&L routing: green = add, red = remove, orange ring = the group's default choice. */
.btn.green{background:#1f8a4c;border-color:#1f8a4c;color:#fff}
.btn.green:hover{background:#1a6f3e;border-color:#1a6f3e;color:#fff}
.btn.red{background:var(--danger);border-color:var(--danger);color:#fff}
.btn.red:hover{background:#a63125;border-color:#a63125;color:#fff}
.btn.is-default{outline:2px solid var(--orange);outline-offset:2px;box-shadow:0 0 0 4px rgba(255,109,0,.22)}

/* Hidden columns */
.col-hidden{display:none !important}

/* Autosave indicator (top-right of a screen, replaces the old Save button) */
.autosave{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-sm);font-weight:700;color:#1f8a4c;background:#e9f8ef;border:1px solid #bfe6cd;padding:7px 12px;border-radius:var(--r);white-space:nowrap}
.autosave.saving{color:#8a6d1f;background:#fff6e0;border-color:#eddca0}
.autosave.error{color:var(--danger);background:#fdeeee;border-color:#f1c9c9}

/* Column show/hide popover */
#view-employees{position:relative}
.col-menu{position:absolute;right:0;top:64px;z-index:40;margin-top:6px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 14px 40px rgba(35,31,32,.16);padding:12px 14px;max-height:460px;overflow:auto;min-width:250px}
.col-menu-head{font-weight:800;color:var(--blue-dark-ink);margin-bottom:8px}
.col-menu-grp{margin-bottom:8px}
.col-menu-grp-t{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:800;margin:6px 0 3px}
.col-menu-item{display:flex;align-items:center;gap:8px;font-size:var(--fs-sm);padding:3px 4px;border-radius:var(--r);cursor:pointer}
.col-menu-item:hover{background:var(--blue-lt)}
.col-menu-item input{width:15px;height:15px}
.col-menu-foot{border-top:1px solid var(--line);margin-top:8px;padding-top:8px}

/* Percent / money cells: value reads like "100%" and "$42.00" */
.pct-cell,.money-cell{display:flex;align-items:center;width:100%}
.pct-cell .pct-input,.money-cell .money-input{flex:1;min-width:0;width:auto}
.pct-suffix{color:var(--muted);font-size:var(--fs-xs);font-weight:700;padding:0 4px 0 1px}
.money-prefix{color:var(--muted);font-size:var(--fs-xs);font-weight:700;padding:0 1px 0 4px}
/* v3.1180.0 — a worked-out figure on Your team: a salaried person's hourly rate, or the unused salary of an hourly one. */
#emp-grid input.pay-derived{color:var(--muted);background:var(--grey-light);cursor:help}

/* What-if planner */
.card-sub{display:block;font-size:var(--fs-xs);font-weight:600;color:var(--muted);margin-top:2px}
.card.card-good{background:#e9f8ef;border-color:#bfe6cd}
.card.card-good .v{color:#1f8a4c}
.card.card-bad{background:#fdeeee;border-color:#f1c9c9}
.card.card-bad .v{color:var(--danger)}
.whatif-row{display:flex;align-items:center;gap:18px;margin:10px 0;flex-wrap:wrap}
.whatif-row .wi-grp{display:inline-flex;align-items:center;gap:9px;flex-wrap:nowrap}
.whatif-row select,.whatif-row input{padding:8px 10px;border:1px solid var(--line);border-radius:var(--r);font-size:14px;font-family:inherit;background:var(--panel)}
.whatif-row select{min-width:150px}
.whatif-lbl{color:var(--muted);font-weight:600;white-space:nowrap}

/* Benchmark bar */
.bench-bar{position:relative;margin:24px 0 8px;height:46px}
.bench-band{position:absolute;top:8px;left:0;right:0;height:16px;border-radius:var(--r);background:linear-gradient(90deg,#bfe6cd,#ffe1c7,#f1c9c9)}
.bench-scale{position:absolute;top:28px;left:0;right:0;display:flex;justify-content:space-between;font-size:var(--fs-xs);color:var(--muted);font-weight:600}
.bench-you{position:absolute;top:-4px;transform:translateX(-50%);text-align:center}
.bench-you::after{content:"";display:block;width:3px;height:24px;background:var(--blue);margin:2px auto 0}
.bench-you span{background:var(--blue);color:#fff;font-size:var(--fs-xs);font-weight:800;padding:2px 7px;border-radius:var(--r);white-space:nowrap}

/* Zebra striping for every multi-row table (editable + read-only results) */
table.editable tbody tr:nth-child(even) td,
#d-emps tbody tr:nth-child(even) td,
#d-labour tbody tr:nth-child(even) td,
#d-simpro tbody tr:nth-child(even) td,
.asset-group .ag-items tr:nth-child(even) td{background:var(--panel-2)}
table.editable tbody tr:hover td,
#d-emps tbody tr:hover td,
#d-labour tbody tr:hover td,
#d-simpro tbody tr:hover td{background:var(--panel-2)}

/* Asset groups (headings that group assets) */
.asset-group{border:1px solid var(--line);border-radius:var(--r);background:var(--panel);margin:12px 0;overflow:hidden}
.asset-group-head{display:flex;align-items:center;gap:8px;background:var(--blue-lt);padding:8px 12px;border-bottom:1px solid var(--line)}
.asset-group-head .ag-name{font-weight:800;color:var(--blue-dark-ink);border:1px solid transparent;background:transparent;font-size:15px;font-family:inherit;padding:4px 6px;border-radius:var(--r);min-width:220px}
.asset-group-head .ag-name:focus{border-color:var(--blue);background:var(--panel);outline:none}
/* v3.1104.0 — Darren: "Can the total on the right be blue like the title?" Same blue as .ag-name. */
.asset-group-head .ag-total{margin-left:auto;font-weight:700;color:var(--blue-dark-ink)}
.asset-group .ag-items{width:100%;border-collapse:collapse}
/* Blue, like every other column heading in the app. This rule (0,2,1) outranked theme.css's
   `thead th{color:var(--accent-ink)}` (0,0,2), so the asset tables were the only grey headings
   on the page. Dropped the uppercase/letter-spacing too, so they read as the same kind of
   heading as the P&L tables rather than a different treatment that happened to be blue.
   Kept a notch smaller than the top-level tables — these sit inside a group card. */
.asset-group .ag-items th{font-size:var(--fs-xs);color:var(--accent-ink);font-weight:700;padding:6px 8px}
/* Same column model as the P&L tables — asset rows share cell()/removalRow(), so their
   headings must line up over the same data or the two sections look unrelated. */
.asset-group .ag-items th.c-label, .asset-group .ag-items th.col-drag{text-align:left}
.asset-group .ag-items td{padding:3px 8px}
.asset-group .ag-foot{padding:6px 10px}

/* Two-column results layout (build-up beside labour averages) */
/* ---- THE RESULTS GRID (v3.182.0) --------------------------------------------------------------
   Replaces `.results-2col`, which was `auto minmax(0,1fr)` with a 460px floor on the left. That
   shape decided the layout in advance: one column for the build-up table and one for everything
   else. The build-up is eight rows, so on a wide screen its column emptied out early and the rest of
   the page was squeezed beside a large blank space.
   `auto-fit` + `minmax` puts the decision back where it belongs — how many 360px columns actually
   fit. Phone: one. Laptop: two. Large monitor: three or four. `.wide` asks for two tracks and
   `.full` for all of them, both degrading to one track on a narrow screen because `span 2` on a
   one-track grid is simply the one track. No media query decides the count. */
.results-flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
  gap:20px 24px;align-items:start}
.results-flow > .rblk{min-width:0}                 /* a table must be allowed to shrink, not push */
.results-flow > .rblk > :first-child{margin-top:0}
.results-flow > .rblk.wide{grid-column:span 2}
.results-flow > .rblk.full{grid-column:1/-1}
/* ---- LABOUR RATE AVERAGES FITS ITS CARD (v3.1175.0) ------------------------------------------
   Darren, 14 Oct 2026, on the Overhead home table: *"Doesn't fit properly."* It was cut off and
   scrolled sideways inside a card with room to spare. The cause was the global
   `th,td{white-space:nowrap}`: the All field staff row carries a sentence ("Weighted by the hours
   each of them works it would be … this figure counts each person once") and nowrap made that one
   unbreakable line ~700px wide, so the Labour Type column took the card and pushed Avg 1.5× and
   Avg 2.0× out of sight. Words wrap now (the type column and the headings); figures do not, so a
   dollar amount is never split or clipped. On a phone the table can still be wider than the
   screen — `.table-wrap` is `overflow:auto`, so it scrolls inside its own box, never the page. */
#d-labour{width:100%;table-layout:auto}
#d-labour th{white-space:normal;vertical-align:bottom;line-height:1.25;padding:8px 10px}
#d-labour td{padding:9px 10px}
#d-labour td:first-child{white-space:normal;min-width:8.5em}
#d-labour td.r{white-space:nowrap;font-variant-numeric:tabular-nums}
/* ---- A SUMMARY OF A WIDE TABLE IS NOT PROSE (v3.377.0) ---------------------------------------
   Darren, 4 Sep 2026, on "What you actually charge" and "Where you sit": *"it looks like it's
   wrapping and not pushing all the way across in the first bit."* And on the snapshot panel: *"it's
   wrapping without going all the way across."*

   The cause is `.lead{max-width:760px}`, which is correct and should stay: 760px is a readable
   measure and a 2,000px line of body text is worse than a short one. But these particular lines are
   not body text — they are the one-sentence version of the seven-column table directly beneath them,
   full of figures, and capped at 760px above a table running the full page they read as truncated
   rather than as considered.

   So the cap is lifted only where the paragraph is a table's own headline, and only to 1180px —
   still a measure, not the viewport. `.rblk.full` covers the two panels Darren named; `.panel.wide`
   covers the benchmark and the snapshot comparison. */
.results-flow > .rblk.full > .lead,
.results-flow > .rblk.full > div > .lead,
.results-flow > .rblk.full > .hint,
.results-flow > .rblk.full > div > .hint{max-width:1180px}
/* Same rule, for a panel whose leads are figures rather than reading. Opt-in by class, never by
   default: most `.lead` text in this product genuinely is prose and needs the 760px measure. */
.panel-figures > .lead,.panel-figures > .hint{max-width:1180px}
@media(max-width:820px){
  .results-flow{grid-template-columns:1fr}
  .results-flow > .rblk.wide,.results-flow > .rblk.full{grid-column:auto}
}
.example-btns{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}

/* Modal overlay (Labour types editor) */
.modal-overlay{position:fixed;inset:0;z-index:80;background:rgba(35,31,32,.45);display:flex;align-items:flex-start;justify-content:center;padding:60px 16px;overflow:auto}
.modal{background:var(--panel);border-radius:var(--r);box-shadow:0 24px 70px rgba(35,31,32,.30);padding:22px 24px;width:100%}
.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
/* ---- FOUR COLUMNS SINCE 0133 -----------------------------------------------------------------
   The third is the Office / non-billable tick. `auto` rather than a fraction because the label is a
   fixed phrase and giving it a share of the width would steal it from the two that hold typing. */
.lt-head{display:grid;grid-template-columns:1fr 1fr auto 34px;gap:10px;font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);font-weight:800;margin:10px 0 4px}
.lt-row{display:grid;grid-template-columns:1fr 1fr auto 34px;gap:10px;align-items:center;margin:6px 0}
.lt-office{display:flex;align-items:center;gap:6px;font-size:var(--fs-sm);white-space:nowrap;cursor:pointer}
.lt-office input{width:auto}
/* The reason, where the dropdown would be. Not a disabled control: a greyed-out select still says
   "this is a thing you might want", and a rate mapping for work that is never sold never is. */
.lt-norate{font-size:12.5px;color:var(--muted);font-style:italic;padding:8px 2px}
.lt-row.is-office .lt-name{font-weight:700}
.lt-row input,.lt-row select{padding:8px 10px;border:1px solid var(--line);border-radius:var(--r);font-size:14px;font-family:inherit;background:var(--panel);width:100%}

/* Employee grid — grouped colour bands, per-row zebra, frozen Name + checkbox */
.hdr-i{font-size:8px;color:var(--muted);vertical-align:super;margin-left:2px}
#emp-grid thead th{cursor:help}
/* group header colours (Platinum-tinted; Days off = orange) */
#emp-grid thead th.grp-info{background:#F1F0F0;color:var(--blue-dark-ink)}
#emp-grid thead th.grp-work{background:#D6E3FF;color:var(--blue-dark-ink)}
#emp-grid thead th.grp-leave{background:#ffe1c7;color:#8a4b0a}
#emp-grid thead th.grp-oncost{background:#d7f0dc;color:#1f6b3a}
#emp-grid thead th.grp-allow{background:#ece0fb;color:#5b3a8a}
/* body: vertical group tint × horizontal zebra (two shades per group) */
#emp-grid tbody tr:nth-child(odd) td.grp-info{background:var(--panel)}
#emp-grid tbody tr:nth-child(even) td.grp-info{background:#F6F6F6}
#emp-grid tbody tr:nth-child(odd) td.grp-work{background:#F5F8FF}
#emp-grid tbody tr:nth-child(even) td.grp-work{background:#EAF0FF}
#emp-grid tbody tr:nth-child(odd) td.grp-leave{background:#fff4e9}
#emp-grid tbody tr:nth-child(even) td.grp-leave{background:#ffe9d5}
#emp-grid tbody tr:nth-child(odd) td.grp-oncost{background:#eff9f1}
#emp-grid tbody tr:nth-child(even) td.grp-oncost{background:#e2f4e6}
#emp-grid tbody tr:nth-child(odd) td.grp-allow{background:#f6eefc}
#emp-grid tbody tr:nth-child(even) td.grp-allow{background:#ecdef9}
/* frozen checkbox + name columns */
#emp-grid .col-chk{position:sticky;left:0;z-index:2}
#emp-grid thead .col-chk{position:sticky;left:0;top:0;z-index:6;background:#F1F0F0}
#emp-grid tbody tr:nth-child(odd) .col-chk{background:var(--panel)}
#emp-grid tbody tr:nth-child(even) .col-chk{background:#F6F6F6}
#emp-grid .col-name{position:sticky;left:34px;z-index:2;box-shadow:2px 0 0 rgba(0,42,140,.10)}
#emp-grid thead th.col-name{position:sticky;left:34px;top:0;z-index:6}
#emp-grid td.namecol input{min-width:120px}

/* v3.1119.0 — the orange bar that used to sit on every section heading is gone (UI refresh v2):
   orange now means "act here" — the one attention button or an urgent marker — and a bar on every
   heading taught people to ignore it. Headings are ink, set by weight and size alone. */
h2{border-left:0;padding-left:0}
.icon-btn{border:none;background:transparent;color:var(--muted);cursor:pointer;font-size:16px;padding:2px 6px;border-radius:5px}
.icon-btn:hover{background:#fde8e8;color:var(--danger)}
table.editable input{border:1px solid var(--line);background:var(--panel);width:110px}
table.editable td:first-child input{width:100%}

/* Editable cost tables: the column model is keyed by header class / data-key and lives
   in theme.css (which loads last, so it is the sheet that actually wins). Kept in one
   place on purpose — it used to be split, positional in one file and absent in the other,
   which is how the drag column ended up 567px wide. */
.save-status{color:var(--ok);font-weight:600;margin-top:8px}
/* 3.1206.0 — a status line that carries the failure by class (class="save-status bad"), not by an inline colour. */
.save-status.bad{color:var(--danger)}
.magic-line{color:var(--blue-ink);font-weight:700;font-size:15px;margin-top:8px}

/* Snapshots */
.snap-row{display:flex;justify-content:space-between;align-items:center;gap:14px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:13px 16px;margin-bottom:8px}
.snap-row b{font-size:15px;color:var(--blue-dark-ink)}
.snap-meta{font-size:12.5px;color:var(--muted);margin-top:2px}
.snap-actions{display:flex;align-items:center;gap:8px}
.snap-compare-pick select{padding:9px 12px;border:1px solid var(--line);border-radius:var(--r);font-size:14px;font-family:inherit;max-width:320px}
.delta-good{color:var(--ok);font-weight:700}
.delta-bad{color:var(--danger);font-weight:700}

/* Toggles */
.toggles{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px}
.toggle{display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:10px 12px}
.toggle input{width:18px;height:18px}
.toggle span{font-size:var(--fs-sm)}

/* Fields */
/* ---- THE FOURTH FIELD DESIGN, FOLDED IN (v3.372.0) -------------------------------------------
   `.field` is the oldest of the form-row classes and it had two faults, both of which Darren has
   now asked about twice.

   1. IT DID NOT LINE UP. `flex-direction:column` with no row rule means a caption carrying a hint
      pushes its box a line lower than the box beside it — the same fault `.bia-grid` was cured of
      in v3.360.0 and `.edge-form` in this release.

      IT CANNOT USE THE SAME THREE-ROW RULE, and that is worth writing down rather than looking
      like an oversight: a `.bia-grid` label has the caption and the hint as SIBLINGS, so a row can
      be reserved for the hint. A `.field` label nests the hint INSIDE the caption span, so there
      is nothing to give a row to. `1fr auto` does the same job from the other end — the caption
      row absorbs whatever slack the tallest field in the row has, and the box is pinned to the
      bottom. The boxes line up; the captions sit at the top of their own space.

   2. IT RESTATED WHAT A FIELD LOOKS LIKE. padding:9px 10px against the token's 9px 11px, and its
      own font-size — one pixel out, on every screen using it, for ever. Same fault as .bia-grid in
      v3.350.0 and .edge-form above. The look comes from the tokens in theme.css. */
.field{display:grid;grid-template-rows:1fr auto;gap:5px;max-width:320px;align-content:stretch}
.field span{font-size:var(--fs-sm);color:var(--grey);font-weight:600}
.field>input,.field>select,.field>textarea{grid-row:2;width:100%;min-width:0}

/* Wizard */
.wizard{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;margin-top:8px}
.wizard-steps{display:flex;flex-wrap:wrap;gap:6px;padding:16px 18px;border-bottom:1px solid var(--line);background:var(--grey-light)}
.wstep{font-size:var(--fs-xs);padding:5px 10px;border-radius:var(--r);background:var(--panel);border:1px solid var(--line);color:var(--muted)}
.wstep.active{background:var(--blue);color:#fff;border-color:var(--blue);font-weight:700}
.wstep.done{background:var(--orange-soft);color:#a8560a;border-color:var(--orange-soft)}
.wizard-body{padding:22px 24px;min-height:260px}
.wizard-body h3{margin:0 0 4px;color:var(--blue-dark-ink);font-size:18px}
.wizard-body .q{margin:16px 0}
.wizard-body label.q span{display:block;font-size:var(--fs-sm);color:var(--grey);font-weight:600;margin-bottom:5px}
/* NOT INSIDE AN ADOPTED SCREEN (v3.385.0): the real screens carry their own sizing, and this rule was stretching the Your-team bulk bar selects to the full width when the grid sat inside the Easy Start. */
.wizard-body input:not(.wiz-adopted *),.wizard-body select:not(.wiz-adopted *){padding:9px 10px;border:1px solid var(--line);border-radius:var(--r);font-size:14px;font-family:inherit;max-width:340px;width:100%}
.wizard-nav{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-top:1px solid var(--line);gap:12px}
.wiz-progress{color:var(--muted);font-size:var(--fs-sm)}
.wiz-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:720px}
/* The Easy Start crew step is the Your-team spreadsheet from person two onward (2026-08-24), so the
   old .wiz-emp-list / .wiz-emp-row / .wiz-emp-panel rules went with the Edit-Edit-Edit list they
   styled. What is left is the sizing the wizard's narrower column needs. */
.wizard .grid-scroll{max-height:52vh;margin-top:12px}
/* ---- THE STEP BOARD IS CLICKABLE (Darren, 2026-08-25: "Can the steps also be clickable please.")
   A chip you can use looks like it; a chip for a step you have not reached yet is dimmed and keeps the
   default cursor, because clicking it does nothing (see wizJump — the later steps are built out of the
   earlier answers). Cursor and opacity only: the chip's colour already carries where-you-are. */
.wstep.clickable{cursor:pointer}
.wstep.clickable:hover{border-color:var(--blue);color:var(--blue-dark-ink)}
/* ---- SAVE AS YOU GO — what happened to THIS step (Darren, 2026-08-25) -----------------------
   "I think each step should write as you go but it doesn't seem to." It does now, and the step says
   so. The failure state is loud on purpose: a step whose write did not land must not look like one
   that did, and it carries its own two ways out (see wizSaveNote). */
.wiz-save-note{margin:16px 0 0;padding:11px 14px;border-radius:var(--r);font-size:13.5px;line-height:1.55}
.wiz-save-note.ok{background:var(--grey-light);border:1px solid var(--line);color:var(--grey)}
.wiz-save-note.bad{background:#fdecea;border:1px solid #f5b7b1;border-left:5px solid var(--danger);color:#8e2419}
.wiz-save-note.bad b{color:#8e2419}
.wsn-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.wstep.active.clickable:hover{color:#fff}
.wstep.locked{cursor:default;opacity:.5}
/* ---- COPY AND MOVE IN THE EASY START CREW GRID (2026-08-25) ----
   `.wizard-body input{width:100%}` sits BELOW `.col-chk input{width:16px}` in this file, so without
   this the tick boxes stretch to the full column. Same trap as the third one recorded at #ic-grid:
   later rule wins on equal specificity, so the fix has to be more specific, not just written later. */
.wizard-body .col-chk input,.wizard-body .egh-chk input{width:22px;height:22px;max-width:22px}
/* ---- CREW/TEAM PARITY (Darren, 2026-08-25) ----
   "essentially the same as the 'Your Team' with moving up and down and selecting multiple and updating
   their data at the same time." Three things the crew grid's bar and first column now need.
   1. The ⠿ handle is a <span> inside a td, and `.wizard-body input{width:100%}` cannot reach it — but
      `.wizard-body td>*{width:100%}`-style rules elsewhere could, so the width is pinned here beside
      the tick-box rule above, for the same reason and against the same trap.
   2. The value box in the bar is an <input> inside .wizard-body, so it inherits width:100%. Its inline
      width:120px wins, but the SELECTS beside it have no inline width and would each stretch to the
      full bar; a bar of three full-width controls is three rows tall.
   3. The bar now carries eight controls, so it wraps — and a wrapped .bulk-spacer must not eat a whole
      row to itself. */
.wizard-body .wiz-bulk-bar select{width:auto;min-width:120px;max-width:230px}
.wizard-body .wiz-bulk-bar input{width:auto}
.wiz-bulk-bar .bulk-spacer{flex:1 1 0;min-width:0}
/* ---- SOMEBODY ON A LABOUR TYPE THAT NO LONGER EXISTS (2026-08-25) ----
   Marked, never silently reassigned and never left blank. The cell is flagged so the row it is in is
   findable at a glance in a crew of forty. */
.wiz-strays{background:#fff6ec;border:1px solid #ffd3ac;border-left:5px solid var(--orange);
  border-radius:var(--r);padding:12px 15px;margin:12px 0;color:#8a4b0a;font-size:14px}
.wiz-strays .hint{margin:6px 0 8px;color:#8a4b0a}
/* ---------------- Quirky wizard ---------------- */
.wizard{position:relative;border:2px solid var(--blue-lt);box-shadow:0 12px 34px rgba(0,42,140,.10)}
.wizard-steps{gap:8px;background:linear-gradient(180deg,#F5F8FF,#EAF0FF)}
.wstep{font-size:var(--fs-sm);padding:7px 13px;border-radius:var(--r);font-weight:700}
.wstep.active{background:var(--orange);border-color:var(--orange);color:#fff;box-shadow:0 4px 12px rgba(239,109,26,.35)}
.wstep.done{background:var(--panel);border-color:#D6E3FF;color:var(--blue-ink)}
.wizard-body{font-size:15px;padding:26px 30px}
.wizard-body h3{font-size:26px;line-height:1.15;margin-bottom:10px}
.wizard-body .lead{font-size:15px;max-width:760px}
.wizard-body input,.wizard-body select{font-size:16px;padding:11px 12px;border-radius:var(--r)}
.q.big input{font-size:22px;font-weight:700;padding:14px}
.q.big span{font-size:15px}

.wiz-steps-preview{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.wiz-steps-preview>div{display:flex;align-items:center;gap:10px;background:var(--blue-lt);border-radius:var(--r);padding:10px 14px;font-weight:600;color:var(--blue-dark-ink);font-size:var(--fs-md)}
.wiz-steps-preview span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--blue);color:#fff;font-size:var(--fs-sm);font-weight:800;flex:none}
/* Five steps in a two-column grid leaves a lone tile hanging; let it take the row. */
.wiz-steps-preview>div:last-child:nth-child(odd){grid-column:1/-1}

.wiz-tip{display:flex;gap:12px;align-items:flex-start;background:linear-gradient(180deg,#fff6ec,#ffeedd);border:1px solid #ffd3ac;border-left:5px solid var(--orange);border-radius:var(--r);padding:12px 15px;margin:14px 0;color:#8a4b0a;font-size:var(--fs-md);line-height:1.55}
.wiz-tip-emoji{font-size:22px;line-height:1.2}
/* v3.1110.0 — the text beside the emoji may carry one long unbroken word (an environment variable, a key
   name, a command); it wraps inside the tip rather than pushing the page sideways on a phone (Keys and
   credentials' "The vault is locked", measured at 481px on 390). */
.wiz-tip>div{min-width:0;overflow-wrap:anywhere}
.wiz-tip b{color:#7a3f06}

.wiz-group{background:var(--grey-light);border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;margin:14px 0}
.wiz-group-title{font-size:16px;font-weight:800;color:var(--blue-dark-ink);margin-bottom:14px;letter-spacing:.2px}

.sci-overlay{position:absolute;inset:0;background:rgba(255,255,255,.94);backdrop-filter:blur(3px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;z-index:50;border-radius:var(--r)}
.sci-emoji{font-size:66px;animation:sci-bounce 1.1s ease-in-out infinite}
.sci-msg{font-size:var(--fs-xl);font-weight:800;color:var(--blue-ink);text-align:center;max-width:80%}
@keyframes sci-bounce{0%,100%{transform:translateY(0) rotate(-10deg)}50%{transform:translateY(-16px) rotate(12deg)}}
@media(max-width:620px){.wiz-steps-preview{grid-template-columns:1fr}}

.stage-badge,.badge{display:inline-block;background:var(--orange-soft);color:#a8560a;font-weight:700;font-size:var(--fs-xs);padding:4px 11px;border-radius:var(--r);margin-bottom:10px}
.muted{color:var(--muted)}

/* ---------------- Home / welcome ---------------- */
.home-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;background:linear-gradient(125deg,var(--blue),var(--blue-dark));border-radius:var(--r);padding:28px 30px;color:#fff;box-shadow:0 12px 30px rgba(0,42,140,.18)}
.home-hero-inner{display:flex;align-items:center;gap:22px;min-width:280px}
.home-logo{height:92px;width:auto;background:#fff;border-radius:var(--r);padding:10px;box-shadow:0 6px 16px rgba(0,0,0,.15)}
.home-greeting{font-size:14px;letter-spacing:.5px;text-transform:uppercase;opacity:.85}
.home-title{font-size:30px;font-weight:800;margin:2px 0 6px;color:#fff;line-height:1.1}
.home-sub{margin:0;opacity:.9;max-width:520px;font-size:var(--fs-md)}
.home-rate{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:var(--r);padding:16px 22px;text-align:center;min-width:190px}
.home-rate-label{font-size:11px;text-transform:uppercase;letter-spacing:1px;opacity:.85}
.home-rate-value{font-size:34px;font-weight:800;line-height:1.2}
.home-rate-sub{font-size:var(--fs-xs);opacity:.85}

.home-banner{margin:16px 0 4px;padding:12px 16px;border-radius:var(--r);font-size:14px}
.home-banner.tip{background:var(--orange-soft);border:1px solid #ffd9b8;color:#8a4b0a}
.home-banner.ok{background:var(--blue-lt);border:1px solid #D6E3FF;color:var(--blue-dark-ink)}
.linkbtn{background:none;border:none;color:var(--orange);font-weight:700;cursor:pointer;font-size:14px;padding:0}
.home-banner.ok .linkbtn{color:var(--blue-ink)}
.linkbtn:hover{opacity:.85}

.action-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;margin-top:14px}
.action-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:20px;cursor:pointer;transition:transform var(--dur-1) var(--ease-out),box-shadow var(--dur-1) var(--ease-out),border-color var(--dur-1) var(--ease-out);font-family:inherit}
.action-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(0,42,140,.12);border-color:var(--blue)}
.action-card.featured{border-color:var(--orange);box-shadow:0 6px 18px rgba(239,109,26,.12)}
.action-icon{width:48px;height:48px;border-radius:var(--r);background:var(--blue-lt);color:var(--blue-ink);display:grid;place-items:center}
.action-card.featured .action-icon{background:var(--orange-soft);color:var(--orange)}
.action-icon svg{width:26px;height:26px}
.action-title{font-size:var(--fs-lg);font-weight:800;color:var(--blue-dark-ink)}
.action-desc{font-size:13.5px;color:var(--muted);line-height:1.45}
.action-body{flex:1}
.action-cta{font-weight:700;color:var(--orange);font-size:14px}
.action-card:not(.featured) .action-cta{color:var(--blue-ink)}
.action-card.soon{opacity:.72}
.soon-badge{display:inline-block;background:var(--grey-light);color:var(--grey);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;padding:2px 7px;border-radius:var(--r);margin-left:6px;vertical-align:middle}
.home-foot{text-align:center;color:var(--muted);font-size:var(--fs-xs);margin:26px 0 8px}

/* ---------------- Help tooltips (used across wizard + forms) ---------------- */
.help{position:relative;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:var(--grey-mid);color:#fff;font-size:11px;font-weight:800;cursor:help;margin-left:6px;flex:none}
.help:hover{background:var(--blue)}
/* ---- A HIDDEN TOOLTIP TAKES NO ROOM AT ALL (v3.449.0) ----------------------------------------
   Measured in Chromium, 7 Sep 2026, chasing "I don't want scrollbars inside groups": the asset
   group's `.ag-scroll` reported 22px of horizontal and 124px of VERTICAL overflow on a 1920px
   screen with a table that fitted exactly. The overflow was not the table. It was these bubbles.
   `visibility:hidden` hides a box but KEEPS IT IN LAYOUT, so a 260px-wide, ~124px-tall absolutely
   positioned tooltip parked below every column heading still counted toward the scroll container's
   scrollWidth and scrollHeight — and two scrollbars appeared inside a group with room to spare,
   each with a nearly full-length thumb (the tell: a few pixels of overflow, not a wide table).
   `display:none` is what takes it out of layout. The cost is the 0.12s opacity fade on first
   appearance, which is not worth two phantom scrollbars on every scrolling table in the app. */
.help .help-pop{display:none}
.help:hover .help-pop,.help:focus .help-pop,.help:focus-within .help-pop,.help.on .help-pop{display:block}
.help .help-pop{visibility:hidden;opacity:0;position:absolute;z-index:60;left:50%;top:150%;bottom:auto;transform:translateX(-50%);width:260px;white-space:normal;overflow-wrap:break-word;word-break:normal;background:var(--blue-dark);color:#fff;text-align:left;border-radius:var(--r);padding:10px 12px;font-size:var(--fs-xs);font-weight:400;line-height:1.5;box-shadow:0 10px 26px rgba(0,0,0,.28);transition:opacity var(--dur-1) var(--ease-out);pointer-events:none;text-transform:none;letter-spacing:normal}
.help .help-pop::after{content:"";position:absolute;bottom:100%;left:50%;transform:translateX(-50%);border:6px solid transparent;border-bottom-color:var(--blue-dark)}
.help .help-pop b{color:#ffd9b8}
.help .help-pop em{color:#D6E3FF;font-style:normal}
/* ---- HELP THAT EXISTS ON A PHONE (v3.278.0) -----------------------------------------------
   Found in the front-end audit: `:hover` was the ONLY way to reveal a help bubble. There are 179
   help entries and around 114 badges in this product, and on a phone or a tablet every one of them
   was invisible — you could tap the "?" all day and nothing happened. Worse, the media query below
   contains a purpose-built phone presentation (a bottom sheet) that could never fire, because a
   phone has no hover.

   `helpHtml()` already renders `tabindex="0"`, which invites focus and then did nothing with it, so
   a keyboard user was in the same position as a phone user.

   Three ways in now, and they are three different users: hover (mouse), focus (keyboard), and the
   `.on` class (a tap, toggled by the delegated handler in app.js). `pointer-events` comes back on
   when it is open so the bubble can be scrolled and dismissed rather than sitting under the finger
   that opened it. */
.help:hover .help-pop,
.help:focus .help-pop,
.help:focus-within .help-pop,
.help.on .help-pop{visibility:visible;opacity:1}
.help.on .help-pop{pointer-events:auto}
.help:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media(max-width:560px){.help .help-pop{width:180px}}
/* v3.1165.0 — a bubble pinned out of a scrolling table (pinHelpPop in app.js) is placed by JS; its arrow would point
   at nothing, so it goes. */
.help .help-pop.is-pinned::after{display:none}

/* ---- A STANDING EXPLANATION, AND THE COUNT IT USED TO CROWD (v3.474.0) -----------------------
   Darren, 7 Sep 2026, on the Inbox heading: *"The 7 … is hard to see, so it should be bold. The two
   lines of text underneath are taking up too much room. They can be a question mark at the top."*

   THE COUNT. It was `class="hint"` — the muted grey used for asides — on the one character of that
   heading somebody reads. Now it is the heading's own colour at a slightly larger size, with
   tabular figures so 7 and 11 occupy the same width and the badge beside it does not shuffle.

   THE INSTRUCTIONS. Inside the bubble they are already white-on-blue, so `.instr-pop` only has to
   space the control off the words. `pointer-events` matters here: `.help-pop` is inert until the
   badge is open, and a button nobody can press is worse than no button, so an open bubble's control
   is explicitly clickable and shows a pointer rather than the badge's `cursor:help`. */
.ia-count{font-weight:800;font-size:1.08em;color:inherit;font-variant-numeric:tabular-nums}
.instr-pop{text-align:left}
.instr-acts{margin:8px 0 0}
.help .help-pop .instr-toggle{pointer-events:auto;cursor:pointer;background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.45);color:#fff}
.help .help-pop .instr-toggle:hover{background:rgba(255,255,255,.26)}
/* Shown in full, when somebody has asked for that: a quiet block rather than a bubble, with the way
   back in it — turning them on must not be a one-way door. */
.instr-inline{margin:0 0 10px}
.instr-inline>.hint{margin:0}
.instr-inline .instr-acts{margin:6px 0 0}
.instr-toggle{cursor:pointer}

/* ---- "REMOTE" ON AN ENQUIRY (0170, v3.474.0) -------------------------------------------------
   Darren: *"The site on creating an enquiry should also have a remote option specifically."* Shown
   as a chip beside the identity rather than a form row — it is a fact about the enquiry, and the one
   thing worse than not having the option is having it and never showing what was chosen. Blue
   rather than the neutral pill grey, because on this record grey is what "nothing set" looks like. */
.enq-where{margin:2px 0 8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.enq-remote{background:var(--blue-soft,var(--grey-light));color:var(--blue-ink)}

/* Login gate */
.login-gate{position:fixed;inset:0;z-index:100;background:linear-gradient(130deg,var(--blue),var(--blue-dark));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:20px}
.login-card{background:var(--panel);border-radius:var(--r);padding:30px 28px;width:100%;max-width:380px;box-shadow:0 20px 60px rgba(0,0,0,.25);text-align:center}
.login-logo{height:88px;width:auto;margin-bottom:6px}
.login-card h1{font-size:var(--fs-lg);color:var(--blue-ink);margin:6px 0 2px}
.login-sub{color:var(--muted);margin:0 0 16px;font-size:var(--fs-sm)}
.login-card .field{max-width:none;text-align:left;margin-bottom:12px}
.login-actions{display:flex;gap:10px;margin:6px 0 8px}
.login-actions .btn{flex:1;justify-content:center}
#login-magic{width:100%;margin-top:4px}
.login-msg{min-height:18px;font-size:var(--fs-sm);margin:10px 0 0;font-weight:600}
.login-footer{color:#E3EBFF;font-size:var(--fs-xs);opacity:.9}
/* In-app footer: quiet, but the build number in it is the fastest way to tell whether a deploy
   actually landed. Sits after the last view rather than fixed, so it never covers content. */
.app-foot{margin:40px 0 18px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:var(--fs-xs);text-align:center}
.app-build-stamp{font-variant-numeric:tabular-nums;opacity:.85}
.topbar .signout{margin-left:auto}
/* v3.1119.0 — ONE STATUS PILL (UI refresh v2): a dot and a label on a soft wash, in five kinds —
   .ok .blue .warn .bad and the plain neutral one. "Active" looks the same wherever it appears. Every
   pair clears 4.5:1 in both themes (the washes and inks are the --s-* status tokens). */
.pill{display:inline-flex;align-items:center;gap:6px;min-height:22px;padding:2px 9px;border-radius:999px;font-size:var(--fs-xs);font-weight:600;
  line-height:1.2;white-space:nowrap;background:var(--s-sunk,var(--grey-light));color:var(--ink-2,var(--grey));border:0}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.9;flex:none}
.pill.nodot::before{display:none}
.pill.ok{background:var(--s-ok-soft);color:var(--s-ok)}
.pill.blue{background:var(--s-accent-soft);color:var(--blue-ink)}
.pill.warn{background:var(--s-warn-soft);color:var(--s-warn)}
.pill.bad{background:var(--s-bad-soft);color:var(--s-bad)}
.pill.neutral{background:var(--s-sunk);color:var(--ink-2)}

/* ---- Simpro sign-in "or" divider ---- */
.or-divider{display:flex;align-items:center;gap:10px;margin:16px 0;color:var(--grey);font-size:var(--fs-sm)}
.or-divider::before,.or-divider::after{content:"";flex:1;height:1px;background:var(--line)}

/* ---- Billing paywall overlay ---- */
.paywall-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(160deg,#002A8C,#0038B8);padding:24px}
.paywall-overlay.hidden{display:none}
.paywall-card{background:var(--panel);border-radius:var(--r);padding:36px 40px;max-width:480px;width:100%;text-align:center;
  box-shadow:0 12px 40px rgba(35,31,32,.35)}
.paywall-logo{height:52px;margin-bottom:12px}
.paywall-card h1{margin:0 0 8px;font-size:23px;color:#002A8C}
.paywall-sub{color:#41506a;line-height:1.55;margin:0 0 20px}
.paywall-cta{width:100%;font-size:16px;padding:13px}
.paywall-fine{color:#6b7891;font-size:12.5px;line-height:1.5;margin:12px 0 0}
.paywall-msg{min-height:18px;font-size:var(--fs-sm);font-weight:600;margin:10px 0 0;color:#1f8a4c}
.paywall-spin{font-size:34px;margin:14px 0}
#pw-signout{margin-top:16px}

/* ---- Floating tooltip (employee grid headers etc.) ---- */
.float-tip{position:fixed;z-index:10000;max-width:320px;background:var(--panel);color:#231F20;border:1px solid var(--line);
  border-radius:var(--r);padding:10px 12px;font-size:12.5px;line-height:1.5;font-weight:400;white-space:normal;
  box-shadow:0 8px 28px rgba(35,31,32,.18);pointer-events:none}
.float-tip.hidden{display:none}
.float-tip b{color:var(--blue-dark-ink)}
#emp-grid thead th[data-tip]{cursor:help}
#emp-grid thead th .hdr-i{opacity:.55;font-size:11px;margin-left:3px}
#emp-grid thead th[data-tip]:hover .hdr-i{opacity:1;color:var(--orange)}

/* ---- Benchmark locked state ---- */
.bench-locked{text-align:left;border:1px dashed var(--line);background:var(--panel-2,#fbfdff)}
.bench-lock-ico{font-size:26px;margin-bottom:2px}
.bench-locked h2{justify-content:flex-start;margin-top:6px}
.bench-locked .lead,.bench-locked .muted{margin-left:0}
/* ---- Billing strip on Home ---- */
.billing-strip{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:12px 16px;margin:14px 0}
.billing-strip .bs-status{font-size:14px}
.billing-strip .bs-status b{color:var(--blue-dark-ink)}

/* ---- Pay-first login card additions ---- */
.login-welcome{background:#eafaf0;border:1px solid #b9e6c9;color:#1f6b3a;border-radius:var(--r);
  padding:12px 14px;margin-bottom:14px;font-size:14px;line-height:1.5;text-align:left}
.btn.accent{background:var(--orange);color:#fff;border-color:var(--orange);font-weight:700}
.btn.accent:hover{filter:brightness(1.05)}
/* full-width accent only where it's the single big CTA (login/signup) */
.login-card .btn.accent{width:100%;font-size:15px;padding:12px}
.login-fine{color:#7c8aa0;font-size:var(--fs-xs);line-height:1.45;margin:8px 0 0;text-align:center}
#login-start-divider{margin:18px 0 12px}

/* ---- Signup extra fields ---- */
#login-start-fields{text-align:left;margin-bottom:12px}
.login-diff{display:flex;align-items:flex-start;gap:8px;font-size:var(--fs-sm);color:#41506a;margin:10px 0 6px;line-height:1.4}
.login-diff input{margin-top:2px}

/* ---- Embedded Stripe checkout on the login page ---- */
.embedded-wrap{margin-top:14px}
.embedded-wrap.hidden{display:none}
/* Let the login card grow/scroll when the inline card form is mounted. */
/* Top-align (not center) so a tall card — e.g. with the embedded payment form — always
   scrolls cleanly to the top. justify-content:center clips the overflow top in flexbox. */
.login-gate{justify-content:flex-start;align-items:center;overflow-y:auto}
.login-card{margin:5vh auto 40px}
#su-company[readonly],#su-email[readonly],#su-password[readonly]{background:#f4f7fb;color:#6b7891}

/* ---- Wide two-column signup (use the horizontal space) ---- */
.login-card{}
.login-card.paying{max-width:940px}
.signup-cols{display:flex;gap:26px;flex-wrap:wrap;text-align:left;align-items:flex-start}
.signup-left{flex:1 1 300px;min-width:280px}
.signup-right{flex:1 1 360px;min-width:300px}
.signup-right:empty{display:none}
/* During payment, focus the card on the two columns (name/company on the left, card on the right). */
.login-card.paying .signin-block,
.login-card.paying #login-start-divider{display:none}
.login-card.paying #login-start-fine{margin-top:14px}
@media (max-width:760px){ .login-card.paying{max-width:460px} }

/* ---- Signup value panel (fills the left column) ---- */
.signup-benefits{margin-top:18px;text-align:left;background:#f4f7fb;border:1px solid var(--line);border-radius:var(--r);padding:16px 18px}
.sb-title{font-weight:800;color:var(--blue-dark-ink);margin-bottom:8px;font-size:15px}
.sb-list{list-style:none;margin:0;padding:0}
.sb-list li{position:relative;padding:5px 0 5px 26px;font-size:13.5px;color:#4A4647;line-height:1.5}
.sb-list li::before{content:"✓";position:absolute;left:0;top:5px;color:var(--orange);font-weight:800}
.sb-secure{margin-top:12px;font-size:var(--fs-xs);color:#6b7891;line-height:1.4}

/* ---- Workspace switcher (brandbar) ---- */
.ws-switch{margin-left:auto;position:relative}
.ws-btn{display:inline-flex;align-items:center;gap:8px;background:var(--blue-lt);border:1px solid #D6E3FF;color:var(--blue-dark-ink);
  border-radius:var(--r);padding:8px 12px;font-weight:700;font-size:13.5px;cursor:pointer;max-width:260px}
.ws-btn:hover{border-color:var(--blue)}
.ws-btn .ws-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}
.ws-btn .ws-caret{color:var(--muted)}   /* v3.1119.0: a colour, not .6 opacity — 4.3:1 on the new ink */
.ws-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:50;background:var(--panel);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:0 14px 40px rgba(35,31,32,.16);padding:6px;min-width:260px;max-height:60vh;overflow:auto}
.ws-menu-h{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);padding:8px 10px 4px}
.ws-item{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:transparent;border:none;padding:9px 10px;
  border-radius:var(--r);cursor:pointer;font-size:13.5px;color:var(--ink);font-weight:600}
.ws-item:hover{background:var(--grey-light)}
.ws-item.active{background:var(--blue-lt);color:var(--blue-dark-ink)}
.ws-item.ws-new{color:var(--blue-ink);font-weight:700}
.ws-tag{font-size:10px;background:var(--grey-light);color:var(--grey);border-radius:var(--r);padding:1px 7px;font-weight:700;text-transform:uppercase;letter-spacing:.4px}
/* Support-mode banner */
.support-bar{background:#fff3cd;border-top:1px solid #ffe08a;border-bottom:1px solid #ffe08a;color:#7a5b00;
  padding:8px 22px;font-size:13.5px}
.support-bar.hidden{display:none}
/* v3.1123.0 — the read-only database bar (app.js paintDbReadOnly): the same strip, in the danger tone. */
.dbro-bar{background:#fde8e8;border-color:#f5b5b5;color:#8a1c1c}
.support-bar .linkbtn{background:none;border:none;color:var(--blue-ink);font-weight:700;cursor:pointer;font-size:13.5px}
/* Workspace rows on the Account page */
.ws-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:var(--r);padding:9px 12px;margin:7px 0}
/* v3.1110.0 — a value that is one long word (a callback URL) wraps inside its row instead of pushing it
   past the edge of a phone (the Deployment setup panel on Users and access, measured at 419px on 390). */
.ws-val{min-width:0;overflow-wrap:anywhere;text-align:right}
/* And on a phone a row whose two halves do not fit side by side puts the second under the first rather than
   past the edge (Edge administration → Tiers & services, the price column, 3px over on 390). */
@media (max-width:640px){.ws-row{flex-wrap:wrap}}
.icon-btn{background:transparent;border:1px solid var(--line);border-radius:var(--r);width:30px;height:30px;cursor:pointer;color:var(--grey)}
.icon-btn:hover{border-color:var(--danger);color:var(--danger)}

/* ---- Footer legal links ---- */
.login-footer a,.home-foot a{color:#B2CAFF;text-decoration:none;font-weight:600}
.home-foot a{color:var(--blue-ink)}
.login-footer a:hover,.home-foot a:hover{opacity:.85}

/* ---- Print / PDF report (Results tab) ---- */
.print-only{display:none}
.print-header{align-items:center;gap:16px}
.print-header img{height:52px}
.print-header .ph-title{font-size:20px;font-weight:800;color:var(--blue-dark-ink)}
.print-header .ph-sub{font-size:var(--fs-xs);color:var(--muted)}
@media print{
  /* THE SHELL DOES NOT PRINT (v3.386.0). Darren: "the print button doesn't work" — it did, and it
     printed the sidebar, the app header, the tip bar, the step footer and the phone panel around the
     figures. Only the view prints now; the page is the document. */
  .topbar,.support-bar,#home-billing,.ws-switch,.hero-actions,
  .sidebar,.apptop,.tipbar,.stepbar,.areamenu,.wizard-nav,#ph-panel,.hm-ov,.sheet-ov,
  .view-actions,.bulk-bar,.emp-groupbar,.filterbar,.hidden{display:none !important}
  .appwrap,.mainwrap{display:block !important;margin:0 !important;padding:0 !important;max-width:none !important}
  body{background:#fff}
  main{padding:0}
  .print-only{display:flex !important}
  .print-header{border-bottom:2px solid var(--blue);padding-bottom:12px;margin-bottom:16px}
  .rate-hero{background:#fff !important;color:#231F20 !important;border:1px solid var(--line)}
  .rate-hero .hero-label,.rate-hero .hero-note{color:#6D6E71 !important}
  .rate-hero .hero-rate{color:var(--blue-dark-ink) !important}
  .panel,.card,.table-wrap{break-inside:avoid}
  a[href]:after{content:""}
  @page{margin:14mm}
}

/* ---- Billing strip: past-due warning ---- */
.billing-strip.warn{background:#fff3cd;border-color:#ffe08a}
.billing-strip.warn .bs-status{color:#7a5b00}

/* ---- First-run onboarding checklist ---- */
.onboard{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;margin:14px 0}
.onboard-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.onboard-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.onboard-step{display:flex;align-items:center;gap:10px;text-align:left;background:var(--grey-light);border:1px solid var(--line);border-radius:var(--r);padding:10px 12px;cursor:pointer;font-family:inherit}
.onboard-step:hover{border-color:var(--blue)}
.onboard-step.done{background:#eafaf0;border-color:#b9e6c9;cursor:default}
.ob-check{width:22px;height:22px;border-radius:50%;border:2px solid var(--grey-mid);display:flex;align-items:center;justify-content:center;color:#fff;flex:0 0 auto;font-weight:800;font-size:var(--fs-sm)}
.onboard-step.done .ob-check{background:var(--ok);border-color:var(--ok)}
.ob-text{display:flex;flex-direction:column}
.ob-text b{font-size:14px}
.ob-desc{font-size:var(--fs-xs);color:var(--muted)}
.ob-arrow{margin-left:auto;color:var(--blue-ink);font-weight:800}

/* ---- THE TWO PADLOCKS (Darren, 28 Aug 2026) ----------------------------------------------------
   A card that needs a Simpro connection and a card that needs paying for were identical. The first
   is a prerequisite the customer can satisfy for free; the second is a price. Showing them the same
   way turns the launcher into a wall for exactly the person we most want to keep — somebody who does
   not use Simpro and has just been given a calculator. */
.apps-note{background:var(--blue-lt);border:1px solid #D6E3FF;color:var(--blue-dark-ink);
  border-radius:var(--r);padding:12px 16px;margin:0 0 14px;font-size:13.5px;line-height:1.5}
html[data-theme="dark"] .apps-note{background:#12213F;border-color:#002A8C;color:#B2CAFF}
/* Muted rather than locked-looking: it is not refused, it is waiting on something of theirs. */
.apph-card.needs-simpro .apph-go{color:var(--muted);font-weight:600}
.apph-card.needs-simpro:not(.locked){opacity:.82}

/* ---- ONE ROW OF NUMBERED STEPS (Darren, 28 Aug 2026) -------------------------------------------
   "I think the build your apps can be one small row with numbered steps."

   The eight cards above stay in the sheet because the same block is used elsewhere; this is the
   compact variant Home uses, where the strip sits under a guided-setup offer and its job is to show
   the SHAPE of the job — how many steps, which are done, which is next — not to explain each one.
   Each chip carries its sentence as a title, and every step's own page opens with the same words.

   `flex-wrap` rather than a grid: eight chips fit one line on a laptop and wrap to two on a narrow
   window, which is what "one small row" means in practice on a screen that is not always wide. */
.onboard-row{padding:10px 14px}
.onboard-chips{display:flex;flex-wrap:wrap;gap:6px}
.ob-chip{display:inline-flex;align-items:center;gap:7px;background:var(--grey-light);
  border:1px solid var(--line);border-radius:999px;padding:5px 12px 5px 6px;cursor:pointer;
  font-family:inherit;font-size:var(--fs-sm);color:var(--ink);line-height:1.2}
.ob-chip:hover{border-color:var(--blue)}
.ob-n{width:19px;height:19px;border-radius:50%;background:var(--grey-mid);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:11px;flex:0 0 auto}
.ob-chip.done{background:#eafaf0;border-color:#b9e6c9;cursor:default;color:#2c6b46}
.ob-chip.done .ob-n{background:var(--ok)}
/* THE NEXT ONE IS MARKED. A row of identical chips is a row you have to read; one filled chip is a
   row you glance at. Only ever one, and never an optional step. */
.ob-chip.next{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:700}
.ob-chip.next .ob-n{background:#fff;color:var(--blue-ink)}
html[data-theme="dark"] .ob-chip.done{background:#16301f;border-color:#2c5c3c;color:#8fd6a8}

/* ---- THE GUIDED SETUP IS THE OFFER, NOT A FOOTNOTE ---------------------------------------------
   It was one line of pale text with a link in it, sitting above eight cards that laid out the manual
   route in full — the page recommending one path and giving all its weight to the other. */
.home-banner-lead{padding:16px 18px}
.hb-lead{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.hb-lead-text{flex:1 1 320px;display:flex;flex-direction:column;gap:4px}
.hb-lead-text b{font-size:16px}
.hb-lead-text span{font-size:13.5px;opacity:.9}
.hb-lead-go{flex:0 0 auto;white-space:nowrap}
.hb-lead-alt{margin-top:10px;font-size:12.5px;opacity:.85}

/* ---- Plan picker (signup + subscribe) ------------------------------------ */
.plan-picker{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.plan-opt{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--line);
  border-radius:var(--r);cursor:pointer;background:var(--panel);transition:border-color var(--dur-1) var(--ease-out),box-shadow var(--dur-1) var(--ease-out)}
.plan-opt:hover{border-color:var(--grey-mid)}
.plan-opt.sel{border-color:var(--blue);box-shadow:0 0 0 2px var(--blue-lt)}
.plan-opt input{margin-top:3px;accent-color:var(--blue)}
.plan-opt-body{display:flex;flex-direction:column;gap:2px}
.plan-opt-name{font-weight:700;color:var(--ink)}
.plan-plus{background:var(--orange);color:#fff;font-size:10px;font-weight:700;padding:1px 6px;border-radius:var(--r);vertical-align:middle}
.plan-opt-price{font-size:14px;color:var(--ink)}
.plan-opt-then{color:var(--muted)}
.plan-opt-blurb{font-size:var(--fs-xs);color:var(--muted)}
.plan-perk{display:inline-block;align-self:flex-start;margin-top:6px;background:var(--orange-lt,#fff0e6);color:var(--orange);
  font-weight:700;font-size:var(--fs-xs);padding:4px 9px;border-radius:var(--r);border:1px solid rgba(255,109,0,.28)}
/* Usage + audit panels */
.usage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:8px 0}
.usage-tile{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:12px 14px}
.usage-tile b{display:block;font-size:22px;color:var(--blue-dark-ink);line-height:1.1}
.usage-tile span{font-size:var(--fs-xs);color:var(--muted)}
.audit-list{max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:var(--r)}
.audit-row{display:flex;justify-content:space-between;gap:12px;padding:8px 12px;border-bottom:1px solid var(--grey-light);font-size:var(--fs-sm)}
.audit-row:last-child{border-bottom:0}
.audit-act{font-weight:600;color:var(--ink)}
.audit-when{color:var(--muted);white-space:nowrap}
/* Admin analytics */
.an-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:10px 0}
.an-kpi{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:12px 14px}
.an-kpi b{display:block;font-size:24px;color:var(--blue-dark-ink);line-height:1.1}
.an-kpi span{font-size:var(--fs-xs);color:var(--muted)}
.an-bars{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.an-bar{display:flex;align-items:center;gap:10px;font-size:var(--fs-sm)}
.an-bar-name{min-width:200px;max-width:340px;display:flex;flex-direction:column;gap:1px;font-weight:600}
.an-bar-sub{font-weight:400;font-size:11.5px;color:var(--grey);line-height:1.3}
.an-bar-unnamed .an-bar-fill{background:var(--grey)}
@media (max-width:640px){.an-bar{align-items:flex-start;flex-wrap:wrap}.an-bar-name{min-width:0;max-width:none;flex:1 1 100%}}
.an-bar-track{flex:1;height:10px;background:var(--grey-light);border-radius:var(--r);overflow:hidden}
.an-bar-fill{height:100%;background:var(--blue)}
/* ---- SHEETS: a button, then a window with the fields in it (v3.312.0) ------------------------
   One set of rules for every create/build form in the app, so the sixth one cannot drift from the
   first. Wide enough for a two-column row of fields, capped so it never becomes a full-page form
   with a backdrop — at that point it should be a screen, not a sheet. */
.sheet-ov{position:fixed;inset:0;z-index:95;background:rgba(35,31,32,.45);display:flex;
  align-items:flex-start;justify-content:center;padding:40px 16px;overflow:auto}
.sheet-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);
  padding:20px 22px;max-width:560px;width:100%;box-shadow:0 24px 70px rgba(35,31,32,.30)}
.sheet-wide{max-width:900px}
/* ---- v3.1124.0 (1 October 2026) — THE "NEW …" WINDOW (openFormModal) --------------------------------
   Darren: *"a nice, simple button that, when you click it, opens in a modal box, nice and wide, and we
   enter all the details."* About 960 wide; the form scrolls inside it with the title row staying put;
   full-screen on a phone (the max-width:640px block below makes every sheet full-bleed there). */
.sheet-card.sheet-form{max-width:960px;display:flex;flex-direction:column;max-height:calc(100vh - 80px)}
.sheet-card.sheet-form>.sheet-body{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1 1 auto;padding-right:2px}
.sheet-form .in-form-modal>h3:first-child{display:none}
/* v3.1128.0 (1 October 2026) — the BI report and pack editors, drawn into the wide window (wireBiAdmin's syncEditor).
   Darren: "a simple button that opens a nice wide modal holding the fields". The window's title row names it, so
   the editor's own heading is not said twice; the report editor keeps its `.panel` (the label layout rule
   `.panel:has(>.bia-grid)` needs it) without drawing a box inside the box. */
.sheet-form .bia-edhost>#biadmin-editor{border:0;box-shadow:none;background:transparent;padding:0;margin:0;max-width:none}
.sheet-form .bia-edhost>#biadmin-editor>h2:first-child,
.sheet-form .bia-edhost>#bia-packeditor>h3:first-child{display:none}
.sheet-form .bia-edhost>#bia-packeditor{margin-top:0;border-top:0;padding-top:0}
.sheet-form .bia-edhost #bia-packeditor>label{display:flex;flex-direction:column;gap:4px;margin:8px 0;font-weight:600}
.sheet-form .bia-edhost #bia-packeditor>label textarea{width:100%;min-height:64px;font:inherit;font-weight:400}
.sheet-form .bia-edhost #bia-packeditor>label:has(>input[type=checkbox]){flex-direction:row;align-items:flex-start;gap:8px;font-weight:400}
/* v3.1136.0 (3 October 2026) — Darren: "a button … modal box, nice and wide". The reminder rule editor in the wide
   window: its panel frame and its own heading go (the window has both). */
.sheet-form .rem-edhost>#rem-edit{border:0;box-shadow:none;background:transparent;padding:0;margin:0;max-width:none}
.sheet-form .rem-edhost>#rem-edit>h3:first-child{display:none}
/* v3.1136.0 (3 October 2026), round 2 — Save and Cancel at the bottom of the window, always in reach: the three editors'
   button rows stick to the foot of the scrolling form, the same footing as Users and access (.esf-foot). */
.sheet-form .rem-edhost .bi-actions:has([data-rem-save]),
.sheet-form .bia-edhost .bi-actions:has([data-bi-save]),
.sheet-form .bia-edhost .bi-actions:has([data-bia-packsave]){position:sticky;bottom:0;z-index:2;background:var(--panel);
  border-top:1px solid var(--line);margin:14px 0 0;padding:12px 0 4px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
/* v3.1128.0 — New folder in the wide window: the name box takes the width it is given, under its label. */
.sheet-form .lib-newfolder>label{display:flex;flex-direction:column;gap:4px;font-weight:600;max-width:560px;margin:8px 0}
.sheet-form .lib-newfolder>label>input{width:100%;min-height:38px;font:inherit;font-weight:400}
@media (max-width:640px){
  .sheet-card.sheet-form{max-width:none;max-height:none;min-height:100%}
  .sheet-card.sheet-form>.sheet-body{overflow:visible}
}
/* ---- THE BOOKING SHEET IS WIDER STILL (0171, v3.476.0) --------------------------------------
   Darren: *"the calendar on one side of the screen and the session booking details on the other."*
   Two columns at 900px gives the calendar about 520px, which at fourteen day-columns is 37px each —
   not enough for "10:30am". 1180px is the width at which a fortnight of two-hour blocks is readable
   and the form beside it still has room for its labels. */
/* ---- AND WIDER AGAIN, BECAUSE THREE CONSULTANTS' WEEKS DO NOT FIT IN 1180 (v3.518.0) --------
   Darren, 9 Sep 2026: *"the pop-up window should be larger so we can fit more on it. I think it
   should be like 85, 90% of the full screen, whereas now it's much less"* — asked for alongside a
   view with five days for each of three consultants side by side.
   MEASURED: three consultants × five day-columns at a legible 78px is ~1,190px of grid alone, and
   the booking form beside it needs 340. 1180 total gave the grid about 620.
   `min(94vw, 1900px)` rather than a flat percentage: 90% of a 3,440px ultrawide is a dialog nobody
   can read across, and the scrim needs to stay visible as the way out. The overlay's own 16px
   padding is why this is 94 and not 90 — the card ends up at about 90% of the viewport. */
.sheet-book{max-width:min(94vw,1900px)}
/* A DIALOG THAT IS 90% OF THE SCREEN SHOULD USE 90% OF ITS HEIGHT TOO, or the calendar scrolls the
   whole page while the form beside it sits in empty space. The body scrolls, the head stays. */
.sheet-book .sheet-body{max-height:calc(100vh - 190px);overflow:auto}
@media (max-width:900px){
  /* On a phone the sheet is already full-bleed (see the block below) and a max-height here would
     fight the `min-height:100%` that makes it so. */
  .sheet-book{max-width:none}
  .sheet-book .sheet-body{max-height:none;overflow:visible}
}
.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  margin:0 0 6px}
.sheet-head h3{margin:0}
.sheet-x{background:none;border:0;font-size:26px;line-height:1;cursor:pointer;color:var(--muted);
  padding:0 4px}
.sheet-x:hover{color:var(--ink)}
.sheet-body{margin-top:10px}
/* The page behind must not scroll under an open sheet — on a phone that reads as the sheet itself
   moving, and people lose the field they were typing in. */
body.sheet-open{overflow:hidden}
/* v3.431.0 — a record opens in a modal over its board (the enquiry, to start). It reuses the sheet
   overlay; these three rules float the close ×, lock the board behind it, and stop the detail panel
   drawing a second card inside the sheet's own card. */
/* ---- THE PAGE BEHIND MUST NOT MOVE, AND NEITHER MUST THE CARD (v3.525.0) -------------------
   Darren, 9 September 2026: *"it seems to be possible to scroll the whole pop-up window, which it
   shouldn't really move, I don't think."*

   THREE THINGS WERE MISSING and each one on its own lets the page move:

   1. `overflow:hidden` was on BODY only. On this shell the document element is the scroller, so the
      rule was being applied to the wrong box and the board scrolled underneath the record.
   2. NO `overscroll-behavior`. Reaching the bottom of the record's own scroller CHAINS to whatever
      is behind it — so scrolling to the end of the blocks and carrying on scrolled the board. That
      is exactly what he was looking at: the record at its last block, the board moved up behind it.
   3. The OVERLAY scrolled as well as the body inside it, so on a short window the whole card slid
      up and its top was cut off by the viewport. The card is capped and its body scrolls; the
      overlay itself must not.

   `:has()` rather than a second class in JS: the class is added and removed in seven places in
   app.js and a matching one on `<html>` would be seven more chances to leave the page locked. */
body.enq-modal-open{overflow:hidden}
html:has(body.enq-modal-open),html:has(body.sheet-open){overflow:hidden}
.enq-modal{overflow:hidden}
.enq-modal .sheet-body{overscroll-behavior:contain}
.enq-modal .sheet-card{position:relative}
/* ---- THE × MUST NOT SIT ON THE SCROLLBAR (0220, v3.595.0) -----------------------------------
   Darren, 10 September 2026: *"Something is wrong with the way the window is displayed because when
   you scroll down, suddenly you can't get back up."*

   The × is absolutely positioned at the card's top-right, and the card's scrolling body reaches the
   card's inner right edge — so on any platform with CLASSIC (non-overlay) scrollbars, which is
   Windows, which is what he uses, the button was drawn on top of the scroll track and its up-arrow.
   Scroll down, reach for the scrollbar to come back up, and you press Close instead. From the
   keyboard and the wheel it worked, which is why it read as "the window is displayed wrong" rather
   than as a broken button.

   THIS WAS INVISIBLE TO EVERY MEASUREMENT I HAD TAKEN OF THIS CARD, because headless Chromium draws
   OVERLAY scrollbars — `offsetWidth - clientWidth` is 0 there, so the two boxes never overlapped in
   a test. A layout that depends on scrollbar width has to be measured with a scrollbar that has
   one; the test forces `::-webkit-scrollbar{width:15px}` to do it.

   `scrollbar-gutter:stable` reserves the track whether or not the content scrolls, so the body's
   right edge does not move as blocks load, and the body is inset far enough that the × clears the
   whole gutter. */
.enq-modal .enq-modal-x{position:absolute;top:10px;right:12px;z-index:1}
.enq-modal .sheet-body{scrollbar-gutter:stable;margin-right:30px}
.enq-modal .enq-modal-back{margin-right:0}
/* ---- THE WAY BACK, WHERE THERE IS ONE (v3.556.0) --------------------------------------------
   Darren: *"when we click on a booking from the week view… when we close it, it should go back to
   exactly where we were… It shouldn't return us to the inquiries area."* Beside the ×, on the same
   line, so the two exits are together and the named one is the one the eye lands on first. */
.enq-modal .enq-modal-back{position:absolute;top:10px;right:50px;z-index:1}
/* Hotfix to v3.1202.0 (23 October 2026) — THE TWO EXITS ARE NEVER UNDER ANYTHING. Darren, of an enquiry opened from the calendar: *"I
   can't go back to diary, and I can't click the X button."* The record's chips (sticky, z-index 5) and its slim bar (z-index 7)
   are drawn in the same top-right corner as Back, so Back sat underneath them and a press on it was a press on a chip. Both
   exits now stand above everything in the record, and when there is a way back the record starts below their row, so the
   chips are beside nothing and lose none of their own behaviour. */
.enq-modal .enq-modal-x,.enq-modal .enq-modal-back{z-index:9}
.enq-modal .sheet-card:has(>.enq-modal-back)>.sheet-body{margin-top:46px}
/* v3.1165.0 — pin this record, and "↗ open it in a new tab" (Jarryd: "multiple tabs/pages open"). A column UNDER the ×,
   in the 30px gutter the body already leaves for it: beside the × they sat on top of the record's sticky jump bar
   (z-index 5) and could not be pressed. ↗ is a real link, so it reads and behaves as one. */
.rec-newtab{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;padding:0 6px;
  border-radius:7px;border:1px solid var(--line);color:var(--blue-ink);text-decoration:none;font-weight:700;
  font-size:15px;line-height:1;background:var(--panel)}
.rec-newtab:hover,.rec-newtab:focus-visible{background:var(--blue);color:white;border-color:var(--blue)}
.enq-modal .rec-tabacts{position:absolute;top:44px;right:10px;z-index:6;display:flex;flex-direction:column;gap:6px}
button.rec-newtab{cursor:pointer}
.rec-pin svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.rec-pin.on{background:var(--blue);color:white;border-color:var(--blue)}
.rec-pin.on svg{fill:currentColor}
.rec-newtab-row{margin:0 0 6px;text-align:right}
/* v3.1166.0 — an invoice's window: the facts down the left, as a record reads, not as a one-row list. */
.inv-record th[scope="row"]{text-align:left;width:9rem;white-space:nowrap;color:var(--muted,inherit);font-weight:600}
.inv-record td .edge-sub{display:block}
[data-edge-inv]{cursor:pointer}
.enq-modal .sheet-body{margin-top:0}
.enq-modal .sheet-body>.panel{border:0;background:none;box-shadow:none;padding:0;margin:0}
/* ---- AND THE CUSTOMER RECORD USES THE SAME WINDOW (v3.498.0) --------------------------------
   Darren: *"When you click on a customer name under customer contacts: I don't think it should
   filter and scroll down… Maybe it can open up in its own 95% window or something that you can
   close."* Same shell as the enquiry record, so there is ONE set of rules for the scrim, the width,
   the close button and the page lock — and a customer record that looks like the rest of the
   product rather than like a second idea about modals.

   The customer record carries its own history drawer, its section chips and a wide table or two, so
   it takes the height as well as the width: 95% of the viewport, scrolling inside itself. */
/* `max-width:none` FIRST, or `.sheet-wide`'s 900px caps the width whatever this asks for —
   MEASURED in headless Chromium: the card came out at exactly 900px until this was added. */
.dir-modal .sheet-card{width:min(2000px,95vw);max-width:none;max-height:95vh;
  display:flex;flex-direction:column}
/* ---- 0429, v3.748.0 — TWO BARS, ONE PER PANE, FAR APART --------------------------------------
   Darren, 19 September 2026, on the 0408 fix below: *"I didn't want you to physically remove the
   scrollbar, but I was thinking you can put the main scrollbar just next to the main window and a
   smaller scrollbar next to the emails window, rather than remove one completely."*

   He is right, and 0408 read his complaint too literally. The fault was never that there were two
   scrollbars — a two-column record with a long history on one side and a long record on the other
   genuinely has two things to scroll. The fault was that both bars were drawn at the SAME EDGE,
   eight pixels apart, so which one your wheel moved was a matter of where the pointer had landed.

   Removing one fixed the ambiguity by taking away the drawer's ability to scroll independently,
   which cost the thing the drawer is for: reading the history while the record stays put.

   So: each pane scrolls itself, and the bars are 380 pixels apart. The record's bar is drawn at the
   record's own right edge, immediately left of the drag grip; the history's is at the card's right
   edge. Each one is unmistakably attached to the column it moves, which is what makes two bars
   readable and what made the old pair unreadable.

   `overscroll-behavior:contain` on both, and it matters more now than it did: with two live
   scrollers a wheel that ran out of history and carried on into the record behind it would be the
   0408 complaint in a new form. */
.dir-modal .sheet-body{overflow:hidden;flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
/* The record's own two-column layout (details + Customer History) needs the height to be the
   CARD's, not the page's, or the drawer scrolls the window instead of itself. */
/* v3.568.0 — and the drawer's ceiling is that same card height, less the top offset and a little
   breathing room, rather than a second guess at it in viewport units. See .dir-history. */
/* 0429 — the wrap IS the card's scrollable area now, so it takes the height rather than merely
   being allowed to shrink inside it, and its children stretch to that height instead of sitting at
   the top of it. `--hist-max` is kept: `.dir-hist-grip` still reads it. */
.dir-modal .dir-openwrap{min-height:0;--hist-max:calc(95vh - 96px);
  flex:1 1 auto;align-items:stretch}
/* THE RECORD'S OWN BAR, at the record's own right edge. `scrollbar-gutter:stable` so the column
   does not jump sideways by the width of a scrollbar when a short record becomes a long one. */
.dir-modal .dir-main{overflow-y:auto;overscroll-behavior:contain;min-height:0;
  scrollbar-gutter:stable;padding-right:6px}
/* THE DRAWER: a fixed-height column whose HEADING STAYS PUT and whose list scrolls under it. That
   is the other thing an inner scroller buys and the page-scroll version could not do — 0408 sent
   "Customer History" and the four Log buttons off the top of the screen the moment you read
   anything. `position:static` because a pane that fills its container has nothing to stick to. */
.dir-modal .dir-history{position:static;align-self:stretch;min-height:0;
  display:flex;flex-direction:column}
.dir-modal .dir-hist-bar{flex:0 0 auto}
/* A THINNER BAR ON THE HISTORY — Darren's *"a smaller scrollbar next to the emails window"*. Not
   decoration: two identical bars on one screen read as one control drawn twice, and the narrower
   one says plainly that it belongs to the narrower column. */
.dir-modal .dir-history-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;
  overscroll-behavior:contain;scrollbar-width:thin;padding-right:2px}
.dir-modal .dir-history-scroll::-webkit-scrollbar{width:8px}
.dir-modal .dir-history-scroll::-webkit-scrollbar-thumb{
  background:var(--grey-mid,#9aa3b2);border-radius:4px}
.dir-modal .dir-history-scroll::-webkit-scrollbar-track{background:transparent}
/* 0429 — the grip can be full height again. It was pinned to the top in 0408 because the drawer
   grew to its content and a stretched grip became a several-thousand-pixel drag target with its
   pill somewhere off-screen. The drawer is card-height now, so stretching it is the ordinary
   splitter shape: grabbable anywhere down the seam, pill in the middle of the seam you can see. */
.dir-modal .dir-hist-grip{position:static;align-self:stretch;height:auto;
  display:flex;align-items:center;justify-content:center}
/* v3.433.0 — the call on the enquiry: a player, the AI summary, what was agreed, the transcript folded.
   `.enq-reach` is the title-line contact strip (name · phone · email). */
.enq-reach{margin:-4px 0 6px;color:var(--muted);font-size:14px}
.enq-call{margin:8px 0 12px}
.enq-call h4{margin:0 0 6px}
.enq-audio{display:block;width:100%;max-width:520px;height:36px;margin:2px 0 6px}
.enq-call-sum{font-size:15.5px;margin:6px 0}
.enq-call-nosum{margin:6px 0}
.enq-call-out{margin:4px 0 6px 18px;padding:0}
.enq-call-tr summary{cursor:pointer;color:var(--muted);font-size:var(--fs-sm)}
.enq-call-tr pre{white-space:pre-wrap;font:inherit;font-size:var(--fs-sm);color:var(--muted);
  max-height:260px;overflow:auto;margin:6px 0 0;padding:8px 10px;border-left:3px solid var(--line)}
@media (max-width:640px){
  .sheet-ov{padding:0}
  .sheet-card,.sheet-wide{max-width:none;border-radius:0;min-height:100%}
}

/* v3.437.0 — the Assist library's instruction form: two columns, room to write. */
.al-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;margin:4px 0 8px}
.al-grid label{display:flex;flex-direction:column;gap:4px;font-weight:600}
.al-grid textarea{min-height:88px;font-weight:400}
.al-grid input,.al-grid select{font-weight:400}
/* 3.1207.0 — How it answers, read: the saved instructions under the heading; the boxes open in a window. */
.al-ins-sum{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px 16px;margin:4px 0 8px}
.al-ins-sum dt{font-weight:600;color:var(--ink)}
.al-ins-sum dd{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:800px){.al-grid{grid-template-columns:1fr}}
/* v3.443.0 — the enquiries list: the gist and the "where it is up to" cells may wrap. With the global
   nowrap they pushed By when / Owner / Open off the right edge of a 1400px screen, where the scrollbar
   was the only clue they existed. Dates, owner and the button stay on one line. */
#enquiries-body table.grid td:nth-child(2),#enquiries-body table.grid td:nth-child(3){white-space:normal}
#enquiries-body table.grid td:nth-child(2){max-width:46ch}
#enquiries-body table.grid td:nth-child(3){min-width:180px}
#enquiries-body .save-status:empty{min-height:0;margin:0}
/* v3.443.0 — the enquiry's status moves on their own labelled line. */
.enq-moves{padding-top:0;margin-top:-2px}
.enq-moves>.hint{margin-right:2px}
/* v3.443.0 — the small forms opened from an enquiry (Add a task, Book a session). */
.mini-form{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;margin:4px 0 8px}
.mini-form label{display:flex;flex-direction:column;gap:4px;font-weight:600}
.mini-form label.full{grid-column:1/-1}
.mini-form input,.mini-form select,.mini-form textarea{font-weight:400;width:100%;min-width:0}
.mini-form small.hint{font-weight:400}
.mini-form-msg{min-height:1.2em;margin:0 0 6px}
.mini-form-act{margin:0}
@media(max-width:800px){.mini-form{grid-template-columns:1fr}}
/* v3.434.0 — "What a customer sees": the look-only note over each member-screen preview, and the
   one-line toast that answers a press. The previewed screen itself is drawn by the member's own
   renderer and styled by the member's own rules — nothing here restyles it. */
.wm-look-note{margin:4px 0 0}
.wm-look-toast{margin:0 0 8px;padding:6px 10px;border-left:3px solid var(--orange,#f28c28);
  background:var(--panel-2,rgba(127,127,127,.08));border-radius:6px}
.wm-look{position:relative}
/* 0667 — a normal pointer. Darren: *"can we remove the big pointer that has a circle with an X? Just
   leave it as a normal pointer."* The toast already says, on the press, that nothing acts here. */
.wm-look button,.wm-look a.btn{cursor:default}
.wm-look [data-libgo]{cursor:pointer}

/* v3.438.0 — "What is switched on" at the top of Keys: a dot per feature, on/off/unknown. */
/* v3.1157.0 (10 October 2026) — Keys' one line about it, at the top of Phone and messaging; the panel is on Phone & email status. */
.ready-sum{margin:0 0 10px;font-size:var(--fs-sm);color:var(--muted)}
.ready-sum-off b{color:var(--danger)}
/* v3.1157.0 (10 October 2026) — Set-up → Reference data: one card per copy (public/app.js refDataHtml). */
.rd-facts th{width:220px;text-align:left;font-weight:600;vertical-align:top}
.rd-holds{margin:0;padding-left:18px}
.rd-why{font-size:var(--fs-sm);color:var(--muted)}
.rd-now{margin:8px 0 0}
/* v3.1170.0 (refdata) — the "in use" / "part-way" line on a reference copy card. */
.rd-inuse{margin:6px 0 0;font-size:var(--fs-sm)}
.rd-log pre{max-height:260px;overflow:auto;white-space:pre-wrap;font-size:var(--fs-xs);margin:6px 0 0}
/* v3.1169.0 — Set-up → Xero for our invoices, and each invoice's Xero state on the lists. */
.xs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px 14px;margin:6px 0 10px}
.xs-grid label{display:flex;flex-direction:column;gap:4px;font-size:var(--fs-sm)}
.xs-grid select,.xs-grid input{max-width:100%}
.xs-switch{display:inline-flex;align-items:center;gap:6px;margin-right:8px}
.xs-preview{margin:6px 0 10px 18px;font-size:var(--fs-sm)}
.xs-problems ul,.inv-xsproblems ul{margin:6px 0 6px 18px;font-size:var(--fs-sm)}
.inv-xsync{display:block}
.inv-xsync-problem{color:var(--danger)}
@media (max-width:640px){.rd-facts th{width:auto}}
.ready-list{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:8px 16px}
.ready-row{display:flex;gap:10px;align-items:flex-start;padding:6px 8px;border-radius:6px;background:var(--panel-2,rgba(127,127,127,.06))}
.ready-dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;margin-top:6px;background:var(--grey-mid)}
.ready-on .ready-dot{background:var(--ok,#047857)}
.ready-off .ready-dot{background:var(--danger)}
.ready-off .ready-note{color:var(--danger)}
.ready-note{font-size:var(--fs-sm)}

/* v3.441.0 — recent phone activity: one card per call, its pipeline as a list of steps. */
.pa-call{padding:8px 10px;border:1px solid var(--line);border-radius:8px;margin:8px 0}
.pa-head{margin-bottom:4px}
.pa-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;font-size:var(--fs-sm)}
.pa-mark{display:inline-block;width:1.2em;font-weight:800}
.pa-ok .pa-mark{color:var(--ok,#047857)}
.pa-bad .pa-mark,.pa-bad b{color:var(--danger)}
.pa-unk .pa-mark{color:var(--muted)}
.pa-doors{margin-top:8px}
/* v3.1165.0 — OpenAI out of credit, once at the top of the call log; and the nightly call catch-up line. */
.pa-quota{margin:6px 0;padding:6px 10px;border-left:4px solid var(--danger);border-radius:4px}
.pa-catchup{margin:6px 0}
/* v3.1191.0 — the recording notice's timing line, under the panel's heading like the catch-up line. */
.pa-notice{margin:6px 0;overflow-wrap:anywhere}

/* v3.443.0 — the "⋯" menu on a list row: the rarer actions behind one button, opening as a small
   panel under it. A <details>, so it needs no script to open and closes when you click elsewhere. */
.row-more{display:inline-block;position:relative;vertical-align:middle}
.row-more>summary{list-style:none;cursor:pointer;font-weight:800;letter-spacing:.1em}
.row-more>summary::-webkit-details-marker{display:none}
.row-more-pop{position:absolute;right:0;top:calc(100% + 4px);z-index:30;min-width:200px;display:flex;flex-direction:column;gap:4px;
  padding:8px;background:var(--panel,#fff);border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px rgba(35,31,32,.16)}
.row-more-pop .btn{text-align:left;justify-content:flex-start;width:100%}

/* Plan chooser modal */
/* ---- A DIALOG IS IN FRONT OF THE SHEET THAT OPENED IT (v3.458.0) ----------------------------
   This was `z-index:90` and `.sheet-ov` above is 95, so every dialog opened from inside a sheet was
   drawn BEHIND it — Darren, 7 Sep 2026: *"there is a window underneath where I can Bin It but it can
   only be revealed when I manually close the other one."*

   96 is the FLOOR, not the answer: `overlayOpen()` in public/app.js sets an inline z-index one above
   whatever is actually on screen when the dialog opens, so a dialog opened from a dialog also lands
   in front. Both stay below housemodal's 2000 band, because hConfirm is what these dialogs call to
   ask "are you sure" and it has to be in front of the one asking. */
.modal-ov{position:fixed;inset:0;z-index:96;background:rgba(35,31,32,.45);display:flex;align-items:center;justify-content:center;padding:24px}
.modal-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:22px;max-width:440px;width:100%;box-shadow:0 12px 40px rgba(35,31,32,.18)}

/* ===================== Two-pane product login (hero + form) ===================== */
.login-shell{display:flex;flex-shrink:0;width:100%;max-width:1120px;background:var(--panel);border-radius:var(--r);overflow:hidden;
  box-shadow:0 26px 70px rgba(35,31,32,.34);margin:0 auto;height:calc(100vh - 48px);max-height:940px}
/* Use the room on large / 4K screens — the hero (with the product carousel) grows. */
@media (min-width:1500px){ .login-shell{max-width:1320px} }
@media (min-width:1900px){ .login-shell{max-width:1500px} }
@media (min-width:2600px){ .login-shell{max-width:1720px} }

/* HERO (brand + product shot + benefits) */
.login-hero{flex:1 1 56%;min-width:0;background:linear-gradient(160deg,var(--blue),var(--blue-dark));
  color:#fff;padding:34px 32px;display:flex;flex-direction:column;gap:14px;text-align:left}
.lh-brand{display:flex;align-items:center;gap:12px}
.lh-logochip{background:#fff;border-radius:var(--r);padding:7px 9px;display:inline-flex;box-shadow:0 6px 16px rgba(0,0,0,.18)}
.lh-logochip img{height:30px;display:block}
.lh-kicker{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.82)}
/* ===== Full-panel rotator: the whole left side slides (tag, headline, text, image, caption) ===== */
.lh-rotator{display:grid;margin:6px 0 2px}
.lh-slide{grid-area:1/1;margin:0;display:flex;flex-direction:column;gap:12px;
  opacity:0;transform:translateY(6px);transition:opacity var(--dur-3) var(--ease-out),transform var(--dur-3) var(--ease-out);pointer-events:none}
.lh-slide.is-active{opacity:1;transform:none;pointer-events:auto}
.lh-tag{align-self:flex-start;background:var(--orange);color:#fff;font-size:11px;font-weight:800;
  letter-spacing:.06em;text-transform:uppercase;padding:4px 11px;border-radius:var(--r)}
.lh-headline{font-size:30px;line-height:1.12;margin:0;font-weight:800;letter-spacing:-.01em;
  color:#fff;border-left:0;padding-left:0}
.lh-headline em{color:var(--orange);font-style:normal}
.lh-sub{font-size:15px;line-height:1.5;color:rgba(255,255,255,.92);margin:0}
.lh-shot{margin:2px 0 0;width:100%;max-width:none;background:#fff;border-radius:var(--r);overflow:hidden;
  border:1px solid rgba(255,255,255,.22);box-shadow:0 16px 38px rgba(0,0,0,.38)}
.lh-shot img{display:block;width:100%;aspect-ratio:1160/725;object-fit:cover;object-position:top center;background:#F6F6F6}
.lh-shot figcaption{background:var(--blue-lt);color:var(--ink);font-size:12.5px;font-weight:600;
  padding:9px 13px;border-top:3px solid var(--orange)}
/* Slide dots (on the blue hero) */
.lh-dots{display:flex;gap:6px;margin-top:14px}
.lh-dot{width:8px;height:8px;border-radius:50%;border:0;background:rgba(255,255,255,.4);cursor:pointer;padding:0;transition:background var(--dur-2) var(--ease-out)}
.lh-dot.on{background:var(--orange);width:22px;border-radius:5px}
.lh-foot{margin-top:auto;padding-top:14px;border-top:1px solid rgba(255,255,255,.18)}
.lh-stats{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:var(--fs-sm);color:rgba(255,255,255,.9)}
.lh-stats b{color:#fff}
.lh-stats .dot{opacity:.5}
.lh-tagline{margin-top:7px;font-style:italic;font-size:14px;color:var(--orange)}

/* FORM CARD (overrides the standalone-card rules when inside the shell) */
.login-shell .login-card{flex:1 1 44%;min-width:360px;max-width:560px;margin:0;border-radius:0;
  box-shadow:none;padding:34px 34px;background:var(--panel);text-align:center;overflow-y:auto}
.login-shell .login-card h1{font-size:16px}

/* Witty progressive sign-up toggle */
.signup-toggle{margin-top:20px;padding-top:18px;border-top:1px dashed var(--line)}
.signup-toggle .st-line{font-weight:700;color:var(--ink);margin:0 0 10px;font-size:15px}
.signup-toggle .st-fine{color:var(--muted);font-size:var(--fs-xs);line-height:1.45;margin:9px 0 0}
.btn.block{display:block;width:100%}
.signup-reveal{margin-top:14px;text-align:left}
#hide-signup{margin-top:12px}

/* Paying: KEEP the hero visible (keep selling while they enter details). The plan
   picker and the Stripe card stack vertically inside the right card, which scrolls
   internally (see `.login-shell .login-card{overflow-y:auto}`) so the whole flow —
   fields, plans, the mounted card iframe, and the Back button — stays reachable. */
.login-card.paying .signup-cols{flex-direction:column}
.login-card.paying .signup-left,
.login-card.paying .signup-right{width:100%;min-width:0;flex:1 1 auto}
.login-card.paying #embedded-checkout{min-height:300px}

/* Invite / reset: no subscribe prompt. */
.login-card:has(#invite-block:not(.hidden)) .signup-toggle,
.login-card:has(#reset-block:not(.hidden)) .signup-toggle,
.login-card:has(#invite-block:not(.hidden)) #signup-reveal,
.login-card:has(#reset-block:not(.hidden)) #signup-reveal{display:none}

/* Single configured plan: summary line instead of a lone radio. */
.plan-solo{border:1px solid var(--line);border-radius:var(--r);padding:10px 12px;background:var(--panel);font-size:14px;color:var(--ink)}

/* Responsive: stack on tablet, trim the hero on small phones. */
@media (max-width:880px){
  /* Stacked: hero on top, form below; the whole gate scrolls (card scroll off). */
  .login-shell{flex-direction:column;max-width:460px;height:auto;max-height:none}
  .login-shell .login-card{min-width:0;max-width:none;flex:1 1 auto;width:100%;overflow-y:visible}
  .login-hero{flex:1 1 auto;padding:26px 24px;gap:12px}
  .lh-headline{font-size:24px}
  .lh-foot{margin-top:8px}
}
@media (max-width:560px){
  .lh-headline{font-size:22px}
  .lh-shot{max-width:100%}
}

/* ===== Account page: panels in rows, left to right =====
   0680, v3.861.0 — Darren: *"Some of the boxes in here don't seem quite right. They're cut off at the
   top … I see they wrap from bottom to top, which, on a computer, I don't think it should do."* It was
   a CSS multi-column "masonry": panels flowed DOWN each column and a tall one was split across two,
   its top half at the foot of one column and the rest at the head of the next. A grid reads in rows,
   left to right, and never splits a panel. */
#account-body{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:18px;
  align-items:start;margin-top:4px}
#account-body > *{min-width:0;margin:0}
#account-body > .panel{width:auto;display:block}
/* Wide panels (analytics / audit) and anything that is not a panel (the filter chips) take the row. */
#account-body > .panel.panel-wide, #account-body > :not(.panel){grid-column:1/-1}

/* Results: stat cards live in the right column beside the overhead build-up,
   filling what used to be an empty gap above the per-employee table. */
.results-flow .cards{gap:12px;margin:0 0 14px}

.results-flow table.mini{width:100%}
.results-flow table.mini td{padding:11px 14px}
.results-flow .card .v{font-size:20px}


/* Wizard: connect steps + review checklist */
.wiz-connect-box{background:var(--blue-lt);border:1px solid #D6E3FF;border-radius:var(--r);padding:16px 18px;margin:6px 0 2px}
.wiz-connected{color:#1f8a4c;font-size:15px}
.wiz-checklist{display:flex;flex-direction:column;gap:8px}
.wiz-check{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:10px 14px;font-weight:600;color:var(--muted)}
.wiz-check.on{color:#1f8a4c;border-color:#bfe6cd;background:#f0faf3}

/* ---- Drag-to-reorder handles (employee grid, P&L tables, asset groups) ---- */
.col-drag{ width:22px; padding-left:4px !important; padding-right:0 !important; }
.drag-handle{
  display:inline-block; cursor:grab; user-select:none;
  color:var(--muted,#8a94a6); font-size:15px; line-height:1;
  padding:2px 3px; border-radius:4px;
}
.drag-handle:hover{ color:var(--ink,#231F20); background:rgba(0,0,0,.06); }
.drag-handle:active{ cursor:grabbing; }
tr.dragging{ opacity:.45; }
tr.dragging td{ background:rgba(0,78,254,.08); }

/* ---- QRS supplier confirmation table ---- */
.qrs-sup-table td{ vertical-align:top; }
/* ON ITS OWN LINE, not beside the name. `max-width:100%` did nothing here: the select was inline, so
   the CELL grew to fit it and the table grew with the cell. A block at full width cannot do that. */
.qrs-sup-table .qrs-sup-vendor{ display:block; width:100%; margin-top:6px; }
.qrs-badge{ display:inline-block; font-size:11px; font-weight:600; padding:1px 7px; border-radius:10px; }
.qrs-badge.ok{ background:#e6f4ea; color:#1e6b34; }
.qrs-badge.warn{ background:#fff3cd; color:#8a6100; }
.qrs-badge.new{ background:#F1F0F0; color:#5a6478; }
tr.qrs-undecided td{ background:rgba(255,193,7,.07); }

/* ---- Password show / hide ---- */
.pw-wrap{ position:relative; display:block; }
.pw-wrap input{ width:100%; padding-right:38px; }
/* The icon is an SVG stroked in currentColor, so BOTH themes are driven by `color` here.
   The old rule used an emoji at opacity .65 with a black hover wash — on the dark theme
   that was a dim smudge on a dim panel. --muted is the one token that stays readable
   against --panel in both themes (7.0:1 light, 7.3:1 dark), and hover/focus go to
   --accent so the control announces itself. No opacity: dimming a themed colour is what
   broke it the first time. */
.pw-eye{
  position:absolute; right:5px; top:50%; transform:translateY(-50%);
  display:inline-flex; align-items:center; justify-content:center;
  width:30px; height:30px; padding:0;
  background:transparent; border:1px solid transparent; border-radius:7px;
  cursor:pointer; color:var(--muted, #5B6070);
  transition:color var(--dur-1) var(--ease-out),background-color var(--dur-1) var(--ease-out),border-color var(--dur-1) var(--ease-out);
}
.pw-eye svg{ display:block; }
.pw-eye:hover{ color:var(--accent-ink, #004EFE); background:var(--grey-light, #F2F6FF); border-color:var(--line, #E1E4EC); }
.pw-eye:focus-visible{ outline:0; color:var(--accent-ink, #004EFE); border-color:var(--accent, #004EFE); box-shadow:0 0 0 3px rgba(0,78,254,.28); }
/* While the password is visible the control is "on" — make that state legible at a glance
   rather than relying on the crossed-out icon alone. */
.pw-eye[aria-pressed="true"]{ color:var(--accent-ink, #004EFE); }

/* Supplier confirmation: three radios per row need room, and the row must never clip.
   Reported 2026-08-23 with a screenshot: "Use m…", "Creat…" and the third radio cut off at the right
   edge, and a horizontal scrollbar under the table.
   The cause was NOT the radio column, which was already sized to its content. It was the middle cell:
   the found-supplier name and the picker sat on ONE line, so a row like "Voltex Electrical Accessories
   Pty Ltd" needed the name twice side by side — about 700px — and the table grew past its wrapper,
   pushing the last column off the end.
   So: fixed layout with declared widths, and the picker on its own line. Nothing has to scroll. */
.qrs-sup-table{ width:100%; table-layout:fixed; min-width:640px; }
/* The middle column is the widest on purpose: it holds the picker, and a truncated supplier name in a
   dropdown is the one thing on this screen somebody could get wrong. "Create new" needs 16%, not 22%. */
.qrs-sup-table th:first-child, .qrs-sup-table td:first-child{ width:31%; }
.qrs-sup-table th:nth-child(2), .qrs-sup-table td:nth-child(2){ width:53%; }
.qrs-sup-table th:last-child, .qrs-sup-table td:last-child{ width:16%; white-space:nowrap; padding-right:14px; }
/* THE ACTUAL CAUSE, found by screenshotting it: `th,td` is `white-space:nowrap` for every table in the
   app (line 75). Under that rule NOTHING in this table could ever wrap, whatever the widths said — the
   content simply painted over the next column. The first two columns are prose and have to wrap; the
   third stays nowrap on purpose, because "Use mine" split across two lines is worse than a wide column.
   `overflow-wrap` on top of it, because a part number has no spaces to break at — and again inside the
   inline <code>, which the cell's rule does not reach. */
.qrs-sup-table th:first-child, .qrs-sup-table td:first-child,
.qrs-sup-table th:nth-child(2), .qrs-sup-table td:nth-child(2){ white-space:normal; }
.qrs-sup-table td{ overflow-wrap:anywhere; word-break:break-word; }
/* `anywhere`, not `break-all`: it breaks a part number only when there is genuinely no other option.
   break-all split "RCBO6-1-20NL" across lines even where the cell had room for it. */
.qrs-sup-table td code{ overflow-wrap:anywhere; word-break:normal; }
.qrs-sup-table .qrs-yn{ display:block; white-space:nowrap; line-height:1.7; }
.qrs-sup-table .qrs-yn input{ margin-right:6px; }

/* ---- Signup basket: pick apps, pick a cadence once ---- */
.bk-billing{ display:inline-flex; background:rgba(0,0,0,.05); border-radius:999px; padding:3px; gap:2px; margin-bottom:12px; }
.bk-cad{
  border:0; background:none; cursor:pointer; font:inherit; font-weight:600; font-size:var(--fs-sm);
  padding:6px 16px; border-radius:999px; color:var(--muted,#8a94a6);
}
/* `--card` doesn't exist in this theme — only `--panel` — so this fell back to a WHITE
   pill, and in dark mode `--ink` is near-white. White text on a white chip. */
.bk-cad.on{
  background:var(--panel); color:var(--ink);
  border:1px solid var(--line); box-shadow:0 1px 3px rgba(0,0,0,.18);
}
html[data-theme="dark"] .bk-cad{ background:transparent; }
html[data-theme="dark"] .bk-billing{ background:rgba(255,255,255,.06); }
html[data-theme="dark"] .bk-cad.on{ background:var(--grey-light); color:var(--ink); border-color:var(--grey-mid); }
.bk-save{ font-weight:700; color:#e8630a; margin-left:4px; }

.bk-apps{ display:grid; gap:10px; }
.bk-app{
  display:flex; gap:10px; align-items:flex-start; cursor:pointer;
  border:1.5px solid var(--line,#E2E1E1); border-radius:12px; padding:12px 14px;
  transition:border-color var(--dur-1) var(--ease-out),background var(--dur-1) var(--ease-out);
}
.bk-app:hover{ border-color:#b9c4d4; }
.bk-app.on{ border-color:#0038B8; background:rgba(0,78,254,.045); }
.bk-app.bk-locked{ opacity:.72; cursor:default; }
.bk-tick{ margin-top:3px; flex:0 0 auto; }
.bk-body{ display:block; flex:1; min-width:0; }
.bk-top{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.bk-tag{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em;
  background:rgba(0,78,254,.1); color:#0038B8; padding:2px 8px; border-radius:999px; }
.bk-price{ display:block; font-weight:700; font-size:var(--fs-sm); margin-top:3px; }
.bk-blurb{ display:block; font-size:12.5px; color:var(--muted,#65708a); margin-top:4px; line-height:1.45; }
.bk-bullets{ display:grid; gap:2px; margin-top:7px; font-size:var(--fs-xs); color:var(--muted,#65708a); }
.bk-plus{
  display:flex; gap:7px; align-items:flex-start; margin-top:10px; padding:8px 10px;
  background:rgba(255,193,7,.12); border-left:3px solid #ffc107; border-radius:6px;
  font-size:12.5px; font-weight:600; cursor:pointer;
}
.bk-plus-note{ display:block; font-weight:400; color:var(--muted,#65708a); }

.bk-total{
  border-top:2px solid var(--line,#E2E1E1); margin:16px 0 12px; padding-top:12px;
  display:grid; gap:5px; font-size:var(--fs-sm);
}
.bk-line{ display:flex; justify-content:space-between; gap:12px; }
.bk-line em{ font-style:normal; color:var(--muted,#8a94a6); font-size:11.5px; }
.bk-sum{ display:flex; justify-content:space-between; gap:12px; font-size:16px; font-weight:800; margin-top:6px; }
.bk-then{ color:var(--muted,#65708a); font-size:var(--fs-xs); }
.bk-empty{ color:var(--muted,#8a94a6); font-size:12.5px; }

/* ---- FLUID PANEL WIDTH, FOR EVERY PANEL (v3.352.0) -------------------------
   Darren, 3 Sep 2026: *"Why don't we use the full width of this window? Can you please go through
   all areas and make sure we are using the full width of all windows based on how wide it is?"*

   He was looking at the Catalogue Archiver with its panels at 856px on a 2,000px window. The cause
   was 42 hard-coded `style="max-width:820px"` (and 860, 940, 960...) written inline on CONTAINERS
   across app.js and the app modules — pinned in pixels, so a bigger monitor bought nothing.

   Those are gone. `.panel` now caps where `.panel.wide` always did, so a panel fills what is
   available and only stops at 1400px, where an unbroken line of text starts to become hard to read.

   THE CAP BELONGS TO THE TEXT, NOT THE BOX. That is the distinction the inline styles missed: a
   table, a filter strip or a grid should use every pixel, while a paragraph should not. So prose
   inside a panel gets a reading measure in `ch` (which scales with the font, unlike a pixel), and
   everything else fills. A `.lead` or a `.hint` that is deliberately full width can say so with
   `.measure-none`. */
/* ---- 1400px WAS STILL LEAVING 314px EMPTY (measured 3 Sep 2026) ------------------------------
   Darren, after v3.352.0: *"Plus we're not using the full width here either. Please do an audit and
   update all areas to make use of the full width of a page."* So I audited it rather than adjusting
   by eye — loaded the real index.html in Chromium at a 2000px window, walked every `section.view`,
   and measured the widest box against the space available:

       main is 1762px wide
       view-snapshots / costs / assets / connect / consultant   panel 1400px -> 314px unused

   v3.352.0 moved the width into this one token, which is what made the audit a one-line fix rather
   than another sweep. 2000px is a ceiling rather than a target: `min(100%, ...)` means the panel is
   FULL WIDTH on any ordinary monitor, and only a very large display sees a limit at all — a table
   row three thousand pixels wide is not readable, it is just wide. Prose keeps its own measure
   below, which is the thing that actually needs to be narrow. */
/* 0667, v3.858.0 — THE MEASURE IS PIXELS NOW, AND WIDER. Darren, 24 Sep 2026: *"We're wrapping lots
   of text in the middle of nowhere such as the 'Every document here is included with the Platinum
   Edge membership...'"* That is the fifth screen this rule has been blamed for (see 0496, 5048,
   6550, theme.css 2914). `ch` follows each element's own font, so a 13px note stopped at about
   720px — halfway across a 1900px panel, with the rest of the box empty. One fixed limit in pixels
   means every paragraph stops in the same place, and 1100px only matters on a very wide screen. */
:root{ --panel-max:2000px; --measure:1100px; }
.panel{ max-width:min(100%, var(--panel-max)); }
.panel.wide{ max-width:min(100%, var(--panel-max)); }
.panel > p, .panel > .lead{ max-width:min(100%, var(--measure)); }
/* A coloured box is not a paragraph: it runs the width of what it sits in, or its background ends
   in mid-air beside empty panel. */
.panel > p.edge-incl, .panel > p.edge-excl{ max-width:none; }
/* ---- A CAPTION IS NOT PROSE, AND `ch` MADE IT HALF A LINE (v3.496.0) ------------------------
   Darren, 8 Sep 2026, of the note under the team's week: *"This part is wrapping for some reason."*
   MEASURED: it was this rule. `--measure` is 82ch, and `ch` is a unit of the ELEMENT'S OWN font —
   so on a 12.5px `.hint` it comes out at about 520px, not the ~940px the same rule gives body text.
   Every caption in the product was wrapping at a bit over half the width it was meant to, and the
   ones under a full-width grid looked broken because the thing above them was 2000px wide.
   So a caption gets its measure in `rem`, which does not scale with its own font size: still a
   readable line length, no longer a function of how small the text happens to be. */
.panel > .hint{ max-width:min(100%, 64rem); }
/* And a note under a full-width grid is a FOOTNOTE to that grid, not a paragraph beside it. */
.wk-notes p.hint, .panel.wide > .hint{ max-width:none; }
.panel > p.measure-none, .panel > .measure-none{ max-width:none; }
/* Tables, grids and filter strips are DATA and take the room — they are never a reading measure. */
.panel > .tablewrap, .panel > table, .panel > .filters, .panel > .bia-grid{ max-width:none; }
/* A panel INSIDE another panel — the quiz under a course, the resource form under a lesson. Same
   shape, one step quieter, so the nesting reads as nesting rather than as two unrelated cards. */
.panel.sub{background:var(--tint,#F7F9FC);padding:14px;margin:12px 0 0;border-color:transparent;box-shadow:none}

/* ---- Labour pricing: two full-width options, stacked ----------------------
   Side by side, the "type it yourself" option had three number fields crammed into
   half a column and wrapped onto three lines. Stacked, each option gets the full
   width and the three fields sit in one comfortable row. */
.qrs-choice.qrs-stack{ grid-template-columns:1fr; }
.qrs-choice.qrs-stack .qrs-opt{ padding:14px 16px; }
#qrs-rate-manual{ display:flex; gap:14px; flex-wrap:wrap; align-items:flex-end; }
#qrs-rate-manual .field{ margin:0; }
#qrs-rate{ max-width:520px; width:100%; }

/* ---- Responsive: the app has to work on a laptop, a wide monitor and a phone ---- */
@media (max-width:900px){
  main{ padding:14px 12px; }
  .cards{ grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); }
  #qrs-rate-manual{ gap:10px; }
  #qrs-rate-manual .field{ flex:1 1 130px; max-width:none; }
  .bk-app{ padding:10px 12px; }
}
@media (max-width:620px){
  .row{ flex-wrap:wrap; }
  .cards{ grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); }
  /* On a phone the three columns cannot all fit; the table keeps a floor and the wrapper scrolls, but
     the picker is still a block so the middle column is no longer the thing making it wide. */
  .qrs-sup-table{ min-width:520px; }
  .bk-billing{ width:100%; display:flex; }
  .bk-cad{ flex:1; }
  .field, .field input, .field select{ max-width:none !important; }
  .modal{ max-width:100% !important; margin:0; border-radius:0; }
}

/* Narrow-screen overflow fixes, found by measuring rather than guessing:
   - table.mini is width:auto, so a long label pushed it past the viewport
   - the help bubble is a fixed 260px absolutely-positioned box near the right edge
   - the What-if hire rows are nowrap inline-flex groups with a wide <select> inside */
@media (max-width:620px){
  table.mini{ width:100%; table-layout:fixed; }
  table.mini td{ overflow-wrap:anywhere; }
  /* The hover bubble is absolutely positioned and centred on its badge, so near the
     right edge of a phone it hangs off the page — and because hidden elements still
     count towards scrollWidth, it did that even before you touched it. Fixed
     positioning takes it out of the scroll box entirely and pins it to the viewport,
     where it reads as a small bottom sheet. */
  .help .help-pop{
    position:fixed; left:12px; right:12px; width:auto; max-width:none;
    top:auto; bottom:12px; transform:none;
  }
  .help .help-pop::after{ display:none; }
  .whatif-row .wi-grp{ flex-wrap:wrap; width:100%; }
  .whatif-row .wi-grp select,
  .whatif-row .wi-grp input{ max-width:100%; }
  .results-flow{ grid-template-columns:1fr; }
  /* The left column is pinned to 460px so the build-up table reads well on a desktop.
     On a phone that is wider than the screen, so let it shrink. */
  /* Grid children default to min-width:auto, i.e. "at least as wide as my content" —
     which is how a 593px table forced a 398px column. Both children need min-width:0
     before they will actually shrink. */
  .results-flow > *{ min-width:0; }

  .chart-fig svg{ max-width:100%; height:auto; }
  /* Row action buttons sat outside the last cell once the table was squeezed. */
  /* table-layout:fixed shares width by column count, which collapsed the action
     column to nothing and pushed its buttons outside the row. Give the narrow
     columns an explicit share. */
  /* The column model now lives outside this media query (see "an explicit column model"
     above) so it applies at every width. Only the small-screen tightening stays here. */
  table.editable input{ max-width:100%; }
  table.editable td:last-child, table.editable th:last-child{ width:34px; white-space:nowrap; }
  table.editable td.col-drag, table.editable th.col-drag{ width:20px; }
  table.editable th.r, table.editable td.r{ width:34px; }
  table.editable th.c-cost, table.editable td[data-key="cost"]{ width:auto; }
}

/* ---- Signup card sizing with the basket in it -----------------------------
   The card was built for a 380px column holding four short radio rows. The basket is
   five app cards with bullets and prices, and at 380px its flex children (which default
   to min-width:auto — "at least as wide as my content") refused to shrink, forced an
   overflow, and collapsed the whole column into a vertical strip of single letters.
   Two fixes, both needed: give the card room, and let its contents shrink. */
.login-card.showing-signup{ max-width:660px; }
/* The shell is a GRID (`display:grid;grid-template-columns:1.05fr .95fr` in theme.css),
   not a flex row — so `flex:*` on the panes does nothing at all, which is why earlier
   attempts to widen the card had no effect whatever value they used. Resize the COLUMNS.
   The hero's product screenshot gives it a ~555px min-content width, so give it a fixed
   comfortable column and hand every remaining pixel to the card. */
/* Only on screens wide enough for two panes. Below 900px theme.css collapses the shell
   to a single column, and this rule was overriding that and squeezing the card to 68px. */
@media (min-width:901px){
  /* Give the ads real room — the hero is the only thing selling while they fill the
     form in — and let the shell use more of a wide monitor. */
  .login-shell:has(.login-card.showing-signup){ grid-template-columns:minmax(0,560px) minmax(0,1fr); max-width:1560px; }
  .login-shell .login-card.showing-signup{ max-width:none; }
}
/* `.signup-right` exists to hold the Stripe card iframe, but it reserved its
   `flex:1 1 360px` from the moment the signup card opened — so the fields and the whole
   basket were crammed into ~315px of an 800px card while an empty column sat beside
   them. It only earns its space once payment actually starts. */
.login-card:not(.paying) .signup-right{ display:none; }
.login-card:not(.paying) .signup-left{ flex:1 1 100%; min-width:0; }
/* A 930px-wide "First and last name" box looks daft, but capping them at 460 left a
   470px hole beside the form. Lay the four short fields out two-up instead, so the
   column is filled and nothing is stretched. The basket spans both columns. */
@media (min-width:1150px){
  .login-card.showing-signup:not(.paying) #signup-fields{
    display:grid; grid-template-columns:1fr 1fr; gap:0 22px; align-items:start;
  }
  .login-card.showing-signup:not(.paying) #signup-fields > #su-basket-field{
    grid-column:1 / -1;
  }
}
/* The sign-in inputs above sat at the full 930px while the ones below were capped —
   two different-looking forms on one card. Match them. */
.login-card.showing-signup .signin-block .field{ max-width:460px; margin-inline:auto; }
/* With the column at full width there's room to lay the apps out two-up. */
@media (min-width:1150px){
  .login-card.showing-signup:not(.paying) #bk-apps{
    grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
  }
}
/* The hero and the card both declare a flex share, so widening the card only works if
   the hero yields at the same time. It keeps selling in what's left. */
/* flex-basis alone isn't enough: the hero's product screenshot gives it a min-content
   width of ~555px that it refuses to go below, so the card never gets its share. Cap the
   hero outright and let the image scale down inside it. */
/* Ask the hero for less while the basket is open. NOTE: in practice it bottoms out
   around 555px — something in the product-carousel subtree sets that min-content floor
   and I could not find it — so the card lands at ~500px rather than the 660 asked for.
   That is wide enough for the basket to render properly, which was the actual bug; the
   remaining width is a pre-existing shell quirk, not a regression. Left in because it
   does hand the card whatever room the hero can spare on narrower shells. */
.login-shell:has(.login-card.showing-signup) .login-hero{ flex:1 1 300px; }
@media (max-width:900px){
  .login-card.showing-signup,
  .login-shell .login-card.showing-signup{ max-width:100%; min-width:0; flex:1 1 auto; }
}
/* THE bug that collapsed the card into a strip of single letters:
   `.login-card .field input{width:100%;padding:11px 13px}` (theme.css) applies to every
   input inside a .field — including the basket's tick-boxes, because the basket lives in
   one. A 100%-wide checkbox eats the entire flex line and leaves the text span 0px, so
   every word wrapped one character per row. The plan-picker already carried the same
   workaround; the basket needs its own. */
.login-card .field .bk-app input,
.login-card .field .bk-plus input{
  width:auto; min-width:0; padding:0; margin:0; flex:0 0 auto;
}
/* Every flex/grid child in the basket must be allowed to go narrower than its text. */
.bk-app, .bk-body, .bk-top, .bk-line, .bk-sum{ min-width:0; }
.bk-body{ overflow-wrap:anywhere; }
.bk-blurb, .bk-bullets span, .bk-price{ overflow-wrap:anywhere; }
.bk-line > span:first-child{ min-width:0; overflow-wrap:anywhere; }
/* While paying, the basket collapses to a compact summary — the decision is made and
   the Stripe card needs the room. */
.login-card.paying #su-basket-field .bk-apps,
.login-card.paying #su-basket-field .bk-billing{ display:none; }
.login-card.paying #su-basket-field > span::after{ content:' — see the total below'; font-weight:400; color:var(--muted); }

/* ---- Basket: escape the field-label styling ------------------------------
   `.login-card .field span{display:block;uppercase;letter-spacing:.08em;font-weight:800}`
   (theme.css) exists to style the little grey label above an input. The basket lives
   inside a .field, so EVERY span in it — app names, prices, blurbs, bullets, the
   running total — was rendered as an uppercase grey label with a margin. The plan
   picker already carried this escape hatch; the basket needs its own.

   Scoped by ID on purpose: theme.css loads after styles.css, so a class-only rule of
   equal specificity would lose. An ID wins outright. */
#su-basket-field .bk-app span,
#su-basket-field .bk-plus span,
#su-basket-field .bk-total span,
#su-basket-field .bk-billing span{
  display:inline; font-size:inherit; letter-spacing:normal; text-transform:none;
  font-weight:inherit; color:inherit; margin:0;
}
/* …then put back the handful that genuinely need their own look. Each selector below
   has to match the reset's specificity (ID + class + element), or the reset wins — it
   did on first attempt, which is why the blurb came out at 14px. */
#su-basket-field .bk-app span.bk-tag,
#su-basket-field .bk-tag{
  display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:.04em; background:rgba(0,78,254,.12); color:#0038B8;
  padding:2px 8px; border-radius:999px;
}
#su-basket-field .bk-app span.bk-price,
#su-basket-field .bk-plus span.bk-price,
#su-basket-field .bk-billing span.bk-price,
#su-basket-field .bk-price{ display:block; font-weight:700; font-size:var(--fs-sm); margin-top:3px; color:var(--ink); }
#su-basket-field .bk-app span.bk-blurb,
#su-basket-field .bk-plus span.bk-blurb,
#su-basket-field .bk-billing span.bk-blurb,
#su-basket-field .bk-blurb{ display:block; font-size:12.5px; color:var(--muted); margin-top:4px; line-height:1.45; }
#su-basket-field .bk-app span.bk-bullets,
#su-basket-field .bk-plus span.bk-bullets,
#su-basket-field .bk-billing span.bk-bullets,
#su-basket-field .bk-bullets{ display:grid; gap:2px; margin-top:7px; font-size:var(--fs-xs); color:var(--muted); }
#su-basket-field .bk-bullets span{ display:block; }
#su-basket-field .bk-top b{ font-size:14px; }
#su-basket-field .bk-app span.bk-plus-note,
#su-basket-field .bk-plus span.bk-plus-note,
#su-basket-field .bk-billing span.bk-plus-note,
#su-basket-field .bk-plus-note{ display:block; font-weight:400; color:var(--muted); font-size:11.5px; }
/* ---- THE SAVE PILL NOBODY COULD READ (v3.240.0) ----------------------------------------------
   Darren, 28 Aug 2026, with a screenshot: "The save $ pill is hard to read."
   THREE rules claim `.bk-save`. In source order: an inline orange TEXT rule for the cadence
   toggle, then — 800 lines later, written for the session-booking rows — a filled orange PILL
   (`background:var(--orange); color:#fff`), then this one, which set a colour and NOT a
   background. Id specificity means this one wins the colour and the pill rule keeps the
   background, so the basket rendered **orange text on an orange fill**: about 1:1 contrast, which
   is not "hard to read", it is invisible.
   A rule that overrides half of a look inherits the other half. So this one now reverts every
   property the pill set that can matter here, rather than the one that happened to be noticed —
   and the colour is the darker orange already used for text on light backgrounds elsewhere in this
   sheet (#a8560a, ~4.9:1 on white), not the brand fill, which was never a text colour.
   (`display:inline-block` is the pill's one other property and is left as it is: it is what a
   `<span>` beside text does anyway. Named rather than quietly skipped, so nobody reads "every
   property" and then finds one.) */
#su-basket-field .bk-app span.bk-save,
#su-basket-field .bk-plus span.bk-save,
#su-basket-field .bk-billing span.bk-save,
#su-basket-field .bk-save{
  font-weight:700; color:#a8560a;
  background:none; padding:0; margin-top:0; border-radius:0; font-size:inherit;
}
/* On the dark theme #a8560a is a dark brown on a dark chip. Same idea, other end of the ramp. */
html[data-theme="dark"] #su-basket-field .bk-save{ color:#ffa552; }
#bk-total .bk-line{ display:flex; justify-content:space-between; gap:12px; }
#bk-total .bk-sum{ display:flex; justify-content:space-between; gap:12px; font-size:16px; font-weight:800; margin-top:6px; }
#bk-total .bk-then, #bk-total .bk-empty{ display:block; color:var(--muted); font-size:var(--fs-xs); }
#bk-total .bk-line em{ font-style:normal; color:var(--muted); font-size:11.5px; }
/* Ex-GST marker. Quieter than the amount it qualifies, but not hidden — it sits inline
   with the price so it can't be read as belonging to the line below. */
#su-basket-field .bk-ex, .bk-ex{
  font-style:normal; font-weight:600; font-size:11px; color:var(--muted);
  text-transform:none; letter-spacing:.02em; white-space:nowrap;
}
#bk-total .bk-gst{
  display:block; margin-top:7px; padding-top:7px; border-top:1px solid var(--line,#E1E4EC);
  color:var(--muted); font-size:11.5px; line-height:1.45;
}
#bk-total .bk-gst b{ color:var(--ink); font-weight:700; }

/* ---- One scroll region, not three ----------------------------------------
   The shell is a fixed-height box (100vh - 48px) whose right card scrolls internally.
   That works for a short sign-in form. With the basket in it the card is ~1,600px tall,
   so you got an inner scrollbar on the card AND an outer one on the page, the hero
   stayed frozen while the card moved, and the cadence toggle ended up clipped off the
   top. While the basket is open, let the shell grow and the PAGE do the scrolling. */
.login-shell:has(.login-card.showing-signup){ height:auto; max-height:none; }
.login-shell:has(.login-card.showing-signup) .login-card{ overflow-y:visible; }
/* Pin the hero while the basket scrolls past it. Three things all had to be true, which
   is why this didn't work first time:
     1. the scrolling ancestor is `.login-gate` (overflow-y:auto) — NOT the page;
     2. `.login-shell{overflow:hidden}` sat between them and clipped the sticky context.
        `overflow:clip` was NOT enough — Chromium still treats a clip container as the
        sticky scrollport, and the shell never scrolls, so the hero had nothing to stick
        inside. It has to be `visible`. The shell only clipped to round its corners, so
        the hero takes over that job for its own two corners;
     3. in a GRID the hero stretches to the full row height by default, leaving it no
        room to move — `align-self:start` (not flex-start) is what frees it. */
/* `.login-gate` carries overflow-y:auto, which makes IT the sticky scrollport even
   though it never actually scrolls once the shell has grown — so the hero had nothing to
   stick inside. Hand scrolling back to the document. */
.login-gate:has(.login-card.showing-signup){ overflow:visible; }
.login-shell:has(.login-card.showing-signup){ overflow:visible; align-items:start; }
.login-shell:has(.login-card.showing-signup) .login-hero{
  position:sticky; top:0; align-self:start; max-height:100vh; overflow-y:auto;
  border-top-left-radius:var(--r); border-bottom-left-radius:var(--r);
}
.login-shell:has(.login-card.showing-signup) .login-card{
  border-top-right-radius:var(--r); border-bottom-right-radius:var(--r);
}

/* ---- Free-quarter offer in the basket ---- */
.bk-free{ margin-bottom:12px; }
.bk-free.hidden{ display:none; }
.bk-freebox{
  display:flex; gap:10px; align-items:flex-start; cursor:pointer;
  border:1.5px solid #1f8a4c; border-radius:12px; padding:12px 14px;
  background:rgba(31,138,76,.09); font-size:13.5px;
}
#su-basket-field .bk-freebox input{ width:auto; min-width:0; padding:0; margin:3px 0 0; flex:0 0 auto; }
#su-basket-field .bk-freebox span{ display:inline; font-size:inherit; letter-spacing:normal;
  text-transform:none; font-weight:inherit; color:inherit; margin:0; }
#su-basket-field .bk-freebox b{ display:block; margin-bottom:3px; }
#su-basket-field .bk-free-sub{ display:block; color:var(--muted); font-size:12.5px; line-height:1.45; }
#su-basket-field .bk-free-code{ display:block; margin-top:10px; }
#su-basket-field .bk-free-code input{ width:100%; max-width:320px; padding:8px 10px; font-size:var(--fs-sm);
  border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--ink); }
#su-basket-field .bk-free-code span{ display:block; font-size:var(--fs-xs); margin-top:4px; }
#su-basket-field .bk-free-code span.ok{ color:#1f8a4c; font-weight:600; }
#su-basket-field .bk-free-code span.bad{ color:var(--danger); }

/* ---- Invite-code fallback ------------------------------------------------------------
   The free quarter is invitation-only, so this row exists only for the person whose emailed
   link got mangled, or who is signing up on a different device. Deliberately understated:
   a visitor with no invite should read past it, not be advertised an offer they can't have. */
.bk-invite{ margin:4px 0 12px; }
.bk-invite .linkbtn{ font-size:12.5px; color:var(--muted); }
.bk-invite .linkbtn:hover{ color:var(--accent-ink); }
.bk-invite #bk-invite-row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.bk-invite #bk-invite-row.hidden{ display:none; }
.bk-invite input{ flex:1; min-width:150px; max-width:220px; padding:8px 10px; font-size:var(--fs-sm);
  letter-spacing:1px; text-transform:uppercase;
  border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--ink); }
.bk-invite #bk-invite-msg{ font-size:var(--fs-xs); }
.bk-invite #bk-invite-msg.ok{ color:#1f8a4c; font-weight:600; }
.bk-invite #bk-invite-msg.bad{ color:var(--danger); }

/* Per-theme logo pair, shared by /apps, terms and privacy. logo.png is the WHITE variant, so any
   page that gained a light mode needed the blue one too. */
.lp-lg{ display:none; }
html[data-theme="light"] .lp-lg-light{ display:block; }
html[data-theme="dark"]  .lp-lg-dark{ display:block; }
.legal-top{ display:flex; align-items:center; gap:12px; }
.legal-top .theme-toggle{ margin-left:auto; }

/* ---- Platinum staff signup ---------------------------------------------------------- */
.su-staff{ display:block; margin:6px 0 4px; padding:11px 13px; border-radius:var(--r);
  background:var(--accent-soft, #EAF0FF); border-left:3px solid var(--accent); }
.su-staff.hidden{ display:none; }
.su-staff b{ display:block; font-size:13.5px; margin-bottom:3px; }
.su-staff span{ display:block; font-size:12.5px; line-height:1.45; color:var(--muted); }

/* ---- Live panel borrowed into the guided start -------------------------------------
   The node inside is the REAL control from the tool's screen, moved here (not copied), so it
   arrives carrying its own .panel styling and max-width. Clear both, or a panel built for an
   820px column sits visibly narrower than the wizard around it. */
.aw-live{ margin:14px 0 4px; }
.aw-live > .panel, .aw-live .panel{ max-width:none !important; margin:0 0 12px; }
.aw-live > .panel:last-child{ margin-bottom:0; }
/* A borrowed REGION (not a whole panel) has no frame of its own — give it one so it doesn't
   look like loose controls floating under the explanation. */
.aw-live > div[data-wiz]{ border:1px solid var(--line); border-radius:var(--r); padding:14px; background:var(--panel); }
/* "Scan finished — click Next." The one moment the wizard has to hand control back deliberately. */
.wiz-done{ margin:12px 0 0; padding:10px 12px; border-radius:var(--r);
  background:color-mix(in srgb, var(--ch2,#7B7979) 12%, transparent);
  border-left:4px solid var(--ch2,#7B7979); }
/* The tool's own step headings ("2 · Scan usage") are wrong in here — the wizard already says
   which step this is, and two numbering schemes on one screen is worse than none. */
.aw-live > .panel > h2:first-child{ display:none; }
.aw-live:empty{ display:none; }
/* A borrowed panel lands inside the wizard's typographic context, where `.chk` lost its inline
   layout and rendered the tick above its own label. Restate it rather than hunting the cascade. */
.aw-live .chk{ display:inline-flex; align-items:center; gap:7px; }
.aw-live .chk input[type=checkbox]{ margin:0; flex:0 0 auto; width:auto; }
.aw-live .field{ margin-bottom:10px; }

/* ---- QRS: the install destination, restated at the commit point ----------------------
   A long form scrolls the "installing into" banner off screen well before the button. The
   answer to "which Simpro is this about to write to" has to be in the same glance as the
   thing you click, so it is repeated here — instance URL and company NAME, not just an id. */
.qrs-dest{
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
  margin:0 0 12px; padding:10px 14px;
  background:var(--panel-2,#f7f9ff); border:1px solid var(--line,#e1e4ec);
  border-left:4px solid var(--accent,#0038B8); border-radius:10px;
  font-size:13.5px; line-height:1.4;
}
.qrs-dest.warn{ border-left-color:#e8630a; }
.qrs-dest .qd-lbl{ color:var(--muted); font-weight:600; }
.qrs-dest .qd-co{ font-weight:800; color:var(--ink); }
.qrs-dest .qd-sep{ color:var(--grey-mid,#bcbec0); }
.qrs-dest .qd-url{ font-weight:700; color:var(--ink); overflow-wrap:anywhere; }
.qrs-dest .qd-id{
  font-size:11.5px; font-weight:700; color:var(--muted);
  background:var(--grey-light,#f2f6ff); border:1px solid var(--line,#e1e4ec);
  border-radius:999px; padding:1px 8px;
}
.qrs-dest .qd-change{ font-size:var(--fs-xs); font-weight:700; margin-left:auto; }

/* ---- QRS: where an install WENT, on the history row (2026-08-25) ---------------------
   Darren: "install history needs the company it went to as well. In multicompany we can't
   see which one is which." Same three parts and the same classes as .qrs-dest above, so
   the destination you read before pressing Install and the one you read back afterwards
   are one visual idea rather than two. Muted, because the row's subject is the result. */
.qrs-tgt{
  display:flex; align-items:center; flex-wrap:wrap; gap:5px;
  margin-top:3px; font-size:var(--fs-xs); font-weight:400; line-height:1.35;
  white-space:normal;
}
.qrs-tgt .qd-co{ font-weight:700; color:var(--ink); }
.qrs-tgt .qd-sep{ color:var(--grey-mid,#bcbec0); }
.qrs-tgt .qd-url{ font-weight:400; color:var(--muted); overflow-wrap:anywhere; }
.qrs-tgt .qd-id{
  font-size:11px; font-weight:700; color:var(--muted);
  background:var(--grey-light,#f2f6ff); border:1px solid var(--line,#e1e4ec);
  border-radius:999px; padding:0 6px;
}
/* Nothing recorded is a sentence, not an empty cell. */
.qrs-tgt.unknown{ color:var(--muted); font-style:italic; }
/* The repeated-target affordance. A rule down the left of every run that shares a target,
   so a set reads as a set at a glance — no colour, no icon, nothing that says "problem",
   because the app cannot know whether a second run into a company duplicated anything. */
.qrs-tgt-also{
  font-size:11px; color:var(--muted); margin-top:2px;
  border-left:2px solid var(--grey-mid,#bcbec0); padding-left:6px;
}
.qrs-tgt.rep{ border-left:2px solid var(--grey-mid,#bcbec0); padding-left:6px; margin-left:-8px; }

/* ---- Invoice Credit ------------------------------------------------------------------
   The tool writes financial records in bulk, so the commit step is styled to look like
   what it is. Everything above it is deliberately ordinary. */
.ic-filters{ display:flex; gap:14px 18px; flex-wrap:wrap; align-items:flex-end; margin-top:10px; }
.ic-filters .field{ max-width:200px; min-width:150px; margin:0; flex:0 1 auto; }
.ic-filters .field select{ width:100%; }
/* v3.1110.0 (30 September 2026) — A DROPDOWN'S FIELD MAY BE WIDER THAN A TEXT BOX'S. 200px is plenty for a
   typed filter, but a picker's chosen label has to fit whole: the Public Holidays activity picker read
   "— couldn’t read activi" at every width. Still wraps like any other field; still never past its row. */
.ic-filters .field:has(> select){ max-width:260px; }
.ic-bar{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  background:var(--panel-2,#f7f9ff); border:1px solid var(--line,#e1e4ec);
  border-radius:10px; padding:10px 12px; margin:14px 0 0;
}
.ic-bar #ic-search{
  flex:1 1 260px; min-width:180px; padding:8px 11px; font:inherit; font-size:13.5px;
  border:1px solid var(--line,#e1e4ec); border-radius:8px;
  background:var(--panel,#fff); color:var(--ink);
}
.ic-count{ margin-left:auto; font-size:var(--fs-sm); color:var(--muted); white-space:nowrap; }
.ic-count b{ color:var(--ink); }
/* Explicit column widths, keyed by class.
   `table-layout:auto` let the Customer column take whatever it wanted, which pushed Status off
   the right edge behind a scrollbar and left the money columns crammed together. Fixed layout
   with named widths gives every column what it actually needs: Customer absorbs the slack,
   the numbers get enough room for six figures, and nothing is clipped at 1200px+. */
.ic-table{ table-layout:fixed; width:100%; min-width:920px; }
.ic-table td, .ic-table th{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ic-table th.col-chk, .ic-table td.col-chk{ width:38px; }
.ic-table .ic-c-cust { width:auto; min-width:180px; white-space:normal; }
.ic-table .ic-c-no   { width:88px; }
.ic-table .ic-c-type { width:124px; }
.ic-table .ic-c-date { width:104px; }
.ic-table .ic-c-amt  { width:140px; }
/* ID-scoped, and that is deliberate. `table.editable th:last-child{width:52px}` lives in
   theme.css, which loads AFTER this sheet — so it wins on load order no matter how many
   classes I stack here, and Status kept rendering at 52px with "Approved" ellipsised. Third
   time this trap has bitten in one session (asset delete button, grid headings, this).
   An id beats any class-only rule regardless of sheet order, which is the only fix that
   doesn't depend on remembering which file loads last. */
#ic-grid th.ic-c-stage, #ic-grid td.ic-c-stage{ width:104px; }
/* Headers follow their column's data: text left, numbers right. theme.css right-aligns every
   `table.editable th`, which left "Customer" and "Type" hanging over left-aligned content. */
#ic-grid th.ic-c-cust, #ic-grid th.ic-c-type{ text-align:left; }
#ic-grid td.ic-c-cust, #ic-grid td.ic-c-type{ text-align:left; }
/* Type badge — quiet for the ordinary cases, orange for a deposit, because crediting money
   asked for up front is a different decision from crediting delivered work. */
.ic-badge{
  display:inline-block; font-size:11px; font-weight:700; letter-spacing:.01em;
  padding:2px 8px; border-radius:999px; white-space:nowrap;
  background:var(--grey-light,#f2f6ff); color:var(--muted); border:1px solid var(--line,#e1e4ec);
}
.ic-badge.warn{ background:rgba(232,99,10,.12); color:#c05600; border-color:rgba(232,99,10,.35); }
[data-theme="dark"] .ic-badge.warn{ color:#ffa657; }
.ic-shown{ font-size:var(--fs-xs); color:var(--muted); white-space:nowrap; }
/* The narrowing picker sits with the search box, not with the scan filters. */
/* Multi-select as chips. Every option visible, its state obvious, and combining them needs no
   ctrl-click and no explanation. */
.ic-chipsets{ display:flex; gap:26px; flex-wrap:wrap; margin-top:14px; }
.ic-chipset{ display:flex; flex-direction:column; gap:7px; }
.ic-chip-lbl{
  font-size:11.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:var(--muted);
}
.ic-chiprow{ display:flex; gap:8px; flex-wrap:wrap; }
.ic-chip{
  display:inline-flex; align-items:center; gap:7px; cursor:pointer; user-select:none;
  padding:7px 13px; border-radius:999px; font-size:var(--fs-sm); font-weight:600;
  border:1.5px solid var(--line,#e1e4ec); background:var(--panel,#fff); color:var(--muted);
  transition:border-color var(--dur-1) var(--ease-out),background-color var(--dur-1) var(--ease-out),color var(--dur-1) var(--ease-out);
}
/* 15px was the smallest tap target in the app, on a chip somebody presses dozens of times to pick
   which areas to scan. The chip itself is the target; the box just has to be visible inside it. */
.ic-chip input{ width:20px; height:20px; margin:0; cursor:pointer; accent-color:var(--accent,#0038B8); flex:none; }
.ic-chip{ min-height:40px }
.ic-chip:hover{ border-color:var(--accent,#0038B8); }
/* :has() carries the selected state, so the whole chip reads as on/off rather than just its
   little checkbox — the point of a chip over a bare tick box. */
.ic-chip:has(input:checked){ border-color:var(--accent,#0038B8); color:var(--ink); background:var(--accent-soft,#eaf0ff); }
.ic-chip:focus-within{ box-shadow:0 0 0 3px rgba(0,78,254,.25); }
/* A chip that is a BUTTON rather than a label-with-a-checkbox — the standard date ranges on the health
   check. `:has(input:checked)` above cannot light it because there is no input to check, so the same
   selected look is carried by a class. Written to match the rule above exactly: a chip that looks
   different depending on which kind of chip it is would be a worse control than no chip at all. */
.ic-chip.on{ border-color:var(--accent,#0038B8); color:var(--ink); background:var(--accent-soft,#eaf0ff); }
button.ic-chip{ font-family:inherit; }
/* "nothing selected" beside the Select all button. A hint the same grey as every other hint would be
   the one line on the panel nobody reads, and it is the one that says the run would read nothing. */
.hint.warn{ color:var(--danger,#b42318); font-weight:700; }
/* Sixteen area chips in one flat run is a wall; three short runs under a heading is a list you can
   scan. The heading is small and quiet on purpose — it is a signpost, not a section. */
.bh-group{ margin:0 0 10px; }
.bh-group-h{ font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.5px;
  color:var(--muted); margin:0 0 5px; }
#ic-filter-note{ margin-top:10px; }
/* 27 September 2026, v3.1087.0 — the pre-scan questionnaire on the health-check run form. Folded away by
   default so a quick run is still one press; one short step at a time once it is open. */
.bhq{ margin:14px 0 4px; border:1px solid var(--line,#e1e4ec); border-radius:10px; padding:10px 14px; background:var(--panel,#fff); }
.bhq>summary{ cursor:pointer; }
.bhq-steps{ margin:8px 0 10px; }
.bhq-q{ margin:0 0 12px; }
.bhq-ask{ margin:0 0 4px; font-weight:600; }
.bhq-num{ display:flex; gap:8px; align-items:center; }
.bhq-num input{ max-width:140px; }
.bhq-nav{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
/* 29 September 2026, v3.1107.0 — the Business Health Check run form as five cards. Theme variables only, so the
   dark theme needs nothing of its own; the cards stack and the fields wrap at phone width. */
.bh-preset-lead{ align-self:center; margin-right:2px; }
.bh-form-h{ display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; margin:0 0 12px; }
.bh-card{ border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin:0 0 12px; background:var(--panel); }
.bh-card-h{ display:flex; align-items:center; gap:8px; margin:0 0 10px; font-size:15px; }
.bh-num{ display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:999px;
  background:var(--blue-lt); color:var(--blue-ink); font-size:var(--fs-sm); font-weight:800; flex:0 0 auto; }
.bh-includes{ display:flex; flex-wrap:wrap; gap:6px 14px; list-style:none; padding:0; margin:10px 0 0; }
.bh-includes li{ font-size:var(--fs-sm); color:var(--ink); }
.bh-includes li::before{ content:'✓ '; color:var(--ok); font-weight:800; }
/* v3.1132.0 — "Buy one" on the Health Check screen: four cards, a price each, one button each. */
.bh-buy-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px; margin:8px 0; }
.bh-buy-card{ display:flex; flex-direction:column; gap:4px; padding:12px; border:1px solid var(--line); border-radius:10px; background:var(--panel); }
.bh-buy-card .btn{ margin-top:auto; align-self:flex-start; }
.bh-buy-price{ font-size:18px; font-weight:800; color:var(--ink); }
.bh-sub{ margin:14px 0 6px; font-size:var(--fs-sm); text-transform:uppercase; letter-spacing:.4px; color:var(--muted); }
.bh-core-q{ margin-top:8px; }
.bh-card [hidden]{ display:none !important; }
/* ---- v3.1139.0 (4 October 2026) — "ABOUT YOUR BUSINESS", AND THE QUESTIONS IN FOLDING SECTIONS ----------------------
   Darren approved this shape after three rounds: "some being little cells like that and some being lines would break up
   the page a little bit and make it easier to enter the data." And: "Vertical space to make it look pretty, maybe.
   Vertical space just because we wrapped something too early, no good." (plan §3.4b, §3.4d–g; the approved mock is
   bhq-mixed.html). Cells for what we already know — they size to their content and wrap, never stretched across a wide
   screen — and lines for what only the owner knows. Provenance is three different claims, so three looks: SIMPRO
   (blue: read from their system), OUR GUESS (orange: confirm it), and nothing once it is their own answer. Theme tokens
   only, so dark mode is the tokens and nothing else; brand blue and orange only (test/v31119ui). */
.bhq-about{ border:1px solid var(--line); border-radius:12px; background:var(--panel); padding:14px 16px 15px; margin:0 0 12px; }
.bhq-about-hd{ display:flex; align-items:baseline; gap:4px 10px; flex-wrap:wrap; margin:0 0 2px; }
.bhq-about-t{ margin:0; font-size:15px; font-weight:700; color:var(--ink); white-space:nowrap; }
.bhq-about-st{ font-size:12.5px; color:var(--muted); }
.bhq-about-st b{ color:var(--orange-ink); font-weight:700; }
.bhq-about-st .bhq-st-why{ color:var(--muted); }
.bhq-about-st .bhq-st-ok{ color:var(--ok); font-weight:700; }
/* the band label that splits the two halves: words, then a hairline to the edge */
.bhq-band{ display:flex; align-items:center; gap:10px; margin:12px 0 8px; }
.bhq-band>span{ flex:0 0 auto; font-size:10.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); }
.bhq-band::after{ content:""; flex:1 1 auto; height:1px; background:var(--line); }
/* CELLS — a wrapping row, each as wide as what is in it */
.bhq-cells{ display:flex; flex-wrap:wrap; gap:10px; }
.bhq-about .bhq-q{ margin:0; }
.bhq-cell{ flex:0 1 auto; min-width:150px; max-width:100%; border:1px solid var(--line); border-radius:10px; padding:7px 12px 8px;
  background:var(--panel); position:relative; }
.bhq-cell:focus-within{ border-color:var(--b-500); box-shadow:var(--s-focus); }
.bhq-cell.is-empty{ border-style:dashed; }
.bhq-cell.is-simpro{ border-color:color-mix(in srgb, var(--b-500) 35%, var(--line)); }
.bhq-cell.is-guess{ border-color:var(--orange); background:var(--orange-soft); }
.bhq-cell-l{ display:flex; align-items:center; gap:6px; margin:0 0 1px; white-space:nowrap; cursor:pointer;
  font-size:10.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); }
.bhq-cell-v{ display:flex; align-items:baseline; gap:6px; }
.bhq-about .bhq-cell-v select,.bhq-about .bhq-cell-v input[type=number],.bhq-about .bhq-val input[type=number]{
  appearance:none; -webkit-appearance:none; -moz-appearance:textfield; border:0; background:transparent; box-shadow:none;
  min-height:0; height:auto; padding:0; margin:0; border-radius:0; font:inherit; font-size:var(--fs-lg); font-weight:800;
  letter-spacing:-.01em; color:var(--ink); }
.bhq-about .bhq-cell-v select{ width:12em; max-width:100%; padding-right:18px; cursor:pointer; }
.bhq-about .bhq-cell[data-bhq="business_state"] select{ width:6.5em; }
.bhq-about .bhq-cell-v.is-pick{ position:relative; }
.bhq-about .bhq-cell-v.is-pick::after{ content:""; position:absolute; right:3px; top:50%; width:6px; height:6px; margin-top:-5px;
  border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); pointer-events:none; }
.bhq-about .bhq-cell.is-guess select{ color:var(--orange-ink); }
.bhq-about .bhq-cell.is-empty select{ color:var(--muted); font-weight:600; }
.bhq-about .bhq-cell-v input[type=number],.bhq-about .bhq-val input[type=number]{ width:2.6em; text-align:right; }
.bhq-about .bhq-cell-v input[type=number]{ text-align:left; width:1.9em; }
.bhq-about input[type=number]::-webkit-outer-spin-button,.bhq-about input[type=number]::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.bhq-about .bhq-cell-v select:focus,.bhq-about .bhq-cell-v input:focus,.bhq-about .bhq-val input:focus{ box-shadow:none; outline:0; }
.bhq-u{ font-size:var(--fs-sm); font-weight:700; color:var(--muted); }
/* the provenance tags */
.bhq-tag{ font-size:9px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; padding:1px 5px; border-radius:4px; line-height:1.5; }
.bhq-tag.is-simpro{ background:var(--blue-lt); color:var(--blue-ink); }
.bhq-tag.is-guess{ background:var(--panel); color:var(--orange-ink); box-shadow:inset 0 0 0 1px var(--orange); }
.bhq-tag.is-staff{ background:var(--tint,var(--grey-light)); color:var(--muted); margin-left:6px; vertical-align:2px; }
/* LINES — the question in full, one line of why, a compact value box and "Not sure" */
.bhq-line{ display:flex; align-items:center; gap:14px; padding:9px 2px; }
.bhq-line+.bhq-line{ border-top:1px solid var(--line); }
.bhq-line-q{ flex:1 1 auto; min-width:0; cursor:pointer; }
.bhq-line-q>b{ display:block; font-size:14px; font-weight:600; color:var(--ink); line-height:1.3; }
.bhq-why{ display:block; font-size:12.5px; color:var(--muted); margin-top:2px; }
.bhq-line-v{ flex:0 0 auto; display:flex; align-items:center; gap:10px; }
.bhq-val{ display:flex; align-items:center; gap:5px; border:1px solid var(--line); border-radius:9px; padding:6px 12px; background:var(--panel); }
.bhq-val:focus-within{ border-color:var(--b-500); box-shadow:var(--s-focus); }
.bhq-val.is-empty{ border-style:dashed; }
/* "Not sure": a pill that is a checkbox, so a second press takes it back. It counts as answered. */
.bhq-ns{ position:relative; display:inline-flex; align-items:center; flex:0 0 auto; border:1px solid var(--line); border-radius:999px;
  padding:5px 12px; font-size:12.5px; color:var(--muted); cursor:pointer; white-space:nowrap; user-select:none; }
.bhq-ns input{ position:absolute; opacity:0; width:1px; height:1px; margin:0; pointer-events:none; }
.bhq-ns:focus-within{ box-shadow:var(--s-focus); }
.bhq-ns.on{ background:var(--blue-lt); border-color:var(--b-500); color:var(--blue-ink); font-weight:700; }
.bhq-cell .bhq-ns{ padding:2px 9px; font-size:11.5px; margin-left:4px; align-self:center; }
.bhq-act{ display:flex; gap:8px 14px; align-items:center; flex-wrap:wrap; margin:12px 0 0; }
.bhq-about .bhq-ok{ border-radius:999px; padding-left:18px; padding-right:18px; }
.bhq-skip{ border:0; background:transparent; font:inherit; font-size:13.5px; color:var(--muted); cursor:pointer; padding:6px 0; }
.bhq-skip:hover{ color:var(--ink); }
.bhq-skipped{ margin:6px 0 0; font-size:var(--fs-sm); color:var(--muted); }
.bhq-skipped .bhq-skip{ color:var(--blue-ink); font-weight:600; padding:0 0 0 4px; }
/* THE FOLDING SECTIONS — one line each, the count on the right */
.bhs{ border:1px solid var(--line); border-radius:12px; background:var(--panel); margin:0 0 10px; }
.bhs>summary{ display:flex; align-items:center; gap:12px; padding:10px 14px; cursor:pointer; list-style:none; }
.bhs>summary::-webkit-details-marker{ display:none; }
.bhs>summary::before{ content:""; flex:0 0 auto; width:7px; height:7px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted);
  transform:rotate(-45deg); transition:transform var(--dur-2) var(--ease-out); margin:0 2px 0 1px; }
.bhs[open]>summary::before{ transform:rotate(45deg); }
.bhs>summary>b{ flex:1 1 auto; min-width:0; font-size:14px; font-weight:700; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bhs-n{ flex:0 0 auto; font-size:12.5px; color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums; }
.bhs-n.is-done{ color:var(--ok); font-weight:600; }
.bhs[open]>summary{ border-bottom:1px solid var(--line); }
.bhs-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:12px 14px; padding:12px 14px 14px; }
.bhs-grid>.field{ min-width:0 !important; max-width:none; }
.bhs-grid .bhq-q{ margin:0; }
.bhs-figs{ grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); }
.bhs.bhq{ padding:0; margin:0 0 10px; }
.bhs.bhq>#bhq-inner{ padding:4px 14px 12px; }
@media (max-width:600px){
  .bhq-about{ padding:12px; }
  .bhq-cells{ flex-direction:column; }
  .bhq-cell{ min-width:0; width:100%; }
  .bhq-about .bhq-cell-v select,.bhq-about .bhq-cell[data-bhq="business_state"] select{ width:100%; }
  .bhq-line{ flex-wrap:wrap; gap:8px; }
  .bhq-line-q{ flex:1 1 100%; }
  .bhq-line-v{ flex:1 1 100%; }
  .bhs-grid{ grid-template-columns:1fr; }
  .bhs>summary{ padding:10px 12px; }
  .bhs-n-w{ display:none; }
}
/* v3.1134.0 (2 October 2026) — the "Which health check" box keeps one width. Darren: "the drop down window expands and
   contracts a little bit … overlapping the text with white space and a grey bar." The label carried min-width 300 against
   the filter row's 260 cap and grew with the row; the box now has one stable width (it never animates or grows on focus)
   and the description under it sits in its own layer below the open list. */
.ic-filters .field.bh-product-field{ flex:0 1 420px; width:420px; min-width:0; max-width:100%; }
#bh-product{ width:100%; min-width:0; max-width:100%; box-sizing:border-box; transition:none; text-overflow:ellipsis; }
#bh-product:focus,#bh-product:active{ width:100%; transform:none; }
#bh-card-product .bh-includes,#bh-product-why{ position:relative; z-index:0; }
@media (max-width:600px){
  .bh-card{ padding:10px; }
  .bh-card .field{ min-width:0 !important; flex:1 1 100%; }
}
.ic-bar select{
  padding:7px 9px; font:inherit; font-size:var(--fs-sm); border-radius:8px;
  border:1px solid var(--line,#e1e4ec); background:var(--panel,#fff); color:var(--ink);
}
.ic-table td.c-label{ white-space:normal; }
/* The commit block. Red border, not a red button alone — the whole area should read as
   "this one is different" before the eye reaches the button. */
.ic-danger{
  margin-top:14px; padding:16px 18px; border-radius:12px;
  border:1.5px solid #e0a3a3; border-left:5px solid var(--danger);
  background:rgba(192,57,43,.05);
}
[data-theme="dark"] .ic-danger{ border-color:#7a3b34; border-left-color:#e05a4a; background:rgba(224,90,74,.09); }
.ic-danger .field{ margin:12px 0; }
.ic-danger #ic-confirm{ font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.btn.danger[disabled]{ opacity:.5; cursor:not-allowed; }

/* Combo nudge on the updater cards: the pair has always been cheaper, but the saving was
   only visible once both were already ticked — which is too late to influence the choice. */
#su-basket-field .bk-combo, .bk-combo{
  display:block; margin-top:8px; padding:7px 10px; border-radius:8px;
  font-size:var(--fs-xs); line-height:1.45; text-transform:none; letter-spacing:0; font-weight:500;
  background:rgba(232,99,10,.09); border:1px solid rgba(232,99,10,.28); color:var(--ink);
}
#su-basket-field .bk-combo.on, .bk-combo.on{
  background:rgba(31,138,76,.10); border-color:rgba(31,138,76,.30);
}
#su-basket-field .bk-combo b, .bk-combo b{ font-weight:800; }

/* ---- EMPLOYEE GROUPS (v3.147.0) ---------------------------------------------------------------
   Darren, 24 Aug 2026: group employees the way assets are grouped — a heading, a select-all on that
   heading, and easy movement between groups. The grid stays ONE table (forty columns, drag-reorder,
   per-column show/hide and per-row autosave all address `#emp-grid tbody tr`), so the heading is a
   full-width row inside it rather than a separate table per group. Styled to read as a heading, not
   as a person. */
/* ---- THE GROUP BAR IS THE GRID'S HEADER STRIP (moved 2026-08-24) ----------------------------
   Darren: "Plus it's not in the right place." It sat above the bulk toolbar looking like a second
   toolbar. It is a filter on the rows, so it now sits directly on top of the grid and is drawn as
   the same box: matching border and background, square bottom corners, no bottom border, and
   .grid-scroll loses its top margin and top corners when it follows one. Nothing between the tabs
   and the rows they choose. */
.emp-groupbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:12px 0 0;
  background:var(--panel);border:1px solid var(--line);border-bottom:0;
  border-radius:var(--r) var(--r) 0 0;padding:8px 12px}
.emp-groupbar+.grid-scroll{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}
.emp-groupbar .egb-lbl{font-weight:700;color:var(--grey);margin-right:4px}
.emp-groupbar .egb-tab{border:1px solid var(--line);background:var(--panel);color:var(--blue-dark-ink);
  font:inherit;font-weight:700;padding:5px 11px;border-radius:999px;cursor:pointer}
.emp-groupbar .egb-tab:hover{background:var(--blue-lt)}
.emp-groupbar .egb-tab.on{background:var(--blue);border-color:var(--blue);color:#fff}
.emp-groupbar .egb-n{font-weight:600;opacity:.75;margin-left:4px}
.emp-groupbar .egb-tab.on .egb-n{opacity:.9}
.emp-groupbar .egb-new{border:1px dashed var(--line);background:transparent;color:var(--grey);
  font:inherit;font-weight:700;padding:5px 11px;border-radius:999px;cursor:pointer}
.emp-groupbar .egb-new:hover{color:var(--blue-dark-ink);border-color:var(--blue)}

/* The BAND is the cell; the CONTROLS are what stay in view. A colSpan cell on this grid is ~3,000px
   wide, so pinning the cell pinned an empty box and left the name off past the last column. */
/* the Easy Start adopts this SAME grid (since v3.385.0; before that it drew a twin grid of its own): Darren asked for the second
   employee onward to "revert to the standard entry", and a standard entry that lost its group bands
   would not be the standard entry. Everything that is not about saving is shared. */
/* CLASS-SCOPED, NOT ID-SCOPED (v3.180.0). These rules were written twice — once for #emp-grid and once
   for the twin — and the last time a third table needed them, six of them had only been copied once,
   so the Easy Start's grid carried the heading markup with none of its control styling. "Your rate"
   groups its results the same way now, which would have made it three ids and eighteen selectors. One
   class does it: any table that emits a tr.empgrp gets the band. */
tbody tr.empgrp td{background:var(--blue-lt);border-top:2px solid var(--blue);padding:7px 10px;
  /* HARD LEFT (v3.177.0). A colSpan cell inherits whatever alignment the table's header row has, and on
     this grid that pushed the whole heading toward the middle — Darren's screenshot has "Employees 38
     people" sitting under the Office Admin column. The asset group bars read name-first from the left
     edge and this now matches them. */
  text-align:left}
tbody tr.empgrp .egh-in{position:sticky;left:10px;display:inline-flex;align-items:center;gap:2px;
  /* The pin only works if the content cannot be pushed off it. */
  text-align:left}
/* The name leads the row now, so it carries no left margin — only a gap before the controls. It was
   `margin:0 8px`, which put 8px of nothing in front of the first thing on the line. */
tbody tr.empgrp .egh-name{font-weight:800;color:var(--blue-dark-ink);font-size:15px;margin:0 10px 0 0}
tbody tr.empgrp .egh-n{color:var(--grey);font-weight:600}
tbody tr.empgrp .egh-chk{margin:0 2px 0 6px}
/* lane contractoroncost — the group's Contractors tick, beside the name and pencil. */
tbody tr.empgrp .egh-kind{display:inline-flex;align-items:center;gap:4px;margin:0 8px 0 0;color:var(--blue-dark-ink);
  font-weight:600;font-size:var(--fs-sm);cursor:pointer;white-space:nowrap}
tbody tr.empgrp .egh-kind input{margin:0}
tbody tr.empgrp .egh-empty{color:var(--grey);font-weight:500;font-size:var(--fs-sm);margin-left:12px}
tbody tr.empgrp .egh-caret,
tbody tr.empgrp .egh-rename{border:0;background:transparent;cursor:pointer;color:var(--grey);
  font:inherit;font-size:14px;padding:0 4px}
tbody tr.empgrp .egh-caret:hover,
tbody tr.empgrp .egh-rename:hover{color:var(--blue-dark-ink)}
/* v3.1165.0 — the pencil sits straight after the name it renames (Jarryd), so it needs no lead-in gap. */
tbody tr.empgrp .egh-rename{margin:0 8px 0 -6px;opacity:.5}
tbody tr.empgrp:hover .egh-rename{opacity:1}
/* The results band carries figures on the right, so it needs the alignment its cells ask for rather
   than the left-hard rule above. */
tbody tr.empgrp td.r{text-align:right}
/* A contractor row reads differently on purpose: their rate IS the cost, with no on-costs behind it,
   and a $92.50/hr row sitting beside a $45/hr one is confusing until you can see why. */
#emp-grid tbody tr.is-contractor td.namecol input{font-style:italic}

/* ---- PAGE-ONE LANES AND PROVENANCE (v3.149.0) -------------------------------------------------
   Two ranked lists rather than one: money to collect this week (a phone call, done today) and leaks to
   fix this month (a decision, changes future work). Side by side on a wide screen, stacked on a phone. */
.lanes{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:10px 0}
@media (max-width:820px){.lanes{grid-template-columns:1fr}}
.lane{border:1px solid var(--line);border-radius:var(--r);background:var(--panel);padding:10px 12px}
.lane-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:15px;
  color:var(--blue-dark-ink);border-bottom:1px solid var(--line);padding-bottom:6px}
.lane-h .lane-amt{font-weight:800;color:var(--blue-dark-ink);white-space:nowrap}
.lane ol{margin:6px 0 0;padding-left:20px}
.lane ol li{margin-bottom:7px}
/* The provenance line: what ran, what found nothing, what could not be answered. It is the
   168-pages-to-2 argument made visible, and it inoculates against "what didn't you check?". */
.prov{font-size:12.5px;color:var(--grey);border-left:3px solid var(--blue);padding:5px 0 5px 9px;margin:8px 0}
/* The confidence mark. Deliberately small and quiet: it is a qualifier on the finding beside it, not a
   badge competing with it. ● verified in your data · ◐ a judgement call. */
.cm{font-size:11px;vertical-align:1px;cursor:help}
.cm.mech{color:#1f8a4c}
.cm.heur{color:#c98a1e}

/* The Group and kind columns (v3.149.0). Without an explicit width the two new `info` columns took a
   share of the flexible space and squeezed Labour Type down to a sliver — visible in Darren's screenshot
   as a select showing "erson". Both are hidden by default; these widths are for when somebody shows them. */
#emp-grid th[data-col="block"],#emp-grid td[data-col="block"]{min-width:130px}
#emp-grid th[data-col="kind"],#emp-grid td[data-col="kind"]{min-width:120px}
#emp-grid td[data-col="block"] input{width:120px}
#emp-grid td[data-col="kind"] select{width:110px}

/* =================================================================================================
   PLATINUM EDGE — the membership screens (25 August 2026)
   =================================================================================================
   Three states on every entitlement, never two: available / on hold / used. The hold is the one the
   layout has to make visible, because "started and not finished" is the state the owner described
   and the one a customer will ask about.  */

/* ONE WIDTH FOR THE WHOLE MEMBERSHIP SCREEN. Darren, 26 Aug 2026: "Should the width be the same as
   the others?" — the panels below carry .panel.wide's max-width and the banner carried none, so the
   banner over-hung every panel under it on a wide monitor. The screen now has a single measure and
   everything on it lines up; #edge-body covers the noticeboard and the holds strip too. */
#edge-body > *{max-width:min(100%, var(--panel-max))}   /* v3.1105.0 — Darren: "We're now not using the full width. Why not?" The one measure is now the screen's own width. */
.edge-hero{background:linear-gradient(135deg,var(--blue-dark),var(--blue));color:#fff;border-radius:var(--r);padding:26px 24px;margin:14px 0}
.edge-hero h1{margin:4px 0 8px;font-size:26px;line-height:1.25;color:#fff}
.edge-hero .lead{color:rgba(255,255,255,.92);margin:0 0 12px;max-width:70ch}
.edge-eyebrow{margin:0;font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.7);font-weight:800}
/* The tier is a fact about the member, so it colours the banner rather than being a word in it. */
.edge-tier-bronze .edge-hero-in, .edge-hero.edge-tier-bronze{background:linear-gradient(135deg,#6b4a2f,#a9764a)}
.edge-hero.edge-tier-silver{background:linear-gradient(135deg,#4d5560,#8d97a4)}
.edge-hero.edge-tier-gold{background:linear-gradient(135deg,#8a6414,#d3a13a)}
.edge-hero.edge-tier-platinum{background:linear-gradient(135deg,#22303f,#5f7285)}
.edge-chips{display:flex;flex-wrap:wrap;gap:8px}
.edge-chip{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:4px 12px;font-size:12.5px;font-weight:600}
/* A CHIP NOBODY CAN READ IS WORSE THAN NO CHIP. `opacity:.75` on the dark Platinum banner put grey
   text on a dark ground — Darren sent a screenshot of 'Renewal date not recorded' as a smudge. A
   secondary chip now stays legible: same white text, a quieter border, italic to mark it as an
   absence rather than a value. */
.edge-chip.muted{font-weight:500;font-style:italic;color:rgba(255,255,255,.9);background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.22)}
.edge-chip-src{font-weight:500;opacity:.85}
.edge-grace{margin:14px 0 0;background:rgba(255,255,255,.14);border-left:4px solid var(--orange);padding:9px 12px;border-radius:6px;font-size:13.5px}
.edge-grace.stopped{border-left-color:#ffb4a8}

.edge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;margin:12px 0}
.edge-card{border:1px solid var(--line);border-radius:var(--r);padding:14px 15px;background:var(--panel);display:flex;flex-direction:column;gap:8px}
.edge-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.edge-card h3{margin:0;font-size:var(--fs-md);line-height:1.35}
.edge-avail{text-align:right;line-height:1.1}
.edge-avail b{font-size:26px;color:var(--blue-ink)}
.edge-avail .edge-sub{display:block}
.edge-sub{font-size:11.5px;color:var(--muted);font-weight:600}
/* The three figures, side by side. On hold sits between the other two on purpose — it is the state
   between available and used, and reading it in that order is what makes it obvious. */
.edge-nums{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:var(--fs-xs);color:var(--muted)}
.edge-nums b{color:var(--ink);font-size:var(--fs-sm)}
.edge-next{margin:0;font-size:12.5px;color:var(--ink);background:var(--grey-light);border-radius:6px;padding:7px 9px}
.edge-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:auto}
/* SPLITTING IS THE EXCEPTION, so it is a link and not a second button. Two buttons side by side read
   as two equally normal ways of doing this, and the owner's rule is that whole is the standard. */
.edge-linkbtn{background:none;border:0;padding:0;color:var(--blue-ink);font-size:12.5px;font-weight:600;cursor:pointer}
.edge-none{font-size:12.5px;color:var(--muted)}
/* Absent, not zero — everywhere it appears. */
.edge-unknown{color:var(--muted);font-style:italic}
.edge-basis{font-size:11.5px;color:var(--muted);font-weight:700;letter-spacing:.02em}
/* ---- THE TIER ALLOWANCE MATRIX (2026-08-25) -----------------------------------------------------
   One table, a column per tier. The owner: "can you create these like a table? So that it's one list
   but multiple columns. One for each tier." Each column header stacks four things — the tier name, its
   CURRENT allowance version, its price ex GST and its overage discount — so the header is a block
   rather than a line, and the number boxes below it are narrow enough that four tiers fit. */
.edge-tier-matrix .edge-tcol{vertical-align:bottom;min-width:132px}
.edge-tier-matrix .edge-tname{display:block;font-size:14px}
.edge-tier-matrix .edge-tcol .edge-sub,
.edge-tier-matrix .edge-tprice,
.edge-tier-matrix .edge-tover{display:block;font-weight:600;font-size:11.5px;color:var(--muted);
  white-space:normal;text-transform:none;letter-spacing:0}
.edge-tier-matrix .edge-allow{width:100%;max-width:96px;text-align:right}
/* v3.1214.0 — the Unlimited tick under each count and access box (-1 = unlimited, Darren 29 Oct 2026). Ticked, the box hides
   and the cell reads "Unlimited". */
.edge-tier-matrix .edge-allowcell{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.edge-tier-matrix .edge-allow[hidden]{display:none}
.edge-tier-matrix .edge-unl{display:inline-flex;align-items:center;gap:4px;font-size:var(--fs-xs);font-weight:600;
  color:var(--muted);white-space:nowrap;cursor:pointer}
.edge-tier-matrix .edge-unl input{margin:0}
.edge-tier-matrix .edge-unl:has(input:checked){color:var(--blue-ink)}
/* The foot row is the arithmetic that settles the deliberate Gold-over-Platinum dips: total consulting
   hours rise across the tiers even where a line item falls. It is a total, so it reads like one. */
.edge-tier-matrix tfoot .edge-hours-total td{border-top:2px solid var(--line);font-weight:700}

/* ---- A ROW THAT TAKES NO NUMBER HAS TO LOOK LIKE ONE (0356, v3.715.0) ---------------------------
   `edge-row-noallow` has been emitted since v3.219.0 — the route sets `allowanceEditable: false`
   for a timed pass, a quoted-per-job service and anything retired, and the row renders with this
   class instead of a number box. IT HAD NO CSS RULE AT ALL, so MEASURED in Chromium in both
   themes the row came back pixel-identical to an editable one: same background, same text colour,
   same weight, same opacity. The only hint was a small grey sentence at the end of the row.

   So the tint is the information: this line is not one you put a number in. Kept quiet on purpose —
   it is a statement of fact, not a warning, and a loud row here would shout over the numbers the
   table exists to show. Tokens only, so dark mode follows without a second rule. */
.edge-tier-matrix tbody tr.edge-row-noallow{background:var(--grey-light)}
.edge-tier-matrix tbody tr.edge-row-noallow>td:first-child{color:var(--muted)}

/* ---- AND THE SAME FAULT ON THE SERVICES CATALOGUE ---------------------------------------------
   `svc-off` marks a service whose `active` is false. Same story, found in the same sweep and
   measured the same way: no rule, so a retired service read exactly like one still being sold —
   on the screen somebody uses to decide what to quote. */
.svc-table tbody tr.svc-off,
table.grid tbody tr.svc-off{background:var(--grey-light);color:var(--muted)}
.svc-table tbody tr.svc-off>td:first-child::after,
table.grid tbody tr.svc-off>td:first-child::after{content:' — not sold';color:var(--muted);
  font-size:11.5px;font-weight:700}

.edge-holds{border-left:4px solid var(--orange)}
.edge-hold{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;border:1px solid var(--line);border-radius:var(--r);padding:11px 13px;margin:8px 0}
.edge-hold-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.edge-claimform{border-top:1px dashed var(--line);margin-top:8px;padding-top:9px;display:flex;flex-wrap:wrap;gap:8px;align-items:start}
.edge-claimform label{flex:1 1 220px}
.edge-claimform input{padding:7px 9px;border:1px solid var(--line);border-radius:6px}
.edge-claimform.bad input{border-color:var(--danger)}
.edge-claimform .hint{flex:1 1 100%;margin:0}

.edge-list{margin:6px 0;padding-left:18px}
.edge-list li{margin:3px 0;font-size:13.5px}
.edge-list li.unknown{color:var(--muted)}

/* ---- The carousel. Empty-safe: with nothing on it there are no arrows and no dots, because a
   sliding box with controls and nothing in it reads as broken. ---------------------------------- */
.edge-carousel{position:relative;border:1px solid var(--line);border-radius:var(--r);background:var(--panel);padding:16px 46px;margin:14px 0;min-height:74px}
.edge-carousel.empty{padding:12px 16px;color:var(--muted);font-style:italic;min-height:0}
.edge-carousel.empty p{margin:0}
.edge-slide{display:none}
.edge-slide.on{display:block}
.edge-slide h3{margin:5px 0 4px;font-size:15px}
.edge-slide p{margin:0;font-size:13.5px;color:var(--muted)}
/* 3.1206.0 — a web address or a long id in a notice breaks where it must, rather than pushing a 390px screen sideways */
.edge-slide h3,.edge-slide p{overflow-wrap:anywhere}
.edge-slide-link{display:inline-block;margin-top:6px;font-size:var(--fs-sm);font-weight:700;color:var(--blue-ink)}
/* ---- A PICTURE ON A NOTICE (v3.209.0) -----------------------------------------------------------
   Beside the words on a wide screen and above them on a narrow one, and CAPPED: the noticeboard sits
   at the top of every member's dashboard, so one 4,000-pixel photo must not push the whole board off
   the screen. `object-fit: cover` because the customer's picture will not be the shape we hoped for,
   and a squashed logo is worse than a cropped one. `.has-pic` is removed by the img's own onerror, so
   a broken link collapses back to the plain notice instead of leaving a gap where a picture is not. */
.edge-slide.has-pic{display:none}
.edge-slide.has-pic.on{display:flex;gap:14px;align-items:flex-start}
.edge-slide-pic{flex:0 0 auto;width:132px;max-height:96px;object-fit:cover;border-radius:8px;border:1px solid var(--line);background:var(--panel-2,#f6f8fb)}
@media (max-width:640px){
  .edge-slide.has-pic.on{display:block}
  .edge-slide-pic{width:100%;max-height:150px;margin-bottom:10px}
}
.edge-kind{display:inline-block;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;font-weight:800;color:var(--blue-ink);background:var(--blue-lt);border-radius:999px;padding:2px 9px}
.edge-kind-training{color:#8a6414;background:#fbf1dc}
.edge-kind-event{color:var(--orange);background:var(--orange-soft)}
.edge-arrow{position:absolute;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;border:1px solid var(--line);background:var(--panel);color:var(--ink);font-size:var(--fs-lg);line-height:1;cursor:pointer}
.edge-arrow.prev{left:8px}
.edge-arrow.next{right:8px}
.edge-dots{position:absolute;bottom:7px;left:0;right:0;display:flex;justify-content:center;gap:6px}
.edge-dot{width:7px;height:7px;border-radius:50%;border:0;background:var(--grey-mid);cursor:pointer;padding:0}
.edge-dot.on{background:var(--blue)}

/* ---- Admin ------------------------------------------------------------------------------------ */
/* `align-items:start` so the shared label grid decides where the box sits. Stretch (the default)
   made every label as tall as the tallest and poured the slack into the short ones — the exact
   fault .bia-grid fixed in v3.360.0. */
.edge-form{display:flex;flex-wrap:wrap;gap:10px 14px;margin:10px 0;align-items:start}
/* ---- A BLOCK OF STAFF FIELDS THAT BELONG TOGETHER (v3.535.0) --------------------------------
   `.edge-consult` has grouped "Do they deliver sessions?" and its fields since v3.282.0 and never
   had a rule — two uses stayed under the meta-test's threshold, and 0196's "Where they start from"
   made it three, which is the test doing its job. A quiet separated group: a heading, a sentence,
   and its fields, with a line above it so it reads as its own question. */
.edge-consult{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.edge-consult h4{margin:0 0 4px}
.edge-consult>.hint{margin:0 0 10px}
/* The FLEX BASIS stays here — how wide a field wants to be is this form's business. How its three
   rows stack is the shared rule above, and it is not repeated. */
.edge-form label{flex:0 1 200px}
/* v3.1110.0 — the same for a picker here: "Equivalent hours delivered" (Edge stats → rewards) was cut off. */
.edge-form label:has(> select){flex-basis:264px;min-width:min(100%,264px)}   /* v3.1119.0: 240 → 264, and never narrower — Inter sets ~8% wider than the system font */
.edge-form label.wide{flex:1 1 100%}
/* ---- IT NO LONGER RESTATES WHAT A FIELD LOOKS LIKE (v3.372.0) --------------------------------
   The same fault `.bia-grid` was cured of in v3.350.0, in the class next door. Its own padding
   (7px 9px), its own radius (6px, two pixels off the app's --r) and its own font size (13px against
   a 13.5px field) meant every panel built on .edge-form was subtly a different shape from every
   panel built on .bia-grid — same app, two field designs, and neither of them the shared one.
   The look comes from the field rule in theme.css and its three tokens. Nothing here. */
.edge-form .hint{font-weight:400}
.edge-pill{display:inline-block;border-radius:999px;padding:2px 10px;font-size:11.5px;font-weight:800;background:var(--grey-light)}
.edge-tier-bronze.edge-pill{background:#f0e2d4;color:#6b4a2f}
.edge-tier-silver.edge-pill{background:#e7eaee;color:#4d5560}
.edge-tier-gold.edge-pill{background:#fbf1dc;color:#8a6414}
.edge-tier-platinum.edge-pill{background:#e3e9ef;color:#22303f}
.edge-tier-platinum_plus.edge-pill{background:var(--s-accent-soft);color:var(--blue-ink)}   /* v3.1208.0 — theme tokens */
/* v3.1120.0 — a test membership, a cancel still to take effect, and the cancel/keep/test/remove row on the member panel. */
.edge-test.edge-pill{background:var(--orange-soft);color:var(--orange-ink)}
/* v3.1209.0 — a program's badge beside the tier (GR-5). Theme tokens only. */
.edge-prog-badge.edge-pill{background:var(--s-ok-soft);color:var(--s-ok);text-transform:none}
.edge-prog-badges{margin:6px 0 0}
.edge-cancels{color:var(--orange-ink);font-weight:700}
.edge-life{margin:8px 0 4px}
.edge-life-state{margin:0 0 6px}
.edge-life-acts{margin:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.edge-mf-check{display:flex;align-items:center;gap:6px;align-self:end}
.edge-big{font-size:30px;font-weight:800;color:var(--blue-ink);display:inline-block}
.edge-money .edge-big{margin:2px 0 6px}
/* The exclusions sit ON the card with the headline, never in a footnote. A headline figure with
   silent exclusions is the thing this codebase exists to avoid. */
.edge-excl{background:var(--orange-soft);border-left:4px solid var(--orange);padding:9px 12px;border-radius:6px;margin:10px 0;font-size:var(--fs-sm)}
.edge-fulladmin{border-left:4px solid var(--blue)}
/* WHAT A MEMBERSHIP ALREADY COVERS (v3.347.0). Green rather than orange: `.edge-excl` is a
   warning, and "this is included" is the opposite of one. Same shape so the two read as a pair. */
.edge-incl{background:var(--ok-soft,#EAF7EE);border-left:4px solid var(--ok);padding:9px 12px;
  border-radius:6px;margin:10px 0;font-size:var(--fs-sm);
  /* 0667 — the sentence and its button side by side, the button never wrapped under half a word. */
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.edge-incl>.btn{flex:none}
.edge-incl>span{flex:1 1 320px;min-width:0}
.edge-h{margin:22px 0 0}

/* ---- Who at Platinum may do what, and finding a workspace (2026-08-25) ------------------------- */
/* A capability is either held or it is not, and the list shows BOTH — a row that only listed what
   somebody can do would make "cannot invoice" invisible, which is the thing being decided. */
.edge-caps{display:flex;flex-wrap:wrap;gap:4px 8px}
.edge-cap{font-size:11.5px;font-weight:600;color:var(--muted)}
.edge-cap.on{color:var(--ok);font-weight:800}
.edge-capgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px 14px;margin:10px 0}
.edge-capbox{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;align-items:start;font-size:12.5px}
.edge-capbox input{grid-row:span 2;margin-top:3px}
.edge-capbox .edge-sub{grid-column:2;font-weight:500}
/* The master row is drawn as unchangeable with the reason beside it — not hidden, and not editable
   and then refused. */
tr.edge-master{background:var(--blue-soft, rgba(0,78,254,.06))}
/* ---- THE TABLE MUST FIT THE CARD (v3.181.0) ----------------------------------------------------
   A table sizes its columns to their widest content, so any long cell widens the whole table and
   pushes the last column out of the card — which is what a 200-character sentence in the master
   row's "Last changed" cell did. The prose moved out (see edgeStaffRowHtml), and these caps stop the
   next long value doing it again: the email and the note wrap instead of stretching, and the buttons
   keep the width they need. */
#edge-staff-panel table.grid{width:100%;table-layout:auto}
#edge-staff-panel .edge-who{max-width:260px;overflow-wrap:anywhere}
#edge-staff-panel .edge-who .edge-sub{display:block;font-weight:500}
#edge-staff-panel .edge-when{max-width:200px;overflow-wrap:anywhere}
#edge-staff-panel .edge-can{max-width:230px}
#edge-staff-panel .edge-can .edge-caps{flex-direction:column;gap:2px}
#edge-staff-panel .edge-act{white-space:nowrap}
#edge-staff-panel td{vertical-align:top}
.edge-masternote{border-left:3px solid var(--line);padding-left:10px;margin:8px 0}
/* ---- v3.1133.0 (2 October 2026) — USERS AND ACCESS, REDONE --------------------------------------------------
   Darren: "the window is very grey. It's not really spaced out well. It's not wide enough. Everything seems to be
   squished… We have a lot more room, so why not use more of it. Also, why don't we have chips or tabs at the top like
   the other windows?" The list is a clean table with a short summary per person; the person window is the widest
   one (~1200px or 92vw), white, in five tabs, with Save and Cancel pinned to the foot. Theme tokens only. */
#edge-staff-panel .esf-table td{vertical-align:middle;padding-top:10px;padding-bottom:10px}
#edge-staff-panel .edge-can{max-width:none;min-width:200px}
#edge-staff-panel .edge-when{max-width:220px}
.esf-name{all:unset;cursor:pointer;color:var(--ink)}
.esf-name:hover b,.esf-name:focus-visible b{color:var(--blue);text-decoration:underline}
.esf-name:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
.esf-sum{display:block;font-size:var(--fs-sm);margin-bottom:4px}
.esf-areas{display:flex;flex-wrap:wrap;gap:4px}
.esf-areas .chip.sm{margin:0}
.edge-tf .tf-state{font-size:var(--fs-xs)}
.sheet-card.sheet-form.sheet-xwide{max-width:min(1200px,92vw);background:var(--panel)}
.esf{background:var(--panel);color:var(--ink)}
.esf .hint,.esf small.hint{color:var(--muted);font-weight:400}
.esf-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 16px;position:sticky;top:0;z-index:2;background:var(--panel);padding:4px 0 10px;border-bottom:1px solid var(--line)}
.esf-tabs .chip{font-size:13.5px;padding:7px 14px;min-height:36px;cursor:pointer}
.esf-count{font-weight:500;opacity:.85}
.esf-pane{padding:2px 2px 8px}
.esf-pane>.edge-consult:first-child{margin-top:0;padding-top:0;border-top:0}
.esf-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px 22px;align-items:start}
.esf-grid>.field,.esf-grid>label.field{max-width:none;margin:0}
.esf-grid .esf-full{grid-column:1/-1}
.esf .field>input,.esf .field>select{width:100%;min-height:40px;box-sizing:border-box}
.esf #edge-staff-email{font-size:15px}
.esf .edge-consult{margin-top:22px;padding-top:18px}
.esf .edge-consult h4{font-size:15px;margin:0 0 6px}
.esf-presets{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 14px}
.esf-presets-lab{font-weight:700;margin-right:4px}
.esf-presets .chip{cursor:pointer;font-size:var(--fs-sm);padding:5px 12px}
.esf-master{border-left:3px solid var(--blue);padding:8px 12px;margin:0 0 14px;background:var(--accent-soft)}
.esf-caps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:18px 26px;margin:0}
.esf-caps.is-locked{display:none}
.esf-group h4{margin:0 0 6px;font-size:var(--fs-sm);text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.esf-cap.edge-capbox{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;
  border-bottom:1px solid var(--line);font-size:13.5px;cursor:pointer}
.esf-cap .esf-cap-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.esf-cap .esf-cap-text .edge-sub{font-size:12.5px;font-weight:400;color:var(--muted)}
.esf-cap input.esf-switch{appearance:none;-webkit-appearance:none;flex:0 0 auto;width:40px;height:22px;margin:0;
  border-radius:999px;background:var(--line);position:relative;cursor:pointer;transition:background var(--dur-2) var(--ease-out)}
.esf-cap input.esf-switch::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;
  background:var(--panel);box-shadow:0 1px 2px rgba(35,31,32,.3);transition:transform var(--dur-2) var(--ease-move)}
.esf-cap input.esf-switch:checked{background:var(--blue)}
.esf-cap input.esf-switch:checked::after{transform:translateX(18px)}
.esf-cap input.esf-switch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.esf-cap input.esf-switch:disabled{opacity:.5;cursor:not-allowed}
.esf-foot{position:sticky;bottom:0;z-index:2;background:var(--panel);border-top:1px solid var(--line);
  margin:14px -2px 0;padding:12px 2px 4px}
.esf-foot>p{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sheet-form .esf>h3:first-child{display:none}
@media (max-width:640px){
  .sheet-card.sheet-form.sheet-xwide{max-width:none}
  .esf-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
  .esf-tabs .chip{flex:0 0 auto}
  .esf-caps{grid-template-columns:1fr}
  #edge-staff-panel .esf-table thead{display:none}
  #edge-staff-panel .esf-table,#edge-staff-panel .esf-table tbody,#edge-staff-panel .esf-table tr,
  #edge-staff-panel .esf-table td{display:block;width:auto;max-width:none}
  #edge-staff-panel .esf-table tr{border-bottom:1px solid var(--line);padding:8px 0;position:relative}
  #edge-staff-panel .esf-table td{border:0;padding:3px 0}
  #edge-staff-panel .esf-table td.edge-act{position:absolute;top:8px;right:0}
  #edge-staff-panel .esf-table td.edge-who{padding-right:48px}
}
/* ---- BOOK A SESSION (v3.185.0) -----------------------------------------------------------------
   A radio list rather than a row of cards: four options with prices and two of them carrying a saving
   is a comparison, and a comparison reads down a column. It also survives a phone without a media
   query, which a four-card row does not. */
.bk-opts{display:flex;flex-direction:column;gap:10px;margin:12px 0 18px}
.bk-opt{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;
  border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;cursor:pointer;background:var(--panel)}
.bk-opt:hover{border-color:var(--blue)}
.bk-opt.rec{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue) inset}
.bk-opt.inc{background:var(--blue-lt)}
.bk-opt-main{min-width:0}
.bk-opt-lab{font-size:15px}
.bk-rec{display:inline-block;margin-left:8px;background:var(--blue);color:#fff;border-radius:9px;
  padding:1px 8px;font-size:10.5px;font-weight:800;letter-spacing:.02em;vertical-align:middle}
.bk-inc{font-size:12.5px;color:var(--blue-dark-ink);font-weight:700;margin-top:3px}
.bk-disc{font-size:12.5px;color:var(--muted);margin-top:3px}
.bk-opt-price{text-align:right;white-space:nowrap}
.bk-opt-price b{font-size:19px}
.bk-ex{display:block;font-size:11px;color:var(--muted)}
/* The saving is the reason to trade up, so it is the loudest thing on the row after the price. */
.bk-save{display:inline-block;margin-top:4px;background:var(--orange);color:#fff;border-radius:9px;
  padding:1px 8px;font-size:11px;font-weight:800}
.bk-where{display:flex;gap:18px;flex-wrap:wrap;align-items:center;margin:0 0 6px}
.bk-where .hint{flex:1 1 100%;margin:4px 0 0}
.bk-hide{display:none}
/* ---- THE FOUR TIERS ON THE NON-MEMBER SCREEN (v3.188.0) ---------------------------------------
   auto-fit rather than four fixed columns: four cards side by side is unreadable on a laptop and
   impossible on a phone, and this is the page that has to sell the thing. */
.edge-buytoggle{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0 4px}
.edge-buytoggle .hint{flex:1 1 240px}
.edge-tiergrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:12px 0}
.edge-tiercard{border:1px solid var(--line);border-radius:var(--r);padding:16px 16px 18px;
  background:var(--panel);display:flex;flex-direction:column;gap:6px}
.edge-tiercard.pick{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue) inset}
/* ---- THE METAL EACH TIER IS NAMED AFTER (v3.323.0) --------------------------------------------
   Darren: "it would be good if you could make them into bronze, silver, gold, and platinum colours."
   All four cards were the same blue, which wastes the one signal the tier names already carry.

   ON THE CARD, NOT ON THE PRICE. A bar across the top and the heading; the figure stays in the
   ordinary ink colour, because a price rendered in metallic bronze is a price that is harder to read
   and the number is what somebody came to compare.

   AND EACH ONE PASSES CONTRAST ON WHITE. The obvious hexes for these metals do not: #C0C0C0 silver
   on white is roughly 1.3:1, which is decoration rather than text. So each is darkened to a shade
   that still reads AS the metal and can actually be read — silver becomes a warm graphite, platinum a
   cool slate. Named as CSS variables so the dark theme can move them without touching the rules. */
:root{
  --tier-bronze:#8A4F1C;   /* 5.6:1 on white */
  --tier-silver:#5C6570;   /* 6.1:1 — a warm graphite; #C0C0C0 is unreadable as text */
  --tier-gold:#8A6A00;     /* 5.2:1 — darkened; raw gold is ~1.8:1 */
  --tier-platinum:#3F5566; /* 8.0:1 — cool slate */
  --tier-black:#23262B;
}
.edge-tiercard{position:relative;overflow:hidden}
/* The bar. `::before` rather than a border-top so it sits inside the rounded corner. */
.edge-tiercard::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;
  background:var(--tier-c,transparent)}
.edge-tiercard .et-name{color:var(--tier-c,inherit)}
.edge-tiercard.et-bronze{--tier-c:var(--tier-bronze)}
.edge-tiercard.et-silver{--tier-c:var(--tier-silver)}
.edge-tiercard.et-gold{--tier-c:var(--tier-gold)}
.edge-tiercard.et-platinum{--tier-c:var(--tier-platinum)}
/* v3.1208.0 (lane platplus) — Platinum Plus replaced Platinum Black (Darren, 25 Oct 2026), so its card takes the Black token. */
.edge-tiercard.et-black,.edge-tiercard.et-platinum_black,.edge-tiercard.et-platinum_plus{--tier-c:var(--tier-black)}
/* ---- THE JOIN BUTTON WEARS THE TIER'S COLOUR TOO (2026-09-02) ---------------------------------
   Darren: *"Do you think you can change the button colour to match the colour of the tier as well?"*
   Four identical orange buttons under four differently-coloured cards is the same wasted signal the
   cards themselves had — and on a row of four, the button is the biggest block of colour on each one,
   so it was actively fighting the identity above it.

   IT REUSES --tier-c, which the card already sets. One variable, one definition, and a tier added
   tomorrow gets its button coloured by adding a single line up there rather than two down here.

   CONTRAST, BOTH WAYS ROUND. The light-theme metals are deliberately darkened to read as text on
   white (5.2:1 to 8.0:1), and a ratio is symmetric — so white text on them is just as legible. The
   DARK-theme metals are the opposite: light shades chosen to read on a dark panel, where white text
   would be about 1.4:1. Hence the ink override in the dark block below; without it this change would
   make the most important button in the product unreadable for anybody on a dark screen. */
.edge-tiercard .btn.primary.et-buy{background:var(--tier-c,var(--orange));
  border-color:var(--tier-c,var(--orange));color:#fff}
.edge-tiercard .btn.primary.et-buy:hover{filter:brightness(1.08)}
.edge-tiercard .btn.primary.et-buy:focus-visible{outline:2px solid var(--tier-c,var(--orange));
  outline-offset:2px}

/* GOLD KEEPS ITS "PICK" RING, and the two must not fight: the ring is the recommendation and the bar
   is the identity. The ring wins on the border, the bar keeps the top edge. */
.edge-tiercard.et-gold.pick{border-color:var(--tier-gold);
  box-shadow:0 0 0 1px var(--tier-gold) inset}

/* ---- COMING SOON IS NOT A PRICE (v3.323.0) ----------------------------------------------------
   Darren: "at one point there will be another one called Platinum Black Member. For now, you could
   mark that as coming soon."

   Visibly not-yet: dashed, quieter, no Join button and NO FIGURE. A card somebody can press that then
   cannot take their money is worse than no card — and a dash where a price goes reads as "we could not
   load it", which is a different and untrue thing. */
.edge-tiercard.et-soon{border-style:dashed;background:var(--panel-2)}
.et-soonbadge{display:inline-block;font-size:10px;font-weight:800;text-transform:uppercase;
  letter-spacing:.06em;padding:2px 7px;border-radius:var(--r);margin-left:6px;vertical-align:middle;
  background:var(--tier-c,var(--grey-light));color:#fff}
.et-priceless{font-size:1.1rem;font-weight:700;color:var(--muted)}
/* v3.1111.0 — AND KEYED ON THE APP'S OWN SWITCH TOO. This application switches theme on html[data-theme]
   and nothing else, and the block below asks the COMPUTER: the dark app on a light-mode computer drew the
   light-theme metals on the dark panel (bronze #8A4F1C measured 2.6:1 on #17181D, test/v31111a11y), and
   the light app on a dark-mode computer drew the dark-theme ones on white. `html[data-theme=…]` outweighs
   the media block's `:root` whichever comes first, so the light restatement sits here, above it. */
html[data-theme="light"]{
  --tier-bronze:#8A4F1C; --tier-silver:#5C6570; --tier-gold:#8A6A00; --tier-platinum:#3F5566; --tier-black:#23262B;
}
html[data-theme="light"] .edge-tiercard .btn.primary.et-buy{color:#fff}
@media (prefers-color-scheme:dark){
  :root{
    --tier-bronze:#D08A4A; --tier-silver:#AEB8C4; --tier-gold:#D9AE2B;
    --tier-platinum:#9FB8CC; --tier-black:#C9CCD1;
  }
  /* These are LIGHT shades, chosen to read on a dark panel. White label text on them is about
     1.4:1 — so the button takes ink instead, which is 8:1 or better on every one of the five. */
  .edge-tiercard .btn.primary.et-buy{color:#231F20}
}
html[data-theme="dark"]{
  --tier-bronze:#D08A4A; --tier-silver:#AEB8C4; --tier-gold:#D9AE2B;
  --tier-platinum:#9FB8CC; --tier-black:#C9CCD1;
}
html[data-theme="dark"] .edge-tiercard .btn.primary.et-buy{color:#231F20}
.et-name{font-weight:800;font-size:15px;color:var(--blue-dark-ink)}
.et-price{font-size:26px;font-weight:800;line-height:1.1}
.et-per{display:block;font-size:11.5px;font-weight:600;color:var(--muted)}
.et-fee{font-size:12.5px;color:var(--muted)}
.et-save{font-size:var(--fs-xs);font-weight:800;color:#fff;background:var(--orange);border-radius:9px;
  padding:1px 8px;align-self:flex-start}
.et-blurb{font-size:12.5px;color:var(--muted);flex:1 1 auto}
.et-buy{margin-top:6px;width:100%}
.et-note{font-size:var(--fs-xs);color:var(--muted)}
/* Diagnostics at the bottom, shut (v3.188.0). Darren: "If I don't need to see it all the time, can we
   put these at the bottom?" — a <details> because it is genuinely collapsible content, so it works
   without JavaScript and the browser remembers nothing it should not. */
.sa-diag{margin-top:22px;border-top:1px solid var(--line);padding-top:14px}
.sa-diag > summary{cursor:pointer;padding:8px 10px;border-radius:var(--r);background:var(--panel-2, #FAFAFA);
  list-style:none}
.sa-diag > summary::-webkit-details-marker{display:none}
.sa-diag > summary::before{content:'\25B8 ';color:var(--muted)}
.sa-diag[open] > summary::before{content:'\25BE '}
.sa-diag > summary:hover{color:var(--blue-dark-ink)}
/* Where the customer's split button used to be (v3.187.0): the rule, and who to ask. */
.edge-hold-note{flex:1 1 100%;margin-top:6px;max-width:44ch}
/* Fix all shortfalls (v3.217.0). Warning-coloured, above the cards it is about, and it lists every
   line it will write — a batch grant that does not show its working is a blank cheque. */
.edge-shortfix{border-left:4px solid var(--danger);background:#fdf3f2;border-radius:6px;
  padding:12px 14px;margin:0 0 16px}
.edge-shortfix p{margin:0 0 8px}
.edge-shortfix ul{margin:0 0 10px;padding-left:20px}
/* v3.1106.0 — the member panel's entitlement table and the open form's allowances table: compact, numbers
   right-aligned, the two editable columns as small boxes. */
.edge-ent-tbl td,.edge-open-tbl td{vertical-align:middle}
.edge-ent-tbl input[type=number],.edge-open-tbl input[type=number]{width:5.5em;text-align:right;padding:4px 6px}
.edge-ent-tbl input.bad,.edge-open-tbl input.bad{border-color:var(--danger)}
.edge-ent-save{margin-top:8px}
.edge-shortfix li{margin:2px 0}
.edge-shortfix .edge-form{margin:0 0 8px}
/* The discount line on the money screen (v3.218.0): the headline is what Stripe charges, so the gap
   to list price has to be visible or the page reads as though revenue simply fell. */
.edge-disc{border-left:3px solid var(--orange, #e8871a)}
/* Billed ABOVE list: almost always a mistake, so it reads like one rather than like good news. */
.edge-over{border-left:3px solid var(--danger)}
/* A matrix row that takes no tier number (v3.219.0): timed access, quoted-per-job, retired. The cell
   is a dash rather than an input, because a box invites a number that would do nothing. */
.edge-allownote{display:block;max-width:46ch;margin-top:2px;font-style:italic}
.edge-noallow{text-align:center}
/* A workspace with a run going (v3.219.0). The dot is the answer to "which one", so it sits on the
   name rather than in a column of counts. */
.ws-run{margin-left:6px;color:var(--orange);font-size:.8em;line-height:1}
.ws-line.has-run .ws-item{font-weight:600}
.bk-access{border-left:3px solid var(--blue);background:var(--blue-lt);border-radius:6px;
  padding:12px 14px;margin:16px 0 0}
.bk-access .hint{margin:6px 0 0}
@media(max-width:520px){
  /* The price moves under the label rather than squeezing both. */
  .bk-opt{grid-template-columns:auto minmax(0,1fr)}
  .bk-opt-price{grid-column:2;text-align:left}
}

/* The membership tab pill lives in theme.css (v3.188.0) — see the note there. It was HERE, and
   `.sidebar .tab .star{color:var(--orange)}` in theme.css beat it on both load order and specificity,
   so "Join" rendered orange on an orange pill and read as a blank oval. Second time this exact trap
   has cost a visible bug; the rule now lives in the sheet that wins. */
.edge-wsfind{margin:10px 0}
.edge-wsfind input[type=search]{width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:6px;font-size:var(--fs-sm)}

/* ---- The snapshot ------------------------------------------------------------------------------ */
.edge-onepoint{border-left:4px solid var(--orange)}
.edge-snapcard .edge-snapval{margin:2px 0 4px}
.edge-snapcard .edge-why{margin:0;font-size:12.5px;color:var(--muted)}
/* v3.1143.0 (6 October 2026) — "How do we know it's a callback?": two pick lists side by side (their cost centres, their
   tags), each scrolling inside itself so forty cost centres do not push the page away; one column on a phone. */
.edge-rule{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.edge-rule h3{margin:0 0 4px}
.edge-rule-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.edge-rule-set{border:1px solid var(--line);border-radius:var(--r);padding:8px 10px;margin:0;min-width:0}
.edge-rule-list{max-height:220px;overflow-y:auto;display:flex;flex-direction:column;gap:4px}
.edge-rule-opt{display:flex;gap:8px;align-items:baseline;font-weight:400}
.edge-rule-combine{border:0;padding:0;margin:10px 0 0}
.edge-rule-preview{margin:8px 0 0}
/* v3.1144.0 (6 October 2026) — the same pick lists under the health check's "How do you mark a callback in Simpro?",
   with a search box over each list. */
.bhm-body{margin:8px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r);background:var(--panel-2,transparent)}
.bhm-status{margin:0 0 8px}
.bhm-find{width:100%;margin:0 0 6px;box-sizing:border-box}
.bhm-note{margin:6px 0 0}
.bhm-again-row{margin:6px 0 0}
.edge-rule-mark label.inline{margin-right:10px}
.edge-delta{font-size:12.5px;font-weight:700}
.edge-delta.up{color:var(--ok)}
.edge-delta.down{color:var(--danger)}
.edge-delta.flat{color:var(--muted);font-weight:600}
.edge-spark{color:var(--blue-ink);display:block;max-width:100%;height:44px}
/* v3.1143.0 (6 October 2026) — "The 10 we're working on": the ten lead the Snapshot screen, each tile a
   dated starting figure beside today's. Theme tokens only, so both themes follow. */
.edge-focus{border-left:4px solid var(--blue)}
/* A phone is narrower than the shared grid's 300px floor plus the panel's padding — never a sideways scroll. */
.edge-focusgrid,.edge-watching .edge-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}
.edge-focuscard h3{display:flex;align-items:center;gap:8px}
.edge-focus-n{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:999px;
  background:var(--blue-lt);color:var(--blue-ink);font-size:var(--fs-xs);font-weight:700;flex:none}
.edge-focus-tick{color:var(--ok);font-weight:700}
.edge-focus-dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 12px;margin:6px 0;align-items:baseline}
.edge-focus-dl dt{font-size:12.5px;color:var(--muted)}
.edge-focus-dl dd{margin:0;min-width:0;overflow-wrap:anywhere}
.edge-focuscard.is-done{opacity:.85}
.edge-focus-done{margin-top:14px}
.edge-focus-done h3{margin:0 0 6px}
.edge-fe-list{padding-left:22px}
.edge-fe-list li{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:4px 0;border-bottom:1px solid var(--line)}
.edge-fe-label{font-weight:600}
.edge-fe-btns{margin-left:auto;display:inline-flex;gap:4px;flex-wrap:wrap}
/* ---- Delivered work over time (N3, v3.243.0) --------------------------------------------------
   Bars rather than a line: a delivery count is a tally of discrete things, and a line implies it was
   measured continuously in between. `currentColor` so the bars follow the panel's own colour in both
   themes rather than carrying a hard-coded blue that vanishes on one of them. */
.edge-trend{color:var(--blue-ink);display:block;width:100%;height:90px;margin:10px 0 4px}
/* The row for a bucket that has not finished. Faded, not a different colour: it is the same kind of
   thing, incomplete — and the chart fades its bar by the same amount for the same reason. */
.edge-partial td{opacity:.6}
/* A negative margin should not need reading twice. Same treatment as the loss-making sell rate. */
.edge-neg{color:var(--danger);font-weight:700}
/* ---- The BI report library (B10, v3.244.0) ----------------------------------------------------
   Cards rather than a table: each row is a purchase decision with four facts behind it (tool,
   dialect, size, what you need), and a table would either hide them or be unreadably wide. */
.bi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin:12px 0}
.bi-card{border:1.5px solid var(--line);border-radius:var(--r);padding:15px 16px;display:flex;
  flex-direction:column;gap:7px}
/* A report they already own is marked, so nobody has to read the button to know. */
.bi-card.owned{border-color:var(--blue)}
.bi-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.bi-top h3{margin:0;font-size:15.5px}
.bi-price{font-size:var(--fs-lg);font-weight:800;white-space:nowrap}
/* 3.1207.0.2 — one of the membership's free reports: words, not a price, so smaller, and the included green. */
.bi-price.bi-free{font-size:var(--fs-sm);font-weight:700;color:var(--ok);white-space:normal;text-align:right}
.bi-included{margin:0 0 10px;font-size:var(--fs-md)}
.bi-blurb{margin:0;font-size:var(--fs-sm);line-height:1.5}
.bi-meta{margin:0;font-size:var(--fs-xs);color:var(--muted)}
/* What they need on their side. Bordered, because it is the sentence that stops a refund request. */
.bi-needs{margin:2px 0 0;font-size:12.5px;background:var(--orange-soft);border-left:3px solid var(--orange);
  padding:7px 9px;border-radius:5px}
.bi-actions{margin:auto 0 0;padding-top:6px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
/* ---- CATEGORIES AND PICTURES (v3.323.0) ------------------------------------------------------
   Darren: *"a category where we can type in a category, or it can suggest previously entered
   categories… so that customers can filter and search"* and *"multiple images… one image as a default
   and other images viewable as well"*.

   A CHIP IS A BUTTON. It filters, so it is a <button> and not a styled span — keyboard and screen
   reader get that for nothing, and `.as-btn` strips the button chrome without stripping the
   behaviour. */
/* A BUTTON THAT DOES NOT LOOK LIKE ONE. Defined here because two screens need it (a category chip and
   the editor's "Add a picture" file label) and a third copy is how they drift apart.
   FIRST, BEFORE .bi-tag — both are single classes, so whichever is written later wins, and an .as-btn
   after the chip rule stripped the pill off every chip. */
.as-btn{cursor:pointer;font-family:inherit;font-size:inherit;background:none;border:none;padding:0;
  color:inherit}
label.as-btn{display:inline-block;background:var(--grey-light);border:1.5px solid var(--line);
  border-radius:var(--r);padding:7px 13px;font-weight:700;font-size:var(--fs-sm)}
label.as-btn:hover{border-color:var(--blue);color:var(--blue-ink)}
.bi-tag{display:inline-block;font-size:11.5px;font-weight:700;letter-spacing:.02em;
  background:var(--grey-light);border:1px solid var(--line);border-radius:999px;padding:2px 9px;
  color:var(--ink);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
button.bi-tag{cursor:pointer;font-family:inherit}
button.bi-tag:hover{border-color:var(--blue)}
/* CHOSEN IS OBVIOUS AT A GLANCE, because the whole point of a chip is telling what is filtering. */
button.bi-tag.on{background:var(--blue);border-color:var(--blue);color:#fff}
/* A chip that would empty the screen is a dead end you can see coming — dimmed and disabled rather
   than removed, so the row of categories does not change shape as you narrow it. */
button.bi-tag.dead{opacity:.4;cursor:not-allowed}
button.bi-tag.dead:hover{border-color:var(--line)}
.bi-filter{display:flex;flex-direction:column;gap:8px;margin:4px 0 12px}
.bi-search{max-width:420px}
.bi-chips,.bi-tagsugg,.bi-cardtags{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0}
.bi-cardtags{margin:2px 0 0}
/* v3.1115.0 — THE STAFF LIST'S FILTER BAR (Set-up → BI report library). Search, state and sort on one row that
   wraps; the category chips under it. On a phone the chips SCROLL SIDEWAYS in their own row rather than
   wrapping into six lines above the table — the row scrolls, the page never does. Colours are the tokens the
   shop's chips already use, so light and dark need nothing of their own. */
.bia-filter{display:flex;flex-direction:column;gap:8px;margin:4px 0 12px;min-width:0}
.bia-frow{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end;min-width:0}
.bia-frow label{display:flex;flex-direction:column;gap:3px;margin:0;min-width:0;max-width:100%}
.bia-fq{flex:1 1 240px;max-width:420px}
.bia-fq input,.bia-fsel select{width:100%;max-width:100%;box-sizing:border-box}
.bia-fsel{flex:0 1 190px}
.bia-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-width:0}
.bia-chips .bi-tag{font-size:12.5px;padding:4px 11px}
.bia-n{font-weight:600;opacity:.8}
.bia-fcount{margin:0}
.bia-clear{color:var(--blue-ink);font-size:13.5px;text-decoration:underline}
.bia-none{margin:12px 0}
@media(max-width:640px){
  .bia-chips{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px;
    scrollbar-width:thin}
  .bia-chips .bi-tag{flex:0 0 auto;max-width:none;padding:7px 12px}
  .bia-fq,.bia-fsel{flex:1 1 100%;max-width:100%}
}
/* THE DEFAULT PICTURE ON THE CARD. A fixed aspect box with object-fit, so a portrait phone photo and a
   wide dashboard screenshot both sit in the grid without one card becoming three times as tall. */
.bi-shot{position:relative;margin:-15px -16px 4px;border-radius:var(--r) var(--r) 0 0;overflow:hidden;
  background:var(--grey-light);aspect-ratio:16/9}
.bi-shot>img,.bi-shot img{width:100%;height:100%;object-fit:cover;display:block}
/* v3.1113.0 — the picture is a BUTTON that opens the gallery, so it takes focus and Enter. No button chrome. */
.bi-shotbtn{display:block;width:100%;height:100%;padding:0;margin:0;border:0;background:none;cursor:zoom-in;
  font:inherit;color:inherit}
.bi-shotbtn:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}
/* v3.1113.0 — THE GALLERY, full size over the page. A dark surround in both themes: it is a viewer. */
.bi-lb{position:fixed;inset:0;z-index:9000;background:rgba(0,0,0,.86);display:flex;align-items:center;
  justify-content:center;padding:16px}
.bi-lb-in{position:relative;max-width:min(1200px,100%);max-height:100%;display:flex;flex-direction:column;
  align-items:center;gap:8px;color:#fff}
.bi-lb-fig{margin:0;display:flex;flex-direction:column;align-items:center;gap:6px;min-height:0}
.bi-lb-fig img{max-width:100%;max-height:calc(100vh - 190px);object-fit:contain;display:block;
  background:#fff;border-radius:4px}
.bi-lb-fig figcaption{font-size:14px;text-align:center}
.bi-lb-fig .hint,.bi-lb-keys{color:rgba(255,255,255,.75)}
.bi-lb-close{position:absolute;top:-6px;right:-6px;width:40px;height:40px;border-radius:50%;border:0;
  background:rgba(255,255,255,.16);color:#fff;font-size:26px;line-height:1;cursor:pointer}
.bi-lb-nav{position:absolute;top:40%;width:44px;height:64px;border:0;border-radius:6px;cursor:pointer;
  background:rgba(255,255,255,.16);color:#fff;font-size:34px;line-height:1}
.bi-lb-nav.prev{left:4px}.bi-lb-nav.next{right:4px}
.bi-lb-close:focus-visible,.bi-lb-nav:focus-visible,.bi-lb-th:focus-visible{outline:3px solid #fff;outline-offset:2px}
.bi-lb-strip{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.bi-lb-th{padding:0;border:2px solid transparent;border-radius:4px;background:none;cursor:pointer;width:72px;
  aspect-ratio:16/9;overflow:hidden}
.bi-lb-th.on{border-color:#fff}
.bi-lb-th img{width:100%;height:100%;object-fit:cover;display:block}
.bi-lb-keys{font-size:var(--fs-xs);margin:0}
/* ---- v3.1120.0 (30 September 2026) — THE PICTURE VIEWER SELLS THE REPORT ------------------------------------------
   Darren asked for the report's selling text and a button beside the pictures. Wide screen: the picture on the left,
   the report's name, description and action in a 320px column on the right. Phone: one column, the picture first
   and the text under it, the whole viewer scrolling — so nothing is cut off on a 360px screen and the arrows stay
   on the picture. */
.bi-lb{overflow:auto;background:rgba(0,0,0,.92)}
.bi-lb-stage .bi-lb-nav{top:50%;transform:translateY(-50%)}
.bi-lb-in{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"stage side" "strip side" "keys side";
  column-gap:20px;row-gap:8px;align-items:start;width:min(1280px,100%)}
.bi-lb-stage{grid-area:stage;position:relative;display:flex;justify-content:center;min-width:0}
.bi-lb-strip{grid-area:strip}.bi-lb-keys{grid-area:keys;text-align:center}
.bi-lb-side{grid-area:side;background:#1D1D1F;border-radius:var(--rad,14px);padding:var(--sp-4,16px);
  color:#fff;max-height:calc(100vh - 32px);overflow:auto}
.bi-lb-side h2{margin:0 36px 8px 0;font-size:var(--fs-xl,21px);color:#fff}
.bi-lb-side .hint{color:rgba(255,255,255,.78)}
.bi-lb-blurb{margin:0 0 10px;line-height:1.5;white-space:pre-line}
.bi-lb-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.bi-lb-needs{margin:0 0 12px;font-size:var(--fs-sm,13px)}
.bi-lb-cta{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:6px}
.bi-lb-cta .btn{min-height:44px}
.bi-lb-look{margin:4px 0 0;font-size:var(--fs-xs,12px)}
.bi-lb-look.flash{color:#fff;font-weight:700}
.bi-lb-close{z-index:2}
@media (max-width:900px){
  .bi-lb{align-items:flex-start;padding:12px}
  .bi-lb-in{grid-template-columns:minmax(0,1fr);grid-template-areas:"stage" "strip" "side" "keys"}
  .bi-lb-side{max-height:none}
  .bi-lb-fig img{max-height:60vh}
  .bi-lb-close{top:0;right:0}
}
/* v3.1120.0 — "WHAT CHANGED" is a pop-up now: a card over a dim surround, in the page's own theme. */
.bi-changes{margin:4px 0 0}
.bi-modal{position:fixed;inset:0;z-index:9000;background:rgba(0,0,0,.55);display:flex;align-items:center;
  justify-content:center;padding:16px;overflow:auto}
.bi-modal-in{position:relative;background:var(--panel);color:var(--ink);border-radius:var(--rad,14px);
  box-shadow:var(--sh-3,0 10px 30px rgba(0,0,0,.25));width:min(560px,100%);max-height:calc(100vh - 32px);overflow:auto;
  padding:var(--sp-5,24px)}
.bi-modal-in h2{margin:0 36px 6px 0;font-size:var(--fs-lg,17px)}
.bi-modal-x{position:absolute;top:10px;right:10px;width:40px;height:40px;border-radius:50%;border:0;background:var(--tint);
  color:var(--ink);font-size:24px;line-height:1;cursor:pointer}
.bi-modal-x:focus-visible{outline:3px solid var(--s-focus,var(--blue));outline-offset:2px}
.bi-modal .bi-changes-list{margin:8px 0 0;padding-left:18px}
.bi-modal .bi-changes-list li{margin:0 0 10px}
.bi-modal-foot{margin:12px 0 0;text-align:right}
/* v3.1120.0 — the staff screen's two tabs, and the Customer view's "Preview as" bar. */
.bia-tabs{margin:0 0 12px}
.bi-prev-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.bi-prev-as{display:flex;align-items:center;gap:8px;font-weight:600}
.bi-prev-as select{min-width:220px;max-width:100%}
.bi-prev-line{flex-basis:100%;margin:0}
@media (max-width:600px){ .bi-prev-as{flex-wrap:wrap} .bi-prev-as select{min-width:0;width:100%} }
.bi-shotmore{position:absolute;right:8px;bottom:8px;font-size:11px;font-weight:700;color:#fff;
  background:rgba(0,0,0,.62);border-radius:999px;padding:2px 8px}
/* The editor's gallery. Small, because it is a management list rather than a viewer. */
.bia-pics{margin:10px 0 0;border-top:1px solid var(--line);padding-top:10px}
/* v3.1116.0 — the documents behind a report (card and editor) and packs of reports (shop and staff). */
.bi-docs{margin:4px 0 0;font-size:12.5px}
.bi-docs-h{margin:0 0 2px}
.bi-docs ul,.bi-pack-list{margin:2px 0 0;padding-left:18px}
.bi-docs li,.bi-pack-list li{margin:1px 0}
.bi-packs-h{margin:12px 0 6px;font-size:15px}
.bi-pack{border-color:var(--orange)}
.bi-pack-line{margin:2px 0;font-size:var(--fs-sm)}
.bia-docs{margin:10px 0 0;border-top:1px solid var(--line);padding-top:10px}
.bia-docs h3{margin:0 0 6px;font-size:14px}
.bia-docadd{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin-top:8px}
.bia-packreps{border:1px solid var(--line);border-radius:6px;padding:6px 10px;margin:8px 0}
.bia-packrep{display:block;margin:2px 0}
#bia-packeditor{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.bia-pics h3{margin:0 0 6px;font-size:14px}
.bia-picgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;
  margin:0 0 8px}
.bia-pic{margin:0;border:1.5px solid var(--line);border-radius:var(--r);overflow:hidden;
  display:flex;flex-direction:column}
/* THE DEFAULT IS MARKED ON THE PICTURE, not in a list beside it — the question is always "which one
   does the card show", and an answer somewhere else is an answer nobody reads. */
.bia-pic.is-default{border-color:var(--blue);box-shadow:0 0 0 2px var(--blue-lt)}
.bia-pic>img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;background:var(--grey-light)}
.bia-pic figcaption{display:flex;flex-direction:column;gap:4px;padding:7px 8px;font-size:var(--fs-xs)}
.bia-picbtns{display:flex;flex-wrap:wrap;gap:5px}
/* v3.1113.0 — the handle, the number, the thumbnail tick and the caption box on each picture. */
.bia-pictop{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.bia-thumbpick{display:inline-flex;align-items:center;gap:4px;font-size:var(--fs-xs);margin:0}
.bia-piccap{display:flex;flex-direction:column;gap:2px;font-size:var(--fs-xs);margin:0}
.bia-piccap input{font-size:var(--fs-xs);padding:4px 6px}
.bia-pic.acad-dragging{opacity:.55}
/* ---- THE ACADEMY (B11) -------------------------------------------------------------------------
   A course card carries a progress bar, and the bar is only drawn when there is a figure — see
   acadCardHtml: a bar at zero on a course somebody finished is worse than no bar at all. */
.acad-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:14px;margin:12px 0}
.acad-card{border:1.5px solid var(--line);border-radius:var(--r);padding:15px 16px;display:flex;
  flex-direction:column;gap:7px}
.acad-card.done{border-color:var(--blue)}
/* A course this member cannot open is dimmed, not hidden: the syllabus is what sells the upgrade. */
.acad-card.shut{opacity:.82}
.acad-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.acad-top h3{margin:0;font-size:15.5px}
.acad-blurb{margin:0;font-size:var(--fs-sm);line-height:1.5}
/* v3.1113.0 — a rich blurb brings its own paragraphs and lists; they keep the card's tight spacing. */
.acad-blurb p,.acad-blurb ul,.acad-blurb ol{margin:0 0 4px}.acad-blurb ul,.acad-blurb ol{padding-left:20px}
.acad-blurb>:last-child{margin-bottom:0}
.acad-leadrich p,.acad-leadrich ul,.acad-leadrich ol{margin:0 0 6px}.acad-leadrich>:last-child{margin-bottom:0}.acad-blurb :is(h3,h4){font-size:inherit;margin:0 0 4px}
.acad-meta{margin:0;font-size:var(--fs-xs);color:var(--muted)}
.acad-prog{margin:0;font-size:var(--fs-xs);color:var(--muted)}
.acad-bar{height:7px;border-radius:4px;background:var(--line);overflow:hidden;margin:4px 0 0}
.acad-bar>span{display:block;height:100%;background:var(--blue);width:var(--acad-pct,0%)}
.acad-shut-why{margin:2px 0 0;font-size:12.5px;background:var(--orange-soft);
  border-left:3px solid var(--orange);padding:7px 9px;border-radius:5px}
/* The player beside the lesson list. Stacks on a narrow screen — a 16:9 video and a list of titles
   side by side needs about 700px before the video gets silly. */
.acad-split{display:grid;grid-template-columns:minmax(0,2fr) minmax(200px,1fr);gap:16px;margin:12px 0}
@media(max-width:760px){.acad-split{grid-template-columns:1fr}}
.acad-video{position:relative;padding-top:56.25%;background:#000;border-radius:var(--r);overflow:hidden}
.acad-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* ---- OUR OWN COURSE VIDEO (v3.362.0) ----------------------------------------------------------
   The same 16:9 box as a framed player, so a course with one of each does not jump between lessons.
   `object-fit:contain` and not `cover`: a 4:3 recording of somebody's screen must be LETTERBOXED,
   never cropped — the cropped part of a screen recording is where the menu they are pointing at is.
   The black ground already comes from .acad-video. */
/* The lesson editor's video picker. Full width because the hint is three lines of explanation and
   a file input squeezed into a 220px grid column shows about four characters of the filename. */
.acl-vidup input[type=file]{font:inherit;font-size:var(--fs-sm);padding:6px 0}
/* v3.1113.0 — the file box is drawn as a button (it said "No file chosen" beside a lesson that had its
   video); the real input keeps the keyboard focus, so its focus ring is shown on the button. */
.acl-vidup .acl-vidpick:focus-visible + .bi-actions label.btn{outline:2px solid var(--accent,#004EFE);outline-offset:2px}
.acl-vidprog{display:flex;align-items:center;gap:8px;margin:4px 0}
.acl-vidprog[hidden]{display:none}
.acl-vidprog progress{flex:1;max-width:420px;height:12px}
.acl-vidcard{border:1px solid var(--line);border-radius:8px;padding:8px 10px;margin:6px 0 8px}
.acl-vidcard video{display:block;background:#000;border-radius:4px}
.acad-ourvideo video{position:absolute;inset:0;width:100%;height:100%;border:0;
  object-fit:contain;background:#000;display:block}
.acad-body{font-size:13.5px;line-height:1.6}
.acad-locked{border:1.5px dashed var(--line);border-radius:var(--r);padding:18px}
.acad-lessons{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.acad-lessons li{margin:0}
.acad-pick{display:flex;gap:8px;align-items:baseline;width:100%;text-align:left;font:inherit;
  font-size:var(--fs-sm);padding:7px 9px;border:1px solid transparent;border-radius:6px;background:none;
  cursor:pointer;color:inherit}
.acad-pick:hover{background:var(--line)}
.acad-lessons li.now>.acad-pick{border-color:var(--blue);font-weight:700}
.acad-lessons li.done>.acad-pick .acad-tick{color:var(--blue-ink)}
.acad-lessons li.shut>.acad-pick{opacity:.7}
.acad-name{flex:1}
.acad-len{color:var(--muted);font-size:11.5px;white-space:nowrap}
.acad-done{color:var(--blue-ink);font-weight:700;font-size:var(--fs-sm)}
/* v3.1196.0 — the quip under "You have finished this course" (docs/VOICE.md, "Lesson done"). Styled like the other
   quip lines (the basket's .bk-up-quip): italic and muted, a smile beside the fact rather than a second headline.
   Theme tokens only, so dark mode follows. */
.acad-quip{font-style:italic;color:var(--muted);font-size:var(--fs-sm);margin:2px 0 0}
/* v3.1199.0 — the two quip lines that had no rule at all: the archiver's "Your catalogue's lost some weight." and the
   empty learners list. Same look as .acad-quip. `.ln-quip` also carries `.lead`, so it keeps the lead's size. */
.ax-quip,.ln-quip{font-style:italic;color:var(--muted)}
.ax-quip{font-size:var(--fs-sm);margin:2px 0 0}
/* The free-to-watch badge in the lesson list. It is what the card's "2 free to watch" points at. */
.acad-free{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;
  background:var(--blue-lt);color:var(--blue-dark-ink);padding:1px 5px;border-radius:4px}

/* ---- WHAT A COURSE SAYS ABOUT ITSELF (0189, v3.513.0) --------------------------------------
   The level chip beside the title, the outcomes and the prerequisites above the player, and the
   review date under them. Two columns where there is room and one where there is not — the two
   blocks are read together ("is this for me" and "what do I need first") and stacking them at
   1280px puts a heading and three words on a line of its own. */
.acad-level{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;
  padding:2px 7px;border-radius:999px;vertical-align:middle;margin-left:8px;
  background:var(--blue-lt);color:var(--blue-dark-ink);white-space:nowrap}
.acad-lvl-advanced{background:var(--warn-lt,#fff3cd);color:#7a5c00}
/* 0667 — `div.acad-meta` only. The same class is the one-line "template · XLSX · 20 KB" <p> on the
   library, course and lesson cards, and this grid split that line into two half-width boxes, so
   "20 KB" wrapped onto a line of its own. */
div.acad-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;margin:10px 0 14px;
  padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2,transparent)}
.acad-meta h4{margin:0 0 6px;font-size:var(--fs-sm);text-transform:uppercase;letter-spacing:.04em;
  color:var(--muted)}
.acad-outs ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px;
  font-size:13.5px}
/* The tick is drawn rather than typed, so an outcome that wraps lines up under itself instead of
   under the tick. */
.acad-outs li{padding-left:18px;position:relative}
.acad-outs li::before{content:'\2713';position:absolute;left:0;color:var(--blue-ink);font-weight:700}
.acad-pre p{margin:0 0 6px}
.acad-rev{grid-column:1/-1;margin:0}
.acad-unrev{color:var(--muted)}
@media (max-width:720px){ div.acad-meta{grid-template-columns:1fr} }

/* ---- "THIS LOOKS LIKE SOMEBODY WE KNOW" (0192, v3.516.0) ----------------------------------
   In the who cell of a stranger's row, which is otherwise the emptiest thing on the board. Boxed
   and tinted so it reads as an OFFER rather than as a fact already recorded — the row above it is
   what the record says, and this is a question. */
.enq-sug{display:block;margin-top:4px;padding:4px 7px;border-left:3px solid var(--blue);
  background:var(--blue-lt,rgba(0,78,254,.06));border-radius:0 5px 5px 0;font-size:12.5px;
  /* CAPPED, because this lives in a table cell and a cell grows to fit its widest child: without
     it the who column took 647px and pushed the board 320px past the screen. Measured. */
  max-width:22em}
.enq-sug-q{display:block}
.enq-sug-why{display:inline;margin:0}
/* The buttons sit on the SAME line as the reason where there is room — the reason is three words
   now, and a line of its own for "the same name" was most of the height this box added. */
.enq-sug-acts{display:inline-flex;gap:6px;margin-left:6px;flex-wrap:wrap;vertical-align:baseline}
.enq-sug .save-status{display:block;margin-top:2px}
/* ---- ON A PHONE THE BOARD IS ALREADY SCROLLING SIDEWAYS (measured, v3.516.0) --------------
   `.tablewrap` scrolls, which is the pattern here, but a wider table means more of it is off the
   screen — and measured, this box added 111px to the table's minimum width at 430px, taking the
   off-screen part from 320px to 431px. Narrow, the reason and the two presses each take a line of
   their own: taller by one line on the few rows that have a suggestion at all, against a whole
   column less sideways scrolling on every row. */
@media (max-width:720px){
  .enq-sug{max-width:14em}
  .enq-sug-acts{display:flex;margin-left:0;margin-top:3px}
}

/* ---- HOW LONG WE TAKE TO ANSWER (0191, v3.515.0) ------------------------------------------
   Four rows, each a label and a sentence. Not tiles: a tile holds a number and these are sentences
   with a median, a mean and a worst case in them — three numbers in a tile is a tile nobody reads.
   Label and sentence side by side where there is room, stacked where there is not. */
.cs-times{margin:14px 0 4px;padding:10px 12px;border:1px solid var(--line);border-radius:8px}
.cs-times h3{margin:0 0 8px}
.cs-time{display:grid;grid-template-columns:180px 1fr;gap:2px 14px;padding:6px 0;
  border-top:1px solid var(--line)}
.cs-time:first-of-type{border-top:0}
.cs-time>b{font-size:var(--fs-sm)}
.cs-time>span{font-size:13.5px;line-height:1.5}
.cs-time>.hint{grid-column:2}
@media (max-width:640px){
  .cs-time{grid-template-columns:1fr}
  .cs-time>.hint{grid-column:1}
}
.cs-caveats{margin-top:8px}
/* v3.1143.0 (6 October 2026) — the stars, the six scores and who took each call (Calls card and reading pane). */
.cs-stars,.cm-stars>span{color:var(--orange);letter-spacing:1px}
.cs-starbar{position:relative;display:inline-block;vertical-align:-2px;font-size:15px;line-height:1;letter-spacing:2px;color:var(--line)}
.cs-starbar::before{content:"\2605\2605\2605\2605\2605"}
.cs-starfill{position:absolute;left:0;top:0;overflow:hidden;white-space:nowrap;color:var(--orange)}
.cs-starfill::before{content:"\2605\2605\2605\2605\2605"}
.cs-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(440px,100%),1fr));gap:22px 28px;margin-top:6px}
.cs-chart{min-width:0}
.cs-chart .kpi-fig{margin:0}
.cs-scores{display:flex;flex-wrap:wrap;gap:6px 14px;padding:4px 0 8px;font-size:var(--fs-sm)}
.cs-score b{font-weight:600}
.cs-people{margin-top:8px}
.cm-who{font-size:var(--fs-sm);margin:4px 0}
.cm-stars{font-size:14px;margin:6px 0 2px}
.cm-scores{margin:4px 0 6px}
.cm-rate{margin:6px 0;font-size:var(--fs-sm)}
.cm-rate-form select,.cm-rate-form input{max-width:100%}
.cs-caveats ul{margin:6px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:4px}

/* ---- A LESSON'S OWN WORDS, AND A DRAFT FROM THEM (0190, v3.514.0) -------------------------
   The transcript is folded (it is long, and not what somebody opened this form to read) and the
   draft is a panel of its own so it reads as something offered rather than something saved. */
.acad-words{margin-top:12px}
.acad-tx{margin:6px 0}
.acad-tx-body{max-height:220px;overflow:auto;font-size:var(--fs-sm);line-height:1.6;
  border:1px solid var(--line);border-radius:6px;padding:8px 10px;margin-top:6px;
  white-space:pre-wrap}
.acad-draft{margin-top:10px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;
  background:var(--panel-2,transparent)}
.acad-draft h4{margin:0 0 6px}
.acad-draft-blurb p{margin:0 0 6px}
.acad-draft-qs{margin:8px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:10px}
.acad-draft-qs>li>b{display:block;margin-bottom:4px}
.acad-draft-qs ul{margin:0;padding-left:16px;list-style:none;font-size:13.5px}
/* The right answer is marked on the LEFT EDGE and by its tick, never by colouring the text — a
   whole option in green is harder to read, and the point of showing a draft is that it is read. */
.acad-draft-qs ul li{padding-left:2px}
.acad-draft-qs ul li.right{font-weight:600;border-left:3px solid var(--blue);padding-left:6px;
  margin-left:-9px}
.acad-draft-bad{margin-top:8px}
/* ---- v3.1113.0 — BUILD A LESSON FROM ITS VIDEO: the transcript line by line, and the review ------------
   Each line keeps its time at the left so a corrected word is visibly the caption at that moment. */
.acad-vb{margin-top:12px}
/* lane voicetrans (25 Oct 2026) — where each lesson's transcript is, the course list's video chip, and the Video settings window. */
.acad-txtag{display:inline-block;margin-top:3px;font-size:var(--fs-xs);font-weight:600;color:var(--muted);
  border:1px solid var(--line);border-radius:var(--rad-pill);padding:1px 8px;white-space:nowrap}
.acad-txtag-todo,.acad-txtag-stopped{color:var(--warn);border-color:var(--warn)}
.acad-txtag-running,.acad-txtag-queued{color:var(--blue-ink);border-color:var(--blue)}
.acad-txtag-review{color:var(--orange);border-color:var(--orange)}
.acad-txtag-done{color:var(--ok);border-color:var(--ok)}
/* lane lessonsize (3.1206.0) — a lesson that is not bite-sized: one quiet chip, the advice in its hover text. */
.acad-sizechip{display:inline-block;margin:3px 0 0 4px;font-size:var(--fs-xs);font-weight:600;color:var(--muted);
  border:1px dashed var(--warn);border-radius:var(--rad-pill);padding:1px 8px;white-space:nowrap;cursor:help;vertical-align:baseline}
.acad-sizechip:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.acad-vidchip{margin-top:4px}
.acad-vidchip-todo{color:var(--warn);border-color:var(--warn)}
.acad-tx-say{margin-left:4px;font-size:var(--fs-sm)}
.save-status[data-acad-txlesson-say]{display:block;white-space:normal;max-width:32ch;font-size:var(--fs-xs)}
.save-status[data-acad-txlesson-say]:empty{display:none}
.acad-vset{display:flex;flex-direction:column;gap:10px;max-width:560px}
.acad-vset select{width:100%;max-width:100%}
.acad-vset-tick{display:flex;gap:8px;align-items:center}
/* lane notranscribe — 2. Video's "Transcribe this video" tick, beside the upload button */
:is(#view-academyadmin,#trainadmin-editor) .acl-vidup>.acl-vidtx{display:inline-flex;gap:8px;align-items:center;margin:6px 0 4px;font-weight:400;font-size:var(--fs-sm)}
:is(#view-academyadmin,#trainadmin-editor) .acl-vidup>.acl-vidtx>input{margin:0;width:auto}
.acad-vset-use{color:var(--muted)}
.acad-vb-bar{width:100%}
.acad-vb-lines{max-height:320px;overflow:auto;border:1px solid var(--line);border-radius:6px;padding:6px 8px;margin:6px 0}
.acad-vb-line{display:flex;gap:8px;align-items:center;margin:2px 0}
.acad-vb-line>span{min-width:62px;font-variant-numeric:tabular-nums}
.acad-vb-line input{flex:1;min-width:0}
.acad-vb-item{border-top:1px solid var(--line);padding-top:8px;margin-top:8px}
.acad-vb-opt{display:flex;gap:6px;align-items:center}
.acad-vb-opt input[type=text],.acad-vb-opt input:not([type]){flex:1;min-width:0}
/* v3.1086.0 — writing courses, lessons and quizzes: the drag handle, the folded row actions, the
   numbered parts of the lesson form, the pickers and the cover. */
.acad-drag{cursor:grab;touch-action:none;border:1px solid var(--line);background:transparent;
  border-radius:6px;padding:2px 6px;font-size:14px;line-height:1;color:inherit}
.acad-drag:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
tr.acad-dragging{opacity:.6;outline:2px dashed var(--blue)}
.acad-more{display:inline-block;position:relative}
.acad-more>summary{list-style:none;display:inline-block;cursor:pointer}
.acad-more>summary::-webkit-details-marker{display:none}
.acad-more-menu{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px;justify-content:flex-end}
.acad-thumb{width:48px;height:32px;object-fit:cover;border-radius:4px;vertical-align:middle;margin-right:8px}
/* ---- v3.1124.0 (1 October 2026) — THE LESSON EDITOR'S STEP TABS AND ITS SIX FOLDING PARTS ------
   Jarryd: *"this appears to be bugged and not nice looking buttons"* — the strip read "1. Video2.
   Details3. Text" as one run of plain links. Pills now: a numbered dot, the name, wrapping on a phone,
   the open parts tinted and the current one solid. And *"can each of the 1., 2., 3. tabs start closed"*:
   each part is a <details> whose header is a full-width bar. Theme variables only, so dark follows. */
.acl-steps{margin:6px 0 12px}
.acl-steps .acl-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.acl-steps .acl-tabs>li{margin:0;padding:0;list-style:none}
.acl-tab{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:5px 14px 5px 6px;
  border:1px solid var(--line);border-radius:var(--rad-pill,999px);background:var(--panel);color:var(--ink);
  font-weight:600;font-size:var(--fs-sm,13px);text-decoration:none;line-height:1.2;white-space:nowrap;
  transition:background var(--dur-2) var(--ease-out),border-color var(--dur-2) var(--ease-out),color var(--dur-2) var(--ease-out)}
.acl-tab:hover{border-color:var(--blue);color:var(--blue-ink,var(--blue));text-decoration:none}
.acl-tab:focus-visible{outline:none;box-shadow:var(--s-focus,0 0 0 3px var(--accent-soft))}
.acl-tab-n{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;
  border-radius:50%;background:var(--tint);color:var(--muted);font-size:var(--fs-xs);font-weight:700;flex:none}
.acl-tab.is-open{background:var(--accent-soft);border-color:var(--blue)}
.acl-tab.is-open .acl-tab-n{background:var(--blue);color:var(--s-hero-ink)}
.acl-tab.is-current{background:var(--blue);border-color:var(--blue);color:var(--s-hero-ink)}
.acl-tab.is-current .acl-tab-n{background:var(--s-hero-ink);color:var(--blue)}
@media (max-width:640px){.acl-steps .acl-tabs{gap:6px}.acl-tab{padding-right:10px}}
.acl-step{border:1px solid var(--line);border-radius:var(--r);margin:0 0 10px;min-width:0;background:var(--panel);
  scroll-margin-top:96px}
.acl-step>summary.acl-step-head{display:flex;align-items:center;gap:10px;cursor:pointer;padding:10px 12px;
  font-weight:700;list-style:none;border-radius:var(--r)}
.acl-step>summary.acl-step-head::-webkit-details-marker{display:none}
.acl-step>summary.acl-step-head::after{content:'';margin-left:auto;width:8px;height:8px;border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform var(--dur-2) var(--ease-out)}
.acl-step[open]>summary.acl-step-head::after{transform:rotate(-135deg)}
.acl-step>summary.acl-step-head:hover{background:var(--tint)}
.acl-step>summary.acl-step-head:focus-visible{outline:none;box-shadow:var(--s-focus,0 0 0 3px var(--accent-soft))}
.acl-step[open]>summary.acl-step-head{border-bottom:1px solid var(--line);border-radius:var(--r) var(--r) 0 0}
.acl-step-n{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;
  background:var(--accent-soft);color:var(--blue-ink,var(--blue));font-size:var(--fs-xs);flex:none}
.acl-step-body{padding:8px 12px 12px}
/* v3.1153.0 (8 October 2026) — the part's title beside its number: it may shrink and wrap so a long title never pushes
   the open/close arrow off a phone. (The markup used the class with no rule behind it.) */
.acl-step-t{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.acl-foot{position:sticky;bottom:0;background:var(--panel);padding:8px 0;margin:4px 0 0;z-index:2}
.acl-thumb{border-top:1px dashed var(--line);margin-top:10px;padding-top:6px}
/* Jarryd: pressing Edit opened the editor below the fold. It is scrolled to now, clear of the sticky bar. */
#acadadmin-lesson,#acadadmin-course,#acadadmin-details{scroll-margin-top:96px}
/* v3.1144.0 (6 October 2026) — Jarryd's "App Suite Updates 2", the Academy editors.
   1. A lesson's Video part: "Upload a video file" first and plainly the main way in, a clear OR, the link under it. */
:is(#view-academyadmin,#trainadmin-editor) .acl-vidup>.acl-vidhead{display:block;font-weight:600;font-size:var(--fs-md);margin:12px 0 4px}
:is(#view-academyadmin,#trainadmin-editor) .acl-vidup>.acl-vidhead>#acl-vidlab{display:inline;font:inherit;margin:0}
.acl-or{display:flex;align-items:center;gap:12px;margin:14px 0 10px;color:var(--muted);font-size:12.5px;font-weight:600;
  text-transform:uppercase;letter-spacing:.08em}
.acl-or::before,.acl-or::after{content:'';flex:1;border-top:1px solid var(--line)}
.acl-poster,.acl-thumb{margin-top:14px;padding-top:10px;border-top:1px dashed var(--line)}
/* 4. The uploaded-video card carries its own progress and status, so a Replace is seen where it was pressed. */
.acl-vidcard-prog{display:flex;align-items:center;gap:8px;margin:6px 0 2px}
.acl-vidcard-prog[hidden]{display:none}
.acl-vidcard-prog progress{flex:1;max-width:420px;height:12px}
#acl-vidcardmsg:empty{display:none}
/* 3. The course window's parts fold like a lesson's; a whole panel inside a part loses its own frame and heading
   (the part's summary is its heading now). */
.acd-sec{margin-top:10px}
.acd-secpanel>.acl-step-body>.panel{border:0;box-shadow:none;background:none;padding:0;margin:0;max-width:none}
.acd-secpanel>.acl-step-body>.panel>h3:first-child{display:none}
.acd-foot{margin-top:10px}
/* 5. Import lessons: the CSV file first, the paste box second. */
.aci-file{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0 10px}
.aci-rowbad td{color:var(--danger)}
/* "This video couldn't load: <reason>" under a player (acadWatchVideoErrors). */
.acad-vid-diag{margin:6px 0 0;font-size:var(--fs-sm,13px);color:var(--danger)}
.acd-chk{display:inline-flex;align-items:center;gap:6px;margin:2px 14px 2px 0}
.acd-prefs,.acc-doms,.acc-chks{border:0;padding:0;margin:8px 0}
/* 3.1219.0.1 — Create Course's Who can take it: hidden for internal training, and only the box the option needs shows. By attribute,
   because the colour sweep reads a bare #acc… as a hex colour. */
[id="acc-whobox"][hidden],[id="acc-whobox"] [hidden]{display:none}
[id="acc-whobox"]>label:not(.acd-chk){display:grid;gap:4px;max-width:420px;margin-top:6px}
.acd-cover-img{display:block;max-width:100%;width:360px;aspect-ratio:16/9;object-fit:cover;border-radius:8px;
  border:1px solid var(--line);margin:4px 0 8px}
/* v3.1143.0 (6 October 2026) — the frame picker's live preview: the exact frame the slider is on, 16:9, the time over it. */
.acd-fprev{position:relative;width:420px;max-width:100%;aspect-ratio:16/9;background:#000;border-radius:8px;
  overflow:hidden;margin:4px 0 8px;border:1px solid var(--line)}
.acd-fprev[hidden]{display:none}
.acd-fprev-v{display:block;width:100%;height:100%;object-fit:contain;background:#000}
.acd-fprev-t{position:absolute;right:8px;bottom:8px;background:rgba(0,0,0,.72);color:#fff;font-size:var(--fs-sm);font-weight:600;
  line-height:1;padding:5px 8px;border-radius:4px;font-variant-numeric:tabular-nums;pointer-events:none}
.acd-fprev-load{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:var(--fs-sm);
  pointer-events:none}
.acd-fprev-load[hidden]{display:none}
.acad-format{white-space:pre-wrap;background:var(--panel-2,transparent);border:1px dashed var(--line);
  border-radius:6px;padding:6px 8px;font-size:12.5px;overflow-x:auto}
.acad-bank{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.acad-bank>li{border-bottom:1px solid var(--line);padding-bottom:8px}
.acad-preview .acad-player{max-width:100%}
.acad-body h3,.acad-body h4,.acad-body h5{margin:14px 0 6px}
.acad-body ul,.acad-body ol{margin:6px 0;padding-left:22px}

/* Simpro's own documentation for a lesson. Beside the downloads and styled like them, because they
   are the same kind of thing to a reader: material that is not the video. */
.acad-src{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.acad-src h4{margin:0 0 6px;font-size:var(--fs-sm);text-transform:uppercase;letter-spacing:.04em;
  color:var(--muted)}
.acad-src ul{margin:0 0 6px;padding-left:18px;display:flex;flex-direction:column;gap:5px;
  font-size:13.5px}
.acad-src-note{font-style:italic}
/* v3.1144.0 — the "Related notes" box is gone; only its one "Ask Platinum Assist about this lesson" line stays. */
.acad-rel-ask{margin:10px 0 0;font-size:13.5px}
.acad-cert-int{margin:0}
.acad-src-bad{margin-top:6px}

/* ---- THE ACADEMY THAT ASKS BACK (v3.285.0) ---------------------------------------------------
   Downloads under the player, the quiz, and the certificate. All three sit UNDER the video rather
   than beside it: the lesson list is already the right-hand column and a third column at 760px is
   three columns nobody can read. */
.acad-res{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.acad-res h4{margin:0 0 6px;font-size:var(--fs-sm);text-transform:uppercase;letter-spacing:.04em;
  color:var(--muted)}
.acad-res ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:13.5px}
.acad-quiz fieldset.acad-q{border:1px solid var(--line);border-radius:8px;padding:10px 12px;
  margin:0 0 10px}
/* Right and wrong are marked on the EDGE, not by colouring the text: a whole question in red is hard
   to read, and the point of showing a marked paper is that somebody reads it. */
.acad-q.right{border-left:4px solid var(--blue)}
.acad-q.wrong{border-left:4px solid var(--danger)}
.acad-q legend{font-weight:700;font-size:13.5px;padding:0 4px}
.acad-opt{display:flex;gap:8px;align-items:flex-start;padding:4px 0;font-size:13.5px;cursor:pointer}
/* ---- A LESSON IS ITS OWN THING (v3.324.0) ----------------------------------------------------
   Darren: *"each lesson should have a quiz, not just a course quiz"* and *"Some of it belongs to the
   course. Some of it belongs to a lesson. It's hard to tell what's what."* */
/* The lesson's quiz sits UNDER its video, inset, so it reads as part of the lesson rather than as a
   second course-level panel. */
.acad-lquiz{margin-top:10px;border-left:3px solid var(--blue-lt)}
.acad-qbadge{font-size:10.5px;font-weight:700;color:var(--muted);white-space:nowrap}
/* The two lines that say what belongs where — the whole point is that they are readable at a glance,
   so they are not hidden behind a disclosure. */
.acad-belongs{margin:0 0 4px;line-height:1.5}
/* A lesson that is the SAME lesson in another course. Marked on the row, because editing it changes
   every course it is in and the person editing has usually stopped reading the table by then. */
tr.acad-shared>td:first-child{border-left:3px solid var(--orange)}
/* Up/down instead of a typed order: the same lesson can be first here and sixth elsewhere. */
.as-arrow{padding:1px 6px;line-height:1.2;min-width:0}
/* ---- DELIVERED WORK (v3.325.0) ---------------------------------------------------------------
   Darren: *"Delivered work over time… hours, dollars, consultant… day / week / month."* A chart with
   no library: at a dozen buckets a div is enough, and it stays readable when the numbers are absent.
*/
.stats-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px}
.stats-window{margin:0 0 4px}
.stats-tiles{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0 14px}
.stats-tile{flex:1 1 150px;border:1.5px solid var(--line);border-radius:var(--r);padding:10px 12px;
  display:flex;flex-direction:column;gap:2px;background:var(--panel,#fff)}
.stats-v{font-size:22px;font-weight:800;line-height:1.1}
.stats-l{font-size:var(--fs-xs);font-weight:700;color:var(--muted);text-transform:uppercase;
  letter-spacing:.04em}
.stats-chart{display:flex;align-items:flex-end;gap:6px;height:170px;margin:6px 0 10px;
  padding:0 2px;overflow-x:auto}
.stats-bar{flex:1 0 34px;display:flex;flex-direction:column;justify-content:flex-end;
  align-items:center;height:100%;position:relative}
.stats-fill{width:100%;background:var(--blue);border-radius:4px 4px 0 0;min-height:2px}
/* THE UNFINISHED BUCKET IS STRIPED AND LABELLED, never drawn as a fall — the same rule as every
   other trend in this product. A month three days old is not a collapse in demand. */
.stats-bar.partial .stats-fill{background:repeating-linear-gradient(45deg,var(--blue) 0 6px,
  var(--blue-lt) 6px 12px)}
.stats-partial{position:absolute;top:-14px;font-size:9.5px;font-weight:700;color:var(--muted);
  white-space:nowrap}
.stats-x{font-size:10px;color:var(--muted);margin-top:4px;white-space:nowrap;
  transform:rotate(-30deg);transform-origin:top left}
.stats-ladder{margin:12px 0}
.stats-excl{margin:4px 0 10px;padding-left:18px;font-size:var(--fs-sm);line-height:1.6}
/* ---- WHAT'S NEW (v3.326.0) -------------------------------------------------------------------
   A dated list, read top to bottom. The date column is fixed so the sentences line up, and an entry
   with no date shows its version there instead — never a made-up day. */
.chg-list{list-style:none;margin:10px 0;padding:0;display:flex;flex-direction:column;gap:0}
.chg-row{display:flex;gap:14px;align-items:baseline;padding:9px 0;border-bottom:1px solid var(--line)}
.chg-when{flex:0 0 118px;font-size:var(--fs-xs);font-weight:700;color:var(--muted);white-space:nowrap}
.chg-what{flex:1 1 auto;font-size:14px;line-height:1.55}
/* The feature list a release note carries (2 Sep 2026). One line per change, so What's new reads as
   a list of what you can now do rather than as a paragraph about our week. Tight leading and no
   bullet indent, because these sit inside a row that already has a date column. */
.chg-feats{margin:4px 0 0;padding-left:18px;font-size:14px;line-height:1.5}
.chg-feats>li{margin:2px 0}
/* v3.1133.0 — What's new in two parts: the customer's words beside ours, a screenshot under the words, and the quiet
   "New in the app" bar. Theme tokens only. */
.chg-shot{display:block;max-width:min(520px,100%);height:auto;margin:8px 0 2px;border:1px solid var(--line);border-radius:var(--rad-in,6px)}
.chg-two{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.chg-col textarea{width:100%;box-sizing:border-box;font:inherit;font-size:var(--fs-sm);line-height:1.45}
.chg-col #chg-internal{font-family:var(--font-mono);font-size:var(--fs-xs)}
.chg-pubtick{display:flex;gap:8px;align-items:center;margin-top:10px;font-weight:700}
@media (max-width:800px){.chg-two{grid-template-columns:1fr}}
.support-bar.wn-bar{background:var(--blue-lt);border-color:var(--line);color:var(--ink)}
.support-bar.wn-bar a{color:var(--blue-ink);font-weight:700}
.chg-row .chg-what>b{display:block;margin-bottom:2px}
/* A published row is marked on the admin table, because the question that screen answers most often is
   "which of these has a customer actually seen". */
tr.chg-pub>td:first-child{border-left:3px solid var(--ok)}
.foot-link{color:inherit}
.acad-opt input{margin-top:3px;flex:none}
.acad-cert .btn{text-decoration:none}
/* v3.1110.0 — the certificate number and its /verify link, under the Download button. */
.acad-cert-no{margin:8px 0 0;font-size:.95em}
.acad-cert-no a{word-break:break-all}
/* The row this table exists for: somebody who has opened nothing. Marked, not hidden. */
tr.acad-none td{background:var(--tint,#F2F6FF)}

/* ---- THE LEARNER'S ACADEMY, EASIER ON THE EYE (27 September 2026, v3.1086.0) -----------------
   Darren: *"so it looks nicer and is easier to use."* Every colour here is a theme token, so dark
   mode follows without a second set of rules — except the six tile colours, which are declared for
   both themes below because a gradient under white initials has to be picked per background. */
:root{--acad-t0a:#004EFE;--acad-t0b:#0038B8;--acad-t1a:#002A8C;--acad-t1b:#001E61;
  --acad-t2a:#FF6D00;--acad-t2b:#B24C00;--acad-t3a:#4A4647;--acad-t3b:#231F20;
  --acad-t4a:#4C83FE;--acad-t4b:#0038B8;--acad-t5a:#0038B8;--acad-t5b:#231F20}
/* v3.1119.0 (30 September 2026) — the tile set is brand-only now (blue, deep blue, orange, ink), where
   teal, purple, green and magenta used to be: the mock Darren approved, "every blue from the logo". */
html[data-theme="dark"]{--acad-t0a:#004EFE;--acad-t0b:#002A8C;--acad-t1a:#0038B8;--acad-t1b:#001E61;
  --acad-t2a:#E86200;--acad-t2b:#8A3A00;--acad-t3a:#4A4647;--acad-t3b:#1D1D1F;
  --acad-t4a:#004EFE;--acad-t4b:#001E61;--acad-t5a:#0038B8;--acad-t5b:#1D1D1F}
.acad-tile{position:relative;border-radius:var(--r);overflow:hidden;aspect-ratio:16/7;
  display:flex;align-items:center;justify-content:center;color:#fff;margin:-4px 0 2px}
.acad-tile span{font-size:30px;font-weight:800;letter-spacing:.06em;opacity:.95}
.acad-tile.big{width:168px;flex:none;aspect-ratio:16/10;margin:0}
.acad-tile.big span{font-size:34px}
.acad-tile.has-img{background:var(--panel-2)}
.acad-tile img{width:100%;height:100%;object-fit:cover;display:block}
.acad-tone-0{background:linear-gradient(135deg,var(--acad-t0a),var(--acad-t0b))}
.acad-tone-1{background:linear-gradient(135deg,var(--acad-t1a),var(--acad-t1b))}
.acad-tone-2{background:linear-gradient(135deg,var(--acad-t2a),var(--acad-t2b))}
.acad-tone-3{background:linear-gradient(135deg,var(--acad-t3a),var(--acad-t3b))}
.acad-tone-4{background:linear-gradient(135deg,var(--acad-t4a),var(--acad-t4b))}
.acad-tone-5{background:linear-gradient(135deg,var(--acad-t5a),var(--acad-t5b))}
.acad-tags{margin:0;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.acad-tags .acad-level{margin-left:0}
.acad-cat{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
/* Continue where you left off: one line of words, one bar, one button. */
.acad-continue{display:flex;align-items:center;gap:16px;flex-wrap:wrap;border-left:4px solid var(--blue)}
.acad-cont-txt{flex:1 1 260px;display:flex;flex-direction:column;gap:3px;min-width:0}
.acad-kicker{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--blue-ink)}
.acad-cont-lesson{font-size:15px}
/* The search box and the chips above the grid. */
.acad-filters{display:flex;flex-direction:column;gap:8px;margin:4px 0 6px}
.acad-search{display:block;max-width:520px}
.acad-search input{width:100%}
.acad-chips{display:flex;flex-wrap:wrap;gap:12px}
.acad-chipset{display:flex;flex-wrap:wrap;gap:6px}
.acad-chip{font:inherit;font-size:12.5px;padding:4px 11px;border:1px solid var(--line);border-radius:999px;
  background:var(--panel);color:var(--ink);cursor:pointer;min-height:32px}
.acad-chip:hover{border-color:var(--blue)}
.acad-chip.on{background:var(--blue);border-color:var(--blue);color:#fff}
.acad-chip:focus-visible,.acad-pick:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.acad-nomatch{grid-column:1/-1;margin:6px 0}
/* The course page's header: the tile beside the title and the course's own bar. */
.acad-head{display:flex;gap:16px;align-items:flex-start;margin:4px 0 6px}
.acad-head-txt{flex:1;min-width:0}
.acad-head-txt h2{margin-top:2px}
/* lane unsplashcopy — a stock-photo cover's credit under it; hidden with the cover on a phone. */
.acad-head-pic{flex:none;width:168px}
.acad-cover-credit{margin:4px 0 0;font-size:11px;line-height:1.35;color:var(--muted)}
.acad-cover-credit a{color:inherit}
@media(max-width:560px){.acad-head .acad-tile.big{display:none}.acad-head .acad-head-pic{display:none}}
/* The lesson list comes first in the page and is put BESIDE the player on a wide screen; on a phone
   it stays on top as a folded drawer. Sticky on a wide screen, so the list does not scroll away
   from the video it drives. */
.acad-side{order:2;align-self:start;position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto}
.acad-player{order:1;min-width:0}
@media(max-width:760px){.acad-side{order:0;position:static;max-height:none}}
.acad-drawer>summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;gap:8px;
  padding:9px 10px;border:1px solid var(--line);border-radius:var(--r);background:var(--panel-2);
  margin-bottom:6px;font-weight:700}
.acad-drawer>summary::-webkit-details-marker{display:none}
.acad-drawer>summary::before{content:'\25B8';color:var(--muted);transition:transform var(--dur-2) var(--ease-out)}
.acad-drawer[open]>summary::before{transform:rotate(90deg)}
.acad-drawer-t{font-size:var(--fs-sm);text-transform:uppercase;letter-spacing:.04em}
.acad-num{flex:none;width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;
  justify-content:center;font-size:11px;font-weight:800;background:var(--panel-2);color:var(--muted);
  border:1px solid var(--line)}
.acad-lessons li.now .acad-num{background:var(--blue);border-color:var(--blue);color:#fff}
.acad-lessons li.done .acad-num{border-color:var(--blue);color:var(--blue-ink)}
.acad-tick{flex:none;width:16px;text-align:center}
.acad-st-done{color:var(--blue-ink)}
.acad-st-quiz{color:var(--warn)}
.acad-st-started{color:var(--blue-ink)}
.acad-st-new{color:var(--muted)}
.acad-st-locked{opacity:.8}
.acad-pick{align-items:center;min-height:40px}
/* Above the player: where this lesson sits, then its title. */
.acad-lesson-head{margin:0 0 8px}
.acad-lesson-head h3{margin:2px 0 0}
.acad-step{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
#acad-now-title:focus{outline:none}
.acad-stage{margin:0 0 6px}
.acad-resume{margin:4px 0 0}
.acad-auto{min-height:0}
.acad-auto-note{margin:8px 0;padding:8px 11px;border-radius:var(--r);background:var(--blue-lt);
  color:var(--ink);display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.acad-actions{margin-top:12px}
/* Lane watchgate — Mark finished, greyed until enough of the video is played (the hover text says how much is left). */
.acad-actions .btn.acad-done-wait{opacity:.5;cursor:help}
/* A lesson's writing, lightly formatted — see acadBodyHtml. */
.acad-body{margin-top:10px}
.acad-body ul,.acad-body ol{margin:6px 0 10px;padding-left:22px;display:flex;flex-direction:column;gap:3px}
.acad-bh{margin:14px 0 6px;color:var(--ink)}
h4.acad-bh{font-size:15px}
h5.acad-bh,h6.acad-bh{font-size:13.5px}
/* The transcript, folded until it is asked for. */
.acad-trans{margin-top:12px;border-top:1px solid var(--line);padding-top:8px}
.acad-trans>summary{cursor:pointer;font-weight:700;font-size:var(--fs-sm);color:var(--accent-ink)}
.acad-trans .acad-search{margin:8px 0}
.acad-trans-text{max-height:320px;overflow:auto;font-size:var(--fs-sm);line-height:1.6;padding-right:6px}
.acad-trans-text mark{background:var(--orange-soft);color:var(--ink);border-radius:2px;padding:0 1px}
/* ---- 0461, v3.1208.0 (lane learnux) — THE TEST BAND, AND THE COURSE BUILDER'S STATUS (theme tokens only) ------------------------------- */
.acad-testband{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-3);margin:var(--sp-2) 0 var(--sp-3);padding:var(--sp-2) var(--sp-3);
  border:1.5px dashed var(--warn);border-radius:var(--rad-in);background:var(--panel-2);color:var(--ink)}
.acad-testband b{font-weight:700}
.acad-testband-act{display:inline-flex;align-items:center;gap:var(--sp-2);margin-left:auto}
.acd-status{border:0;margin:var(--sp-3) 0 var(--sp-2);padding:0;display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-4);align-items:center}
.acd-status legend{font-weight:700;margin-bottom:var(--sp-1);padding:0}
/* positioned, so the State listbox's hidden native <select> (lbox.css, position:absolute) stays inside the scrolling table
   and can't push the page sideways at 390px (the same fix as .bsvc-wrap) */
.acd-state{white-space:nowrap;position:relative}
.acd-state .save-status{margin-left:6px}
/* ---- v3.1208.0 (lane learnux) — THE LEARNER'S OWN WORK IN A LESSON: Your turn, answers, recall, notes (theme tokens only) */
.acad-split .acad-body .lw-turn,.acad-split .acad-body .lw-answer,.acad-split .acad-body .lw-recall{margin:1.2em 0;padding:var(--sp-3) var(--sp-4);
  border:1px solid var(--s-line-2);border-radius:var(--rad-in);background:var(--panel-2);font-size:var(--fs-sm)}
.acad-split .acad-body .lw-turn{border-left:4px solid var(--accent)}
.acad-split .acad-body .lw-recall{border-left:4px solid var(--orange)}
.lw-h{display:block;margin:0 0 .4em;font-size:inherit;font-weight:700;color:var(--ink)}
.lw-task{margin:0 0 .5em}
.acad-split .acad-body .lw-checks{list-style:none;padding-left:0;margin:0}
.lw-checks label{display:flex;gap:8px;align-items:flex-start;line-height:1.5}
.lw-input{width:100%;font:inherit;font-size:var(--fs-md);line-height:1.5;padding:var(--sp-2);border:1px solid var(--s-line);border-radius:var(--rad-sm);
  background:var(--panel);color:var(--ink);box-sizing:border-box}
.lw-req{font-size:var(--fs-xs);font-weight:700;color:var(--s-warn);margin-left:6px}
.lw-when,.lw-where{margin:.3em 0 0;font-size:var(--fs-xs)}
.lw-then,.lw-now{display:grid;gap:2px;margin:.3em 0}
.lw-k{font-size:var(--fs-xs);font-weight:700;color:var(--muted)}
.lw-diff{font-weight:700;margin:.3em 0 0}
.lw-notes{margin-top:var(--sp-4);padding-top:var(--sp-3);border-top:1px solid var(--line);max-width:36em}
.lw-note-list{list-style:none;padding:0;margin:0 0 var(--sp-2);display:grid;gap:6px}
.lw-note{font-size:var(--fs-md);line-height:1.5}
.lw-at{font-weight:700;font-variant-numeric:tabular-nums}
.lw-del{color:var(--muted);font-size:var(--fs-xs)}
.lw-paper{margin-top:var(--sp-4);padding-top:var(--sp-3);border-top:1px solid var(--line);max-width:36em}
.lw-drop{border:1.5px dashed var(--s-line-2);border-radius:var(--rad-in);padding:var(--sp-4);text-align:center;color:var(--muted);font-size:var(--fs-md)}
.lw-drop.on{border-color:var(--accent);background:var(--accent-soft);color:var(--ink)}
.lw-qr{display:flex;gap:var(--sp-3);align-items:center;flex-wrap:wrap;margin-top:var(--sp-2)}
.lw-qr-code{background:var(--panel);padding:var(--sp-2);border-radius:var(--rad-sm);line-height:0}
.lw-fromphoto{box-shadow:0 0 0 2px var(--accent-soft)}
.ap-page .ap-h{font-size:var(--fs-xl);margin:0 0 var(--sp-2)}
.ap-page .ap-take{display:flex;justify-content:center;width:100%;min-height:56px;font-size:var(--fs-lg);margin:var(--sp-4) 0 var(--sp-3)}
.ap-page .ap-count{font-size:var(--fs-lg)}

/* A quiz marked where somebody can see why. */
.acad-qbadge.acad-qwarn{color:var(--warn)}
.acad-qmark{font-weight:800;margin-left:4px}
.acad-q.right .acad-qmark{color:var(--ok)}
.acad-q.wrong .acad-qmark{color:var(--danger)}
.acad-optlabel{flex:1}
.acad-opt.is-right{background:var(--blue-lt);border-radius:5px;padding-left:6px;padding-right:6px}
.acad-opt.is-wrong{text-decoration:line-through;text-decoration-color:var(--danger);opacity:.85}
.acad-optnote{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;
  color:var(--blue-dark-ink);white-space:nowrap}
.acad-opt.is-wrong .acad-optnote{color:var(--danger)}
.acad-opt input:disabled{opacity:1}
.acad-result{margin:6px 0 10px}
.acad-lquiz-form{margin:0}
@media (prefers-reduced-motion:reduce){.acad-drawer>summary::before{transition:none}}

/* ---- THE LIBRARY AND THE TREE (v3.286.0) -----------------------------------------------------
   The tag bar, the tag chips on a card, and the indent that makes a sub-group read as one. */
/* v3.309.0 — the library search box. `.field` caps itself at 320px, which is too narrow for a
   sentence somebody is reading back; it grows here and stops at a comfortable measure. */
.lib-search{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.lib-search .field{max-width:520px;flex:1 1 260px;margin:0}
/* Visible to a screen reader, invisible on screen. The search box has a placeholder, which is a
   hint and not a label — a placeholder disappears the moment somebody types, so on its own it
   leaves the field unnamed for anybody who cannot see it. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
.lib-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.chip{font:inherit;font-size:var(--fs-xs);padding:3px 9px;border:1px solid var(--line);border-radius:var(--rad-pill,999px);
  background:var(--panel);color:var(--ink);cursor:pointer}
.chip:hover{border-color:var(--blue)}
.chip.on{background:var(--blue);border-color:var(--blue);color:#fff}
.chip.on .hint{color:rgba(255,255,255,.75)}
.chip.clear{border-style:dashed}
/* Not a button — a label. No pointer, no hover, or a reader tries to press it. */
.chip.sm{font-size:10.5px;padding:1px 7px;cursor:default;margin-right:4px}
.chip.sm:hover{border-color:var(--line)}
/* v3.469.0 — a withdrawal a MACHINE decided, on the contacts table. Amber rather than red: it is
   not an error and not a warning, it is a fact somebody may want to check. It carries the phrase we
   matched on its title, so the person answering "why did you stop emailing me?" has the answer. */
.dir-autounsub{border-color:var(--orange);color:var(--warn);background:var(--orange-soft);
  cursor:help}
/* v3.472.0 — the times on the customer's pick-a-time page (public/booking.html). One per row, full
   width on a phone: this is answered standing in a car park more often than at a desk, and a row of
   three side-by-side buttons is three chances to press the wrong day. */
/* ---- WHERE THIS BOOKING HAPPENS, ON THE PAGE THEY CHOOSE ON (v3.531.0) ----------------------
   *"the remote vs onsite and the address should come up on the offer to select."* Its own class
   rather than `.bk-where` — that one belongs to the checkout basket and is a flex row, which would
   lay an address out as columns. (One prefix, one owner; see test/uipolish.test.mjs.) */
/* v3.536.0 — which clock the times on this page are in. Quiet, above the kind line. */
.bk-clock{margin:0 0 8px}
.bk-kindline{margin:0 0 12px;padding:10px 12px;border-left:3px solid var(--blue);
  background:var(--grey-light);border-radius:0 6px 6px 0;font-size:var(--fs-md)}
.bk-slots{list-style:none;margin:14px 0;padding:0;display:flex;flex-direction:column;gap:10px}
.bk-slot{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bk-slot .btn{flex:1 1 auto;min-height:44px;justify-content:center;text-align:center}
.bk-slot .hint{flex:0 0 auto}
/* 0195 — which kind THIS time is, on a booking whose dates disagree. Quiet, because the button
   beside it is the thing to press; readable, because it changes whether they leave the house. */
/* 0198 (v3.550.0) — it now carries the ADDRESS as well where the dates are at different sites, so
   it must be allowed to wrap rather than squeezing the button beside it off the row. `flex:0 1 auto`
   with a max share: on a phone the pill drops under the button, which is the right order to read. */
.bk-slotkind{flex:0 1 auto;max-width:100%;font-size:var(--fs-xs);font-weight:600;color:var(--blue-ink);
  background:var(--blue-wash,rgba(0,78,254,.06));border-radius:999px;padding:3px 9px;
  line-height:1.35}
/* v3.482.0 — a date they have ALREADY chosen. A third state, and it must not read like a slot
   somebody else took: greying it out with "just taken" would be the page telling them they lost
   their own choice. Ticked, in the ok colour, and the button is disabled because choosing it twice
   is not a thing that can happen. */
.bk-chosen .btn{border-color:var(--ok);color:var(--ok);background:var(--bg);opacity:1}
.bk-chosen .hint{color:var(--ok);font-weight:600}
.lib-cardtags{margin:6px 0 0}
/* A sub-group reads as one because of the indent, not because of a colour — the tree is two deep
   and one level of indent is the whole of what has to be legible. */
tr.lib-sub td:nth-child(2){padding-left:22px}
/* ---- 0588/0591, v3.831.0 — THE LIBRARY AS FOLDERS, AND A PLACE TO DROP A FILE ---------------- */
/* ---- 0606/0607, v3.839.0 — A FOLDER YOU CAN MAKE, AND THINGS YOU CAN DRAG INTO ONE ----------
   Darren: *"Make it more like a Windows experience with folders, subfolders, and documents.
   Realistically, we should also be able to drag things around to different folders."*

   `.lib-drop-onto` is the one that matters: a drop target with no visible state is a guess, and a
   guess that files a document in the wrong folder is worse than no drag at all. It goes on the
   breadcrumb AND on every folder tile, so "put this back up a level" looks the same as "put this
   in there". */
.lib-trail-acts{margin-left:10px}
.lib-drop-onto{outline:2px dashed var(--blue);outline-offset:2px;background:var(--blue-lt)}
/* A dragged row keeps its place in the table while it is being carried, dimmed, so the list does
   not reflow under the cursor mid-drag. */
/* 0667 — no grab hand over the rows. Darren: *"the pointer changes to a very weird pointer when I go
   to click on documents. Please leave it as a standard pointer."* The rows still drag. */
tr[data-libdrag]{cursor:default}
.lib-move{max-width:150px;vertical-align:middle}
@media (prefers-reduced-motion:reduce){.lib-drop-onto{outline-style:solid}}
.lib-trail{margin:0 0 10px;display:flex;flex-wrap:wrap;align-items:center;gap:2px}
.lib-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;
  margin:0 0 14px}
.lib-folder{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;
  padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);
  cursor:pointer;font:inherit;color:inherit}
.lib-folder:hover,.lib-folder:focus-visible{border-color:var(--blue);background:var(--blue-lt)}
.lib-folder-i{font-size:20px;line-height:1}
/* v3.1093.0 — THE "⋯" ON A FOLDER TILE. The tile is a button and cannot hold another, so the menu
   is its sibling, pinned to the tile's top-right corner; the tile keeps room on the right so the
   name never runs under it. The pop itself is the shared .row-more one (fixed-positioned on open). */
.lib-folder-wrap{position:relative;display:flex;min-width:0}
.lib-folder-wrap>.lib-folder{flex:1;min-width:0;padding-right:40px}
.lib-folder-more{position:absolute;top:6px;right:6px}
.lib-docs-h{margin:4px 0 8px;font-size:15px}
/* 0667 — the file-type icon, on the member's card and the staff table. */
.lib-ft{flex:none;display:block}
.lib-cardtop{display:flex;align-items:flex-start;gap:10px}
.lib-cardtop h3{flex:1;min-width:0}
.lib-docname{display:flex;align-items:center;gap:10px}
.lib-folder-n{font-weight:700}
.lib-folder-c{font-size:var(--fs-xs);opacity:.7}
/* 0624 — THE FOLDER'S OWN BLURB. Darren: *"A folder should also show the blurb if there is one."*
   Two lines at most: a folder tile is a signpost, and a paragraph on it turns a row of tiles into a
   wall of text you have to read before you can point at one. The full text stays in the `title`
   attribute and is shown again, in full, once you are standing in the folder. */
.lib-folder-b{font-size:12.5px;color:var(--muted);line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lib-hereblurb{margin:-2px 0 10px;max-width:70ch}
/* A dashed box reads as "put something here" in a way a solid one does not. */
.lib-drop{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;
  text-align:center;padding:18px 14px;margin:0 0 14px;border:2px dashed var(--line);
  border-radius:12px;background:var(--panel-2);cursor:pointer}
.lib-drop:hover,.lib-drop:focus-visible,.lib-drop-over{border-color:var(--blue);background:var(--blue-lt)}
.lib-drop-i{font-size:22px;line-height:1}
.lib-drop .hint{max-width:46ch}
/* The picker covers the whole box, so pressing anywhere in it opens the chooser — and it is not
   `display:none`, which would take it off the keyboard along with the mouse. */
.lib-drop-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
@media (max-width:640px){
  .lib-folders{grid-template-columns:1fr 1fr}
  .lib-folder{padding:10px}
}

/* ---- MY TEAM (v3.287.0) ----------------------------------------------------------------------
   Three access options, written out rather than named. Each is a full-width row with a real tap
   target, because on a phone a radio button is 20px of a 44px decision. */
.team-access{border:1px solid var(--line);border-radius:var(--r);padding:10px 12px;margin:12px 0}
.team-access legend{font-weight:700;font-size:13.5px;padding:0 6px}
.team-opt{display:flex;gap:10px;align-items:flex-start;padding:10px 6px;cursor:pointer;
  border-radius:var(--r);min-height:44px}
.team-opt:hover{background:var(--panel-2)}
.team-opt input{margin-top:3px;flex:none;width:20px;height:20px}
.team-opt .hint{display:block;margin-top:2px}
/* A job title on a team row. Distinct from .hint — it is a fact about the person, not a note about
   the field, so it reads at full opacity in the accent rather than as grey small print. */
.team-job{display:inline-block;font-size:12.5px;font-weight:600;color:var(--orange)}
.team-invites{margin:6px 0 0;padding-left:18px;font-size:var(--fs-sm);display:flex;flex-direction:column;gap:6px}
/* v3.297.0 — what is missing from a customer record. A nudge, so it reads as information rather than
   as a validation failure: the orange wash the rest of the app uses for "worth knowing", never the
   danger red, because none of these stop anybody doing anything. */
.dir-gaps{margin:8px 0;padding:8px 12px 8px 30px;background:var(--orange-soft);border-radius:6px;
  border-left:4px solid var(--orange);font-size:var(--fs-sm);line-height:1.55}
.dir-gaps li{margin:2px 0}
/* A training-only row is marked, not hidden. The point of one table is that both kinds are visible
   together; the point of the tint is that they are not the same thing. */
tr.team-learner td{background:var(--tint,#F2F6FF)}

/* ---- THE ENQUIRY BOARD (v3.291.0) ------------------------------------------------------------
   The tone is on the ROW, not on a badge — a row you have to scan for a coloured dot is a row that
   gets missed. A left edge, because a whole tinted row is hard to read and the point is to draw the
   eye down the left-hand side. */
/* ---- 0571, v3.828.0 — THE KEY TO THE BARS, AND LONG ADDRESSES THAT FIT -------------------------
   Darren: *"can you put a little key down the bottom? Also wrap the email address if it is long."*
   A hover explains one row at a time and does not exist on a touch screen; a colour code needs a key
   that is simply on the page. The dots take the same three tokens the bars do, so the key cannot
   drift from the thing it explains. */
.enq-key{display:flex;flex-wrap:wrap;gap:8px 20px;margin:10px 2px 0;font-size:12.5px;color:var(--muted)}
.enq-key-one{display:inline-flex;align-items:center;gap:7px;min-width:0}
.enq-key-one b{font-weight:600;color:var(--ink)}
.enq-key-dot{width:4px;height:15px;border-radius:2px;flex:0 0 auto;background:var(--line)}
.enq-key-urgent .enq-key-dot{background:var(--danger)}
.enq-key-due .enq-key-dot{background:var(--warn)}
.enq-key-ok .enq-key-dot{background:var(--ok)}
/* A ROUTED ADDRESS IS ONE LONG WORD. `admin=platinumconsultants.com.au@m.platinumconsultants.com.au`
   has no space in it, so it will not wrap on its own and it ran straight under the subject beside
   it. `anywhere` rather than `break-word` because the latter only breaks when the word is alone on
   its line, which is exactly not this case. */
tr.enq-urgent td,tr.enq-due td,tr.enq-ok td,tr.enq-closed td{overflow-wrap:anywhere;min-width:0}
tr.enq-urgent td:first-child{box-shadow:inset 3px 0 0 var(--danger)}
tr.enq-due td:first-child{box-shadow:inset 3px 0 0 var(--warn)}
tr.enq-ok td:first-child{box-shadow:inset 3px 0 0 var(--ok)}
.dir-count.enq-urgent b{color:var(--danger)}
.dir-count.enq-due b{color:var(--warn)}
.enq-log{margin:6px 0 0;padding-left:18px;font-size:var(--fs-sm);display:flex;flex-direction:column;gap:4px}
/* v3.292.0 — tags. A tag on a row is a button, so it looks pressable and reads as one to a screen
   reader; it is sized down so a row with four of them does not become taller than the row's text. */
.btn.tiny{padding:2px 7px;font-size:11.5px;border-radius:10px;line-height:1.5}
.enq-tag{margin:3px 3px 0 0;color:var(--muted)}
.enq-filterhead h2{margin:0}
.enq-filterhead+.enq-filterbar,.enq-filterbar{margin-bottom:8px}
/* ---- THE ENQUIRIES BOARD, TIGHTENED (v3.406.0) ----------------------------------------------
   The heading, the two buttons and the "Outstanding" note share one line; the note takes the slack
   on the right. The filter row is the search box (which grows) and the four selects, all on one
   line; the tag cloud and the two paragraphs of help are a "?" pop-up beside the heading. */
/* A chip row that selects one section of a screen, the rest hidden (Edge admin, v3.409.0). */
/* v3.1119.0 (UI refresh v2) — PILL-STYLE SEGMENTED TABS. The row is a grey track and the chosen
   one is raised out of it (the card surface, ink text, the soft shadow). The same look for every
   "pick one section" row: .seg-chips, the sticky .sec-bar / .dir-secs, and the multi-pick .chips. */
.seg-chips,.chips{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0 0;padding:4px;width:fit-content;max-width:100%;
  background:var(--s-sunk,var(--tint));border:1px solid var(--s-line-2,var(--line));border-radius:var(--rad,14px)}
.seg-chips .chip,.chips .chip{border:0;background:transparent;color:var(--ink-2,var(--ink));border-radius:var(--rad-pill,999px);
  padding:6px 14px;font-weight:600;font-size:var(--fs-sm,13px)}
.seg-chips .chip:hover,.chips .chip:hover{background:var(--s-raised,var(--panel));color:var(--ink)}
.seg-chips .chip.on,.chips .chip.on{background:var(--s-raised,var(--panel));color:var(--ink);box-shadow:var(--sh-1,none)}
.seg-chips .chip.on .hint,.chips .chip.on .hint{color:var(--muted)}
/* ---- 0503, v3.799.0 — THE SHARED SECTION BAR ------------------------------------------------
   Darren: *"menus across the top so we can select directly without having to scroll, scroll,
   scroll."* Sticky, so on a long screen the bar is still there when you arrive at the bottom and
   want a different section — a chooser you have to scroll back up to reach is the problem it was
   added to solve, restated.

   Same numbers as `.dir-secs`, which has carried this on the customer record since v3.414.0, so the
   twelve screens that get it now look like the one that already had it. `--panel` with a white
   fallback: the bar overlaps content as it scrolls under, so it MUST be opaque, and it follows the
   theme rather than being painted light. */
.sec-bar{position:sticky;top:0;z-index:3;background:var(--panel,#fff);
  padding:4px;margin:0 0 8px;width:auto}
/* v3.1119.0 — the two sticky bars stay on the card colour (they overlap content as it scrolls under,
   so they must be opaque), which is also the raised colour — so the chosen chip on them is the soft
   blue instead, 5.2:1 light and 6.7:1 dark. */
.sec-bar .chip.on,.dir-secs .chip.on{background:var(--s-accent-soft);color:var(--blue-ink);box-shadow:none}
/* The scope is a plain block — it must not introduce a stacking or layout context, because on the
   customer record the section stack sits beside a resizable history aside and a new flex/grid
   parent there would break the drag-to-resize width machinery. */
.sec-scope{display:block}
.sec-group{display:block}
@media print{ .sec-bar{display:none} .sec-group.hidden{display:block !important} }
/* 0296, v3.673.0 — the tab bar on Enquiries & mail rules. A panel of its own so the chips sit on
   the same card background as everything under them rather than floating on the page, and with no
   top margin on the chips because the panel's own padding is already the gap. */
.es-tabbar{padding-top:12px;padding-bottom:12px}
.es-tabbar .seg-chips{margin:0}
.edge-signpost{margin:2px 0 0}
.enq-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.enq-head h2{margin:0}
/* ================================================================================================
   ONE HEADING TREATMENT FOR EVERY SECTION, AND A COLOUR PER AREA (v3.588.0)
   ================================================================================================
   Darren, 9 September 2026, looking at an enquiry record:
     *"we have different padding, different-sized font, and different font style for each of the
     headings."*
     *"Quotes / Tasks / Tags / Files … are all okay. They're consistent. They have the same padding.
     They have the same heading. I feel like we should do that down to follow a similar layout."*
     *"Files (looks like different font)."*

   HE WAS READING A REAL DIFFERENCE, and its cause is that NOBODY EVER SET ONE. There is no `h3` or
   `h4` font-size rule anywhere in this stylesheet, so both fell through to the browser's defaults —
   `h3` is 1.17em and `h4` is 1em. Measured on the record at a 14px base:

       Where this is up to / Bookings / Tasks / Tags   h3   16.38px
       Files on this enquiry                           h4   14px
       Company / Primary contact / What they asked for  .enq-lbl  10.5px

   So the panel he singled out as looking wrong was the one drawn with `h4`, and the 0.38 of a pixel
   is the giveaway that none of it was a decision. One rule, both levels, so a section heading is a
   section heading whichever tag a builder happened to reach for.

   AND A COLOUR PER AREA — *"it would be nice if we can colour-code these areas just to make it
   easier to scroll down and scan and know what we're looking at. Doesn't have to be a full colour
   code, but maybe the title and a bar down the side are the same colour, and all inquiries will
   have that same colour scheme for each of the areas."*

   Keyed off `data-enq-block`, which every block already carries for the jump bar — so the colour
   comes from WHICH AREA IT IS and is therefore identical on every enquiry, which is the half of the
   request that makes it a code rather than decoration. A block with no colour of its own falls back
   to the house blue, so a new block is plain rather than wrong. */
/* h3 and h4 GLOBALLY, because neither had a size anywhere and "whatever the browser does" is not a
   decision this stylesheet gets to leave to chance. They become the same size, which is the fix. */
.enq-head h3,.enq-head h4,
/* The files panel writes its own `<h4>` (public/filespanel.js) rather than going through
   `panelHead`, which is exactly why Darren singled it out: *"Files (looks like different font)."*
   Named here so one rule covers it too, rather than leaving the one panel he noticed as the one
   panel still different. */
.enq-rec .files-panel > h4,.enq-rec .enq-hist > summary,
/* 0220, v3.593.0 — AND THE AI BRIEF'S OWN HEADING. Darren: *"The story so far, same deal. Should be
   the same font as the stuff below."* It writes its heading inside `.dir-ai-h` (its own flex row,
   because a refresh button sits opposite it) rather than through `.enq-head`, so the rule above had
   never reached it and it was the one heading on the record still at the browser's default. */
.enq-rec .dir-ai-h > h3,.enq-rec .dir-ai-h > h4{
  margin:0;font-size:15px;font-weight:700;line-height:1.3;color:var(--area,var(--blue-dark))}
/* History is a <details>; its summary is the heading, so it needs the marker and the spacing of
   one rather than the browser's list-item default. */
.enq-rec .enq-hist > summary{cursor:pointer;margin-bottom:6px}
/* h2 is levelled with them INSIDE THE RECORD only. It has a designed size (16px) that the rest of
   the suite is laid out around, and "make these four headings match" is not a licence to resize
   every panel title in the product. */
.enq-rec .enq-head h2{font-size:15px;line-height:1.3;color:var(--area,var(--blue-dark))}
.enq-rec .panel.sub,.enq-rec .enq-block > .panel.sub{padding:14px}
/* THE BAR DOWN THE SIDE, in the same colour as the title. On the block rather than the heading, so
   it runs the height of the area and gives the eye something to follow while scrolling — which is
   the thing he asked it for. */
.enq-rec [data-enq-block] > .panel.sub,.enq-rec .panel.sub[data-enq-block],
/* The wants box is not a panel — it is a box with a heading and the customer's words in it — so it
   is named here rather than being the one section whose colour has no bar to show it (v3.593.0). */
.enq-rec .enq-wants[data-enq-block]{
  /* ---- 0241 — AT FULL STRENGTH, BECAUSE THE WASH THREW THE COLOUR AWAY (v3.629.0) ----------
     Darren, 11 September 2026: the thirteen block colours *"look very similar"* — and then, when I
     offered to change them: *"Change any colour. We're not used to anything yet."*

     MEASURED FIRST, and the measurement moved the fix somewhere else entirely. The thirteen colours
     are 16.7 apart at their closest, in CIE Lab, where 2.0 is the smallest difference an eye can
     see — they are five times more distinct than they need to be. But nothing on the screen was
     drawn AT those colours: the band was a 16% wash of one, the stripe 62% of one, and on the wash
     the closest pair collapses to 2.95. The palette was never the problem. The rendering was
     throwing away 85% of the difference, and no amount of re-hueing thirteen near-white tints was
     going to fix that. (I spent a while trying: a solver got the wash gap from 0.61 to 6.09 and the
     result looked WORSE — muddy browns, three near-identical greens. Rendered side by side it was
     obvious. A number that clears a threshold still looks wrong on the screen.)

     So the stripe is 6px of the REAL colour, and the heading gains a small square of it below.
     Nothing is re-coloured. */
  border-left:6px solid var(--area,var(--blue))}
.enq-rec .enq-wants[data-enq-block]{padding:14px;border-radius:var(--r);background:var(--panel-2)}
/* The code itself. Warm for money, cool for work, grey for the record's own paperwork — so the
   grouping is readable before any single colour is learned. */
/* 0220, v3.593.0 — *"each of those above should have their own colour."* The two sections above the
   pipeline were the only ones with none, which is why they read as a different kind of thing from
   the eleven below. Fuchsia for the customer's own words and indigo for the machine's reading of
   them: adjacent to nothing already in the code, and to each other only in that both are prose. */
/* ---- A PANEL HEADING IN THE DARK (0222, v3.606.0) --------------------------------------------
   Measured while mocking the bands: `.enq-head h3` falls back to `--blue-dark`, which the dark
   theme set to a brighter blue — 3.94:1 on the panel. At 15px bold that is normal text by WCAG, so the
   floor is 4.5, and every panel heading in the product was marginally under it. Raised to #5284FF
   (5.15:1): same hue, same saturation, seven points lighter.

   SCOPED TO THE HEADING, AND TO DARK ONLY. Changing the `--blue-dark` token itself would repaint
   the rate hero and the price chips with it; and unscoped, #5284FF measures 3.44:1 on white, which
   would break the light palette worse than the dark one was broken. Both were measured before this
   was written. Raised with Darren first, who called it non-urgent rather than wrong. */
html[data-theme="dark"] .enq-head h3,
html[data-theme="dark"] .enq-head h4{color:var(--area,#80A6FE)}

/* ================================================================================================
   THE HEADING BAND (0221, v3.606.0)
   ================================================================================================
   Darren, 11 September 2026: *"I did want to have a band of a different colour at the top instead
   of having the colour of the headings... there would be a band across it, and then the text would
   be written inside that coloured band."*

   Mocked in five variants and measured before it was written; he picked the tinted one at card
   width. A 16% wash of the block's own colour, square across the card, with a hairline of the
   colour underneath it.

   ---- NO MARKUP CHANGED, DELIBERATELY -----------------------------------------------------------
   The band is the existing `.enq-head` pulled out to the card's padding edges with negative margins
   (-14px, matching the 14px the card already has). Every block in the record draws its heading
   through this one element, so a CSS-only change reaches all thirteen — and the eleven renderers
   that draw them keep working untouched. Adding a wrapper div would have meant editing each.

   ---- WHY THE TITLE COLOUR IS LISTED PER BLOCK BELOW ---------------------------------------------
   A block's own colour ON a 16% wash of itself is not always readable: measured, the light palette
   ran as low as 2.76:1 (Quotes) — under the 4.5 that 15px bold needs. So each light title is
   stepped toward black until it clears, hue untouched, and the values are written out rather than
   computed at runtime because CSS cannot measure contrast. Worst case is now 4.61 in light and
   5.28 in dark, where every colour already cleared and none needed changing. */
/* ---- THE MARKER IS USUALLY ON THE PANEL, NOT AROUND IT (0242, v3.613.1) ---------------------
   Darren, 11 September 2026: *"I like the 'What they asked for' heading. I think that's good. What
   happened to all the other ones?"*
   The note above promised a CSS-only change would reach all thirteen blocks, and it reached one.
   The selector asks for the marker on an ANCESTOR of the panel (`[data-enq-block] > .panel.sub`),
   and `enqblocks.blockHtml` — which draws appts, quotes, invoices, payments, tasks, site and tags —
   puts it ON the panel: `<section class="panel sub enq-block" data-enq-block="quotes">`. So did
   `upto` and `story`. Only `wants` had a band, and only because the line below it covers exactly
   that same-element case for one class.
   Two selectors, not a markup pass: every block was already marked correctly. This is the promise
   the original note made, kept.
   `.dir-ai-h` is in here because the AI brief's heading row is that class rather than `.enq-head`
   (it carries a refresh button opposite the title — see the note further up). Without it the brief
   would be the one block still without a band, and in its LOADING state it would have one, because
   that branch draws an `.enq-head`. A band that appears while a panel is thinking and vanishes when
   it answers is worse than no band. */
/* ---- AND A FIFTH SHAPE, FOUND BY OPENING A REAL RECORD (0246, v3.614.1) --------------------
   Darren asked a second time *"what happened to all the other ones?"*, so I stopped measuring
   markup I had written myself and drove an actual enquiry in a browser. Seven of nine blocks banded;
   `files` did not, and no heading element was found on it at all.
   `filespanel.filesPanelHtml` emits `<div class="panel sub files-panel"><h4>Files on this enquiry`
   — a BARE h4, with no heading row to band. My own test had "covered" this shape using a
   constructed wrapper with an `.enq-head` inside it, which is not what the renderer writes. Same
   fault as the one before it: a test that builds its own markup measures the stylesheet against
   itself. The test now takes this shape from `filespanel.js`.
   SCOPED TO `.enq-rec`, because the files panel is drawn on quotes, invoices and customers too and
   those screens have no bands.
   (`history` is deliberately NOT here. It is a `<details><summary>History</summary>`, not a panel —
   a collapsed list rather than a section — and on an enquiry with no events it draws nothing at
   all. Banding a disclosure row is a different decision, not this fix.) */
.enq-rec [data-enq-block] > .panel.sub > .enq-head,
.enq-rec [data-enq-block] > .panel.sub > h4,
.enq-rec .panel.sub[data-enq-block] > .enq-head,
.enq-rec .panel.sub[data-enq-block] > .dir-ai-h,
.enq-rec .enq-wants[data-enq-block] > .enq-head{
  /* ---- ONE HEIGHT, WHATEVER IS IN IT (0248, v3.616.0) -------------------------------------
     Darren: *"the height of the heading blocks seems to be different."* Measured on a real record:
     **40, 43 and 48px**. Plain heading 40; with a button in it 43; with a `?` help dot 48 — so the
     band's height was being set by whichever control happened to be in that one, and a column of
     sections each a few pixels different is exactly the "not quite aligned" he is seeing.
     `min-height` and not `height`: a heading that wraps to two lines on a narrow screen must still
     grow. `align-items:center` was already on `.enq-head`; it is restated for the AI brief's own
     heading row, which is a different class and was not centring. */
  /* `display:flex` here and not only on `.enq-head`: the band is four different elements (a heading
     row, the AI brief's own row, the wants row, and a bare `h4` on the files panel) and only the
     first of them was already a flex box, so `align-items` reached one in four. */
  display:flex;min-height:44px;box-sizing:border-box;align-items:center;gap:10px;flex-wrap:wrap;
  margin:-14px -14px 12px;padding:8px 14px;
  background:color-mix(in srgb,var(--area,var(--blue)) 16%,var(--panel));
  box-shadow:inset 0 -1px 0 color-mix(in srgb,var(--area,var(--blue)) 34%,transparent);
  /* Follows the card's own corners rather than sitting square inside them — the card has no
     overflow:hidden to clip it, so a square band would poke out past the rounding. */
  border-radius:calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0}
/* The wants box is padded by its own rule and sits on --panel-2, so its band mixes against that. */
.enq-rec .enq-wants[data-enq-block] > .enq-head{
  background:color-mix(in srgb,var(--area,var(--blue)) 16%,var(--panel-2))}
/* The bare-h4 shape IS the heading, so it takes the title colour on itself rather than on a child. */
.enq-rec [data-enq-block] > .panel.sub > h4{color:var(--bandink,var(--area))}
.enq-rec [data-enq-block] > .panel.sub > .enq-head > h2,
.enq-rec [data-enq-block] > .panel.sub > .enq-head > h3,
.enq-rec [data-enq-block] > .panel.sub > .enq-head > h4,
.enq-rec .panel.sub[data-enq-block] > .enq-head > h2,
.enq-rec .panel.sub[data-enq-block] > .enq-head > h3,
.enq-rec .panel.sub[data-enq-block] > .enq-head > h4,
.enq-rec .panel.sub[data-enq-block] > .dir-ai-h > h2,
.enq-rec .panel.sub[data-enq-block] > .dir-ai-h > h3,
.enq-rec .panel.sub[data-enq-block] > .dir-ai-h > h4,
.enq-rec .enq-wants[data-enq-block] > .enq-head > h3,
.enq-rec .enq-wants[data-enq-block] > .enq-head > h4{
  color:var(--bandink,var(--area));margin:0}
/* ---- 0241 — AND A SQUARE OF THE REAL COLOUR BESIDE THE NAME (v3.629.0) ---------------------
   The one mark on the record drawn at the colour itself rather than at a fraction of it. Twelve
   pixels is enough: this is the same trick a map legend uses, and it is why a legend works with
   thirteen entries when a set of pale fills does not.

   ::before ON THE HEADING, not a new element, for the reason `hidethis.js` adopts prose at the DOM
   level: the record draws these headings in five different shapes (a bare h4, an enq-head with an
   h2, h3 or h4, the AI brief's own row, the wants box) and marking each one up by hand is five
   edits and a sixth shape somebody adds later without it. The selector list above already names
   every shape, because every shape already takes the colour — so the square goes exactly where the
   colour goes, and cannot end up on a heading that has none.

   `aria-hidden` is not needed and could not be given: a ::before with empty content carries no
   text, so a screen reader reads the heading and nothing else. */
.enq-rec [data-enq-block] > .panel.sub > h4::before,
.enq-rec [data-enq-block] > .panel.sub > .enq-head > h2::before,
.enq-rec [data-enq-block] > .panel.sub > .enq-head > h3::before,
.enq-rec [data-enq-block] > .panel.sub > .enq-head > h4::before,
.enq-rec .panel.sub[data-enq-block] > .enq-head > h2::before,
.enq-rec .panel.sub[data-enq-block] > .enq-head > h3::before,
.enq-rec .panel.sub[data-enq-block] > .enq-head > h4::before,
.enq-rec .panel.sub[data-enq-block] > .dir-ai-h > h2::before,
.enq-rec .panel.sub[data-enq-block] > .dir-ai-h > h3::before,
.enq-rec .panel.sub[data-enq-block] > .dir-ai-h > h4::before,
.enq-rec .enq-wants[data-enq-block] > .enq-head > h3::before,
.enq-rec .enq-wants[data-enq-block] > .enq-head > h4::before{
  content:'';display:inline-block;width:12px;height:12px;border-radius:3px;
  background:var(--area,var(--blue));margin-right:8px;vertical-align:-1px;flex:0 0 auto}
/* The jump bar carries the same square, so a chip and the band it jumps to are obviously the same
   thing. Its own 16%/34% tinting stays — that is what makes it read as a piece of the section
   rather than as a differently-coloured button (see the note in theme.css). */
.enq-rec .enq-jbtn::before{content:'';display:inline-block;width:9px;height:9px;border-radius:2px;
  background:var(--area,var(--blue));margin-right:6px;vertical-align:-1px;flex:0 0 auto}
/* The measured light titles. Dark needs none — every pale swatch already clears on its own wash. */
.enq-rec [data-enq-block="wants"],.enq-rec [data-enq-jump="wants"]{--bandink:#A320B3}
.enq-rec [data-enq-block="appts"],.enq-rec [data-enq-jump="appts"]{--bandink:#0D6E89}
.enq-rec [data-enq-block="quotes"],.enq-rec [data-enq-jump="quotes"]{--bandink:#B23C0B}
.enq-rec [data-enq-block="invoices"],.enq-rec [data-enq-jump="invoices"]{--bandink:#915806}
.enq-rec [data-enq-block="payments"],.enq-rec [data-enq-jump="payments"]{--bandink:#137337}
.enq-rec [data-enq-block="tasks"],.enq-rec [data-enq-jump="tasks"]{--bandink:#7637E1}
.enq-rec [data-enq-block="site"],.enq-rec [data-enq-jump="site"]{--bandink:#0E7069}
.enq-rec [data-enq-block="history"],.enq-rec [data-enq-jump="history"]{--bandink:#5A687D}
/* 0241 — Files moved off the greys and needs the same step toward black its neighbours took:
   olive at full strength is 4.1 on its own wash, which 15px bold does not clear. */
.enq-rec [data-enq-block="files"],.enq-rec [data-enq-jump="files"]{--bandink:#47720E}
/* ---- 0242 — AND THE FOUR NEW BANDS NEED NO INK OF THEIR OWN (v3.613.1) ---------------------
   MEASURED, and the measurement is why there is nothing here. `upto`, `story`, `files` and `tags`
   got a band for the first time in this release, so each looked like it needed the same stepping
   the eight above had. On their own 16% wash their own colours come out at 5.22, 4.92, 5.42 and
   4.61 — every one of them already clear of the 4.5 that 15px bold needs, so the fallback
   `var(--bandink, var(--area))` is the right answer and an override would only be a second value
   to keep in step with the first.
   I had written four before I measured, and one of them (`tags`, a pink block) was a BROWN — it
   passed contrast at 4.52 and was simply the wrong colour. A guess that clears a threshold still
   looks wrong on the screen. */
html[data-theme="dark"] .enq-rec [data-enq-block],html[data-theme="dark"] .enq-rec [data-enq-jump]{--bandink:var(--area)}

.enq-rec [data-enq-block="wants"],.enq-rec [data-enq-jump="wants"]{--area:#c026d3}
.enq-rec [data-enq-block="story"],.enq-rec [data-enq-jump="story"]{--area:#701a75}
.enq-rec [data-enq-block="upto"],.enq-rec [data-enq-jump="upto"]{--area:#1d4ed8}
.enq-rec [data-enq-block="notes"],.enq-rec [data-enq-jump="notes"]{--area:#9f1239}
.enq-rec [data-enq-block="appts"],.enq-rec [data-enq-jump="appts"]{--area:#0e7490}
.enq-rec [data-enq-block="quotes"],.enq-rec [data-enq-jump="quotes"]{--area:#c2410c}
.enq-rec [data-enq-block="invoices"],.enq-rec [data-enq-jump="invoices"]{--area:#a16207}
.enq-rec [data-enq-block="payments"],.enq-rec [data-enq-jump="payments"]{--area:#15803d}
.enq-rec [data-enq-block="tasks"],.enq-rec [data-enq-jump="tasks"]{--area:#7c3aed}
.enq-rec [data-enq-block="site"],.enq-rec [data-enq-jump="site"]{--area:#0f766e}
.enq-rec [data-enq-block="files"],.enq-rec [data-enq-jump="files"]{--area:#4d7c0f}
.enq-rec [data-enq-block="tags"],.enq-rec [data-enq-jump="tags"]{--area:#be185d}
/* v3.1165.0 — the Communications block: indigo, between Notes' crimson and the Bookings teal. */
.enq-rec [data-enq-block="comms"],.enq-rec [data-enq-jump="comms"]{--area:#4338ca}
.enq-rec [data-enq-block="history"],.enq-rec [data-enq-jump="history"]{--area:#64748b}
/* ---- AND THE SAME CODE, READABLE IN THE DARK (0220, v3.603.0) -------------------------------
   The thirteen colours above were chosen against a white panel and used unchanged on a dark one.
   MEASURED in headless Chromium against the real dark background: SEVEN of the thirteen fall below
   the WCAG AA floor of 3.0 for large text — Notes 2.15, Files 2.38, Where-it-is-up-to 2.43, The
   story so far 2.59, Tags 2.69, Tasks 2.85, Site 2.97 — and four of the six that pass do so by
   less than a quarter of a point. A colour code nobody can read is not a code.

   THE HUE IS KEPT AND THE LIGHTNESS IS LIFTED. Each is the same colour three or four steps up its
   own ramp, so Notes is still slate, Quotes is still amber and Tags is still pink — somebody who
   has learned the code in daylight has not been asked to learn a second one. Changing the hues to
   whatever contrasted best would have been the easy fix and a different code.

   ALL THIRTEEN ARE LIFTED, not the seven that failed. Two ramps meeting at 3.05 and 4.9 look like a
   mistake even when both pass, and the point of the code is that the difference between two blocks
   reads as deliberate. Re-measured after: every one at or above 6.
   This selector is `html[data-theme="dark"]` because that is the only thing this app switches on —
   see the note on .apptop; there is no prefers-color-scheme path to keep in step. */
html[data-theme="dark"] .enq-rec [data-enq-block="wants"],html[data-theme="dark"] .enq-rec [data-enq-jump="wants"]{--area:#e879f9}
html[data-theme="dark"] .enq-rec [data-enq-block="story"],html[data-theme="dark"] .enq-rec [data-enq-jump="story"]{--area:#e79bec}
html[data-theme="dark"] .enq-rec [data-enq-block="upto"],html[data-theme="dark"] .enq-rec [data-enq-jump="upto"]{--area:#93b4fe}
html[data-theme="dark"] .enq-rec [data-enq-block="notes"],html[data-theme="dark"] .enq-rec [data-enq-jump="notes"]{--area:#f7a8b8}
html[data-theme="dark"] .enq-rec [data-enq-block="appts"],html[data-theme="dark"] .enq-rec [data-enq-jump="appts"]{--area:#67e8f9}
html[data-theme="dark"] .enq-rec [data-enq-block="quotes"],html[data-theme="dark"] .enq-rec [data-enq-jump="quotes"]{--area:#fca574}
html[data-theme="dark"] .enq-rec [data-enq-block="invoices"],html[data-theme="dark"] .enq-rec [data-enq-jump="invoices"]{--area:#fcd34d}
html[data-theme="dark"] .enq-rec [data-enq-block="payments"],html[data-theme="dark"] .enq-rec [data-enq-jump="payments"]{--area:#86efac}
html[data-theme="dark"] .enq-rec [data-enq-block="tasks"],html[data-theme="dark"] .enq-rec [data-enq-jump="tasks"]{--area:#c4b5fd}
html[data-theme="dark"] .enq-rec [data-enq-block="site"],html[data-theme="dark"] .enq-rec [data-enq-jump="site"]{--area:#5eead4}
html[data-theme="dark"] .enq-rec [data-enq-block="files"],html[data-theme="dark"] .enq-rec [data-enq-jump="files"]{--area:#bef264}
html[data-theme="dark"] .enq-rec [data-enq-block="tags"],html[data-theme="dark"] .enq-rec [data-enq-jump="tags"]{--area:#f9a8d4}
/* Dark comms is indigo-400, not indigo-300: #a5b4fc washed to 1.21 CIE Lab from upto (recdesign3 0241 floor 2.5); #818cf8 is 4.59. */
html[data-theme="dark"] .enq-rec [data-enq-block="comms"],html[data-theme="dark"] .enq-rec [data-enq-jump="comms"]{--area:#818cf8}
html[data-theme="dark"] .enq-rec [data-enq-block="history"],html[data-theme="dark"] .enq-rec [data-enq-jump="history"]{--area:#cbd5e1}

/* WHERE A "CREATE" BUTTON LIVES (v3.455.0). Darren: *"all 'Create new' or 'Add' buttons at the top
   right, so it's consistent throughout the whole system."* `margin-left:auto` pins it right whatever
   the heading's width, and it wraps under the title on a narrow screen rather than squeezing it. */
.panel-head-actions{margin-left:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
@media (max-width:520px){
  .panel-head-actions{margin-left:0;width:100%}
}
.enq-outnote{margin:0 0 0 auto;text-align:right}
.enq-filterhead{display:flex;align-items:center;gap:10px;flex-wrap:wrap;position:relative}
.enq-filterhead h3{margin:0}
.enq-filterbar{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;align-items:center}
.enq-filterbar .enq-search{flex:1 1 260px;min-width:180px}
.enq-filterbar select{flex:0 0 auto;max-width:100%}
.enq-help{margin-left:auto;position:relative}
.enq-help>summary{cursor:pointer;list-style:none;width:22px;height:22px;border:1px solid var(--line);
  border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--blue-ink);
  font-weight:700;font-size:var(--fs-sm)}
.enq-help>summary::-webkit-details-marker{display:none}
.enq-help[open]>summary{background:var(--blue-lt)}
.enq-help-pop{position:absolute;right:0;top:28px;z-index:6;width:min(340px,80vw);
  background:var(--panel,#fff);border:1px solid var(--line);border-radius:10px;padding:10px 12px;
  box-shadow:0 8px 24px rgba(0,0,0,.14)}
.enq-help-pop p{margin:0 0 6px}
@media(max-width:700px){ .enq-outnote{margin-left:0;text-align:left;flex-basis:100%} }

/* ---- THE CONTACT DIRECTORY (v3.290.0) --------------------------------------------------------
   A row of counts that wraps rather than scrolls, because it is read at a glance and a number that
   has slid off the side is a number nobody checks. */
.dir-counts{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}
.dir-count{flex:1 1 130px;min-width:130px;background:var(--panel-2);border:1px solid var(--line);
  border-radius:var(--r);padding:10px 12px}
.dir-count b{display:block;font-size:22px;line-height:1.1;color:var(--blue-ink)}
.dir-count span{font-size:var(--fs-xs);color:var(--muted)}
/* lane beccrm (Bec, item 5) — People in touch: each tally is a filter button. */
.dir-count-btn{font:inherit;text-align:left;cursor:pointer;color:inherit}
.dir-count-btn:hover{border-color:var(--blue-ink)}
.dir-count-btn.on{border-color:var(--blue-ink);box-shadow:inset 0 0 0 1px var(--blue-ink)}
.dir-count-btn:focus-visible{outline:2px solid var(--blue-ink);outline-offset:2px}
.snd-pick{display:inline-block;vertical-align:middle;margin-right:6px}
.dir-hits{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.dir-hits li{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
/* A shared inbox is marked, not hidden — sometimes accounts@ is exactly who you want. */
tr.dir-role td{background:var(--tint,#F2F6FF)}
.dir-caps{margin:8px 0;padding:10px 12px;background:var(--panel-2);border-radius:var(--r);
  border-left:3px solid var(--muted)}
.dir-caps p{margin:0 0 6px}
.dir-caps p:last-child{margin-bottom:0}

/* Whose membership is this. Above the tier cards, because it is the one thing we need that the
   cards themselves cannot ask for. */
.edge-who{margin:12px 0;max-width:520px}
.edge-who label{display:block;font-weight:700;font-size:13.5px;margin-bottom:4px}
.edge-who input{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r);
  font:inherit;background:var(--panel);color:var(--ink)}
.edge-who input:focus{outline:2px solid var(--accent);outline-offset:1px}

/* The staff editor (B10). Two columns for the short fields, full width for the SQL — a report is
   mostly one long textarea and the fields around it should not push it off the screen. */
/* ---- THE GRID'S LABELS HAD TO BE TOLD TO STACK (v3.295.0) --------------------------------------
   Darren, 31 Aug 2026, of the Add-somebody form: "it's not formatted very well." It was not, and the
   fault was here rather than in that form. `.bia-grid` set the columns and nothing else, so a
   `<label>Their email<input></label>` laid out INLINE — caption, then hint, then a box taking
   whatever width was left. Two fields side by side therefore had wildly different box widths, and a
   long hint squeezed its input to nothing.
   Fixed for every form that uses the grid — enquiries, reminders, the rule editor and this one all
   share it, and all four had the same crushed boxes. */
/* ---- AND THE BOXES STILL DID NOT LINE UP (v3.346.0) -----------------------------------------
   Darren, 2 Sep 2026: *"It looks like we still haven't fixed the alignment just yet."*

   He was right, and v3.295.0 had fixed a different fault. The labels stacked correctly; what did
   not line up were the INPUTS. `align-items:start` puts each label at the top of its own cell and
   each input immediately under its own caption — so a field whose caption carries a hint
   ("Accounts email / where invoices and chases go by default") has its box one line lower than the
   plain field beside it. Two boxes on one row, at two different heights, on every form in the app.

   The fix is structural rather than per-field: each label is a THREE-ROW grid — caption, hint,
   control — and the control is pinned to row 3.

   Pinned by ELEMENT, not by a class, because there are several hundred of these fields across
   twelve forms and a class would be several hundred chances to miss one. */
/* ---- AND `1fr` ON THE HINT ROW MAROONED A CONTROL (v3.360.0) -------------------------------
   Darren, 3 Sep 2026: *"This worked really well but has alignment issues."* — the second screenshot
   showed "What the place is called" with its caption at the top of the row and its BOX forty pixels
   lower, level with the bottom of the paragraph beside it.

   v3.346.0 made the hint row `1fr` so it would "absorb the slack in a label that has no hint". It
   absorbs the slack, all right — ALL of it. `align-items:stretch` makes every label in a row as tall
   as the tallest, so a field sharing a row with one carrying a three-line explanation had forty
   pixels of slack handed to its empty hint row, and its control pushed down to meet a neighbour it
   has nothing to do with. The rule worked while every hint was one line and failed the first time
   one was not, which is why it survived fourteen releases.

   RESERVE A LINE; DO NOT ABSORB A ROW. `minmax(1.3em, auto)` keeps the whole point of v3.346.0 — a
   field with no hint still lines its box up with the one-line hint beside it, because it holds a
   line open — while a genuinely tall neighbour now leaves its slack at the BOTTOM of the row, where
   nobody is looking, instead of inside somebody else's field. */
.bia-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:8px 0;
  align-items:stretch}
/* ---- ONE DEFINITION OF WHAT A FIELD LOOKS LIKE (v3.372.0) ------------------------------------
   Darren, 4 Sep 2026, twice: *"in the 'Who else can see this customer' there are fields that are
   still not inline. Can you please go right through the whole system and ensure all fields are in
   line and not offset like that?"*

   He is right, and the reason it kept coming back is that the fix lived on ONE class. `.bia-grid`
   got the reserve-a-hint-line treatment in v3.360.0 and `.edge-form` — which lays out the share
   picker, the membership form, the tier cards and half a dozen other panels — never did. It was a
   plain flex row with `flex-direction:column` on each label and NO `align-items`, so it defaulted
   to stretch: a field whose caption carries a hint puts its box one line lower than the field
   beside it, every time. That is the offset in the screenshot.

   FIXED BY SHARING THE RULE, not by copying it. Two classes with the same intention is two chances
   to fix one of them, and this is the third release in a row to touch field alignment. */
.bia-grid>label,.edge-form label,.edge-claimform label{
  display:grid;grid-template-rows:auto minmax(1.3em,auto) auto;gap:4px;font-weight:600;
  font-size:13.5px;align-content:start}
/* ---- AN EXPLANATION IS NOT A FIELD (v3.360.0) ----------------------------------------------
   The other half of the same fault. The timezone's daylight-saving note lived INSIDE its label, as a
   fourth child of a three-row grid — so the field itself became four rows tall and made its whole
   row tall, which is the height that then got poured into the field beside it.

   A sentence about a field belongs across the row, under it. `:empty{display:none}` so a note with
   nothing in it takes no space and no gap — the same rule `.al-out` needed, for the same reason: a
   grid does not care that a child is empty, it still gives it a cell. */
.bia-note{grid-column:1/-1;margin:0;font-weight:400;font-size:12.5px;line-height:1.4;
  color:var(--muted,#5B6472)}
/* ---- AND THE RESERVED LINE IS A WASTED LINE ON A PHONE (v3.467.0) ---------------------------
   The `minmax(1.3em,auto)` middle row above exists for ONE reason: so a field whose caption carries
   a hint does not push its box a line below the box BESIDE IT. On a phone there is no box beside it.
   Every field on every form was carrying a blank line between its own caption and its own box —
   measured at 26px between the bottom of the caption text and the top of the input, at every width,
   on a 390px screen where vertical room is the scarce thing.

   Seen while reproducing Darren's enquiry-picker fault on a real 390px screen: "Their name", a
   gap, the box; "Email", a gap, the box. It reads as a caption belonging to the field above it.

   `grid-template-rows:none` puts every row back to implicit `auto`, so a hint still lands on its
   own line between the two and an absent hint costs nothing at all.

   WHY 440px, AND WHY IT IS NOT 480. Measured across three containers, and the first number was
   wrong: in a PANEL `.edge-form` — flex, `0 1 200px` — takes a second column at a 490px viewport,
   which suggested 480. Straight into `main > .wrap`, with no panel padding to pay for, it takes
   the second column at 450px. That looser container is a real layout in this app, so the threshold
   is set under the SMALLEST crossover found and not the first one: 440px, with `.bia-grid` not
   turning two-column until 490 in the same container. Every phone in portrait tops out at 430px,
   so all of them are inside it; above it the reserve is doing its job again.

   The lesson is the measurement, not the number — one container answered 490 and another 450, and
   taking the first answer would have misaligned the fields on a 460px screen. */
@media (max-width:440px){
  .bia-grid>label,.edge-form label,.edge-claimform label{grid-template-rows:none}
}

/* ================================================================================================
   A TICKBOX IS NOT A THREE-ROW FIELD (v3.459.0)

   Darren, 7 Sep 2026: *"the quote layout is quite horrible."* Measured at 1440, and this was the
   most visibly wrong thing on it: "Fly-in (at cost)" sat hard left with its checkbox 380px away in
   the middle of the row.

   The cause is a specificity accident. `.cd-check` is `display:flex` (0,1,0); `.bia-grid>label` is
   `display:grid` with `grid-template-rows: auto minmax(1.3em,auto) auto` (0,1,1) and wins. So a
   checkbox label inside one of these grids became a three-row grid whose row 1 is the box and whose
   row 3 is the words — the split in the screenshot. It has been wrong in every `.bia-grid` in the
   product, not only here.

   Fixed where the collision is rather than by bumping `.cd-check` everywhere: a tickbox inside one
   of these grids lays out as a row, whatever the grid's field rule says. `!important` is deliberate
   and narrow — the rule it is overriding is itself a layout default applied to every child. */
.bia-grid>label.cd-check,.edge-form label.cd-check{
  display:flex!important;align-items:center;gap:8px;grid-template-rows:none!important;
  font-weight:600;margin-top:4px}
.bia-grid>label.cd-check>input,.edge-form label.cd-check>input{
  width:auto;min-width:0;margin:0;flex:0 0 auto}

/* ================================================================================================
   THE LINES ON A QUOTE (v3.459.0)

   `.qline` HAD NO STYLESHEET RULE AT ALL — not a missing tweak, no rule of any kind — so the part of
   a quote that actually matters laid out on browser defaults. Measured: the "Kind" select came out
   44px wide and a "Service" select 13px, both unusable, with their captions repeated on every row.

   ONE GRID FOR THE HEADER AND THE ROWS, so the columns line up down the list instead of each row
   finding its own widths from its own contents. `.qline-kind` is the first column on every kind of
   line; the middle is whatever that kind needs (hours, a service, a description and an amount) and
   it takes the space; the Remove button is last and never moves. */
/* ================================================================================================
   THE QUOTE BUILDER, IN SECTIONS (v3.459.0)

   Measured before touching it: 1,351px tall at 1440 with Save at 1,310 — below the fold, on the one
   form whose whole purpose is to end in a press. Four headings floated in a single column with no
   boundary between them, so "Pricing" and "Lines" read as more of the same list rather than as the
   next thing to do. */
.qb-sec{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:0 0 12px;
  background:var(--panel)}
.qb-sec>h3{margin:0 0 2px;font-size:15px;display:flex;align-items:center;gap:8px}
/* The step number, so the four sections read as a sequence and not as four unrelated boxes. */
.qb-n{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;
  flex:0 0 22px;border-radius:50%;background:var(--blue);color:#fff;font-size:var(--fs-xs);font-weight:800}
.qb-sec>.bia-grid{margin-top:6px}
/* v3.1208 (Bec, 26 Oct) — "+ CC / BCC" under Email in the builder, and the two boxes it opens across the row. */
.bia-grid>label .q-cc-open{justify-self:start;margin-top:4px;font-weight:600}
.bia-grid>.q-copies{grid-column:1/-1}
.bia-grid>.q-copies[hidden]{display:none}
.q-copies>.bia-grid{margin:0}
/* AN EMPTY PANEL IS NOT A PANEL. `#q-travel` is filled by draw() only when there is travel to state,
   and until then it rendered as a bare grey bar across the form — measured, and the single most
   obviously wrong thing on the screen after the line rows. A grid does not care that a child is
   empty; it still gives it a cell. Same rule as `.bia-note:empty`. */
#q-travel:empty{display:none}
/* ---- THE PRESS, WHERE IT CAN ALWAYS BE REACHED ---------------------------------------------
   Sticky to the bottom of the scrolling overlay (`.sheet-ov` is the scroller, not `.sheet-body`),
   so the action is on screen at every scroll position instead of at the end of one. */
.qb-foot{position:sticky;bottom:-20px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  margin:4px -22px -20px;padding:12px 22px;background:var(--panel);
  border-top:1px solid var(--line);box-shadow:0 -6px 18px rgba(35,31,32,.06)}
.qb-foot-note{flex:1 1 220px;min-width:0}
@media (max-width:640px){
  .qb-foot{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
  /* On a phone the sentence goes under the button rather than squeezing it to nothing. */
  .qb-foot-note{flex:1 1 100%}
}

/* ================================================================================================
   "PEOPLE WHO HAVE EMAILED US" — SIX COLUMNS, TWO OF THEM SENTENCES (v3.460.0)

   Darren, 7 Sep 2026: *"the table is too wide."* Two of the six columns hold whole sentences — a
   company name scraped off a signature, and the multi-clause "how sure" hedge ("the address is one
   word, so that is a first name at best and possibly neither; the email had no body to read") — so
   the table grew past its wrapper and the horizontal scroll took the WHO column with it. That is the
   one column you cannot review a row without.

   FIXED LAYOUT WITH DECLARED WIDTHS, so the long cells wrap and the narrow ones stop being pushed.
   Nothing is truncated: the hedge is the whole point of the column (it is the difference between
   reviewing a list and rubber-stamping one), so it wraps to as many lines as it needs. */
.tbl-senders{table-layout:fixed;width:100%}
/* ---- WHY v3.460.0's FIX DID NOT ACTUALLY FIX IT (v3.462.0) --------------------------------
   `overflow-wrap:anywhere` was added here with the fixed column widths, and measured at 1440px the
   table STILL scrolled 120px inside its wrapper. The reason is one line at the top of this sheet:

       th,td{padding:9px 11px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}

   `white-space:nowrap` FORBIDS WRAPPING, and `overflow-wrap` only decides WHERE a line may break
   once breaking is allowed at all. So the declaration was inert, every cell laid out as one long
   line, and `table-layout:fixed` then let those lines overflow their columns — which is exactly the
   "the table is too wide" Darren reported, still there after the release that claimed to fix it.

   The global nowrap is the right default for a table of numbers and dates (see the note at line
   3049). It is the wrong default for THIS table, which is the one that holds two columns of English
   sentences. So it is turned off here, deliberately and narrowly. */
.tbl-senders th,.tbl-senders td{white-space:normal;vertical-align:top}
/* ---- AND `anywhere` IS SCOPED, BECAUSE IT BREAKS WORDS (measured at 420px) ---------------
   The first cut put `overflow-wrap:anywhere` on every cell in the table. At phone width that broke
   the BUTTON LABELS a character per line — a vertical column reading "N o t   a   c o n t a c t" —
   and split the pill into "CONFID / ENT". Which is correct behaviour for the declaration: anywhere
   means anywhere, including the middle of a short word in a narrow box.
   It is only wanted where the content is a single unbreakable token wider than its column: an email
   address and a domain. Columns 1 and 2, and nothing else. */
.tbl-senders td:nth-child(1),.tbl-senders td:nth-child(2){overflow-wrap:anywhere}
/* A LABEL IS NEVER BROKEN. Buttons and pills wrap BETWEEN themselves, never inside a word. */
.tbl-senders .btn,.tbl-senders .conn-pill{white-space:nowrap;overflow-wrap:normal;word-break:normal}
/* And they stack rather than pushing the column open — three of them (Read it / Add / Not a
   contact) do not fit a 13% column on a laptop, let alone a phone. */
.tbl-senders td:nth-child(6) .btn{margin:0 4px 4px 0}
.tbl-senders th:nth-child(1),.tbl-senders td:nth-child(1){width:26%}
.tbl-senders th:nth-child(2),.tbl-senders td:nth-child(2){width:22%}
.tbl-senders th:nth-child(3),.tbl-senders td:nth-child(3){width:11%}
.tbl-senders th:nth-child(4),.tbl-senders td:nth-child(4){width:6%;text-align:right}
.tbl-senders th:nth-child(5),.tbl-senders td:nth-child(5){width:22%}
.tbl-senders th:nth-child(6),.tbl-senders td:nth-child(6){width:13%}
/* The hedge is small print by design — it is read when a row looks wrong, not scanned. */
.tbl-senders td:nth-child(5) .hint{font-size:var(--fs-xs);line-height:1.35}
@media (max-width:900px){
  /* Below this the six columns cannot all be useful. Phone and the count fold away — both are
     repeated in the row's own text or irrelevant to the decision — and the rest take their room. */
  .tbl-senders th:nth-child(3),.tbl-senders td:nth-child(3),
  .tbl-senders th:nth-child(4),.tbl-senders td:nth-child(4){display:none}
  .tbl-senders th:nth-child(1),.tbl-senders td:nth-child(1){width:34%}
  .tbl-senders th:nth-child(2),.tbl-senders td:nth-child(2){width:26%}
  .tbl-senders th:nth-child(5),.tbl-senders td:nth-child(5){width:24%}
  .tbl-senders th:nth-child(6),.tbl-senders td:nth-child(6){width:16%}
}
/* ---- ON A PHONE IT IS NOT A TABLE AT ALL (v3.462.0) --------------------------------------
   Measured at 420px, three times over, and the columns lost every time:
     * four columns and three buttons in 420px gave "Not a contact" 62px, so the label broke into a
       vertical stack of single letters;
     * `white-space:nowrap` on the labels fixed the breaking and produced OVERLAP instead — the
       CONFIDENT pill printed straight through the Hide it button, because a nowrap label wider than
       its column overflows visibly into the next one;
     * and re-dividing the percentages just moves which column loses.
   There is no division of 420 pixels that fits this row, because the row holds a name, an employer,
   a sentence of hedging and three decisions. So on a phone each row becomes a CARD: the cells stack,
   the header row goes (each block says what it is by what it contains), and the buttons get the full
   width they need. This is what "the table is too wide" was actually asking for.
   The evidence row is a `<tr>` of its own, so as a block it still lands directly under its card. */
@media (max-width:620px){
  .tbl-senders,.tbl-senders tbody,.tbl-senders tr,.tbl-senders td{display:block;width:auto}
  .tbl-senders thead{display:none}
  .tbl-senders tbody tr:not(.snd-read){border:1px solid var(--line);border-radius:10px;
    padding:11px 12px;margin:0 0 10px;background:var(--panel)}
  .tbl-senders td{border-bottom:0;padding:2px 0;width:auto!important;text-align:left!important}
  .tbl-senders td:empty{display:none}
  /* The decision, with room to be read and pressed. */
  .tbl-senders td:nth-child(6){margin-top:8px;display:flex;flex-wrap:wrap;gap:7px}
  .tbl-senders td:nth-child(6) .btn{margin:0;flex:1 1 auto;min-height:36px}
  /* A card and the evidence under it are one thing, so the gap goes below the pair, not between. */
  .tbl-senders tbody tr:has(+ .snd-read){margin-bottom:0;border-bottom-left-radius:0;
    border-bottom-right-radius:0}
  .tbl-senders tr.snd-read{margin:0 0 10px}
  .tbl-senders .snd-read>td{border:1px solid var(--line);border-top:0;
    border-radius:0 0 10px 10px;padding:10px 12px 12px}
}

.qlines{display:grid;gap:6px;margin:6px 0}
.qline-head,.qline{display:grid;grid-template-columns:minmax(150px,180px) 1fr auto;
  gap:10px;align-items:end}
/* The captions, said ONCE at the top of the list rather than on every row. */
.qline-head{font-weight:600;font-size:12.5px;color:var(--muted);padding:0 2px}
.qline-head span:last-child{text-align:right}
.qline{padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2)}
/* Every label in a row is a column of its own; the caption is small because the header says it.
   DESCENDANT, NOT CHILD: the fields for a kind sit inside `.qline-mid`, so `>` matched none of them
   and a select kept its 205px min-content width inside a 173px cell (measured at 420px). */
.qline label{display:grid;gap:3px;font-weight:600;font-size:var(--fs-xs);color:var(--muted);min-width:0}
.qline label>input,.qline label>select{width:100%;min-width:0;max-width:100%}
/* A <select>'s intrinsic width is its longest option, which is why the grid could not shrink it.
   `min-width:0` on the track's own items is what lets the column win instead. */
.qline>*{min-width:0}
/* The middle of a row holds one or two fields depending on the kind — they share the space rather
   than one of them collapsing to 13px. */
.qline-mid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;
  align-items:end;min-width:0}
/* A tickbox in a row is a row, for the same reason as above. */
.qline label.chk{display:flex;align-items:center;gap:6px;font-size:var(--fs-sm);color:var(--ink);
  white-space:nowrap;padding-bottom:6px}
.qline label.chk>input{width:auto;min-width:0}
/* v3.1165.0 — a line's own description, the full width of its row under the fields. */
.qline .qline-desc{grid-column:1/-1}
/* v3.1170.0 — several lines, like Simpro's item description; it grows as it is typed into (app.js qlineDescGrow). */
.qline .qline-desc>textarea{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;
  font:inherit;line-height:1.45;resize:vertical;min-height:3.2em}
/* v3.1170.0 — the optional hand price beside a priced line. */
.qline .qline-own>input{width:100%;min-width:0}
.qline .qline-own small{display:block;color:var(--muted);font-size:11.5px;font-weight:400}
@media (max-width:700px){
  /* On a phone the three columns become one: 150px of "Kind" beside a 1fr of everything else leaves
     neither usable. The Remove button goes full width at the bottom of its own row, where it cannot
     be hit by accident while reaching for the amount. */
  .qline-head{display:none}
  .qline{grid-template-columns:1fr}
  .qline>label{font-size:12.5px}
}
.bia-note:empty{display:none}
/* Row 3, always — see the note above. A label with no hint leaves row 2 empty and `1fr` gives that
   empty row the spare height, which is what pushes this control down to meet its neighbours. */
.bia-grid>label>input,.bia-grid>label>select,.bia-grid>label>textarea,
.edge-form label>input,.edge-form label>select,.edge-form label>textarea,
.edge-claimform label>input,.edge-claimform label>select,.edge-claimform label>textarea{grid-row:3}
/* The hint sits under the caption and above the box, at normal weight — it is an explanation, not
   part of the label, and bolding it made the two read as one long run-on caption.

   ---- AND IT SPANS THE LABEL, WHATEVER ELSE IS IN THERE (v3.459.0) --------------------------
   Darren, 7 Sep 2026: *"the quote layout is quite horrible."* The top of the quote builder read
   "Customer | 2 customers. Type a few letters to narrow it. | Send it to" — three fields on one
   row, apparently. It was ONE field turned inside out, and the cause is the rule directly above
   this one: every control is pinned to `grid-row:3`, so a label with TWO controls (the Customer
   field has a narrow-the-list box AND the select, which belong side by side) puts the second in
   row 3 of a NEW COLUMN — and the auto-placed hint then lands in the first free cell, which is
   row 1, column 2, beside the caption.

   Two controls sharing row 3 is correct and stays. What was wrong is that a sentence about the
   field could be placed as though it were a field: `1/-1` makes the hint span whatever columns the
   label ends up with, so auto-placement puts it on the hint row where it belongs — with one
   control or with three. Same reason `.bia-note` spans the outer grid. */
.bia-grid>label .hint,.edge-form label .hint,.edge-claimform label .hint{
  font-weight:400;font-size:12.5px;line-height:1.4;display:block;grid-column:1/-1}
/* `width:100%` AND `min-width:0`. Without the second a grid item refuses to shrink below its
   intrinsic width, so a long placeholder pushes the column wider than its share and the row stops
   being a grid at all.
   ---- AND IT NO LONGER RESTATES WHAT A FIELD LOOKS LIKE (v3.350.0) ---------------------------
   This used to set its own padding (8px 10px), its own radius (6px) and its own background
   (--panel), which is why the 38 forms built on this grid did not match the filter strips, the
   sheet forms or each other: three components, three opinions, and a `border-radius:6px` two
   pixels off the app's own --r. Only the things that are genuinely about being IN A GRID are left;
   the look comes from the shared field rule in theme.css and its three tokens. */
.bia-grid>label input,.bia-grid>label select,.bia-grid>label textarea,
.edge-form label input,.edge-form label select,.edge-form label textarea,
.edge-claimform label input,.edge-claimform label select,.edge-claimform label textarea{
  width:100%;min-width:0;font-weight:400}
/* ---- A FIELD THAT NEEDS THE WHOLE ROW (v3.315.0) ---------------------------------------------
   Darren: "Creating a customer should have the text boxes all on the same line to make it easy to
   fill in." The five short fields were already gridded; the notes textarea and the "main site"
   checkbox sat OUTSIDE the grid as bare labels, which lay out inline — caption on the left, box
   jammed beside it, overlapping the buttons underneath. They are in the grid now and span it, so
   every box on a form starts at the left edge of a column and the rows line up. */
.bia-grid>label.bia-wide{grid-column:1/-1}
/* ---- THE STRAY LABEL, FIXED ONCE FOR EVERY FORM (v3.315.0) -----------------------------------
   Darren sent two screenshots a few minutes apart — "Add a customer" and "New lesson" — and both
   showed the same wreck: a caption on the left with a small box jammed beside it, a textarea
   floating over the buttons, and a checkbox stranded mid-sentence.

   It is one fault, twelve times. Every form in this app puts its short fields in `.bia-grid` (which
   lays each label out as a column) and then writes the long ones — a textarea, a checkbox — as bare
   <label> siblings AFTER the grid closes. A bare <label> is inline: caption, then whatever width is
   left. Twelve forms, thirty-six fields: teamAddHtml, enqFilterHtml, enqFormHtml, enqDetailHtml,
   remEditHtml, libCatFormHtml, libDocFormHtml, acadQuestionFormHtml, acadResFormHtml,
   acadLessonFormHtml, biAdminEditorHtml and dirNewCoHtml.

   Fixing thirty-six labels by hand is thirty-six chances to break a form that works. So the layout
   is fixed where layout belongs: any label that is a direct child of a panel which HAS a field grid
   is part of that form, and lays out the same way — caption, hint, then a full-width box. That is
   also the right shape for these fields: a rows=8 textarea wants the whole width, not a column.

   `:has()` is the load-bearing part. Without it this would need a class on all thirty-six. */
.panel:has(>.bia-grid)>label,
.panel:has(>.bia-grid)>div>label:not(.bia-grid>label){display:flex;flex-direction:column;gap:4px;
  font-weight:600;font-size:13.5px;margin:12px 0 0}
.panel:has(>.bia-grid)>label .hint{font-weight:400;font-size:12.5px;line-height:1.4;display:block}
.panel:has(>.bia-grid)>label input,
.panel:has(>.bia-grid)>label select,
.panel:has(>.bia-grid)>label textarea{width:100%;min-width:0;font:inherit;font-weight:400;
  padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:var(--panel);
  color:var(--ink)}
.panel:has(>.bia-grid)>label input,
.panel:has(>.bia-grid)>label select{min-height:38px}
.panel:has(>.bia-grid)>label textarea{min-height:64px;resize:vertical;line-height:1.5}
/* A CHECKBOX READS ACROSS. It is the one field whose caption belongs beside it, and stacking it
   turned "Free to watch" into a heading over a tick nobody connected to it. */
.panel:has(>.bia-grid)>label:has(>input[type=checkbox]){flex-direction:row;align-items:flex-start;
  gap:8px;flex-wrap:wrap}
.panel:has(>.bia-grid)>label:has(>input[type=checkbox]) input{width:auto;min-width:0;min-height:0;
  margin-top:3px;padding:0;border:0}
.panel:has(>.bia-grid)>label:has(>input[type=checkbox]) .hint{flex:1 1 100%}
.bia-grid>label.bia-wide textarea{min-height:56px;resize:vertical}
/* A checkbox reads across, not down — the only label on these forms that should not be a column. */
.bia-grid>label.cd-check{flex-direction:row;align-items:center;gap:8px;font-weight:600}
.bia-grid>label.cd-check input{width:auto;min-width:0;min-height:0}
/* IN A SHEET, TWO COLUMNS. A 900px dialog fits four 220px columns, which puts a form's fields in an
   order nobody reads — first name, then something unrelated three columns over. Two keeps a pair of
   related fields beside each other and the eye moving down. */
.sheet-card .bia-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));max-width:760px}
#biadmin-editor textarea{width:100%;font-size:var(--fs-sm)}
#biadmin-editor label{display:block;margin:8px 0}
/* The session board's assign picker. A bare <select> outside a .field label inherits nothing, so it
   rendered at the browser default size beside 12px table text (N6, v3.243.0). */
.sess-assign{font:inherit;font-size:12.5px;padding:4px 6px;border:1px solid var(--line);
  border-radius:6px;max-width:150px}
/* Whose week it is. Same card shape as the Edge dashboard counts, so the two read as one product. */
.wk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:10px 0}
.wk-card{border:1px solid var(--line);border-radius:var(--r);padding:12px 14px}
.wk-card h4{margin:0 0 4px;font-size:14px}
.wk-card .wk-jobs{font-size:22px;font-weight:800;line-height:1.1}
.wk-card ul{margin:8px 0 0;padding-left:16px;font-size:12.5px;color:var(--muted)}
.wk-none{border-color:var(--orange)}
/* Book a session: the two paths sit side by side (pay now / invoice me). */
.bk-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
/* What you actually charge (v3.193.0) — a row that loses money should not need reading twice. */
.sell-callout{margin:10px 0;padding:10px 12px;border-left:4px solid var(--orange);background:var(--orange-soft);border-radius:var(--r)}
.sell-callout.danger{border-left-color:var(--danger)}
/* ---- NEITHER SCROLLBAR WAS NEEDED (v3.380.0) -------------------------------------------------
   Darren, 4 Sep 2026, on "What you actually charge": *"Why does this have a scrollbar? I don't
   think it's needed. It's not needed up, down, left, or right."*

   He is right on both axes, and the two were ONE fault in sequence.

   HORIZONTALLY: `th,td{white-space:nowrap}` is a global rule and it is the correct one — a column
   of dollar figures must never wrap mid-number. But the not-measured row is a SENTENCE in a
   colspan cell ("nobody in the grid is on this labour type, so there is no cost to compare a rate
   against"), and nowrap made it ~600px of unbreakable content. The table's minimum width became
   that sentence, so `.table-wrap` overflowed a panel with room to spare. `.sell-why` lets that one
   cell wrap; the figures keep nowrap.

   VERTICALLY: a consequence, not a separate bug. `.table-wrap` is `overflow:auto` and the panel
   gives it content height, so the moment the horizontal bar appeared it ate ~15px of that height —
   which put the content over the box on the other axis too, and a second scrollbar arrived to
   scroll the 15px the first one had taken. That is why the box looked short AND scrolled.

   `overflow-y:hidden` closes the loop for good rather than relying on the width fix holding: with
   the height driven by the content there is nothing to clip, and no horizontal bar can ever
   manufacture a vertical one again. */
.sell-wrap{overflow-x:auto;overflow-y:hidden}
.sell-wrap .sell-why{white-space:normal}
tr.sell-short td{background:rgba(255,193,7,.10)}
tr.sell-below td{background:rgba(192,57,43,.10)}
/* The second benchmark consent (v3.194.0) — a distinct ask, so it looks like one. */
.bench-consent2{margin-top:12px;padding:12px 14px;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:var(--r);background:var(--panel-2)}
.bench-consent2 .hint{margin:6px 0 0}
/* Session board (v3.195.0) — paid-and-undelivered is the row that owes work. */
tr.sess-owed td{background:rgba(255,109,0,.08)}
.btn-sm{padding:4px 8px;font-size:var(--fs-xs)}
/* The snapshot screen gets the same one measure as the membership screen: its metric grid is not inside
   a .panel, so without this the cards ran wider than the panels above them on a large monitor. */
#edgesnap-body > *{max-width:min(100%, var(--panel-max))}   /* v3.1105.0 — Darren: "We're now not using the full width. Why not?" The one measure is now the screen's own width. */
/* `edge-snapgrid` was used in the markup and defined nowhere (v3.199.0). The metric cards carry more
   text than an entitlement card, so they get a wider minimum before the grid adds a column. */
.edge-snapgrid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}

/* ---- THE FILES ON A RECORD (v3.328.0) ---------------------------------------------------------
   Two lines per file and not one. The name is what somebody scans for and the provenance is what
   they act on, and putting both on one line makes each of them harder to read — see
   public/filespanel.js. `.inherited` is marked rather than merely worded, because "the customer sent
   this" is the difference between ringing them and not. */
.file-list{list-style:none;margin:6px 0 10px;padding:0}
.file-row{padding:7px 0;border-bottom:1px solid var(--line)}
.file-row:last-child{border-bottom:0}
.file-name{font-weight:600;text-decoration:none}
.file-name:hover{opacity:.8}
.file-from{font-size:var(--fs-xs);color:var(--muted);margin-top:2px}
.file-from.inherited{color:var(--accent-ink, #004EFE)}
.file-note{font-style:italic}
.file-add{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.file-input{font-size:var(--fs-sm);max-width:100%}
.files-panel h4{margin:0 0 4px}
/* An empty spacer row until somebody opens it — no border, no height of its own. */
.q-files-row>td{padding:0;border:0}

/* ---- ENQUIRIES ON THE OFFICE FRONT PAGE (v3.330.0) --------------------------------------------
   A count is not prominence. Three columns per row — who, why, and whose — because "3 days overdue"
   is the half that makes somebody act, and "nobody" in the third column is the worst state on the
   board. The tone stripe is the same vocabulary the enquiries screen uses. */
.off-enq{list-style:none;margin:6px 0 10px;padding:0}
.off-enq-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto auto;gap:10px;
  align-items:start;padding:8px 10px;border-left:3px solid var(--line);border-radius:6px;
  cursor:pointer}
.off-enq-row:hover{background:var(--panel-2,rgba(127,127,127,.08))}
.off-enq-urgent{border-left-color:var(--danger)}
.off-enq-due{border-left-color:var(--warn,#d9a406)}
.off-enq-who{font-weight:600}
/* v3.433.0 — the row says WHAT it is about (AI summary of the call, or what they asked for), then the
   "3 days overdue" line underneath it in the muted voice; status is the coloured pill; owner last. */
.off-enq-what{min-width:0;overflow-wrap:anywhere}
.off-enq-what .hint{font-size:var(--fs-xs)}
/* ---- THE URGENT MARK (0208, v3.579.0) ---------------------------------------------------------
   Darren wanted an arrival that reads as urgent — a cancellation of something that is about to
   happen, an unhappy customer, a third unanswered follow-up — to go to the top of the inbox and of
   the enquiry list. A row that jumps the queue with nothing on it to say so is a list that looks
   broken, so the jump comes with a mark, and the mark comes with its reason: `.urg-pill` is the
   flag and `.urg-why` is the sentence. Deliberately NOT the danger red used for money that has
   gone wrong — this is attention, not loss — and small enough to sit inline in front of a title
   without pushing the line it belongs to around. */
.urg-pill{display:inline-block;margin-right:6px;padding:1px 7px;border-radius:999px;
  background:var(--urg-bg,#FFF1E0);color:var(--urg-ink,#9A4B00);border:1px solid var(--urg-line,#F0C48A);
  font-size:11px;font-weight:800;letter-spacing:.02em;white-space:nowrap;vertical-align:1px}
.urg-why{color:var(--urg-ink,#9A4B00);font-weight:700}
.off-enq-what .urg-why{font-size:var(--fs-xs)}

/* ---- HOW WE'RE RATED, PER PERSON (0209, v3.580.0) ---------------------------------------------
   Two columns: who, and what we know about them. The address column is capped in `ch` so it sizes
   with the reader's own font and a long address wraps instead of squeezing the sentence beside it
   to nothing — and the whole thing collapses to one column on a phone, where the address on its
   own line above the sentence reads better than two thin ones. A rated row is marked with a rule
   rather than a colour fill: it is the row somebody is looking for, not a warning. */
.reach-list{list-style:none;margin:8px 0 10px;padding:0;display:flex;flex-direction:column;gap:6px}
.reach-row{display:grid;grid-template-columns:minmax(0,28ch) minmax(0,1fr);gap:10px;
  align-items:baseline;padding:6px 8px;border-radius:6px;background:var(--panel-2,rgba(127,127,127,.06))}
.reach-row.reach-rated{border-left:3px solid var(--ok,#127A3E);padding-left:9px}

/* 0215 — a count tile that is a door looks like one. The whole tile is the target (it is a button
   already); this only adds the affordance, because a number that does something and a number that
   does not must not look identical. */
.dsum-t.dsum-go{cursor:pointer}
.dsum-t.dsum-go:hover{border-color:var(--blue,#004EFE)}
.dsum-t.dsum-go:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ---- THE "AUTHORISED BY" BOX WHEN IT IS NOT NEEDED (0212, v3.583.0) --------------------------
   Darren: *"I cannot fill out the 'Authorise By' box, it is locked from editing."* It was locked
   for a good reason — the tick below it says the signer IS the authoriser — and looked exactly
   like a field that had jammed. It reads as switched off now rather than as broken: the label
   fades with it, and the box carries a dashed edge, which is the difference between "you cannot
   type here" and "this stopped working". */
.sg-by-field.sg-by-off>span{opacity:.6}
.sg-by-field.sg-by-off input{border-style:dashed;background:var(--panel-2,rgba(127,127,127,.06));
  color:var(--muted);cursor:not-allowed}
.reach-who{font-weight:700;font-size:var(--fs-sm);overflow-wrap:anywhere}
.reach-what{font-size:12.5px;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:640px){
  .reach-row{grid-template-columns:minmax(0,1fr);gap:2px}
}
.off-enq-why{color:var(--muted);font-size:var(--fs-sm)}
.off-enq-st{white-space:nowrap}
.off-enq-own{text-align:right;white-space:nowrap}
@media (max-width:700px){.off-enq-row{grid-template-columns:1fr;gap:2px}
  .off-enq-own{text-align:left}}

/* ================================================================================================
   THE QUOTE A CUSTOMER READS  (moved out of public/quote.html, v3.345.0)
   ================================================================================================
   Here rather than in the page because TWO fronts draw this document now: quote.html, which the
   customer opens from their email, and the staff preview inside the app, which exists so somebody
   can check what it looks like BEFORE sending it. A preview whose styling lives only on the public
   page would be a preview that shows a different layout from the thing being previewed — which is
   worse than having no preview, because its only job is to be trusted.

   The markup for both comes from public/quotedoc.js for the same reason. */
.qp{ max-width:760px; margin:0 auto; padding:28px 20px 60px; }
.qp-top{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:26px; }
.qp-brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.qp-brand img{ height:44px; width:auto; }
.qp-lg{ display:none; }
html[data-theme="light"] .qp-lg-light{ display:block; }
html[data-theme="dark"]  .qp-lg-dark{ display:block; }
.qp-brand span{ font-size:var(--fs-xs); font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.qp-tbl{ width:100%; border-collapse:collapse; margin:16px 0; }
.qp-tbl th{ text-align:left; font-size:var(--fs-xs); letter-spacing:.06em; text-transform:uppercase; color:var(--muted); padding:0 0 8px; border-bottom:1px solid var(--line); }
.qp-tbl td{ padding:10px 0; border-bottom:1px solid var(--line); vertical-align:top; }
.qp-tbl td.n, .qp-tbl th.n{ text-align:right; white-space:nowrap; }
.qp-sum{ margin-left:auto; width:min(320px,100%); }
.qp-sum div{ display:flex; justify-content:space-between; padding:6px 0; }
.qp-sum .tot{ font-weight:700; font-size:var(--fs-lg); border-top:2px solid var(--line); margin-top:4px; padding-top:10px; }
/* v3.1179.0 — the no-GST line on a quote / invoice draft (public/quotedoc.js). */
.qp-sum .qp-nogst span:first-child{ font-size:var(--fs-sm); color:var(--muted); }
.qp-act{ display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.qp-note{ color:var(--muted); font-size:13.5px; line-height:1.7; }
.qp-foot{ margin-top:46px; text-align:center; color:var(--muted); font-size:12.5px; line-height:1.7; }

/* THE PREVIEW BANNER. Deliberately loud: the one failure mode of a faithful preview is somebody
   mistaking it for the live page and wondering why the buttons do nothing. */
.qp-prev{ border:2px dashed var(--accent, #004EFE); border-radius:10px; padding:10px 14px;
  margin:0 0 16px; font-size:13.5px; line-height:1.6; }
.qp-prev b{ letter-spacing:.04em; text-transform:uppercase; font-size:var(--fs-xs); }

/* v3.1148.0 (7 October 2026) — THE PAGE AFTER THEY ANSWER. Jarryd: *"Accepting a quote takes you to a
   dead end page."* What happens next, the booking's dates, and three ways onward as cards. */
.qp-thanks h2{ margin:0 0 6px; }
.qp-next{ margin:14px 0 4px; padding-left:20px; line-height:1.7; }
.qp-next li{ margin:4px 0; }
.qp-dates{ list-style:none; margin:12px 0 4px; padding:0; }
.qp-dates li{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:10px 0;
  border-bottom:1px solid var(--line); }
.qp-dates .st{ color:var(--muted); font-size:12.5px; }
/* v3.1153.0 — the times to choose from on the thank-you page, and "ask for other times". */
.qp-pick li{ align-items:center; }
.qp-ask{ margin-top:12px; }
.qp-ask-box{ display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.qp-ask-box textarea{ width:100%; box-sizing:border-box; font:inherit; padding:8px 10px;
  border:1px solid var(--line); border-radius:8px; background:var(--panel); color:inherit; }
.qp-ask-box .btn{ align-self:flex-start; }
.qp-go{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin-top:18px; }
.qp-go a{ display:block; padding:14px 16px; border:1px solid var(--line); border-radius:12px;
  text-decoration:none; color:inherit; background:var(--panel); }
.qp-go a:hover, .qp-go a:focus-visible{ border-color:var(--accent); }
.qp-go b{ display:block; color:var(--accent-ink); margin-bottom:4px; }
.qp-go span{ color:var(--muted); font-size:var(--fs-sm); line-height:1.55; }
/* v3.1153.0 (8 October 2026) — Jarryd: "Make these a bit more graphical and enticing to click on with some
   icons or something." public/quotego.js draws an icon in a soft disc, the words, and an arrow. Tokens only:
   --accent-ink is the readable blue in both themes (the old --accent label was dark blue on dark panel). */
.qp-go a{ position:relative; display:flex; flex-direction:column; gap:2px; padding:16px 16px 40px;
  box-shadow:var(--sh-1); transition:border-color var(--dur-2) var(--ease-out),box-shadow var(--dur-2) var(--ease-out),transform var(--dur-2) var(--ease-out); }
.qp-go a:hover{ box-shadow:var(--sh-2); transform:translateY(-2px); }
.qp-go a:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; box-shadow:var(--sh-2); }
.qp-go .qp-go-ico{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px;
  border-radius:50%; margin-bottom:10px; background:var(--accent-soft); color:var(--accent-ink); }
.qp-go .qp-go-blurb{ display:block; }
.qp-go .qp-go-more{ position:absolute; right:14px; bottom:12px; display:inline-flex; color:var(--accent-ink);
  transition:transform var(--dur-2) var(--ease-out); }
.qp-go a:hover .qp-go-more, .qp-go a:focus-visible .qp-go-more{ transform:translateX(4px); }
.qp-go a:hover .qp-go-ico, .qp-go a:focus-visible .qp-go-ico{ background:var(--accent); color:var(--s-hero-ink); }
@media (prefers-reduced-motion: reduce){
  .qp-go a, .qp-go .qp-go-more{ transition:none; }
  .qp-go a:hover, .qp-go a:hover .qp-go-more, .qp-go a:focus-visible .qp-go-more{ transform:none; }
}

/* ================================================================================================
   OUR OWN WINDOWS  (v3.345.0)
   ================================================================================================
   Darren, 1 Sep 2026: *"on various occasions, we pop up with a browser type pop up. Are we able to
   make all pop-ups, a modal-type pop-up so that it keeps our look and feel and colours and fonts?"*

   Here rather than in theme.css because the public pages link styles.css and one of them (the
   customer's quote page) asks a confirmation of its own.

   z-index is set INLINE by the script, not here: these stack above openSheet and above each other,
   and the depth is only known at open time. */
.hm-ov{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(0,0,0,.55);backdrop-filter:blur(2px)}
.hm-card{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:14px;
  width:min(520px,100%);max-height:min(80vh,720px);display:flex;flex-direction:column;
  box-shadow:0 24px 60px rgba(0,0,0,.45);font:inherit}
.hm-head{display:flex;align-items:flex-start;gap:12px;padding:16px 18px 6px}
.hm-head h3{margin:0;font-size:var(--fs-lg);line-height:1.35;flex:1}
.hm-x{background:none;border:0;color:var(--muted);font-size:22px;line-height:1;cursor:pointer;
  padding:0 2px}
.hm-x:hover{color:var(--ink)}
.hm-body{padding:2px 18px 8px;overflow:auto;line-height:1.6}
.hm-body p{margin:0 0 10px}
.hm-body p:last-child{margin-bottom:0}
.hm-input{width:100%;margin-top:12px;font:inherit;padding:9px 11px;border-radius:9px;
  border:1px solid var(--line);background:var(--panel-2,var(--panel));color:var(--ink)}
.hm-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px 16px;flex-wrap:wrap}
/* A DESTRUCTIVE ASK LOOKS DESTRUCTIVE, and its safe button is the one that gets the focus ring —
   see the script: on a danger dialog focus starts on Cancel so Enter cannot delete anything. */
.hm-danger .hm-card{border-color:var(--danger)}
.btn.hm-godanger{background:var(--danger);border-color:var(--danger);color:#fff}
.btn.hm-godanger:hover{filter:brightness(1.1)}
body.hm-open{overflow:hidden}

/* ---- 0384 — THE WAITING WINDOW (v3.731.0) -----------------------------------------------------
   A sign-in happening on somebody else's origin, with our page dimmed behind it and this saying so.
   The spinner is CSS because a waiting window that waits on a GIF is funny once. `prefers-reduced-
   motion` gets a static ring rather than nothing: it still has to read as "in progress". */
.hm-waitline{display:flex;align-items:center;gap:10px;margin:2px 0 12px;font-weight:700}
.hm-spin{flex:none;width:18px;height:18px;border-radius:50%;
  border:2px solid var(--line);border-top-color:var(--accent);
  animation:hm-spin 900ms linear infinite}
@keyframes hm-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.hm-spin{animation:none;border-top-color:var(--muted)}}
.hm-waitcard .hm-foot{justify-content:space-between}

/* ---- THE COMPANY / CONTACT PICKER (v3.347.0) --------------------------------------------------
   Darren, 2 Sep 2026: *"If you can't select one from the list because it's not there, we click a
   button to create it."* So the list and the create button are one block, and the list is capped in
   height and scrolls — twenty-five matches under a form field would push the rest of the form off
   the screen, and the field you are typing in would move as you typed. */
.cp{margin:8px 0}
.cp-lab{display:grid;grid-template-rows:auto 1fr auto;gap:4px;font-weight:600;font-size:13.5px;
  align-content:start;max-width:520px}
.cp-lab .hint{font-weight:400;font-size:12.5px;line-height:1.4;display:block}
.cp-lab>input,.cp-lab>select{grid-row:3;width:100%;min-width:0;font:inherit;font-weight:400;
  padding:8px 10px;min-height:38px;border:1px solid var(--line);border-radius:6px;
  background:var(--panel);color:var(--ink)}
/* A PICKED COMPANY IS A FACT, NOT AN EDITABLE BOX. A text box still holding the name after a pick
   is a box people edit — and then the typed name and the linked id disagree, which is the whole
   fault this picker replaces. */
.cp-picked{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 10px;
  background:var(--panel-2);border:1px solid var(--line);border-radius:var(--r);margin:0 0 8px}
.cp-out{margin-top:6px;max-width:520px}
.cp-list{list-style:none;margin:6px 0;padding:0;max-height:240px;overflow-y:auto;
  border:1px solid var(--line);border-radius:var(--r);background:var(--panel)}
.cp-list>li{border-bottom:1px solid var(--line)}
.cp-list>li:last-child{border-bottom:0}
.cp-hit{display:block;width:100%;text-align:left;background:none;border:0;padding:8px 10px;
  font:inherit;color:var(--ink);cursor:pointer}
.cp-hit:hover,.cp-hit:focus{background:var(--tint,#F2F6FF);outline:none}
.cp-hit .hint{display:block;font-size:var(--fs-xs)}

/* ---- A PLATINUM AREA IS NOT SCOPED TO A WORKSPACE (v3.347.0) ---------------------------------
   Darren, 2 Sep 2026: *"when you're in the Platinum Consultants area, the workspace should be
   greyed out, and all the workspace stuff should be removed from the menu."*

   DIMMED AND UNCLICKABLE, NOT HIDDEN. A control that disappears reads as a bug, and a consultant
   who wants to open a customer's own tools needs to be able to see the way back to it. The title
   attribute (set in ui.js) says why it is off. */
html.in-area #ws-switch{opacity:.45;filter:grayscale(1)}
html.in-area #ws-switch .ws-btn{pointer-events:none;cursor:default}
html.in-area #ws-switch .ws-menu{display:none!important}

/* ---- THE CUSTOMER'S TIMELINE (0125, v3.347.0) ------------------------------------------------
   A dated list read top to bottom, like the changes log — same shape on purpose, because it answers
   the same shape of question. The date column is fixed so the events line up, and an event with no
   date says so there rather than being given one. */
.tl{list-style:none;margin:10px 0;padding:0;display:flex;flex-direction:column;gap:0}
.tl>li{display:flex;gap:14px;align-items:baseline;padding:9px 0;border-bottom:1px solid var(--line)}
.tl>li:last-child{border-bottom:0}
.tl-when{flex:0 0 100px;font-size:var(--fs-xs);font-weight:700;color:var(--muted);white-space:nowrap}
.tl-what{flex:1 1 auto;font-size:14px;line-height:1.55;min-width:0}
.tl-x{flex:0 0 auto}
/* A PASTED EMAIL IS LINES, and running them together is the one thing it must not be. Capped in
   height with its own scroll, so a forty-line thread does not bury the rest of the timeline. */
.tl-people{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.tl-audio{display:block;width:min(420px,100%);height:32px;margin:6px 0 2px}
/* v3.1203.0 (bec1022misc) — a recording's length, beside its player before play (public/app.js audLenHtml). */
.aud-len{display:inline-block;font-size:var(--fs-xs);margin:0 8px 4px 0;white-space:nowrap}
.aud-len:empty{display:none}
/* v3.1208.0 — one call player everywhere (public/app.js callPlayerHtml): Part 1, Part 2 for a held or transferred call */
.call-players{display:flex;flex-direction:column;gap:2px;margin:4px 0}
.call-player{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.call-player audio{width:min(420px,100%);height:32px}
.call-part{font-size:var(--fs-xs);white-space:nowrap}
.tl-ai{display:block;margin:6px 0 0;padding:6px 9px;border-left:3px solid var(--blue);background:var(--panel-2,#f6f8fb);font-size:12.5px}
.tl-ai ul{margin:4px 0 4px 18px;padding:0}
.tl-ai details{margin-top:4px} .tl-ai summary{cursor:pointer;color:var(--grey)}
/* ---- EACH PART OF THIS BLOCK ON ITS OWN LINE (v3.502.0) --------------------------------------
   These were bare inline <span>s, so a row that had BOTH an extracted caller and a follow-up ran
   them together: "· 08 9999 8888Next: Check the bank on Friday". MEASURED in Chromium — the fault
   was invisible until a payload carried both, which is why it survived since v3.387.0.
   `:not(.ai-badge)` because the badge is a direct child too, and a circle set to `display:block`
   is not a circle. */
.tl-ai > span:not(.ai-badge){display:block}
.cm-ai ul{margin:4px 0 4px 18px;padding:0} .cm-ai details{margin-top:4px} .cm-ai summary{cursor:pointer;color:var(--grey)}
/* 0408 — the 220px cap and its own scrollbar are gone. It was there because the body printed
   unfolded on every row, so a long email had to be contained somehow; since 0405 the whole row
   folds and the body is only ever shown because somebody asked to see it. Capping it then is a
   third scrollbar inside the two this release just reduced to one, and it hides the end of an
   email somebody deliberately opened. */
.tl-body{display:block;white-space:pre-wrap;word-break:break-word;font-size:var(--fs-sm);
  color:var(--muted);margin-top:4px}
/* ---- CUSTOMER HISTORY, THE RIGHT-HAND DRAWER (v3.405.0) --------------------------------------
   The open record is two columns: the details on the left, a sticky, self-scrolling history drawer
   on the right. Folding it hides the drawer and shows a slim reopen tab. Below 1100px the two
   columns stack (history last) and the drawer stops being sticky. */
.dir-openwrap{display:flex;gap:0 8px;align-items:flex-start;--hist-w:380px}
.dir-main{flex:1 1 auto;min-width:0}
/* ---- THE DRAWER SCROLLS ITSELF, INSIDE THE CARD (fixed v3.568.0) ---------------------------
   Darren: *"the scroll doesn't seem to work properly."* MEASURED, two faults, both from the same
   line:
     1. `max-height:calc(100vh - 96px)` measures the VIEWPORT, and the drawer lives inside a card
        that is 95vh minus its own padding — so at 1440x900 the drawer's bottom landed at 877px
        against a scroll body ending at 874px, and it hung out of the card. `--hist-max` is the
        card's height instead, set on the wrap by the card rule below.
     2. `overscroll-behavior` was `auto`, so a wheel that reached the end of the history carried
        straight on into the record behind it — the drawer and the record taking turns at one
        gesture, which is what "doesn't work properly" feels like. Contained now, on the drawer
        and on its inner scroller both.
   SUPERSEDED BY 0408 (below): the drawer no longer scrolls itself at all, so neither fault can
   recur. Kept because it records why the numbers were what they were, and because "the wheel takes
   turns between two panes" is the thing that comes back the moment somebody re-adds an inner
   scroller here. */
/* ---- 0408, v3.741.0 — ONE SCROLLBAR, NOT TWO -------------------------------------------------
   Darren, 18 September 2026: *"with the two scroll bars on the right-hand side, can we not have a
   scroll bar between the customer history and the customer info"*

   The drawer scrolled ITSELF (`overflow:auto` + a viewport-height cap) inside a page that also
   scrolls, so two scrollbars sat immediately next to each other at the right edge — and which one
   your wheel moved depended on where the pointer happened to be.

   It now grows to its content and the PAGE scrolls it, which is one bar for the whole screen.

   WHAT THIS GIVES UP, said plainly: the drawer no longer stays in view while you scroll the
   record. `position:sticky` is kept and still works for a history SHORTER than the viewport —
   it only stops sticking once the drawer is taller than the screen, which is precisely when the
   second scrollbar used to appear. So nothing is lost that was not already the case.

   The `overscroll-behavior` guards go with the scrolling: there is no longer an inner scroller for
   a wheel to escape from. */
.dir-history{flex:0 0 var(--hist-w);width:var(--hist-w);position:sticky;top:12px;
  align-self:flex-start;
  background:var(--panel,#fff);border:1px solid var(--line);border-radius:10px}
/* v3.439.0 — the grab bar between the record and the history. A thin strip with a pill in the middle
   that reads as draggable; wider than it looks (the hit area is the whole strip) and it darkens while
   the pointer is on it or a drag is in progress. */
/* 0408 — `align-self:stretch` made the grip as tall as the drawer, and the drawer now grows to its
   content rather than being capped at the viewport. On a long history that is a several-thousand
   pixel drag target with its pill in the middle of it, miles from the screen. So it is a fixed
   sticky strip: it stays beside the top of the drawer, where the drawer's own heading is. */
.dir-hist-grip{flex:0 0 14px;align-self:flex-start;position:sticky;top:12px;
  height:min(70vh, 520px);
  display:flex;align-items:center;justify-content:center;cursor:col-resize;border-radius:6px;user-select:none;touch-action:none}
.dir-hist-grip>span{display:block;width:4px;height:72px;border-radius:2px;background:var(--grey-mid,#9aa3b2)}
.dir-hist-grip:hover,.dir-hist-grip:focus-visible,.hist-dragging .dir-hist-grip{background:var(--blue-lt,rgba(0,78,254,.08))}
.dir-hist-grip:hover>span,.dir-hist-grip:focus-visible>span,.hist-dragging .dir-hist-grip>span{background:var(--blue)}
.dir-hist-grip:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.hist-dragging,.hist-dragging *{cursor:col-resize!important}
.hist-dragging .dir-history{pointer-events:none}
.dir-openwrap.hist-shut .dir-hist-grip{display:none}
.dir-hist-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:9px 12px;border-bottom:1px solid var(--line);position:sticky;top:0;
  background:var(--panel,#fff);z-index:1;font-size:14px}
.dir-hist-x,.dir-hist-reopen{background:none;border:0;cursor:pointer;color:var(--blue-ink);font-weight:700}
.dir-hist-x{font-size:15px;line-height:1;padding:2px 6px;border-radius:6px}
.dir-hist-x:hover{background:var(--blue-lt)}
.dir-history .panel.sub{border:0;margin:0;padding:10px 12px;background:none;box-shadow:none}
.dir-hist-reopen{display:none;flex:0 0 auto;position:sticky;top:12px;align-self:flex-start;
  writing-mode:vertical-rl;padding:12px 8px;border:1px solid var(--line);border-radius:10px;
  background:var(--panel,#fff);font-size:12.5px}
/* v3.1219.0.11 — SEARCH THE CUSTOMER HISTORY (public/app.js dirTlFindHtml). Under the bar, above the scrolling list, so it
   stays where it is while the list moves. Theme tokens only. */
.dir-hist-find{display:flex;align-items:center;gap:6px;padding:8px 12px;border-bottom:1px solid var(--line);
  background:var(--panel);flex:0 0 auto;min-width:0}
.dir-hist-find>.search-field,.dir-hist-find>input{flex:1 1 auto;min-width:0;width:100%}
.tl-snip{display:inline-block;margin-top:2px;font-size:var(--fs-xs);color:var(--muted);overflow-wrap:anywhere}
.tl-snip-k{font-weight:600}
mark.tl-hit{background:var(--orange-soft);color:var(--ink);border-radius:3px;padding:0 1px;
  box-shadow:inset 0 -1px 0 var(--orange)}
.tl-nomatch{padding:14px 2px;color:var(--muted)}
.tl-nomatch p{margin:0 0 8px;font-weight:600;color:var(--ink)}
.dir-openwrap.hist-shut .dir-history{display:none}
.dir-openwrap.hist-shut .dir-hist-reopen{display:block}
@media(max-width:1100px){
  .dir-openwrap{display:block}
  .dir-hist-grip{display:none}
  .dir-history{position:static;flex-basis:auto;width:auto;max-height:none;margin-top:14px}
  .dir-hist-reopen{writing-mode:horizontal-tb}
  /* 0429 — STACKED, THERE IS ONE COLUMN, so two inner scrollers would be two short windows on a
     phone with the card's own bar beside them. Everything above is undone and the card scrolls,
     which is what a single column wants. */
  .dir-modal .sheet-body{overflow:auto;display:block}
  .dir-modal .dir-openwrap{display:block}
  .dir-modal .dir-main,.dir-modal .dir-history-scroll{overflow:visible;min-height:0;
    padding-right:0}
  .dir-modal .dir-history{display:block}
  /* AND THE GRIP STAYS HIDDEN. A media query adds no specificity, so the plain
     `.dir-hist-grip{display:none}` above loses to the `.dir-modal .dir-hist-grip` rule that
     stretches it — MEASURED at 1000x800: a 904px-wide grip lying across the stacked columns. */
  .dir-modal .dir-hist-grip{display:none}
}
/* The "Add customer or contact" chooser chips (v3.405.0). */
.addco-chips{display:flex;flex-direction:column;gap:10px}
.addco-chip{display:flex;align-items:center;gap:12px;text-align:left;padding:12px 14px;
  border:1px solid var(--line);border-radius:10px;background:var(--panel,#fff);cursor:pointer;width:100%}
.addco-chip:hover,.addco-chip:focus-visible{border-color:var(--blue);background:var(--blue-lt);outline:none}
.addco-chip-i{font-size:22px;line-height:1}
.addco-chip-t{display:flex;flex-direction:column;gap:1px}
.addco-chip-t .hint{font-weight:400}
/* A long email previews, then folds open (v3.405.0). The preview has no scroll of its own; the
   full body inside the fold keeps the same scroll cap as any other body. */
.tl-preview{max-height:none;overflow:visible}
.tl-more{margin-top:2px}
.tl-more>summary{cursor:pointer;color:var(--blue-ink);font-size:var(--fs-xs);font-weight:600;list-style:none}
.tl-more>summary::-webkit-details-marker{display:none}
.tl-more>summary::before{content:"▸ ";font-size:10px}
.tl-more[open]>summary::before{content:"▾ "}
/* A coloured edge per kind, so the shape of a customer's history is readable at a glance —
   which is different from reading it. */
.tl-quote>.tl-when{color:var(--blue-ink)}
.tl-enquiry>.tl-when{color:var(--orange)}
.tl-invoice>.tl-when{color:var(--ok)}

/* ---- THE NAME IS THE EDIT BUTTON (v3.347.0) --------------------------------------------------
   Darren, 2 Sep 2026: *"the edit their details should be like a pencil icon next to Platinum
   Consultants, which also should be a clickable link. If you click on the name, it should open them
   up to be able to edit them as well."* And the same for a contact row and a site row.

   A BUTTON THAT LOOKS LIKE THE TEXT IT REPLACED. It has to be a <button> — a heading somebody can
   activate with the keyboard and a screen reader can announce as a control — while reading as the
   name it already was, or the record turns into a wall of blue links. Underlined only on hover, so
   it is discoverable without being loud. */
.dir-nameedit{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;
  text-align:left;cursor:pointer}
.dir-nameedit:hover,.dir-nameedit:focus{color:var(--blue-ink);outline:none}
.dir-pencil{background:none;border:0;padding:0 2px;font-size:15px;line-height:1;color:var(--muted);
  cursor:pointer;vertical-align:middle}
.dir-pencil:hover,.dir-pencil:focus{color:var(--blue-ink);outline:none}

/* ---- THE ADDRESS LOOKUP'S SUGGESTIONS (v3.348.0) ---------------------------------------------
   Under the box it belongs to, capped and scrollable: twelve suburbs pushing the rest of the form
   down would move the field you are typing in as you type. Same shape as the company picker, so the
   two read as one mechanism. */
/* ---- A SUGGESTION LIST IS A ROW, NOT A CELL (v3.359.0) ---------------------------------------
   Darren, 3 Sep 2026: *"This worked really well but has alignment issues."*

   These slots sit inside `.bia-grid`, which is `repeat(auto-fit, minmax(220px, 1fr))` — so without
   a span an `.al-out` TAKES ONE COLUMN and every field after it shuffles along by one. The list
   also belongs across the full width: it is the answer to the box above it, not a field beside it.

   And `:empty` is not a nicety. A cleared slot with a margin is still a cell, which is the same
   fault one step quieter — the columns stay wrong after the list closes. `display:none` on an empty
   one takes it out of the grid's flow entirely, so the layout after a pick is the layout before it.
   Both `.al-find` and this are `1/-1`, which is what keeps the four boxes lined up under the search
   box rather than beside it. */
.al-out{grid-column:1/-1;margin-top:4px}
.al-out:empty{display:none;margin:0}
/* ---- THE ONE-LINE ADDRESS SEARCH (v3.358.0) -------------------------------------------------
   Full width above the four boxes it fills, and marked as the thing to try first: it is the fast
   path, and the four boxes underneath are the one that always works. `grid-column: 1/-1` because
   the forms lay their fields out in a grid and this is not one of the columns — it is the row
   above them. */
.al-find{grid-column:1/-1}
.al-find input{background:var(--panel);border:2px solid var(--blue);font-size:15px}
.al-find input:focus{outline:2px solid var(--blue);outline-offset:1px}
.al-full{display:block;width:100%;text-align:left;background:none;border:0;padding:9px 12px;
  cursor:pointer;font:inherit;color:inherit}
.al-full:hover,.al-full:focus{background:var(--tint,#F2F6FF)}
.al-full b{display:inline-block;margin-right:6px}
.al-list{list-style:none;margin:4px 0 0;padding:0;max-height:200px;overflow-y:auto;
  border:1px solid var(--line);border-radius:var(--r);background:var(--panel)}
.al-list>li{border-bottom:1px solid var(--line)}
.al-list>li:last-child{border-bottom:0}
.al-hit,.al-street{display:block;width:100%;text-align:left;background:none;border:0;
  padding:7px 10px;font:inherit;color:var(--ink);cursor:pointer}
.al-hit:hover,.al-hit:focus,.al-street:hover,.al-street:focus{background:var(--tint,#F2F6FF);
  outline:none}

/* 0126 — WHO THE INVOICE GOES TO, marked on the person. Green rather than grey: this is a
   capability the person has, not a note about them, and it is the one thing on that row somebody
   scans for when an invoice needs sending. */
.chip.chip-ok{background:var(--ok-soft,#EAF7EE);border-color:var(--ok);color:var(--ok)}


/* ---- THE P&L PERIOD PICKER (v3.376.0) ---------------------------------------------------------
   Darren: "there should be the ability to say: this financial year / last financial year / this
   calendar year to date / last calendar year / manual entry of dates." Five buttons above the two
   date boxes, each carrying the shape of the period underneath its name — "a full closed year" is
   the half that decides which one somebody should press, and it does not fit in the label. */
.pnl-periods{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 0}
.pnl-periods .btn{display:flex;flex-direction:column;align-items:flex-start;gap:1px;line-height:1.25;
  text-align:left}
.pnl-pnote{font-size:10.5px;font-weight:600;opacity:.72;letter-spacing:.01em}

/* ---- HALF A SCREEN, FOLDED AWAY (0134 / v3.376.0) --------------------------------------------
   The P&L total and its removals table are irrelevant on the line-by-line method and were sitting
   above the table people actually use, with a paragraph asking them not to fill both in. Hidden by
   a class rather than removed, so switching back finds the figures where they were left — and see
   `drawCostMethodBanner`: if the hidden half still HAS figures in it, this class is not applied and
   the banner says so instead. Hiding a $486,000 total that is still in the pool would be worse than
   the clutter ever was. */
#costs-total-half.costs-folded{display:none}

/* ---- ONE TICK TO SHARE (v3.377.0) -----------------------------------------------------------
   It was one of three controls on a wrapping row, at the same weight as two dropdowns, and the
   second consent was a separate paragraph further down that most people never found. It is the
   decision on this panel, so it gets a line of its own and a box around it. */
.bench-onetick{display:flex;align-items:flex-start;gap:9px;margin:14px 0 10px;padding:11px 13px;
  border:1px solid var(--line);border-radius:var(--r);background:var(--panel-2, transparent);
  font-size:var(--fs-md);line-height:1.45;cursor:pointer}
.bench-onetick input{margin-top:2px;flex:0 0 auto}

/* ---- KEYS AND CREDENTIALS: ONE KEY, ONE BLOCK (v3.379.0) --------------------------------------
 *
 * Darren, 4 Sep 2026: *"where we paste the keys in the keys and credentials area, can you please
 * make this less jumbled and make more space to put the key? It's actually difficult to see which
 * key relates to what."*
 *
 * Both halves of that are the same fault. Thirty rows ran together with no boundary between them,
 * six lines of guidance at one visual weight, and a 340px input for a 34-character credential —
 * so the field showed a fragment, and the fragment sat nearer the NEXT key's heading than its own.
 *
 * A row is now a bordered block with its own heading, the guidance is a stack of quiet lines
 * beneath it, and the input is full width in a monospace face so a whole key is visible at once.
 * Whitespace is what makes "which key is this" answerable without reading.
 */
.secret-row{
  border:1px solid var(--line);
  border-left:4px solid var(--line);
  border-radius:10px;
  padding:14px 16px;
  margin:0 0 14px;
  /* ---- v3.462.0: `--card` DOES NOT EXIST IN THIS THEME ------------------------------------
     It never has. `var(--card, transparent)` therefore always resolved to `transparent`, so this
     row has been painted by whatever was behind it since the day it shipped — which looks correct
     on a white page and leaves the row with no surface of its own in dark mode. Seven other rules
     in this sheet had the same phantom (see the note at .bk-cad, which caught it in one place in
     v3.443.0 and did not sweep the rest). All eight now name a real token, and
     test/uiaudit.test.mjs fails if the phantom comes back. */
  background:var(--panel);
}
.secret-row:last-child{ margin-bottom:0 }
/* SET, NOT SET, AND CANNOT BE OPENED are worth telling apart at a glance down the page — the left
   edge does it without adding another badge to a heading that already carries one. */
.secret-row.is-set{ border-left-color:var(--ok) }
.secret-row.is-unset{ border-left-color:var(--line) }
.secret-row.is-stuck{ border-left-color:var(--danger) }
.secret-row .sr-head{ font-size:15px; font-weight:700; margin:0 0 2px }
.secret-row .sr-head .muted{ font-weight:500 }
.secret-row .sr-notes{ margin:6px 0 0 }
.secret-row .sr-notes .hint{ display:block; margin:2px 0 0 }
/* v3.1110.0 — an environment variable or an example key is one long word; it wraps inside the row on a phone
   rather than pushing Keys and credentials 47px past the edge (the Reviews tab's example keys). */
.secret-row .sr-head, .secret-row .sr-notes{ overflow-wrap:anywhere }
/* THE FIELD IS THE POINT OF THE SCREEN, so it gets the width. `.field` caps at 320px globally,
   which is why every credential showed as a fragment. */
.secret-row .field{ max-width:none; flex:1 1 420px; min-width:0 }
.secret-row .field>input{
  font-family:var(--font-mono);
  font-size:13.5px;
  letter-spacing:.01em;
  padding:10px 12px;
}
/* The message on its OWN line. Sharing the row is what squeezed the input on every failure — the
   longest sentences on this screen are the diagnostic ones, and they arrive exactly when somebody
   most needs to see what they typed. */
.secret-row .sr-msg{ display:block; margin:8px 0 0; min-height:0 }
.secret-row .sr-actions{ gap:8px; align-items:flex-end; margin-top:10px; flex-wrap:wrap }
@media (max-width:720px){
  .secret-row{ padding:12px }
  .secret-row .field{ flex:1 1 100% }
}

/* ---- WHY YOUR RATE IS WHAT IT IS (0137, v3.381.0) ---------------------------------------------
   Darren asked what else the pool could tell somebody, and the answer is a stack of at most three
   comparisons — the cap is a disclosure control in src/bench.js, not a layout decision.

   Each row reuses `.bench-bar` and its three children unchanged, so the middle-half block, the
   median tick and the "you" marker mean the same thing here as they do on the overhead bar above.
   Two visual languages for the same idea on one screen is how somebody reads the second one wrong. */
.bench-why .bw-row{padding:14px 0;border-top:1px solid var(--line)}
.bench-why .bw-row:first-of-type{border-top:0}
.bench-why .bw-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.bench-why .bw-head>b{font-size:15px}
/* The two figures to the RIGHT-HAND END, so a reader's eye runs down one column of "mine" and one
   of "the middle" instead of hunting for them at a different indent on every row. */
.bench-why .bw-vals{margin-left:auto;white-space:nowrap;font-size:15px}
.bench-why .bw-says{margin:2px 0 8px}
.bench-why .bw-bar{margin:0 0 6px}
.bench-why .bw-against{margin:0}
/* GOOD AND BAD ARE ON THE LEFT EDGE, NOT ON THE NUMBER. Colouring the figure itself would say "this
   number is wrong", and none of them are — a heavy on-cost load is a fact about a business, and the
   judgement belongs to the row rather than to the arithmetic. `favourable` is three-valued, so a
   row we could not judge carries no edge at all rather than a neutral grey one that reads as bad. */
.bench-why .bw-row.bw-good{border-left:3px solid var(--ok);padding-left:12px}
.bench-why .bw-row.bw-bad{border-left:3px solid var(--orange);padding-left:12px}

/* ---- THE OFFICE FRONT PAGE, REORDERED (v3.381.0) ---------------------------------------------
   Darren: *"Do you think we have nailed the layout to be the absolute perfect setup for what an
   office person would want?"* No — see the note above officeHomeHtml for the four reasons.

   The only new class the reorder needs is the one that carries the collapsed checks. It has to read
   as an aside and not as a finding: somebody scanning this page for what is wrong must be able to
   skip this line, which is the whole point of the line existing. */
.off-clear{margin:10px 0 0;font-size:12.5px}
/* "Not run" and an unknown are NOT good news, so they keep the full tile and are never collapsed
   into the line above. `off-unrun` already existed; this only stops it inheriting the muted
   treatment if somebody later groups the two. */
.off-tile.off-unrun .off-n.off-word{font-size:22px;line-height:1.2}

/* ---- THE PHONE IN THE HEADER (v3.382.0) ------------------------------------------------------
   Darren, twice: *"I can't see anywhere where I would dial out… up at the top, maybe in the menu
   bar near the app switcher or something."*

   Styled as a sibling of the app switcher, because that is what it is — a permanent fixture of the
   shell rather than a feature of one screen. The dot is the only thing that moves: somebody's real
   question at a glance is "is my phone even on", and that is not answerable from a static icon. */
.ph-btn{display:inline-flex;align-items:center;gap:7px;background:transparent;border:1px solid var(--line);
  border-radius:999px;padding:6px 12px;font:inherit;font-size:var(--fs-sm);font-weight:600;color:var(--ink);
  cursor:pointer;position:relative}
.ph-btn:hover{background:var(--panel-2,#f6f8fb)}
.ph-btn .ph-ico{font-size:15px;line-height:1}
/* THREE STATES, AND "OFF" IS NOT "BROKEN". No dot at all means the phone has not been opened yet;
   green means registered and able to take a call; amber and pulsing means one is arriving. */
.ph-btn.ph-live::after,.ph-btn.ph-ringing::after{content:'';position:absolute;top:4px;right:6px;
  width:7px;height:7px;border-radius:50%;background:var(--ok)}
.ph-btn.ph-ringing::after{background:var(--orange);animation:ph-pulse 1s infinite}
@keyframes ph-pulse{0%,100%{opacity:1}50%{opacity:.25}}
/* ---- 0466, v3.765.0 — AND A RING IS NOT A 7px DOT ---------------------------------------------
   Darren, 20 September 2026: *"there's actually no indication at all that someone is ringing."*
   Measured against his own screen: the dot above is 7px in the top-right corner of a button that
   ALREADY carries the unread badge (`.cm-badge`, a filled orange pill with a count in it) in very
   nearly the same place. A ringing call and 20 unread emails were being announced by the same
   colour, the same size and the same corner, with the larger of the two winning.
   So while a call is arriving the whole button changes, not a corner of it: filled, inverted and
   pulsing as one object. The dot stays for continuity with the green "registered" state, and it is
   still not the only carrier — the fill is the signal a person actually notices in a pocket. */
.ph-btn.ph-ringing{background:var(--orange);border-color:var(--orange);color:#fff;
  animation:ph-btn-ring 1s infinite}
.ph-btn.ph-ringing:hover{background:var(--orange)}
/* Against a filled orange button the amber dot is invisible, so it inverts too. */
.ph-btn.ph-ringing::after{background:#fff}
@keyframes ph-btn-ring{0%,100%{box-shadow:0 0 0 0 rgba(240,135,30,.55)}
  50%{box-shadow:0 0 0 7px rgba(240,135,30,0)}}
/* THE SAME REASONING AS THE DOT'S: the state is carried by the FILL, which does not move, so a
   reader who has asked for no animation loses the pulse and keeps every bit of the signal. */
@media (prefers-reduced-motion:reduce){ .ph-btn.ph-ringing{animation:none} }
/* A REDUCED-MOTION READER STILL NEEDS TO KNOW IT IS RINGING, so the animation goes and the colour
   stays — the state is carried by the hue, never by the movement alone. */
@media (prefers-reduced-motion:reduce){ .ph-btn.ph-ringing::after{animation:none} }
/* ---- 0478, v3.776.0 — THE RINGING BAR ---------------------------------------------------------
   Darren, 20 Sep 2026: *"it didn't slide so we could see the ringing notification when the app
   opened. Had to slide the screen down to see it which some people might not know that you can do
   that."* So the Answer button stops depending on where the page is scrolled. `position:fixed`,
   above the comms drawer, for exactly as long as a call is arriving.

   AT THE BOTTOM, not the top: on a phone this is the thumb's half of the screen, and the top is
   where the status bar, the Dynamic Island and the app's own header already are. `safe-area-inset`
   keeps it clear of the home indicator.

   z-index ABOVE the drawer (90) and the panel, because a ring bar the drawer can cover is the bug
   this replaces, wearing a different hat. */
.ph-ring-bar{position:fixed;left:0;right:0;bottom:0;z-index:300;display:flex;align-items:center;
  gap:10px;flex-wrap:wrap;padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px));
  background:var(--orange);color:#fff;box-shadow:0 -10px 30px rgba(35,31,32,.28);
  animation:ph-bar-in .18s ease-out}
.ph-ring-who{flex:1 1 140px;min-width:0;display:grid;gap:1px;text-align:left;background:none;
  border:0;padding:0;color:inherit;font:inherit;cursor:pointer}
.ph-ring-lead{font-size:var(--fs-xs);opacity:.9}
.ph-ring-name{font-size:16px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 0481 — the person, under the company. Smaller and slightly dimmed so the eye lands on the
   company first, which is the one that says which job this call is about. Truncates on its own:
   two long lines must not push Answer off a narrow screen. */
.ph-ring-sub{font-size:var(--fs-sm);opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ph-ring-acts{display:flex;gap:8px;flex:0 0 auto}
/* The bar is already orange, so the panel's orange primary button would vanish into it. White
   fill for Answer, outlined for Decline — the same ranking, legible on this background. */
.ph-ring-bar .btn{border-color:rgba(255,255,255,.7);color:#fff;background:transparent}
.ph-ring-bar .btn.primary{background:#fff;color:var(--orange);border-color:#fff;font-weight:700}
.ph-ring-bar .btn.primary:hover{background:#fff;color:var(--orange)}
@keyframes ph-bar-in{from{transform:translateY(100%)}to{transform:translateY(0)}}
/* Same rule as the button's pulse: the state is carried by the colour and the words, never by the
   movement, so a reader who has asked for no animation loses nothing. */
@media (prefers-reduced-motion:reduce){ .ph-ring-bar{animation:none} }
.ph-panel{position:fixed;top:56px;right:16px;z-index:90;width:min(320px,calc(100vw - 32px));
  background:var(--panel);border:1px solid var(--line);border-radius:12px;
  box-shadow:0 18px 50px rgba(35,31,32,.18);padding:14px}
.ph-panel .ph-lab{display:grid;gap:5px;font-size:var(--fs-sm);font-weight:600;color:var(--grey)}
.ph-panel .ph-lab input{width:100%;padding:10px 12px;border:1px solid var(--line);
  border-radius:var(--r);font:inherit;font-size:16px;letter-spacing:.02em}
/* A REAL KEYPAD, THREE ACROSS. Not decoration: a phone menu ("press 1 for accounts") cannot be
   answered by typing into a text box once the call is up. */
.ph-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0}
.ph-key{padding:10px 0;border:1px solid var(--line);border-radius:8px;background:var(--panel);
  font:inherit;font-size:16px;font-weight:600;cursor:pointer}
.ph-key:hover{background:var(--panel-2,#f6f8fb)}
.ph-who{margin:0 0 2px;font-size:15px}
.ph-num{margin:0 0 8px;font-family:var(--font-mono);font-size:var(--fs-sm);color:var(--grey)}
/* The incoming banner gets the accent edge, because it is the one thing in this panel that arrived
   rather than being asked for. */
.ph-in{border-left:3px solid var(--orange);padding-left:12px}
.ph-off .lead{font-size:13.5px}
.ph-xfer{margin:8px 0;padding:8px 10px;border:1px dashed var(--line);border-radius:10px}
/* v3.1173.0 — "Transfer from Darren Whitby" on a transferred call, and a warm transfer's two buttons. Theme colours only. */
.ph-xfer-banner{margin:6px 0 0;padding:6px 10px;border-radius:8px;background:var(--accent-soft);color:var(--accent-ink);font-weight:600;font-size:var(--fs-sm);line-height:1.35}
.ph-warm{margin:10px 0;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--accent-soft)}
.ph-warm-st{margin:0 0 6px}
.ph-warm .bi-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0}
.ph-chip [data-ph-warm-to]{margin-left:4px}
@media (max-width:520px){ .ph-btn .ph-lab{display:none} .ph-panel{right:8px;left:8px;width:auto} }
/* ---- THE POP-OUT TO THE LEFT OF THE PHONE (v3.387.0) ---------------------------------------
   Darren: *"from within the phone keypad area, I can't look up customers, contacts… a pop-out to
   the left"* and *"when someone's calling in… shows you who they are and if they owe money."*
   A sibling of the panel, not a child: the panel's contents are rebuilt on every state change and a
   list living inside it would vanish on the next keystroke. Sits to the left at the same top edge,
   so the eye moves sideways from the dial pad and never has to find it. */
.ph-side{position:fixed;top:56px;right:calc(16px + min(320px,calc(100vw - 32px)) + 10px);z-index:90;
  width:min(380px,calc(100vw - 32px));max-height:calc(100vh - 80px);overflow:auto;
  background:var(--panel);border:1px solid var(--line);border-radius:12px;
  box-shadow:0 18px 50px rgba(35,31,32,.18);padding:14px}
.ph-side-h{margin:0 0 6px;font-size:15px}
.ph-side-k{margin:10px 0 4px;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--grey)}
.ph-hit{padding:8px 0;border-top:1px solid var(--line)}
.ph-hit:first-of-type{border-top:0}
.ph-name{display:block;width:100%;text-align:left;background:none;border:0;padding:0;font:inherit;
  color:var(--ink);cursor:pointer}
.ph-name:hover b{color:var(--blue-ink)}
.ph-rings{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}
/* A number IS the button. One press rings it — there is no second "call" to find. */
.ph-ring{display:inline-flex;gap:5px;align-items:baseline;padding:5px 10px;border:1px solid var(--line);
  border-radius:999px;background:var(--panel-2,#f6f8fb);font:inherit;font-size:var(--fs-sm);
  font-variant-numeric:tabular-nums;cursor:pointer;color:var(--ink)}
.ph-ring:hover{border-color:var(--blue);color:var(--blue-ink)}
.ph-ring::before{content:'\260E';font-size:var(--fs-xs)}
/* The caller card reuses the customer summary's tiles, two across — same class, same colours, the
   same "?" for a figure we could not read. */
.ph-tiles{grid-template-columns:repeat(2,1fr);margin:8px 0}
/* The open enquiries under the caller tiles (v3.453.0): titles, not a count. Tight leading and one
   line each, because this is read while a phone is ringing. The title is allowed to wrap; the status
   beside it never does — a status broken over two lines reads as another enquiry. */
.glance-enq{margin:8px 0 0}
.glance-enq h5{margin:0 0 4px;font-size:12.5px;text-transform:uppercase;letter-spacing:.04em;
  color:var(--muted)}
.glance-enq-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.glance-enq-list li{display:flex;gap:8px;align-items:baseline;justify-content:space-between;
  padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}
.ge-title{font-weight:600;font-size:var(--fs-sm);min-width:0;word-break:break-word}
.ge-where{flex:0 0 auto;font-size:var(--fs-xs);color:var(--muted);white-space:nowrap;max-width:52%;
  overflow:hidden;text-overflow:ellipsis}
/* On a phone-sized screen there is no "left of the panel": it drops beneath, along the bottom. */
@media (max-width:760px){ .ph-side{right:8px;left:8px;width:auto;top:auto;bottom:8px;max-height:45vh} }

/* ---- THE PHONE SOUNDS ON THE KEYS SCREEN (v3.383.0) -------------------------------------------
   A player, an upload and a recorder under the URL box. The recording state is carried by the
   button's own text (● Record → ■ Stop) AND a colour, so it reads in both directions. */
.sr-audio{margin:10px 0 0;padding:10px 12px;border:1px dashed var(--line);border-radius:8px}
.sr-audio .sr-player{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.sr-audio audio{max-width:100%;height:36px}
.sr-audio .sr-audio-actions{gap:8px;flex-wrap:wrap}
.sr-audio .sr-audio-actions label.btn{cursor:pointer}
.sr-audio .sr-recording{background:var(--danger);color:#fff;border-color:var(--danger)}
.sr-audio .sr-audio-take{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}

/* ---- THE COMMUNICATIONS DRAWER (v3.387.0) -----------------------------------------------------
   Darren: *"pops in from the right-hand side… over the top or squishing the page."* Over the top:
   the page keeps its scroll position and the customer you were reading stays where they were. The
   phone panel sits at the same edge; the drawer starts below the header so the two do not fight. */
/* ---- ONE PANEL WITH THE PHONE INSIDE (v3.389.0) --------------------------------------------
   Darren: *"I don't think we need a communications panel and a phone… combine the phone and
   communications panel so that we can call, message, chat…"* Two columns: messages on the left,
   the phone on the right — dial pad, live call, the caller card under it, then the team. The shell
   is built once; only the messages column is redrawn, so the phone's nodes survive a redraw
   mid-call. On a narrow screen the phone column goes on top and the messages scroll beneath. */
.cm-drawer{position:fixed;top:56px;right:0;bottom:0;z-index:85;width:min(900px,100vw);
  background:var(--panel);border-left:1px solid var(--line);box-shadow:-18px 0 50px rgba(35,31,32,.18);
  display:flex;flex-direction:column;animation:cm-in .18s ease-out}
@keyframes cm-in{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){ .cm-drawer{animation:none} }
.cm-head{display:flex;align-items:center;gap:10px;padding:10px 16px 8px;border-bottom:1px solid var(--line)}
.cm-head h2{margin:0;font-size:var(--fs-lg);margin-right:auto}
.cm-head [data-cm-new].on{background:var(--blue-dark,#0038B8)}
/* v3.1197.0 (19 October 2026) — Platinum Assist's open gaps in the tray head (staff who may open the library). */
.cm-head .cm-gaps[hidden]{display:none}
.cm-head .cm-gaps{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
/* What the phone is doing, in the title line — drawn by phone.js, so the head and the pad agree. */
.cm-ph-state{font-size:12.5px;color:var(--grey);white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.cm-ph-state::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--line)}
.cm-ph-state.cm-ph-ready::before{background:var(--ok)}
.cm-ph-state.cm-ph-busy::before{background:var(--danger)}
.cm-ph-state.cm-ph-ringing::before{background:var(--orange);animation:ph-pulse 1s infinite}
.cm-ph-state:empty{display:none}
.cm-x{border:0;background:none;font-size:24px;line-height:1;cursor:pointer;color:var(--grey);padding:0 4px}
.cm-x.small{font-size:20px}
.cm-cols{display:flex;flex:1;min-height:0}
.cm-main{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}
.cm-phone{width:320px;flex:none;border-left:1px solid var(--line);overflow:auto;padding:12px 14px 16px;
  background:var(--panel-2,#f6f8fb)}
.cm-phone:empty{display:none}
/* Inside the column the phone panel and the card are ordinary blocks, not popovers. */
.cm-phone .ph-panel{position:static;width:auto;box-shadow:none;border:0;border-radius:0;padding:0;background:none}
.cm-phone .ph-side{position:static;width:auto;max-height:none;box-shadow:none;margin-top:12px;padding:12px;
  border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.cm-phone .ph-key{background:var(--panel)}
/* ---- THE TEAM: WHO IS FREE ------------------------------------------------------------------
   Four words and a dot each: Free (green), On a call (red), Ringing (amber), Phone off (hollow).
   The colour never carries the state alone — the word is always beside it. */
.ph-team{margin-top:12px;padding:8px 12px 10px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.ph-team-h{display:flex;align-items:center;gap:8px;width:100%;background:none;border:0;padding:4px 0;font:inherit;
  font-size:14px;cursor:pointer;color:var(--ink);text-align:left}
.ph-team-caret{margin-left:auto;color:var(--grey);font-size:var(--fs-xs)}
.ph-mate{display:flex;align-items:center;gap:9px;padding:7px 0;border-top:1px solid var(--line)}
.ph-mate .ph-dot{width:9px;height:9px;border-radius:50%;flex:none;border:2px solid var(--line);background:transparent}
.ph-mate-ready .ph-dot{background:var(--ok);border-color:var(--ok)}
.ph-mate-busy .ph-dot{background:var(--danger);border-color:var(--danger)}
.ph-mate-ringing .ph-dot{background:var(--orange);border-color:var(--orange);animation:ph-pulse 1s infinite}
.ph-mate-group .ph-dot{border-radius:2px;background:var(--blue);border-color:var(--blue)}
.ph-mate-who{display:grid;min-width:0;font-size:13.5px;line-height:1.25}
.ph-mate-who b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ph-mate-who .hint{font-size:var(--fs-xs)}
.ph-mate-act{margin-left:auto;flex:none;font-size:var(--fs-xs)}
.ph-mate-act .btn[disabled]{opacity:.45;cursor:not-allowed}
/* Reception is a permanent, pinned member of the team (v3.397.0) */
.ph-mate-reception{background:var(--tintblue,rgba(0,78,254,.06));border-radius:8px;padding-left:7px;padding-right:7px}
.ph-mate-you{background:rgba(0,78,254,.05);border-radius:8px;padding-left:7px;padding-right:7px}
.ph-badge{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;font-size:10px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:var(--blue-ink);background:rgba(0,78,254,.12);vertical-align:middle}
/* ---- Platinum Assist (v3.398.0) ------------------------------------------------------------- */
.assist-compose{display:flex;gap:10px;align-items:flex-end;margin-top:6px}
.assist-compose .field{flex:1;margin:0}
.assist-compose textarea{width:100%;resize:vertical;min-height:44px}
.assist-thread{display:flex;flex-direction:column;gap:14px;margin-top:14px}
.assist-turn .assist-q{color:var(--muted);font-size:14px}
.assist-turn .assist-q p{margin:2px 0 0}
.assist-a{margin-top:10px}
.assist-atext{margin:6px 0;line-height:1.5}
/* 0318, v3.688.0 — the help-guide pages an answer was built from. Set off with a rule above rather
   than a box: it is provenance sitting under an answer, not a second panel competing with it. The
   list wraps rather than scrolling because a heading path is long and a member reads it once. */
/* 0319, v3.689.0 — two answers, ours first.
   SIDE BY SIDE ON A DESKTOP, STACKED ON A PHONE, and ours is first in the markup either way so the
   order is a fact about the document rather than something a stylesheet could reverse. `1fr 1fr`
   rather than auto columns: the two must be the same width or the longer one reads as the main
   answer and the shorter as a footnote, which is exactly the judgement the member should be making
   for themselves. */
/* 0325, v3.695.0 — THE QUESTION, WHILE IT IS STILL BEING ANSWERED. A disabled "Asking…" button is
   not an acknowledgement of what was asked; this row is. Dashed rather than solid so it reads as
   provisional, and it is replaced in place by the real turn when the answer lands. */
.assist-waiting{border:1px dashed var(--line);border-radius:8px;padding:10px 12px;
  background:var(--tint,rgba(127,127,127,.05))}
.assist-waiting p{margin:2px 0 0}
.assist-two{margin:6px 0 0}
.assist-two-h{font-size:14px}
.assist-sides{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:8px}
.assist-side{min-width:0}
.assist-side-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
/* A quiet left rule rather than a box each: two boxes side by side turn an answer into a comparison
   table, and this is one answer from two places. Different colours so a glance tells them apart. */
.assist-side-ours{border-left:3px solid var(--brand,#004EFE);padding-left:10px}
.assist-side-simpro{border-left:3px solid var(--line);padding-left:10px}
@media (max-width:820px){ .assist-sides{grid-template-columns:1fr;gap:16px} }
.assist-cited{margin:10px 0 0;padding-top:8px;border-top:1px solid var(--line)}
.assist-cited > b{font-size:12.5px}
.assist-cited ul{margin:4px 0 0 18px;padding:0;font-size:var(--fs-sm)}
.assist-cited li{margin:2px 0;overflow-wrap:anywhere}
.assist-cited p{margin:6px 0 0}
.assist-tag{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.02em;color:var(--muted);background:var(--line)}
.assist-tag.ok{color:var(--ok);background:rgba(22,163,74,.12)}
.assist-loop{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.assist-ask-help{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-sm)}
.assist-acts{margin-top:8px;display:flex;flex-wrap:wrap;gap:8px}
.assist-done{margin-top:10px;color:var(--ok);font-weight:600}
.assist-manage{margin-top:18px;border:1px dashed var(--line)}
.assist-manage .field{margin-top:8px}
/* ---- TODAY | WEEK on the consultant home (v3.393.0) ------------------------------------------- */
.con-cal-seg{margin:14px 0 0}
.con-cal-seg .cm-tab{min-width:88px;text-align:center}
/* ---- ADD THIS CALLER (v3.392.0) — the form under an unknown caller's card ------------------- */
.ph-adopt{margin-top:8px;padding:10px 12px;border:1px solid var(--blue);border-radius:10px;background:var(--panel)}
.ph-adopt .ph-lab{margin-bottom:8px}
.ph-adopt .ph-lab input{font-size:14px;padding:8px 10px}
.ph-adopt .ph-lab .hint{font-weight:400}
.ph-adopt-co{display:block;width:100%;text-align:left;background:none;border:0;border-top:1px solid var(--line);
  padding:7px 2px;font:inherit;font-size:13.5px;cursor:pointer;color:var(--ink)}
.ph-adopt-co:hover{background:var(--panel-2,#f6f8fb)}
.ph-adopt-pick{margin:4px 0 8px;font-size:13.5px}
/* ---- NEW MESSAGE --------------------------------------------------------------------------- */
.cm-compose{margin:10px 12px 0;padding:10px 12px 12px;border:1px solid var(--blue);border-radius:12px;background:var(--panel)}
.cm-compose-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.cm-compose input,.cm-compose textarea{width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:8px;font-size:13.5px;font:inherit}
.cm-compose textarea{resize:vertical;margin-top:6px}
.cm-compose-to{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13.5px;margin-bottom:6px}
.cm-hit{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;width:100%;text-align:left;background:none;border:0;
  border-top:1px solid var(--line);padding:8px 2px;font:inherit;font-size:13.5px;cursor:pointer;color:var(--ink)}
.cm-hit:hover{background:var(--panel-2,#f6f8fb)}
.cm-hit-ways{margin-left:auto;display:inline-flex;gap:8px;font-size:var(--fs-xs);color:var(--grey)}
.cm-via{display:inline-flex;border:1px solid var(--line);border-radius:999px;overflow:hidden;margin:0 0 6px}
.cm-via-b{border:0;background:none;padding:4px 12px;font:inherit;font-size:12.5px;font-weight:600;color:var(--grey);cursor:pointer}
.cm-via-b.on{background:var(--blue);color:#fff}
.cm-subj{margin-bottom:6px}
@media (max-width:860px){
  .cm-cols{flex-direction:column;overflow:auto}
  .cm-main{flex:none;min-height:0}
  .cm-phone{width:auto;border-left:0;border-bottom:1px solid var(--line);order:-1;overflow:visible}
  .cm-body{overflow:visible}
  .cm-head .cm-ph-state{display:none}
}
.cm-tabs{display:flex;gap:4px;padding:0 12px;border-bottom:1px solid var(--line);overflow-x:auto}
.cm-tab{border:0;background:none;padding:8px 10px;font:inherit;font-size:var(--fs-sm);font-weight:600;color:var(--grey);
  cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap}
.cm-tab.on{color:var(--blue-ink);border-bottom-color:var(--blue)}
/* v3.1107.0 — "Waiting for customer to reply": our turn is done. Quiet grey, never the orange of unread. */
.cm-waiting{display:inline-block;padding:1px 8px;border-radius:999px;background:var(--bg);color:var(--muted);
  font-size:11px;font-weight:600;white-space:nowrap;border:1px solid var(--line)}
.cm-conv-wait{margin-top:2px}
.cm-wait-foot{text-align:right;margin:4px 8px 2px}
.cm-n{display:inline-block;min-width:18px;padding:0 5px;border-radius:999px;background:var(--orange);color:#fff;
  font-size:11px;font-weight:700;line-height:18px;text-align:center;vertical-align:middle}
.cm-badge{margin-left:auto;min-width:18px;padding:0 5px;border-radius:999px;background:var(--orange);color:#fff;
  font-size:11px;font-weight:700;line-height:18px;text-align:center}
.cm-tools{display:flex;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line)}
.cm-tools input{flex:1;padding:7px 10px;border:1px solid var(--line);border-radius:8px;font-size:13.5px}
.cm-tools select{padding:6px 8px;border:1px solid var(--line);border-radius:8px}
.cm-body{overflow:auto;padding:6px 12px 16px;flex:1}
/* v3.1198.0 (19 October 2026) — THE BULK BAR STAYS IN VIEW. Jarryd: "Make this bar of buttons stay within view as you
   scroll, 'freeze panes'." Choose all / Mark dealt with / Add to to-do stay pinned to the top of the list while the rows
   scroll under them: the panel's own background (so no row shows through) and above the rows. `top` is minus the
   list's top padding, so it sits flush with the edge of the scrolling box rather than 6px below it. */
.cm-body > .ib-bulk{position:sticky;top:-6px;z-index:5;background:var(--panel);margin-top:4px;
  box-shadow:0 6px 8px -8px var(--line);flex-wrap:nowrap}
/* One line, so the pinned bar stays short: the buttons keep their size and "N chosen" gives way (its full words on hover). */
.cm-body > .ib-bulk .btn{flex:none}
.cm-body > .ib-bulk .ib-bulkn{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-body > .ib-bulk .ib-bulkn[data-n="0"]{visibility:hidden}
/* v3.1198.0 — the Drafts and To-do tabs: one row per draft / to-do, the whole row opens it, the actions on the right. */
.cm-mine{padding-top:10px}
.cm-mine-list{display:flex;flex-direction:column;gap:8px}
.cm-mine-row{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;
  background:var(--panel)}
.cm-mine-row:hover{border-color:var(--blue)}
.cm-mine-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;text-align:left;background:none;border:0;padding:0;
  font:inherit;color:inherit;cursor:pointer}
.cm-mine-main[disabled]{cursor:default}
.cm-mine-top{display:flex;align-items:baseline;gap:8px;min-width:0}
.cm-mine-top b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.cm-mine-k{flex:none;font-size:11px;font-weight:600;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:0 7px}
.cm-mine-when{flex:none;margin-left:auto;font-size:var(--fs-xs);color:var(--muted);white-space:nowrap}
.cm-mine-subj{font-size:var(--fs-sm);font-weight:600}
.cm-mine-text{font-size:var(--fs-sm);color:var(--muted);overflow-wrap:anywhere}
.cm-mine-acts{flex:none;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
/* 3.1208.0 (Bec, 26 Oct) — the To-do tab's Today and Later, Late and the day a moved one comes back. */
.cm-mine-h{margin:6px 0 8px;font-size:var(--fs-sm);font-weight:700;color:var(--ink);display:flex;align-items:center;gap:6px}
.cm-mine-list + .cm-mine-h,.cm-mine-none + .cm-mine-h{margin-top:16px}
.cm-mine-n{font-size:var(--fs-xs);font-weight:600;color:var(--muted)}
.cm-mine-none{margin:0 0 4px}
.cm-mine-late,.cm-mine-due{flex:none;font-size:var(--fs-xs);font-weight:600;border-radius:999px;padding:0 7px;border:1px solid var(--line);white-space:nowrap}
.cm-mine-late{color:var(--danger);border-color:var(--danger)}
.cm-mine-due{color:var(--accent-ink)}
.cm-todo-said{align-self:center;font-size:var(--fs-xs);color:var(--ok);white-space:nowrap}
.cm-todo-said.bad{color:var(--danger)}
/* 3.1221 (lane bec1111people; Bec, 11 Nov, item 5) — Whose list, and a change a colleague made, shown on the to-do. */
.cm-todo-whose{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:var(--fs-sm);font-weight:600}
.cm-todo-whose select{flex:1;min-width:0;max-width:260px}
.cm-mine-chg{flex:0 1 auto;min-width:0;font-size:var(--fs-xs);font-weight:600;color:var(--accent-ink);border:1px solid var(--line);border-radius:999px;padding:0 7px;overflow-wrap:anywhere}
.cm-mine-gone{background:var(--bg)}
.cm-mine-gone .cm-mine-main{cursor:default}
.cm-dr-said{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-xs);color:var(--muted);white-space:nowrap}
.cm-dr-said.bad{color:var(--danger)}
.cm-dr-x{font-size:var(--fs-xs)}
/* v3.1208.0 (Bec, 26 Oct) — the Drafts tick bar: the tick sits at the row's left, and "Discarded 3" beside the button. */
.cm-mine-row > .ib-pickbox{flex:none;margin:-8px -4px -8px -8px}
.cm-mine > .ib-bulk{margin:0 0 8px}
.cm-dr-bsaid{font-size:var(--fs-xs);color:var(--ok);white-space:nowrap}
.cm-dr-bsaid.bad{color:var(--danger)}
/* v3.1208.0 (Bec, 26 Oct) — the files an email came with, on its row in Communications: one link each, the name kept short. */
.cm-files{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;font-size:var(--fs-sm)}
.cm-files-k{font-weight:600;color:var(--muted)}
.cm-file{display:inline-flex;align-items:baseline;gap:4px;max-width:100%;padding:2px 8px;border:1px solid var(--line);
  border-radius:999px;background:var(--panel);color:var(--accent-ink);text-decoration:none}
.cm-file:hover{border-color:var(--blue)}
.cm-file-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:240px}
.cm-file-s{flex:none;color:var(--muted);font-size:var(--fs-xs)}
@media (max-width:600px){
  .cm-mine-row{flex-direction:column;align-items:stretch}
  /* v3.1208.0 — with a tick (Drafts), the tick keeps its place at the left of the row rather than a line of its own. */
  .cm-mine-row:has(> .ib-pickbox){display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:6px}
  .cm-mine-row:has(> .ib-pickbox) > :not(.ib-pickbox){grid-column:2}
  .cm-mine-row > .ib-pickbox{grid-row:1 / span 2;align-self:start}
  .cm-mine-top{flex-wrap:wrap}
  .cm-mine-top b{white-space:normal;overflow-wrap:anywhere}
  .cm-mine-acts{justify-content:flex-start}
}

/* ---- EVERYTHING WE DO, in the same drawer as everything that came in (0178, v3.487.0) ----------
   Darren: *"It will filter that list to show you the service title and the dollar value."* So the
   row is a two-column grid — name left, money right — and the money column is fixed-width so
   twenty-three prices line up as a column somebody can scan rather than twenty-three ragged ends.
   `min-width:0` on the name is what stops a long title pushing the price off the edge on a phone,
   which a `1fr auto` grid does silently without it. */
.cm-svc{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;width:100%;text-align:left;
  background:none;border:0;border-bottom:1px solid var(--line);padding:10px 4px;font:inherit;
  cursor:pointer;color:var(--ink)}
.cm-svc:hover{background:var(--grey-soft,rgba(0,0,0,.03))}
.cm-svc-t{min-width:0;font-size:13.5px}
.cm-svc-p{font-size:13.5px;font-weight:700;white-space:nowrap;text-align:right;align-self:start}
/* Where it matched, when the name did not — spans both columns under the row it explains. */
.cm-svc-hit{grid-column:1/-1;font-size:11.5px;color:var(--muted)}
/* "consult first" is the flag that decides whether the office takes payment now, so it reads as a
   caution rather than as decoration. */
.cm-svc-flag{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;
  background:var(--orange-soft);color:var(--orange-ink,var(--ink));font-size:10.5px;font-weight:700;
  vertical-align:middle;white-space:nowrap}
.cm-svc-sec{padding:12px 4px 4px;font-size:11.5px;font-weight:800;letter-spacing:.04em;
  text-transform:uppercase;color:var(--muted)}
.cm-svc-page h3{margin:6px 0 2px;font-size:16px}
.cm-svc-page h4{margin:14px 0 4px;font-size:var(--fs-xs);font-weight:800;letter-spacing:.03em;
  text-transform:uppercase;color:var(--muted)}
.cm-svc-page p{margin:4px 0;font-size:13.5px;line-height:1.5}
.cm-svc-sub{font-size:var(--fs-xs);color:var(--muted)}
.cm-svc-money{font-size:15px}
.cm-svc-ul{margin:4px 0 4px 18px;padding:0;font-size:13.5px;line-height:1.5}
.cm-svc-ul li{margin:2px 0}
.cm-svc-lines{width:100%;font-size:var(--fs-sm)}
.cm-svc-amt{white-space:nowrap;text-align:right;font-weight:700}
/* A rule about what may be SOLD, above the price rather than below the intake list — see 0178. */
.cm-svc-bound{background:var(--orange-soft);border-left:4px solid var(--orange);padding:9px 12px;
  border-radius:6px;margin:10px 0;font-size:var(--fs-sm)}
.cm-thread{border-bottom:1px solid var(--line)}
.cm-th{display:grid;grid-template-columns:1fr auto;gap:2px 10px;width:100%;text-align:left;background:none;border:0;
  padding:10px 4px;font:inherit;cursor:pointer;color:var(--ink)}
.cm-th:hover{background:var(--panel-2,#f6f8fb)}
.cm-who{font-size:14px}
.cm-last{font-size:var(--fs-xs);color:var(--grey);white-space:nowrap}
.cm-peek{grid-column:1 / -1;font-size:12.5px;color:var(--grey);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-rows{padding:0 4px 8px}
/* Theirs on the left, ours on the right — the shape every messaging app has taught everybody. */
.cm-row{margin:6px 0;padding:8px 10px;border-radius:10px;background:var(--panel-2,#f6f8fb);max-width:88%;font-size:var(--fs-sm)}
.cm-row.cm-out{margin-left:auto;background:var(--blue-lt)}
.cm-row.cm-na{border:1px dashed var(--line);background:none}
.cm-row.cm-unread{box-shadow:inset 3px 0 0 var(--orange)}
.cm-meta{font-size:var(--fs-xs);margin-bottom:3px}
.cm-title{font-weight:600;margin-bottom:2px}
.cm-text{white-space:pre-wrap;word-break:break-word}
.cm-row audio{display:block;width:100%;margin-top:6px;height:32px}
/* The recording and its always-works fallback link (v3.394.0). */
.cm-rec{margin-top:6px}
.cm-dl{display:inline-block;margin-top:4px;font-size:var(--fs-xs);color:var(--blue-ink)}
/* The carrier's receipt, on the message (v3.394.0): the tick is the ok colour, "not delivered" the danger one. */
.cm-recd{color:var(--ok);font-weight:600}
.cm-recd.bad{color:var(--danger)}
.tl-dl{display:inline-block;margin:2px 0 0 6px;font-size:var(--fs-xs);color:var(--blue-ink)}
/* ---- A STACKED FIELD: caption on its own line above a full-width box (v3.395.0) --------------- */
.fld-stack{display:grid;gap:5px;margin:10px 0}
.fld-stack>span{font-size:var(--fs-sm);font-weight:600;color:var(--grey)}
.fld-stack textarea,.fld-stack input{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r);font:inherit;resize:vertical}
.sms-sheet textarea{min-height:120px}
.cm-ai{margin-top:6px;padding:6px 8px;border-left:3px solid var(--blue);background:var(--panel);font-size:12.5px}
.cm-actions{margin-top:6px}
/* v3.1198.0 — a message carries up to five actions now (Dealt with, Create enquiry, Add to enquiry, "Added to E-…", Add to
   to-do): they wrap onto a second line on a narrow screen rather than squeezing each button to one letter per line. */
.cm-actions{flex-wrap:wrap;row-gap:6px}
.cm-actions > .btn,.cm-actions .msg-added{white-space:nowrap}
.cm-reply{padding:6px 4px 12px}
.cm-reply textarea{width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:8px;font-size:13.5px;resize:vertical}
.cm-reply-row{display:flex;gap:8px;align-items:center;margin-top:6px}
.cm-reply-row .hint{margin-right:auto}
@media print{ .cm-drawer{display:none} }

/* ---- TICKETS (v3.387.0) ---------------------------------------------------------------------- */
.tk-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:0 0 10px;overflow-x:auto}
.tk-row{display:grid;grid-template-columns:1fr auto;gap:8px 16px;padding:12px 4px;border-bottom:1px solid var(--line)}
.tk-row-done{opacity:.7}
.tk-head{font-size:14px}
.tk-body{white-space:pre-wrap;word-break:break-word;font-size:var(--fs-sm);margin-top:4px;color:var(--ink)}
.tk-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.tk-side{display:grid;gap:6px;align-content:start;min-width:220px}
.tk-side select{padding:6px 8px;border:1px solid var(--line);border-radius:8px}
.tk-moves{display:flex;flex-wrap:wrap;gap:6px}
.tk-st{display:inline-block;padding:1px 8px;border-radius:999px;font-size:11.5px;font-weight:700;vertical-align:middle;margin-right:4px}
.tk-open{background:var(--orange-soft);color:var(--orange)} .tk-in_progress{background:var(--blue-lt);color:var(--blue-ink)}
.tk-waiting{background:#fff6d6;color:#8a6100} .tk-done{background:#e7f6ec;color:var(--ok)}
.tk-new{margin:0 0 12px}
.tk-found{display:flex;flex-wrap:wrap;gap:6px}
.mk-panel{width:min(420px,calc(100vw - 32px))}
.mk-head{display:flex;justify-content:space-between;align-items:center} .mk-head h3{margin:0}
.mk-panel h4{margin:12px 0 6px;font-size:var(--fs-sm);color:var(--grey)}
.mk-row{padding:6px 0;border-top:1px solid var(--line);font-size:var(--fs-sm)}
@media (max-width:720px){ .tk-row{grid-template-columns:1fr} }
.dir-chain{display:inline-block;margin-top:2px;font-size:var(--fs-xs)}
/* The Keys screen, one segment at a time (v3.388.0) */
.seg-menu{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--line);margin:8px 0 0}

.ph-btn .cm-badge{margin-left:2px}
/* ---- What we know: the AI brief at the top of a customer (v3.404.0) ---------------------------- */
.dir-ai{border:1px solid var(--blue-lt,#EAF0FF);background:var(--blue-tint,rgba(0,78,254,.04))}
.dir-ai-h{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dir-ai-h h3,.dir-ai-h h4{margin:0}
/* v3.442.0 — the same brief, on the enquiry's through-line. */
/* 0220, v3.593.0 — Darren: *"The spacing between the Story So Far, Notes, Bookings, and Quotes
   seems to be different for each one."* It was. `.enq-rec` is a flex column with `gap:12px`, and
   these three ALSO carried margins of their own — 6/10, 2/0 and 2/0 — which added to the gap by
   different amounts and made every seam a different height. The gap is the one rule now; a margin
   here is a second opinion about the same distance. */
.enq-rec > .panel.sub,.panel.sub.enq-ai{margin:0}
/* ---- AN EMPTY CHILD STILL EATS A GAP (0248, v3.616.0) ---------------------------------------
   Darren, 11 September 2026: *"the padding between each of the blocks is different all the way
   down. Can you make sure they are consistent, please?"*
   MEASURED on a real record: every seam between consecutive children is exactly the 12px the flex
   gap says. What is uneven is which children they are — `#eq-d-msg` (the save line) is 0px tall
   until something is saved, and a 0px child in a 12px-gap column still takes a gap on BOTH sides.
   So the space between the two coloured blocks around it reads as 24px while every other seam is
   12. Same for any other status line that happens to be empty on this render.
   `:empty` is exactly the right test: the moment the save line has a message it is no longer empty
   and takes its place back. Nothing is hidden that has anything to say. */
.enq-rec > :empty{display:none}
.dir-ai-tag{font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.02em;color:var(--blue-ink);background:rgba(0,78,254,.12);border-radius:999px;padding:1px 8px;vertical-align:middle}

/* ================================================================================================
   MARKING WHAT THE AI WROTE (v3.502.0)
   Darren: *"next to anything that's AI can we have a little circle with a green AI kind of badge
   next to all the AI summarise an AI stuff? I also think AI text probably should mostly be in
   italics."*

   A CIRCLE, as asked — not the pill that `.dir-ai-tag` and `.assist-tag` use. Two characters is the
   most a circle holds legibly, which is why the whole sentence lives in `title` and `aria-label`
   rather than in the badge.

   SIZED IN PX AND NOT EM, so it is the same mark beside a 22px heading and beside a 12.5px hint. A
   badge that grows with its heading reads as a heading of its own.

   COLOURED FROM `--ok`, which both themes already define (#177040 light, #3ecf8e dark) — so the
   dark theme needs no second rule and cannot drift out of step with the rest of the product's
   green. `color-mix` for the ground and the rim, the same technique as `.enq-pill`.
   ================================================================================================ */
.ai-badge{display:inline-flex;align-items:center;justify-content:center;
  width:18px;height:18px;margin:0 5px;flex:0 0 auto;
  border-radius:50%;font-size:9px;font-weight:800;letter-spacing:.02em;line-height:1;
  vertical-align:middle;cursor:help;
  color:var(--ok);
  background:color-mix(in srgb, var(--ok) 15%, transparent);
  border:1px solid color-mix(in srgb, var(--ok) 42%, transparent)}
/* A BADGE THAT STARTS A LINE CARRIES NO LEFT MARGIN. MEASURED on the enquiry board (v3.503.0): the
   gist line begins with the mark, and 5px of margin indented it out of line with the subject
   directly above it — a five-pixel stagger down a column of forty rows.
   ASKED FOR BY THE CALL SITE, not guessed by a selector. `:first-child` was tried and is wrong:
   it matches element position and ignores text nodes, so a badge sitting AFTER a title — the
   commonest case — lost its gap and touched the last letter. Only the caller knows whether its
   badge begins a line. */
.ai-badge.ai-lead{margin-left:0}

/* ================================================================================================
   WE THINK WE KNOW MORE — the suggestions on a customer record (0185, v3.504.0)
   Darren: *"I would like our system to fill the gaps every time it has extra information and
   suggest ways in which we can add to the information we already have."* And, standing:
   *"everything we do I want to use space efficiently."*

   ONE ROW IS THREE LINES AND NOT THREE PANELS: the claim, its evidence, the two answers. A claim
   with a card round it takes four times the height and reads no faster, and a list of forty is the
   realistic size of a first sweep.
   ================================================================================================ */
.enr-list{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:2px}
.enr-row{padding:6px 8px;border-radius:8px;border-left:3px solid transparent;
  background:var(--panel-2)}
.enr-row + .enr-row{margin-top:2px}
/* A CONFLICT IS MARKED ON THE ROW, not only in its words: somebody scanning for the ones that
   disagree with the file should not have to read every line to find them. Amber and not red —
   a suggestion that disagrees is normal, and red is for something being wrong. */
.enr-row.enr-clash{border-left-color:var(--warn,#B7791F)}
.enr-main{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-width:0}
.enr-field{font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);
  flex:0 0 auto}
.enr-val{font-size:14px;min-width:0;overflow-wrap:anywhere}
/* WHAT IT SAYS NOW, on the same line as what we found — side by side is the whole point, and two
   lines makes somebody hold one value in their head while they read the other. */
.enr-now{font-size:var(--fs-xs);color:var(--muted)}
.enr-now.enr-empty{font-style:italic}
.enr-why{font-size:12.5px;color:var(--muted);margin-top:1px}
.enr-acts{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px}
.enr-acts .hint{margin:0}
.dir-enrich .save-status{min-height:0}
.dir-enrich .save-status:empty{display:none}
/* ---- READING THE MAIL WE ALREADY HAVE (v3.505.0) --------------------------------------------
   The button sits ABOVE the list, not below it: on a record with nothing yet it is the only thing
   in the panel and must not be hunted for, and on a record with forty rows it is still the first
   thing after the heading rather than a scroll away. */
.enr-mine{margin:4px 0 6px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.enr-mine .hint{margin:0}
/* WHAT EACH RUN SAID, one line each and named — see the note in dirEnrichHtml. Four notes wrapped
   into the button row read as a jumbled paragraph whose pairing depended on sentence length. */
.enr-ran{margin:0 0 8px;padding:0;list-style:none;display:grid;gap:3px}
.enr-ran li{margin:0}
.enr-ran b{font-weight:600}
/* What we passed over — folded, and the commonest reason by far is "we already have that", which is
   good news. A run that says only "kept 0" reads like a failure. */
.enr-skips{margin:0 0 6px}
.enr-skips > summary{cursor:pointer}
.enr-skips ul{margin:4px 0 0 18px;padding:0}
/* ---- THE CRAWL OVER EVERY CUSTOMER (0185 B5, v3.508.0) ---------------------------------------
   Two folded lists, the same shape as the suggestions panel's own: what could not be checked, and
   which customers gained something. Folded because a good run is hundreds of rows, and shown at
   all because "kept 14" with no account of the rest is a report nobody can act on. */
.dir-sweep-note{margin:6px 0}
.dir-sweep-note.edge-excl{max-width:70ch}
.dir-sweep-fails,.dir-sweep-gained{margin:0 0 4px}
.dir-sweep-fails > summary,.dir-sweep-gained > summary{cursor:pointer}
.dir-sweep-fails ul,.dir-sweep-gained ul{margin:4px 0 0 18px;padding:0;
  /* A GOOD RUN IS HUNDREDS OF ROWS, so the list scrolls inside itself rather than pushing the
     screen's own scrollbar down a thousand pixels. */
  max-height:260px;overflow-y:auto}
/* ---- WHAT EVERYBODY ACTUALLY CALLS THEM (0186, v3.506.0) -------------------------------------
   Its own line under the legal name and quieter than it: the legal name is what an invoice must
   say, and this is the one somebody has in their head when they ring. `display:block` so it does
   not fight the name for the same line on a narrow screen. */
.dir-trading{display:block;font-size:12.5px;font-weight:400;color:var(--muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width:900px){
  /* WIDE ENOUGH AND THE ANSWERS SIT BESIDE THE CLAIM rather than under it — the same row, two
     lines shorter. Below 900px they stack, because a button squeezed next to a wrapped address is
     worse than a button on its own line. */
  .enr-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:start}
  .enr-main,.enr-why{grid-column:1}
  .enr-acts{grid-column:2;grid-row:1 / span 2;margin-top:0;justify-content:flex-end;
    align-items:center;max-width:340px}
  .dir-enrich .save-status{grid-column:1 / -1}
}
/* THE THREE DEGREES ARE THE SAME GREEN. The badge means "a machine did this", and that is one fact.
   What differs between them is the sentence the badge carries and whether the text beside it is
   italic. A second colour would invite reading the colour instead of the sentence, and
   green-versus-amber would quietly become "trustworthy" versus "not" — which is not the
   distinction. `wrote` / `found` / `heard` is about WHAT the machine did, not how much to trust it. */
.ai-badge.ai-found,.ai-badge.ai-heard{color:var(--ok)}
/* PROSE THE MODEL COMPOSED IS ITALIC. `.ib-read-sum-t` invented this rule in v3.454.0 and its
   line-height came with it — italics at a tight leading is the part that gets hard to read. */
.ai-said-wrote{font-style:italic;line-height:1.45}
/* A VALUE IT LIFTED OUT OF REAL TEXT IS NOT — and a verbatim transcript is not. Stated rather than
   left to inherit, because the whole point of the distinction is that it survives a stylesheet
   somebody else edits: italicising a phone number makes it look uncertain, when the point is that
   it came from words somebody actually sent. */
.ai-said-found,.ai-said-heard{font-style:normal}
/* ---- THE BRIEF USES THE ROOM, AND IS A POINT SMALLER (v3.568.0) -----------------------------
   Darren: *"the font size of the AI summary can come down a point or two, and we don't need to
   wrap so quickly."*

   MEASURED in headless Chromium, before this change: the panel was 912px wide and the summary
   paragraph inside it wrapped at 661px. That is `.panel > p{max-width:var(--measure)}` — 82ch,
   and `ch` is a unit of the ELEMENT'S own font, so at 14.5px it lands at 661px and leaves a
   quarter of the panel empty. The enquiry screen lifted that measure in v3.494.0 for exactly this
   reason; the customer record never did, so the same brief wrapped early in one place and not the
   other. Lifted here too — a record is a dense screen somebody scans, not an article. */
/* ---- WHAT THEY ASKED FOR AND THE STORY SO FAR ARE ONE SIZE (v3.588.0) ---------------------
   Darren, 9 September 2026: *"Can we make what they asked for the same font size as the story so
   far?"* and, of "what they asked for", *"That font should be smaller."*
   They were 14px and 13px — the customer's own words LARGER than the AI's summary of them, which is
   backwards as well as inconsistent. One custom property, used by both, so the next change to
   either moves both and they cannot drift apart again. */
:root{--read-body:13px}
.dir-ai-sum{margin:8px 0;line-height:1.5;font-size:var(--read-body);max-width:none}
.dir-modal .panel > p,.dir-modal .panel > .hint,#dir-record .panel > p,
#dir-record .panel > .hint{max-width:none}
.dir-ai-hl,.dir-ai-next{font-size:var(--fs-sm)}
.dir-ai-hl{margin:6px 0;padding-left:18px}
.dir-ai-hl li{margin:2px 0}
.dir-ai-next{margin:6px 0}
.dir-ai-foot{margin-top:8px;font-size:11.5px;opacity:.8}

/* ---- CONSULTANT KPIs (v3.444.0) ------------------------------------------------------------------
   Darren: "better reporting statistics graphs… for KPIs for consultants… as much as possible." The
   charts are SVG from public/kpicharts.js; the colours below come from the theme so dark mode is free. */
.kpi-presets{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.kpi-window label input,.kpi-window label select{width:100%}
/* ---- WHY WE LOSE (v3.523.0) -----------------------------------------------------------------
   The one fact that came across from the enquiry board's "How it is going" band when the rest of
   it turned out to be a duplicate of the tiles above. A short list of reasons with a count each:
   the count leads, because the order IS the finding, and the reasons wrap in columns so four of
   them do not read as a page of prose. */
.kpi-why{list-style:none;margin:8px 0 4px;padding:0;display:grid;gap:6px;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.kpi-why li{display:flex;align-items:baseline;gap:8px;font-size:13.5px;
  border-left:3px solid var(--line);padding:2px 0 2px 10px}
.kpi-why b{font-size:1.15rem;font-variant-numeric:tabular-nums;min-width:1.6em}
.kpi-tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:10px 0 4px}
@media(max-width:1400px){.kpi-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.kpi-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.kpi-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.kpi-tile{display:flex;flex-direction:column;gap:2px;border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:var(--panel)}
.kpi-l{font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-weight:700}
.kpi-v{font-size:22px;line-height:1.2;font-weight:800;color:var(--ink)}
.kpi-s{font-size:var(--fs-xs);color:var(--muted)}
.kpi-tile.kpi-good .kpi-v{color:var(--ok)}
.kpi-tile.kpi-warn .kpi-v{color:var(--warn)}
.kpi-tile.kpi-bad .kpi-v{color:var(--danger)}
.kpi-tile.kpi-unknown .kpi-v{color:var(--muted);font-weight:600}
.kpi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
@media(max-width:900px){.kpi-grid{grid-template-columns:1fr}}
.kpi-grid>.panel{margin:0}
.kpi-fig{margin:0}
.kpi-fig figcaption{margin:0 0 6px;font-size:14px}
.kpi-fig.kpi-empty p{margin:4px 0 0}
.kpi-svg{width:100%;height:auto;display:block;overflow:visible}
.kpi-hsvg{height:auto}
.kpi-svg .kpi-gl{stroke:var(--line);stroke-width:1}
.kpi-svg .kpi-axis{stroke:var(--grey-mid,#9aa3b2);stroke-width:1}
.kpi-svg .kpi-ax{fill:var(--muted);font-size:11px;font-family:inherit}
.kpi-svg .kpi-partial{font-style:italic}
.kpi-svg .kpi-lbl{fill:var(--ink);font-size:12.5px;font-weight:600;font-family:inherit}
.kpi-svg .kpi-val{fill:var(--ink);font-size:12.5px;font-weight:700;font-family:inherit}
.kpi-svg .kpi-track{fill:var(--zebra,#FAFAFA)}
.kpi-svg .kpi-bar{transition:opacity var(--dur-2) var(--ease-out)}
.kpi-svg .kpi-bar:hover{opacity:.8}
.kpi-svg .kpi-line{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.kpi-svg .kpi-dot{stroke:var(--panel);stroke-width:1.5}
.kpi-svg .kpi-target{stroke:var(--danger);stroke-width:1.5;stroke-dasharray:4 3}
.kpi-legend{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0 0 6px;font-size:12.5px;color:var(--muted)}
.kpi-key{display:inline-flex;align-items:center;gap:6px}
.kpi-key i{display:inline-block;width:10px;height:10px;border-radius:2px}
.kpi-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* v3.1129.0 — a TABLE does not shrink below its contents, so the hidden table behind a long chart measured 400-odd
   pixels wide on a phone and pushed the page sideways (found by the 390px sweep). As a block it is the 1px it says. */
table.kpi-sr{display:block;max-width:1px;max-height:1px;clip-path:inset(50%);top:0;left:0}
.kpi-fig{position:relative}
.kpi-tablewrap{max-height:70vh;overflow:auto}
.kpi-table th{position:sticky;top:0;background:var(--panel);z-index:1}
.kpi-table td.num,.kpi-table th.num{text-align:right;font-variant-numeric:tabular-nums}
.kpi-table td:first-child{position:sticky;left:0;background:var(--panel)}
.kpi-total td{font-weight:700;border-top:2px solid var(--line)}
.kpi-cmp td.num{font-variant-numeric:tabular-nums}
.kpi-defs summary{cursor:pointer}
.kpi-defs ul{margin:8px 0 0;padding-left:18px}
.kpi-defs li{margin:4px 0}

/* ---- v3.1129.0 (2 October 2026) — LINES, AND THE KPI BOARD ---------------------------------------------------------
   Darren: "line graphs rather than bar graphs please." The shared line chart (public/kpicharts.js `lines`): its series
   colours are theme.css's --kl1…--kl8; the tooltip is CSS-only (:hover and :focus on each point), so a keyboard reaches
   every number; on a phone every other month label goes and the type grows, and each chart carries its table. */
.kpi-capbar{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;justify-content:space-between}
.kpi-csvbtn{flex:none}
.kpi-keyline{display:inline-block;width:16px;height:3px;border-radius:2px}
.kpi-svg .kpi-unit{font-weight:700}
.kpi-svg .kpi-dash{stroke-dasharray:6 5}
.kpi-svg .kpi-open{fill:var(--panel)!important;stroke-width:2.5}
.kpi-svg .kpi-hit{fill:transparent;stroke:none}
.kpi-svg .kpi-pt{cursor:default;outline:none}
.kpi-svg .kpi-pt:focus-visible .kpi-hit{stroke:var(--accent-ink);stroke-width:2.5}
.kpi-svg .kpi-tip{display:none;pointer-events:none}
.kpi-svg .kpi-pt:hover .kpi-tip,.kpi-svg .kpi-pt:focus .kpi-tip{display:inline}
.kpi-svg .kpi-tip rect{fill:var(--ink);opacity:.94}
.kpi-svg .kpi-tip text{fill:var(--panel);font-size:var(--fs-xs);font-weight:700;font-family:inherit}
.kpi-nums{margin:6px 0 0;font-size:var(--fs-sm)}
.kpi-nums summary{cursor:pointer;color:var(--accent-ink);font-weight:700;font-size:12.5px}
.kpi-numtable td.num,.kpi-numtable th.num{text-align:right;font-variant-numeric:tabular-nums}
.kpi-note{margin:6px 0 0}
@media(max-width:560px){
  .kpi-lsvg .kpi-xo{display:none}
  .kpi-lsvg .kpi-ax{font-size:18px}
  .kpi-lsvg .kpi-line{stroke-width:3.5}
}
/* The board's own pieces: the month range, the compare-to-before line on a tile, the customers' action list. */
.kpb-range{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end;margin:8px 0 0}
.kpb-range label{display:flex;flex-direction:column;gap:3px;font-size:12.5px;font-weight:700;color:var(--muted)}
.kpb-range input[type=month]{padding:6px 8px;border:1px solid var(--line);border-radius:8px;font:inherit;background:var(--panel);color:var(--ink)}
.kpb-range .kpb-test{flex-direction:row;align-items:center;gap:6px;font-weight:600;color:var(--ink)}
.kpb-delta{font-size:var(--fs-xs);font-weight:700}
.kpb-delta.up{color:var(--ok)}
.kpb-delta.down{color:var(--danger)}
.kpb-drops td.num,.kpb-drops th.num{text-align:right;font-variant-numeric:tabular-nums}
.kpb-groups{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 10px}
.kpb-qoq td.num,.kpb-qoq th.num{text-align:right;font-variant-numeric:tabular-nums}
.kpb-testband{border-left:4px solid var(--warn);padding:8px 12px;margin:8px 0;background:var(--tint)}

/* ---- A TASK HAS A "BY WHEN" (0154, v3.445.0) ------------------------------------------------------ */
.tk-due{font-size:12.5px;color:var(--muted);font-weight:600;margin-left:4px}
.tk-due.tk-late{color:var(--danger)}
.tk-row-late{box-shadow:inset 3px 0 0 var(--danger)}
.tk-side .tk-duein{padding:6px 8px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:var(--fs-sm)}
.tk-due-hint{align-self:end;padding-bottom:10px;max-width:320px}

/* v3.445.0 — column groups on the KPI table, toggled by the chips above it. */
.kpi-colpick{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 8px}
.kpi-colpick .chip.on{background:var(--blue);color:#fff;border-color:var(--blue)}
.kpi-tablepanel.kpi-hide-enq .kg-enq,.kpi-tablepanel.kpi-hide-quo .kg-quo,.kpi-tablepanel.kpi-hide-ses .kg-ses,
.kpi-tablepanel.kpi-hide-tsk .kg-tsk,.kpi-tablepanel.kpi-hide-mon .kg-mon,.kpi-tablepanel.kpi-hide-act .kg-act{display:none}

/* v3.446.0 — the enquiry rules switch on the statuses set-up screen. */
.es-rule{display:flex;gap:12px;align-items:flex-start;margin:6px 0 4px;cursor:pointer}
.es-rule input{margin-top:4px;width:18px;height:18px}
/* v3.1151.0 (8 October 2026) — "Website forms" is two answers now (Darren: "everything should get triaged"). */
.es-forms{border:0;padding:0;margin:10px 0 0;min-width:0}
.es-forms legend{padding:0;margin:0 0 2px}

/* ---- MAIL RULES AND THE SKIPPED LIST (0157, v3.447.0) --------------------------------------------
   The rule rows read as sentences, so the layout is badge | sentence | actions and the sentence takes
   the room. `mr-off` greys a rule that is turned off without hiding it — a rule you cannot see is a
   rule you will re-create. */
.mr-list{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.mr-row{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;
  padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--tint)}
.mr-off{opacity:.55}
.mr-badge{font-size:11.5px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;
  padding:3px 8px;border-radius:999px;white-space:nowrap;color:#fff;background:var(--muted)}
.mr-ignore{background:var(--danger)}
.mr-timeline{background:var(--muted)}
.mr-enquiry{background:var(--blue)}
/* v3.1163.0 — "Send it to the Inbox for a person to decide". */
.mr-inbox{background:var(--orange)}
.mr-words{min-width:0;line-height:1.45;word-break:break-word}
.mr-acts{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
/* ---- THE ANSWER SITS ON THE ROW THAT WAS PRESSED (0360, v3.717.0) -------------------------
   Full width under the three columns, because the row is a grid and a fourth child would otherwise
   land beside the buttons. `grid-column:1/-1` is what keeps it a line and not a squeeze. */
/* ---- A CONFIRM THAT ASKS SOMETHING (0365, v3.720.0) ---------------------------------------
   The `choose` dialog's options. Radios rather than a select on purpose — the point is that every
   option and what it means is readable without a second interaction. The whole label is the target,
   so the hit area is the row and not the 13px circle. */
.hm-choices{display:flex;flex-direction:column;gap:8px;margin:12px 0 2px}
/* 3.1219.0.17 (lane courselive) — a list inside a confirm (Make Live: the lessons still drafts). It scrolls on its own. */
.hm-list{margin:10px 0 2px;padding:8px 12px 8px 30px;max-height:min(260px,40vh);overflow:auto;
  border:1px solid var(--line);border-radius:10px;background:var(--tint);font-size:var(--fs-sm);line-height:1.5}
.hm-list li{margin:1px 0}
.hm-choice{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;cursor:pointer;
  border:1px solid var(--line);border-radius:10px;background:var(--tint)}
.hm-choice:hover{border-color:var(--muted)}
.hm-choice input{margin-top:3px;flex:none}
.hm-choice-t{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.45}
.hm-choice-n{font-size:12.5px;font-weight:600;color:var(--blue-ink)}
.hm-choice-h{font-size:12.5px;color:var(--muted)}
/* 0367 — the words an option takes. Full width of the option, so it reads as part of the sentence
   the label starts rather than as a field that happens to be near it. */
.hm-cval{width:100%;max-width:100%;margin:4px 0 2px;padding:6px 8px;font:inherit;line-height:1.3;
  border:1px solid var(--line);border-radius:7px;background:var(--panel);color:inherit}
.hm-cval:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
/* The wider width is the one that can swallow a real customer's mail, so it says so before it is
   picked rather than in a sentence underneath. */
.hm-choice-danger .hm-choice-n{color:var(--danger)}
/* v3.1144.0 — "addresses containing [___] at acme.com.au", the count's "see which" list, and an
   empty count slot (an option that recounts as you type) taking no room until it has something. */
.hm-choice-n:empty{display:none}
.hm-cval-row{display:flex;align-items:center;gap:8px;min-width:0}
.hm-cval-row .hm-cval{flex:1 1 auto;min-width:0}
.hm-cval-after{flex:none;font-weight:600;white-space:nowrap}
.hm-which{display:inline;font-weight:400}
.hm-which summary{display:inline;cursor:pointer;text-decoration:underline;color:var(--blue-ink)}
.hm-which[open] summary{margin-bottom:2px}
.hm-which ul{margin:4px 0 2px;padding-left:18px;color:var(--ink);font-weight:400;font-size:12.5px}
.hm-which li{margin:1px 0;overflow-wrap:anywhere}
.hm-which-more{list-style:none;color:var(--muted)}
.mr-said{grid-column:1/-1;margin-top:6px;padding-top:6px;border-top:1px dashed var(--line);
  font-size:12.5px;line-height:1.45;color:var(--muted)}
.mr-said.bad{color:var(--danger)}
.mr-form{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.mr-form h3{margin:0 0 8px;font-size:15px}
/* v3.1124.0 — the private screen's Private / Public rule choice, and the flagged-email count on the
   Your private mail tile and menu entry (drawn only for a mail.vault holder). */
.mr-scope{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 10px}
.mr-scope label{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.pm-badge{display:inline-block;margin-left:6px;min-width:18px;padding:0 6px;border-radius:999px;
  background:var(--danger,#b42318);color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;vertical-align:middle}
.sv-row .mr-acts{display:flex;flex-wrap:wrap;gap:4px}
.mr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.mr-f{display:flex;flex-direction:column;gap:4px;font-size:var(--fs-sm)}
.mr-f span{color:var(--muted);font-weight:600}
.mr-f input,.mr-f select{padding:7px 9px;border:1px solid var(--line);border-radius:8px;
  font:inherit;font-size:14px;background:var(--panel);color:inherit}
.mr-wide{grid-column:1/-1}
/* v3.1163.0 — the "which kinds of message" tick boxes: a row that wraps on a phone, not a padded input each. */
.mr-kinds{border:0;margin:0;padding:0;min-width:0}
.mr-kindrow{display:flex;flex-wrap:wrap;gap:6px 16px;color:inherit;font-weight:400}
.mr-kinds input[type=checkbox]{padding:0;width:auto;margin:0}
/* The rule read back as a sentence before it is saved — the whole point of the form. */
.mr-reads{margin:10px 0 4px;padding:8px 10px;border-left:3px solid var(--blue);
  background:var(--tint);border-radius:0 8px 8px 0;font-size:13.5px}
.mk-list{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.mk-row{display:grid;grid-template-columns:110px 1fr auto;gap:12px;align-items:start;
  padding:8px 10px;border-bottom:1px solid var(--line)}
.mk-when{font-size:12.5px;color:var(--muted);font-weight:600}
.mk-what{min-width:0;word-break:break-word;line-height:1.4}
.mk-done{font-size:12.5px;color:var(--muted);font-weight:600;white-space:nowrap}
@media (max-width:640px){
  .mr-row,.mk-row{grid-template-columns:1fr}
  .mr-acts{justify-content:flex-start}
}

/* ---- ONE AVERAGE, THE OTHER RATES IT FEEDS (0158, v3.449.0) --------------------------------------
   The extras sit on their own line UNDER the labour type's row, indented to the start of the rate
   column so the eye reads them as belonging to it rather than as more labour types. The add button
   is quiet until there is something in the list — most types map to one rate and always will. */
/* `.lt-row` is a GRID (1fr 1fr auto 34px), so the extras span the whole row and then repeat that
   same column model inside — caption under Type name, rate under Simpro labour rate, multiple where
   the Billable? tick sits, ✕ under ✕. Anything else read as a second, unrelated form pasted under
   the first. */
/* A FLEX COLUMN, NOT A NESTED GRID. It was `1fr 1fr auto 34px` to mirror the parent row so the add
   button could sit under the rate column — which does not work: the parent's third column is sized
   `auto` by the "Office / non-billable" label and there is no label inside the extras, so that
   column collapses and the two 1fr columns are wider than the parent's. The button landed 70px to
   the right of the select it belongs under, which looked like a mistake because it was one.
   Everything in here is hard left instead, on the same margin as the type name above it — one left
   rail down the whole list is what reads as tidy. */
.lt-extras{grid-column:1/-1;margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.lt-extras.has{margin-bottom:8px}
.lt-xlist{width:100%;display:flex;flex-direction:column;gap:6px}
.lt-extra{display:grid;grid-template-columns:1fr 1fr auto 34px;gap:10px;align-items:center}
.lt-xalso{font-size:12.5px;color:var(--muted);font-weight:600;text-align:right;padding-right:2px}
.lt-extra select{font:inherit;font-size:13.5px;padding:6px 8px;border:1px solid var(--line);
  border-radius:var(--r);background:var(--panel);color:inherit;width:100%}
.lt-extra .lt-xfactor{width:auto;min-width:210px}
/* ---- THE ADD CONTROL, OFF THE RIGHT-HAND EDGE (v3.451.0) -----------------------------------
   Darren, 7 Sep 2026: *"The labour rates area is also very messy."* It was, and this button was
   most of the reason. `margin-left:auto; display:block` pushed a full-size pill labelled "+ Also
   update another rate (a second cost centre, or overtime)" to the far right of every single type,
   on a line of its own — five labour types, five stranded buttons hard against the right margin,
   each taking a row's height and none of them lined up with anything. The screen read as ten rows
   of alternating form and furniture rather than a five-row list.

   So it moves under the SIMPRO RATE column, which is the thing it adds another of, and it is sized
   by whether it has anything to add to:

     * NO EXTRAS YET (the ordinary case, and most types stay here forever) — a quiet inline link
       with almost no vertical footprint, and the parenthetical dropped. The row above is the
       content; this is an offer.
     * EXTRAS PRESENT — a real small button under the list it extends, still on the rate column, so
       "add another one of these" sits directly below the ones there are. */
.lt-xadd{align-self:flex-start;margin:0;display:inline-flex;align-items:center;gap:5px}
.lt-extras:not(.has) .lt-xadd{border:0;background:none;padding:0 0 2px;color:var(--muted);
  font-size:var(--fs-xs);font-weight:600;text-decoration:underline;text-underline-offset:2px;
  border-radius:0;min-height:0;line-height:1.5}
.lt-extras:not(.has) .lt-xadd:hover{color:var(--blue-ink);background:none}
/* The parenthetical explains a control somebody is already using; on the empty offer it is three
   times the length of the offer itself. */
.lt-extras:not(.has) .lt-xadd .muted{display:none}
.lt-row.is-office .lt-extras{display:none}

/* ---- BASIC AND ADVANCED (0244, v3.649.0) -----------------------------------------------------
   Darren: *"Basic mode is on by default and doesn't show the two extra labouring buttons… Advanced
   mode enables that functionality and we can explain what it does when you hover over."*

   ABOVE THE LIST AND QUIET. It changes what every row below looks like, so it is read before them;
   but it is a preference and not a step, so it does not get a panel of its own or a heading. The
   same muted weight as the sub-lines it governs, going full-strength only when it is on — the same
   rule `.lt-combine.on` already uses, so "this is switched on" looks the same everywhere. */
.lt-advrow{display:flex;justify-content:flex-end;margin:0 0 6px}
.lt-adv{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);cursor:pointer}
.lt-adv:has(input:checked){color:var(--ink);font-weight:600}
.lt-adv:has(input:checked) .muted{font-weight:400}
.lt-adv input[type=checkbox]{width:15px;min-width:15px;height:15px;flex:0 0 auto;margin:0;padding:0;
  cursor:pointer}
/* A phone has no hover, so the title attribute cannot be the only explanation. The sentence after
   the dash is always on screen; it is the hover text's first clause, kept short enough to sit on
   the same line on a desktop and to wrap under it on a phone. */
@media (max-width:640px){
  .lt-advrow{justify-content:flex-start}
  .lt-adv{flex-wrap:wrap}
}


/* ---- 0252 — THE GAPS BAR, AND WHAT WAS JUST FILLED IN (v3.651.0) -----------------------------
   Darren: *"there should be an alert or a button at the top that lets us know there's additional
   information that can be updated… it fills in the extra details and maybe highlights what it's
   filled in. That was blank before, so we can see what it's done."*

   IT READS AS AN OFFER, NOT AS A FAULT. The same 3px left border and quiet tint as `.enq-sug`
   ("looks like somebody we know"), which is the existing pattern for "we found something, do you
   want it" — and deliberately NOT `.edge-excl`, the orange one, which means something is wrong.
   Nothing is wrong with a record that has blanks in it.

   The ask-only variant drops to the muted border, because "there are three things to look at" is a
   smaller claim than "we can fill four of these in right now".
   ------------------------------------------------------------------------------------------- */
.gapbar{ display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  border-left:3px solid var(--accent); background:var(--panel-2);
  border-radius:var(--r); padding:10px 14px; margin:0 0 12px; }
.gapbar-ask{ border-left-color:var(--line); }
.gapbar-say{ flex:1 1 260px; min-width:0; font-size:13.5px; line-height:1.5; }
.gapbar-from{ color:var(--muted); font-weight:400; }
.gapbar-acts{ display:flex; gap:8px; flex:0 0 auto; }
.gapbar-msg{ flex:1 1 100%; margin:0; }
@media (max-width:640px){ .gapbar-acts{ flex:1 1 100%; } }

/* The bar inside the form, where the decision is made. Sticky, because the form scrolls and a
   Save button that scrolls away is the fault 0256 fixed on the booking sheet — the same mistake
   twice would be careless. */
.gapform{ position:sticky; top:0; z-index:4;
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  border-left:3px solid var(--accent); background:var(--panel);
  border-bottom:1px solid var(--line); border-radius:var(--r) var(--r) 0 0;
  padding:10px 14px; margin:0 0 14px; box-shadow:0 6px 16px rgba(0,0,0,.06); }
.gapform-say{ flex:1 1 240px; min-width:0; font-size:13.5px; line-height:1.5; }
.gapform-acts{ display:flex; gap:8px; flex:0 0 auto; }
.gapform-msg{ flex:1 1 100%; margin:0; }

/* A box we just put something into. A tinted ground and a coloured edge rather than a border swap,
   so the box does not change size and the fields below it do not shift down the page when four of
   them light up at once. */
.gap-new{ background:var(--ok-bg,rgba(46,160,67,.10)) !important;
  box-shadow:inset 0 0 0 1px var(--ok,#2ea043); }
.gap-newlab>span:first-child::after{ content:' \2713 filled in'; color:var(--ok,#2ea043);
  font-size:11px; font-weight:600; letter-spacing:.02em; }

/* ---- ONE RATE FOR THE WHOLE CREW (0210, v3.581.0) --------------------------------------------
   The combine tick is a sub-line under the name it qualifies, on the parent grid's own columns so
   the label sits under Type name and the reason under Simpro labour rate — an unaligned sub-line
   reads as a second, unrelated form, which is the lesson `.lt-extra` above already learned. Marked
   in the accent rather than a colour of its own: it is the row that prices most of the work, and
   it should look like the important one when it is on. */
.lt-combine{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr auto 34px;gap:10px;
  align-items:center;margin:2px 0 0}
.lt-combine label{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);
  cursor:pointer;min-width:0}
.lt-combine label b{color:var(--ink)}
.lt-combine input[type=checkbox]{width:15px;min-width:15px;height:15px;flex:0 0 auto;margin:0;
  padding:0;cursor:pointer}
.lt-combine-why{font-size:var(--fs-xs);color:var(--muted);min-width:0;overflow-wrap:anywhere}
.lt-combine.on label{color:var(--ink);font-weight:600}
.lt-row.is-combined .lt-name{font-weight:700}
/* The rollup line in the labour table: ruled off above, so it reads as a total rather than as an
   eleventh labour type somebody could assign a person to. */
tr.lt-total>td{border-top:2px solid var(--line);padding-top:9px}
tr.lt-total>td:first-child{font-weight:700}
@media(max-width:640px){
  .lt-combine{grid-template-columns:minmax(0,1fr);gap:2px}
  /* v3.1110.0 (30 September 2026) — ON A PHONE THE TICK GOES UNDER, not beside. Four columns across
     390px gave "Office / non-billable" its whole width (it is `auto` and nowrap) and left the type name
     and the Simpro rate 60px each: the name read "Appre", and the rate dropdown was an arrow with 17px
     for "— not mapped —". Name and rate share the top line; the tick has the line under them. */
  /* The rate gets the larger share: a name is typed and scrolls in its box, a dropdown's label does not. */
  .lt-head,.lt-row{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr) 34px}
  .lt-head>span:nth-child(3){display:none}
  .lt-row>.lt-del{grid-column:3;grid-row:1}
  .lt-row>.lt-office{grid-column:1 / 3;grid-row:2}
}
/* ---- FIVE TYPES SHOULD READ AS A LIST OF FIVE (v3.451.0) -----------------------------------
   Each type is a row plus its (usually empty) extras line, and with 6px above and below each of
   those the two halves of one type were as far apart as two different types. Grouping the pair
   visually — one hairline between types, a hover tint over the whole pair — is what turns it back
   into a list. `.lt-row` is a grid, so the separator goes on the row and the extras sit inside it. */
.lt-row{margin:0;padding:6px 0 4px;border-bottom:1px solid var(--line)}
.lt-row:last-of-type{border-bottom:0}
.lt-row:hover{background:var(--panel-2)}
@media (max-width:820px){
  .lt-extra{grid-template-columns:1fr auto;gap:6px}
  .lt-xalso{text-align:left;grid-column:1/-1}
  .lt-extra .lt-xfactor{min-width:0}
}

/* ---- BELOW COST IS A TICK, NOT A WALL (v3.449.0) -------------------------------------------------
   The row stays in the table and stays readable — it is the one somebody most needs to see. Tinted
   rather than struck through, with the confirming tick beside the negative markup it is confirming,
   because a tick at the far end of the row is a tick nobody connects to the number. */
.lr-under td{background:color-mix(in srgb,var(--danger) 7%,transparent)}
.lr-under-lab{display:block;margin-top:3px;font-size:11.5px;font-weight:700;color:var(--danger);
  white-space:nowrap;cursor:pointer}
.lr-under-lab input{margin-right:3px;vertical-align:-1px}
/* Which target a preview row is: "also this rate" for a second cost centre, "1.5× time and a half"
   for an overtime one. The 1× primary carries none — labelling the normal case is noise. */
.lr-tag{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;font-size:11px;
  font-weight:700;background:var(--panel-2);color:var(--muted);white-space:nowrap}
.lr-tag-ot{background:var(--blue-lt);color:var(--blue-dark-ink)}

/* ---- MULTI-TICK AND MERGE ON THE ENQUIRY BOARD (v3.448.0) ----------------------------------------
   The bar appears only when something is ticked, so it is allowed to be visually loud — it is never
   there when it is not needed. `enq-picked` tints the ticked rows so the count and the list agree at
   a glance even after the filter has moved. */
.enq-tickcol{width:34px;text-align:center;padding-left:8px;padding-right:0}
.enq-tickcol input{width:17px;height:17px;cursor:pointer;vertical-align:middle}
.enq-picked{background:var(--tint)}
.enq-pickbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px;
  padding:9px 12px;border:1px solid var(--blue);border-radius:10px;background:var(--tint)}
.enq-pickn{font-size:13.5px;margin-right:2px}
.enq-pickpick{padding:5px 8px;border:1px solid var(--line);border-radius:8px;font:inherit;
  font-size:var(--fs-sm);background:var(--panel);color:inherit}
.enq-picksep{flex:1 1 12px;min-width:12px}
.enq-pickbar .save-status{flex-basis:100%;margin:0;font-size:var(--fs-sm)}
/* v3.1137.0 (3 October 2026) — Darren, with "Move to…" open on this bar: "This is also doing the rapid
   expansion/contraction thing." Measured in Chromium: choosing a stage wrote "Working…" into an EMPTY status line
   (`#enquiries-body .save-status:empty` is 0 high), so the bar grew a line under the open list and the whole table
   below jumped — 0.35 of the screen at 900px wide — then the bar went and everything jumped back. The line now keeps
   its height whether it says anything or not, the two selects keep one width each (the owner list arriving late
   or a long stage name no longer re-flows the row), and the bar stays put after a bulk move to say what it did. */
#enquiries-body .enq-pickbar .save-status,#enquiries-body .enq-pickbar .save-status:empty{min-height:1.35em;line-height:1.35}
.enq-pickbar .enq-pickpick{flex:0 0 auto;width:12.5em;max-width:100%;text-overflow:ellipsis}
.enq-pickbar.is-done .enq-pickpick{opacity:.55}
/* The merge chooser: the survivor list reads as sentences, and the preview sits under it so the
   consequence is visible while the choice is still open. */
.mg-card{max-width:600px}
.mg-opts{display:flex;flex-direction:column;gap:6px;margin:10px 0;max-height:44vh;overflow-y:auto}
.mg-opt{display:flex;gap:10px;align-items:flex-start;padding:9px 11px;cursor:pointer;
  border:1px solid var(--line);border-radius:9px}
.mg-opt.sel{border-color:var(--blue);background:var(--tint)}
.mg-opt input{margin-top:3px}
/* 0622 — the tick column. An UNTICKED row is dimmed rather than hidden: it stays readable, because
   the reason it is out is the name written on it, and a row that vanished on a mis-click would be
   hard to get back on a ten-row list. It is never dimmed past legibility for the same reason. */
.mg-opt.mg-out{opacity:.55}
.mg-opt.mg-out .mg-who{font-weight:500;text-decoration:line-through;text-decoration-thickness:1px}
.mg-opt input.mg-in{accent-color:var(--blue)}
/* The keeper's tick is on and fixed, so it reads as a statement rather than an offer. */
.mg-opt input.mg-in:disabled{cursor:default;opacity:.75}
/* 0638 — "we can see this and a customer cannot". Deliberately quiet: it sits beside ordinary
   working content, and a red banner over half a page teaches people to stop reading it. The left
   rule is what makes it scannable when several are on one screen. */
.staff-only{border-left:3px solid var(--line);padding:2px 0 2px 10px;margin:8px 0}
.staff-only > :last-child{margin-bottom:0}
.staff-only-tag{display:inline-block;font-size:11px;letter-spacing:.02em;text-transform:uppercase;
  color:var(--muted);background:var(--tint);border:1px solid var(--line);border-radius:999px;
  padding:1px 8px;margin:0 0 4px}
/* 0636 — the viewer switch on "What a customer sees", and the one line that says what it changes. */
.wm-as{padding:0;margin:12px 0 0}   /* 0667 — now inside the heading panel, which has its own padding */
.wm-diff{margin:10px 0 0;font-size:13.5px;color:var(--muted)}
.wm-diff b{color:inherit}
.mg-bulk{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 0}
.mg-bulk .hint{margin:0}
/* v3.1198.0 — the one-line legend over the chooser's rows: the square is "Include", the circle is "Keep this one"
   (Jarryd: "What is the difference between the square tick box and the circle tick box?"). Drawn glyphs, not controls,
   set in from the left by the row's own border and padding so they sit over the column they name. */
.mg-legend{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;margin:10px 0 0;padding:0 12px;
  font-size:var(--fs-sm);color:var(--muted)}
.mg-legend-i{display:inline-flex;align-items:center;gap:7px;cursor:help}
.mg-legend-box,.mg-legend-dot{display:inline-block;flex:0 0 13px;width:13px;height:13px;box-sizing:border-box;
  border:1.5px solid var(--blue);background:var(--blue);position:relative}
.mg-legend-box{border-radius:3px}
.mg-legend-box::after{content:"";position:absolute;left:3px;top:0;width:4px;height:7px;
  border:solid var(--panel);border-width:0 2px 2px 0;transform:rotate(45deg)}
.mg-legend-dot{border-radius:50%;background:var(--panel)}
.mg-legend-dot::after{content:"";position:absolute;inset:2px;border-radius:50%;background:var(--blue)}
.mg-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.mg-who{font-weight:600;word-break:break-word}
.mg-what{font-size:var(--fs-sm);word-break:break-word}
.mg-meta{font-size:12.5px;color:var(--muted)}
.mg-preview{margin:10px 0 0;padding:9px 11px;border-left:3px solid var(--blue);
  background:var(--tint);border-radius:0 8px 8px 0;font-size:13.5px}
.mg-keep{margin:0 0 4px}
.mg-moves{margin:4px 0 6px} /* 0283 — what a merge moves, per kind */
.dir-sqleft{margin:6px 0;padding-left:18px;font-size:var(--fs-sm)} /* 0283 — archived, still on Squarespace */
.mg-warn{margin:6px 0 0;padding-left:18px;font-size:var(--fs-sm)}
.mg-warn li{margin:3px 0}
/* The partner picker (v3.453.0): the enquiries for this customer, each a whole button, because the
   press means "these two are the same job" and a target the size of one word is how somebody presses
   the wrong row. Closed ones stay in the list — the commonest real duplicate is one somebody closed
   to tidy the board — but they are dimmed at the edge so they read as history, not as live work. */
.sib-card{max-width:600px}
.sib-opts{display:flex;flex-direction:column;gap:6px;margin:10px 0;max-height:46vh;overflow-y:auto}
.sib-opt{display:flex;gap:10px;align-items:center;justify-content:space-between;width:100%;
  padding:9px 11px;text-align:left;cursor:pointer;font:inherit;color:inherit;
  border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.sib-opt:hover,.sib-opt:focus-visible{border-color:var(--blue);background:var(--tint)}
.sib-opt.sib-closed{border-left:3px solid var(--muted)}
.sib-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.sib-subject{font-weight:600;word-break:break-word}
.sib-what{font-size:var(--fs-sm);word-break:break-word}
.sib-meta{font-size:12.5px;color:var(--muted)}
.sib-go{flex:0 0 auto;font-size:12.5px;font-weight:600;color:var(--blue-ink);white-space:nowrap}
@media (max-width:560px){
  .sib-opt{flex-direction:column;align-items:flex-start;gap:6px}
}
@media (max-width:640px){
  .enq-pickbar{gap:6px}
  .enq-picksep{display:none}
}

/* ---- "THIS WAS NEVER AN ENQUIRY" — THE CHOOSER (v3.447.0) ----------------------------------------
   Radios that read as sentences, the recommended one preselected and outlined so the safe press is
   the obvious one.

   `.enq-junk` was the paragraph that held the bin button on the detail screen. v3.451.0 moved that
   button onto the record's one footer line (`.enq-bar-r`, which is what now keeps it quiet and
   last), so the rule is kept only for the chooser's own layout and no longer positions anything on
   the record. */
.na-card{max-width:520px}
.na-what{margin:0 0 12px;padding:8px 10px;background:var(--tint);border-radius:8px;word-break:break-word}
.na-opts{display:flex;flex-direction:column;gap:6px;margin:0 0 12px}
.na-opt{display:flex;gap:10px;align-items:flex-start;padding:9px 11px;cursor:pointer;
  border:1px solid var(--line);border-radius:9px}
.na-opt.sel{border-color:var(--blue);background:var(--tint)}
.na-opt input{margin-top:3px}
.na-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.na-label{font-weight:600;word-break:break-word}
.na-hint{font-size:12.5px;color:var(--muted)}
.na-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.enq-junk{margin-top:18px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}

/* v3.446.0 — Delivered work drawn inside Consultant KPIs: its own tab bar and date window are hidden
   (the KPI screen's window drives it); the standalone #stats page carries a "moved" note. */
.kpi-embed>.panel.wide:first-child{display:none}
.kpi-moved{margin-bottom:12px}
.kpi-moved .linkbtn{font:inherit;font-weight:700}

/* ================================================================================================
   THE ENQUIRY RECORD, REDESIGNED (v3.451.0)
   ------------------------------------------------------------------------------------------------
   Darren, 7 Sep 2026: *"This is a very inefficient use of space. The alignment's not very good.
   There are buttons kind of in the middle. I feel like the summary should go at the top. I feel like
   the owner, next thing to do, and by when could all squeeze into one row."*

   All four complaints came from ONE cause, and it was here rather than in the markup: every field on
   that panel was a `<label>` with no rule of its own, so it laid out as an inline block that grew to
   the panel's full width and pushed the next field onto its own line. Eleven fields, eleven lines,
   a screen and a half of scrolling — and the Save button wherever the fields happened to stop.

   So the fix is two grids and a footer:
     * `.enq-next` — owner | next action | by when | Save, on one row, Save aligned to the BOTTOM of
       the inputs rather than the top of the row (`align-items:end`), which is what makes a mixed row
       of labelled fields and a bare button read as one row instead of a stagger.
     * `.enq-two`  — notes and tags side by side; two half-width boxes instead of two full-width ones
       is a screenful saved on its own.
     * `.enq-bar`  — one line at the foot for everything that CHANGES the record, so nothing that
       does is stranded between two fields.

   `.enq-f` is the shared field wrapper and is what actually fixes the alignment: `display:flex` +
   `column` puts the caption above its box and lets `min-width:0` stop a long placeholder from
   forcing the grid wider than its column. Every box inside stretches to the column, so the tops and
   bottoms of adjacent fields line up whatever is in them.

   Colours are all tokens (`--line`, `--panel-2`, `--tint`, `--muted`, `--blue`), so dark mode
   follows without a second block. */
.enq-rec{display:flex;flex-direction:column;gap:12px}
/* The bands are already spaced by the flex gap; kill the inherited paragraph margins that would
   otherwise double it up. */
.enq-rec>p,.enq-rec>div,.enq-rec>details{margin:0}
/* ================================================================================================
   THE ENQUIRY RECORD, RE-BANDED (v3.522.0)
   ================================================================================================
   Darren, 9 Sep 2026: the chips at the top right, the record wider, the statuses smaller, labels on
   the company and the contact, the notes bigger, tags at the bottom. */

/* *"we make it wider and bigger so we can fit more on there"* — capped like the booking sheet, and
   for the same two reasons: 90% of an ultrawide is unreadable across, and the scrim has to stay
   visible as the way out. The BODY scrolls, so the close button never scrolls away. */
.sheet-rec{max-width:min(94vw,1700px)}
.sheet-rec .sheet-body{max-height:calc(100vh - 150px);overflow:auto}
@media (max-width:900px){
  .sheet-rec{max-width:none}
  .sheet-rec .sheet-body{max-height:none;overflow:visible}
}

/* IDENTITY LEFT, CHIPS RIGHT. The band was a column of three lines with a third of the panel empty
   beside it — *"I feel like we're not using the top section of this page efficiently."* */
.enq-rec-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;
  flex-wrap:wrap}
.enq-rec-id{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 320px}
/* ---- THE RIGHT-HAND COLUMN CARRIES BOTH NOW (v3.527.0) --------------------------------------
   Darren, of the empty area under the chips: *"Lots of space up here to put owner, next date and
   next step."* Measured: the band was 176px tall and this column held one 45px row, so two thirds
   of the widest part of the record was empty. The chips, then the fields. */
.enq-rec-nav{flex:1 1 520px;max-width:100%;display:flex;flex-direction:column;align-items:flex-end;
  gap:10px;min-width:0}
/* The chips sit right and wrap upward rather than stretching: a nav that filled the row would push
   the identity into a column 200px wide. */
.enq-rec-nav .enq-jump{justify-content:flex-end;margin:0}

/* *"Nice, small, succinct, easy to follow."* Uppercase, 10.5px, the muted colour — a label has to be
   readable and must not compete with the thing it labels. */
.enq-lbl{display:flex;align-items:baseline;gap:8px;font-size:10.5px;letter-spacing:.09em;
  text-transform:uppercase;color:var(--muted);font-weight:700;margin-top:6px}
.enq-rec-id>.enq-lbl:first-child{margin-top:0}
.enq-chg{font-size:11px;letter-spacing:0;text-transform:none;font-weight:600}

/* The two pickers: in the flow, opened by a press, and narrow enough that they do not reflow the
   band around them. */
.enq-chgbox{margin:4px 0 2px;padding:8px 10px;background:var(--grey-light);
  border:1px solid var(--line);border-radius:var(--r);max-width:520px}
.enq-chgbox input,.enq-chgbox select{width:100%;padding:7px 9px;border:1px solid var(--line);
  border-radius:6px;font:inherit;background:var(--panel);color:var(--ink)}
.enq-chglist{display:flex;flex-direction:column;gap:4px;margin:6px 0}
/* 0198 — the way out when there is nobody by that name. Separated from the hits above it by a
   rule, because pressing it is a different KIND of act from picking one of them. */
/* v3.544.0 — the bookings are just past the edge of the fortnight this screen opens on, and it
   says so with a way to get there. Loud enough to be seen on an otherwise empty calendar. */
/* v3.546.0 — the day view's extra pair: a week forward, a week back. Separated from the day
   buttons by a gap so the two units read as two things. */
.bkg-calweek{display:inline-flex;gap:4px;margin-left:10px;padding-left:10px;
  border-left:1px solid var(--line)}
.bkg-calbeyond{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0;
  padding:10px 12px;border-left:3px solid var(--blue);background:var(--panel-2,transparent);
  border-radius:6px}
.enq-mkco{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 0;padding-top:8px;
  border-top:1px solid var(--line)}
.enq-cohit{justify-content:flex-start;text-align:left}
/* v3.1198.0 — every match, in a box that scrolls (Jarryd: "I need to be able to see all of the options"). Tall enough for
   about eight rows; the rest are a wheel away, and the count above says how many there are. */
.enq-cohits-n{margin:0 0 2px}
.enq-cohits-list{display:flex;flex-direction:column;gap:4px;max-height:min(340px,46vh);overflow-y:auto;
  overscroll-behavior:contain;padding:2px 4px 2px 0}
.enq-cohits-list .enq-cohit{flex:0 0 auto}
/* The box asks two questions now (0193) — who it is addressed to, and who else is copied — so its
   two halves need a rule between them and the tick list needs to scroll rather than push the Save
   button off the bottom of a nineteen-contact company. */
.enq-chgbox .enq-f{margin:0 0 8px}
/* v3.1202.0 — the quiet "Saved. Undo" line in a box that saves itself (Bec: "Remove the need to click Save, Cancel, or Done"). */
.enq-said{margin:6px 0 0;min-height:1.4em;font-size:var(--fs-sm)}
.enq-said .enq-undo{margin-left:4px}
.enq-also-pick{border-top:1px solid var(--line);padding-top:8px;margin:0 0 6px}
.enq-alsolist{display:flex;flex-direction:column;gap:2px;margin:4px 0 0;max-height:210px;
  overflow-y:auto}
.enq-alsoone{display:flex;align-items:flex-start;gap:8px;font-size:var(--fs-sm);font-weight:500;
  padding:3px 2px;border-radius:5px;cursor:pointer}
.enq-alsoone:hover{background:var(--panel)}
.enq-alsoone input{width:auto;margin:2px 0 0;flex:0 0 auto}
.enq-alsoone .hint{font-size:11.5px}
/* The primary contact stays in the list, greyed, with the reason beside them: a name that silently
   disappears from a list of the company's people reads as data loss. */
.enq-alsoprim{opacity:.7;cursor:default}
.enq-alsoprim:hover{background:transparent}
/* ---- WHO ELSE IS COPIED, ON THE FACE OF THE RECORD (0193) ---------------------------------- */
/* Under the primary contact, not inside the box: whether the site manager is on this enquiry's
   email decides whether anybody rings them, and a fact you have to open a box to see is a fact
   nobody checks. */
.enq-also{margin:2px 0 0;font-size:12.5px;color:var(--muted);display:flex;gap:8px;
  flex-wrap:wrap;align-items:baseline}
.enq-alsolab{font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;font-weight:700}
/* ---- AND WHERE, IN THE SAME BAND (v3.525.0) -------------------------------------------------
   *"The selected site should go to the top with the customer and the contacts."* Same treatment as
   the "Also copied" line, because it is the same kind of fact: identity, not detail. */
.enq-where{margin:4px 0 0;font-size:12.5px;color:var(--muted);display:flex;gap:8px;
  flex-wrap:wrap;align-items:baseline}
.enq-wherelab{font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;font-weight:700}
.enq-where .linkbtn{font-size:12.5px;font-weight:600}
/* ---- WHO OWNS IT AND WHAT IS NEXT, IN BAND 1 (v3.527.0) -------------------------------------
   Darren: *"That should be up the top and not take up so much room. Be in line with customer and
   contacts and site at the top."*

   v3.725.0 — AN ORPHAN CLOSING BRACE SAT HERE, with no selector and no opening one above it.
   Harmless in
   a browser (a stray close brace at the top level is discarded) and invisible for that reason, but
   it is a declaration block that was deleted leaving its punctuation behind — and it made a brace
   count over this file read one short, which is how it was finally noticed. The rule it belonged
   to is `.enq-next` and `.enq-next-top`, both alive further down; this was only the leftover. */

/* WHAT THEY ASKED FOR — clamped, with a way past the clamp. See the note in app.js: the clamp with
   no expander was not shortening the text, it was hiding it. */
.enq-wants{margin:0}                    /* see the note on .enq-ai — the record's gap governs */
.enq-wants-lbl{margin-top:8px}
.enq-wants-more,.enq-wants-edit{font-size:11px;letter-spacing:0;text-transform:none;font-weight:600}
.enq-wants-ed{margin:6px 0 0;max-width:900px}
.enq-wants-ed textarea{width:100%;padding:9px 11px;border:1px solid var(--line);
  border-radius:var(--r);font:inherit;background:var(--panel);color:var(--ink);resize:vertical}

/* The notes, the full width and ten rows deep (v3.522.0). */
.enq-notes-f textarea{min-height:190px}

.enq-rec-who{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0}
.enq-rec-why{margin:0}
/* What they asked for, in their words: context for the brief under it, not the thing to read — so it
   is clamped to two lines and quieted rather than given the whole panel. */
/* ---- THE LINE BREAKS ARE THEIRS (v3.556.0) --------------------------------------------------
   Darren, with a screenshot of a twelve-deep reply chain as one unbroken wall of text: *"I don't
   think we should remove whole line breaks. I feel like empty lines we should bunch up, but this is
   a bit ridiculous."*
   `pre-wrap` keeps every newline and still wraps long lines; the blank-line bunching is done in
   `public/quotedtext.js`, because "how many blank lines" is a decision and not a style. */
/* ---- THE CLAMP HAS TO CUT ON A LINE (v3.588.0) -------------------------------------------
   Screenshotted, then reproduced in a bare page to be sure it was not ours: the clamp works, and
   `overflow:hidden` CLIPS AT THE PADDING BOX — so on a padded element the third line bleeds into
   the bottom padding and is sliced through the middle. It reads as a rendering fault, not as
   shortened text, and `max-height` arithmetic cannot fix it because the padding IS the space the
   extra line is using.
   So: the tint and the padding live out here, and the clamp is on the inner box with no padding of
   its own, where the clip edge is the end of line two exactly, at any font size. */
.enq-rec-wants{margin:0;color:var(--ink);background:var(--tint);border-radius:8px;padding:8px 10px;
  font-size:var(--read-body);line-height:1.5}
.enq-wants-cut{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;white-space:pre-wrap;word-break:break-word}
/* The quoted thread, once somebody has asked for it: never clamped (they asked to see it), scrolls
   inside its own box so eleven replies cannot push the rest of the record off the screen.
   NO `display` HERE (v3.588.0). It carried `display:block`, which is a class rule and therefore beat
   the `hidden` attribute — see the note at the top of this file. It is a `<div>` now, so block is
   what it does anyway, and the one thing this rule must not do is decide whether it is on screen. */
.enq-wants-quoted{-webkit-line-clamp:none;max-height:40vh;overflow-y:auto;
  white-space:pre-wrap;word-break:break-word;
  margin-top:6px;color:var(--muted);font-size:12.5px}
/* THE WAY PAST THE CLAMP (v3.522.0). `line-clamp` with `overflow:hidden` does not shorten text, it
   deletes it from the screen — so anything past two lines was invisible with nothing saying so.
   `Show all` puts this class on THE OUTER BOX (that is the element the handler holds), so the rule
   reaches through to the inner one that carries the clamp. */
.enq-rec-wants.enq-wants-open{max-height:40vh;overflow-y:auto}
.enq-rec-wants.enq-wants-open .enq-wants-cut{display:block;-webkit-line-clamp:none;
  overflow:visible}
.enq-rec .enq-reach{margin:0}

/* ================================================================================================
   THE TRAVEL BLOCK ON A QUOTE (0220, v3.591.0)
   ================================================================================================
   WRITTEN BECAUSE THE FIRST SCREENSHOT SHOWED WHY. The expense rows are a tick, a name and an
   amount, three times over, and with no rule of their own they laid out on browser defaults: the
   ticks and names ran along one line and the amount boxes wrapped onto the next, so "Accommodation"
   sat above a box belonging to "Hire car fuel". On a form whose whole purpose is that an expense
   does not get missed, a layout that pairs the wrong box with the wrong label is the bug.
   (Same fault class as `.qline` having no rule at all in v3.459.0, and as h3/h4 having no size in
   v3.588.0: a value nobody set is not a decision.)
   TWO PER ROW, each one an atomic [tick] [name] [amount] — and one per row on a phone, because
   guessing which box belongs to which expense is exactly what this must never make somebody do. */
.qtv-exp{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:10px 0 0}
.qtv-e{display:grid;grid-template-columns:auto minmax(0,1fr) 8.5rem;align-items:center;gap:8px;
  font-weight:600;font-size:13.5px;margin:0}
.qtv-e input[type=checkbox]{margin:0;width:15px;min-width:15px;height:15px;cursor:pointer}
.qtv-e input[type=number],.qtv-e input[type=text],.qtv-e input:not([type]){margin:0;width:100%}
.qtv-e-lab{min-width:0;overflow-wrap:anywhere}
/* The one row whose name is itself a field — the policy's own catch-all. */
.qtv-e-lab input{font-weight:600}
@media(max-width:760px){ .qtv-exp{grid-template-columns:minmax(0,1fr)} }
/* WHAT CAME BACK. A table, because every line is a figure with a reason and the reasons are the
   point: a $540 allowance nobody can explain is a $540 discount waiting to happen. */
.qtv-res{margin:10px 0 0}
.qtv-tbl{width:100%;border-collapse:collapse;margin:6px 0}
.qtv-tbl td{padding:7px 0;border-top:1px solid var(--line);vertical-align:top}
.qtv-tbl td.num{text-align:right;white-space:nowrap;padding-left:14px;font-variant-numeric:tabular-nums}
.qtv-tbl tr:first-child td{border-top:0}
/* An unpriced line is not a quiet one: it is the thing this form exists to stop being forgotten. */
.qtv-un td{background:color-mix(in srgb,var(--warn,#b45309) 8%,transparent)}
.qtv-un td.num{color:var(--warn,#b45309)}
.qtv-total{margin:8px 0 0;font-size:var(--fs-md)}
.qtv-probs{margin:8px 0 0;padding-left:18px}
.qtv-probs li{margin:0 0 4px;color:var(--warn,#b45309)}
/* 0303, v3.674.0 — the travel policy's pre-send checklist. The `ask` items are the panel; the ones
   the figures already answered collapse into a <details> summary, because a wall of ticks is what
   trains people to skip the whole thing and the one that gets missed (accommodation) would be the
   eighth green line of ten. Tokens only, so it reads in both themes. */
.qtv-ck{margin:10px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;
  background:var(--card,transparent)}
.qtv-ck-h{margin:0 0 6px}
.qtv-ck-ask{margin:0;padding-left:18px}
.qtv-ck-ask li{margin:0 0 6px;color:var(--warn,#b45309)}
.qtv-ck-ask li.qtv-ck-named{font-size:15px}
.qtv-ck-ok{margin:0;color:var(--good,#047857)}
.qtv-ck-rest{margin:8px 0 0}
.qtv-ck-rest summary{cursor:pointer;font-size:var(--fs-sm);color:var(--grey)}
.qtv-ck-rest ul{margin:6px 0 0;padding-left:18px}
.qtv-ck-rest li{margin:0 0 3px;font-size:var(--fs-sm)}

/* ---- ONE FIELD, ALIGNED WITH ITS NEIGHBOURS ------------------------------------------------- */
.enq-f{display:flex;flex-direction:column;gap:4px;min-width:0;font-weight:600;font-size:13.5px}
.enq-f>input,.enq-f>select,.enq-f>textarea{width:100%;padding:9px 11px;border:1px solid var(--line);
  border-radius:var(--r);font:inherit;font-weight:400;background:var(--panel);color:var(--ink)}
.enq-f>textarea{resize:vertical;min-height:88px}
.enq-f>input:focus,.enq-f>select:focus,.enq-f>textarea:focus{outline:2px solid var(--accent);
  outline-offset:1px}
.enq-f>.hint{font-weight:400}
.enq-tag-hint{font-weight:400;font-size:var(--fs-xs)}

/* ---- BAND 3: OWNER · NEXT THING TO DO · BY WHEN · SAVE, ON ONE ROW -------------------------- */
/* The owner column takes an EMAIL ADDRESS, so it is sized for one: at 160px
   "darren@platinumconsultants.com.au" rendered as "darren@platinumconsultants." and the one field
   on the row that says who owns this could not be read. */
.enq-next{display:grid;grid-template-columns:minmax(240px,1.2fr) minmax(220px,2fr) 152px auto;
  gap:10px;align-items:end}
.enq-next .enq-f-date{grid-column:auto}
.enq-f-date>input{min-width:0}
/* ---- AND THE BAND-1 VARIANT OF IT (v3.527.0) -----------------------------------------------
   Darren: *"Lots of space up here to put owner, next date and next step."* — so the row above is
   also drawn in the right-hand column of the identity band, narrower.

   IT MUST FOLLOW `.enq-next`, and this is the second thing MEASURING caught. Both selectors are one
   class, so they have equal specificity and the LATER one wins the whole `grid-template-columns`
   shorthand. Declared before it, this rule was silently ignored and the base rule's `minmax(240px,
   …) minmax(220px, …)` floors were still in force — 670px of tracks plus 24px of gaps inside a
   660px row, so the tracks overflowed and Save was pushed 40px off the edge of the card. The
   MINIMUM is what has to give in a narrow row, so this variant sets `minmax(0, …)`.

   `min-width:0` on the fields as well: `minmax(0,1fr)` protects the TRACK, and a text input carries
   a min-content width of its own that overflows the track it sits in. */
.enq-next-top{width:100%;max-width:660px;margin:0;gap:8px;
  grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) 152px auto}
.enq-next-top .enq-f{font-size:var(--fs-xs);min-width:0}
.enq-next-top .enq-f>input,.enq-next-top .enq-f>select{padding:6px 8px;font-size:var(--fs-sm);
  min-width:0;width:100%}
.enq-next-top .enq-autosave{padding:6px 12px}
@media(max-width:700px){
  .enq-next-top{grid-template-columns:1fr 1fr;max-width:none}
  .enq-next-top .enq-autosave{grid-column:1/-1}
}

/* Beside the last field it saves — not in the middle of the page. */
/* 0548, v3.823.0 — WAS `.enq-save`, THE BUTTON. Darren's list, item 5: *"Enquiries auto-save."*
   The button is gone and the slot that answers the same question sits in the same cell, so the rule
   keeps its place in the grid and only changes its name. Not bold, not coloured at rest: it is a
   reassurance, and a reassurance that shouts is one people learn to stop reading. */
.enq-autosave{align-self:end;white-space:nowrap;font-size:var(--fs-xs);color:var(--muted);font-weight:600}
.enq-autosave.saving{color:var(--accent-ink)}
.enq-autosave.error{color:var(--danger);white-space:normal}
/* The owner control is a picker plus a hidden fallback input (see the note at its call site), so
   the wrapper carries the field styling and its inner labels inherit it. `:not(.hidden)` because
   `.hidden` is `display:none !important` and the fallback must stay hidden until it is wanted. */
.enq-f-owner{gap:0}
.enq-f-owner label:not(.hidden){display:flex;flex-direction:column;gap:4px;min-width:0;
  font-weight:600;font-size:13.5px}
.enq-f-owner label+label{margin-top:6px}
.enq-f-owner input,.enq-f-owner select{width:100%;padding:9px 11px;border:1px solid var(--line);
  border-radius:var(--r);font:inherit;font-weight:400;background:var(--panel);color:var(--ink)}
.enq-f-owner .hint{font-weight:400}

/* ---- BAND 4: NOTES AND TAGS, SIDE BY SIDE -------------------------------------------------- */
.enq-two{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}

/* ---- BAND 5: ONE FOOTER LINE FOR EVERYTHING THAT CHANGES THE RECORD ------------------------ */
.enq-bar{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;padding-top:10px;
  border-top:1px solid var(--line)}
.enq-bar-g{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
/* The quiet doors sit right, away from the status moves, so "Never an enquiry" cannot be mistaken
   for a more important button than "Won". */
.enq-bar-r{margin-left:auto}
.enq-lose{max-width:560px}
.enq-hist>summary{cursor:pointer;font-weight:600}
/* An empty status line is a 20px hole between the footer bar and the through-line on every open of
   the record, which is most of them. It comes back the moment it has something to say — `:empty`
   stops matching as soon as text is written into it — and an aria-live region that is hidden while
   empty still announces what lands in it. */
.enq-rec .save-status:empty{display:none}

@media(max-width:900px){
  .enq-next{grid-template-columns:1fr 1fr;align-items:end}
  .enq-next .enq-autosave{grid-column:1 / -1;justify-self:start}
  .enq-two{grid-template-columns:1fr}
}
@media(max-width:560px){
  .enq-next{grid-template-columns:1fr}
  .enq-bar-r{margin-left:0;flex-basis:100%}
}

/* ================================================================================================
   POSSIBLE DUPLICATES — ONE PANEL PER SET (v3.451.0)
   ------------------------------------------------------------------------------------------------
   Darren, 7 Sep 2026: *"when deduping, it's ticked a whole heap of items, but not all of them are
   duplicates of all the others. They have other duplicates, but 28 shouldn't merge together because
   they're very different."*

   Exactly right, and the old screen invited it: the route handed back one flat list of every id in
   every set and the button ticked all of them, so one press proposed merging 28 unrelated rows into
   one. There is now no flat list to tick — each set is its own card with its own Merge button, and
   the CSS is what makes that legible: a card per set, its rows indented under a header that says WHY
   those rows are grouped (same sender and subject, or same number minutes apart) and which one is
   kept. */
.enq-dupes .dupe-set{border:1px solid var(--line);border-radius:var(--r);padding:10px 12px;
  margin:10px 0;background:var(--panel-2)}
.dupe-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
/* The reason the rows are together, said on the card rather than in the paragraph above it. */
.dupe-kind{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;
  color:var(--blue-ink);background:var(--tint);border-radius:999px;padding:2px 9px;white-space:nowrap}
.dupe-kind.dupe-phone{color:var(--ok,#1a7f47);background:rgba(26,127,71,.10)}
.dupe-from{min-width:0;overflow-wrap:anywhere}
.dupe-n{margin-left:auto;white-space:nowrap}
.dupe-head .btn{flex:0 0 auto}
.dupe-rows{list-style:none;margin:8px 0 0;padding:0 0 0 10px;display:flex;flex-direction:column;
  gap:4px;font-size:var(--fs-sm);border-left:2px solid var(--line)}
.dupe-rows li{overflow-wrap:anywhere}
.dupe-id{font-variant-numeric:tabular-nums}
@media(max-width:700px){ .dupe-n{margin-left:0} }

/* ================================================================================================
   OUR EMAIL FOOTER, ON A SCREEN (v3.451.0)
   ------------------------------------------------------------------------------------------------
   Darren: *"is there a way for us to set what our email footer is going to be (the signature)?"*

   The box and the preview side by side, because the whole point of the panel is that you can see
   what a `<b>` did without sending yourself an email. The preview renders the SERVER'S OWN HTML —
   which is mail markup, inline styles and all — so `.sig-prev-box` sets a white ground and a serif-
   free stack and then leaves it alone; anything more would style the preview into disagreeing with
   the mail. `all:revert` on its children is deliberately NOT used: the inline styles the server
   writes are the ones the customer's client will honour, and this is meant to look like that. */
.sig-two{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start;margin-top:8px}
.sig-edit{min-width:0}
.sig-prev{min-width:0;display:flex;flex-direction:column;gap:6px}
.sig-prev-h{font-weight:600;font-size:13.5px}
/* v3.1156.0 (9 October 2026) — a footer variable in the editing box: a shaded chip showing its value, saved as {{variable}}. */
.sig-var{display:inline-block;background:var(--accent-soft,var(--b-50));border:1px solid var(--line);border-radius:4px;padding:0 4px;line-height:1.4}
.sig-prev-box{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;
  overflow-x:auto;color:#231F20;font:14px/1.5 var(--font)}
.sig-built{margin-top:2px}
.sig-built>summary{cursor:pointer;font-size:var(--fs-sm);color:var(--muted)}
/* WHERE THE FOOTER IN USE CAME FROM. Neutral for the built-in and the server's, blue for "yours" —
   the one state where editing the box below changes what customers see. */
.sig-src{margin-left:auto;font-size:11.5px;font-weight:700;text-transform:uppercase;
  letter-spacing:.03em;color:var(--muted);background:var(--panel-2);border:1px solid var(--line);
  border-radius:999px;padding:3px 10px;white-space:nowrap}
.sig-src-own{color:var(--blue-ink);background:var(--tint);border-color:var(--blue)}
@media(max-width:860px){ .sig-two{grid-template-columns:1fr} }

/* ================================================================================================
   THE LABOUR-RATE PREVIEW TABLE, COMPRESSED AND ALIGNED (v3.451.0)
   ------------------------------------------------------------------------------------------------
   Darren, 7 Sep 2026: *"this layout isn't hitting properly. Can you please compress it and align it
   so that it lines up with the way it's supposed to? Also, we can't see the editable cell rate very
   well."*

   THE CAUSE WAS INHERITANCE, not this table. It carries `class="editable"` for the input styling
   and that class brings the asset grid's column sizing with it, out of theme.css:

       table.editable, .ag-items          { table-layout:fixed; width:100% }
       table.editable th.r, td.r          { width:96px }
       table.editable th:last-child       { width:52px }     <- meant for a row's ✕ button
       table.editable th                  { text-align:right }

   With a fixed layout and five of eight columns pinned at 96px, every spare pixel fell to the one
   unsized column — the checkbox — which is the hand's width of nothing after the tick. Markup, the
   widest text on the table, is the LAST column here, so it was allocated 52px and clipped. And
   right-aligned headings over left-aligned text is the misalignment itself.

   THE FIX IS ID-SCOPED (`#lr-preview-box`). theme.css loads after this sheet, so a class-only rule
   here loses on load order no matter how many classes are stacked — an id beats any class-only rule
   regardless of order. Same trap, same fix, as the credit-note Status column above.

   `table-layout:auto` is the compression: eight columns of known short content size themselves
   better than any set of percentages, and the horizontal scrollbar goes with it. */
#lr-preview-box .lr-table{table-layout:auto;width:100%}
#lr-preview-box .lr-table th,
#lr-preview-box .lr-table td{padding:7px 10px;font-size:13.5px;vertical-align:middle}
/* Headings follow their column's data — text left, numbers right. This is the alignment fix. */
#lr-preview-box .lr-table th.lr-c-type,
#lr-preview-box .lr-table th.lr-c-rate{text-align:left}
#lr-preview-box .lr-table td.lr-c-type,
#lr-preview-box .lr-table td.lr-c-rate{text-align:left}
#lr-preview-box .lr-table th.lr-c-tick,
#lr-preview-box .lr-table td.lr-c-tick{width:34px;text-align:center;padding-left:8px;padding-right:0}
#lr-preview-box .lr-table th.lr-c-tick input,
#lr-preview-box .lr-table td.lr-c-tick input{width:17px;height:17px;cursor:pointer;vertical-align:middle}
/* The two text columns share the slack; everything else is content-width. */
#lr-preview-box .lr-table th.lr-c-type,#lr-preview-box .lr-table td.lr-c-type{width:22%}
/* ONE COLUMN CLAIMS THE SLACK. With `table-layout:auto` a width is a hint and spare space is shared
   out across every column in proportion — which is why, sized individually, a 90px gap opened up
   between Sell and Markup and the last column sat marooned against the right edge. `width:100%` on
   the one column that should stretch is the standard way to say "give the leftovers to this one";
   the rest then hold the widths below. */
#lr-preview-box .lr-table th.lr-c-rate,#lr-preview-box .lr-table td.lr-c-rate{width:100%}
#lr-preview-box .lr-table th.lr-c-n,   #lr-preview-box .lr-table td.lr-c-n{width:56px;white-space:nowrap}
#lr-preview-box .lr-table th.lr-c-m,   #lr-preview-box .lr-table td.lr-c-m{width:88px;white-space:nowrap}
#lr-preview-box .lr-table th.lr-c-sell,#lr-preview-box .lr-table td.lr-c-sell{width:120px}
/* Markup is the LAST column and needs its width back from the ✕-button rule. */
#lr-preview-box .lr-table th.lr-c-mk,  #lr-preview-box .lr-table td.lr-c-mk{width:126px;white-space:nowrap}
/* The below-cost tick lives under the negative markup it confirms, so it follows that column's
   right alignment instead of spanning the cell with the box stranded at the far left. */
#lr-preview-box .lr-under-lab{display:flex;align-items:center;justify-content:flex-end;gap:4px}
/* THE TICK NEEDS ITS OWN SIZE (2026-09-10). `table.editable input{width:100%}` is written for the
   text boxes this table is full of, and it caught this checkbox too: 100% of the label resolved to
   109px, so a 109px-wide checkbox plus its text needed twice the cell, and with `justify-content:
   flex-end` the surplus overflowed LEFT — the box drew itself on top of the Sell input in the
   column beside it. Every other checkbox in this table is sized explicitly (`.lr-c-tick input`);
   this one was the one that was missed. `flex:0 0 auto` alone does not save it, because the basis
   comes from that same `width`. */
#lr-preview-box .lr-under-lab input[type=checkbox]{margin:0;flex:0 0 auto;
  width:15px;min-width:15px;height:15px;padding:0;cursor:pointer}
#lr-preview-box .lr-scroll{max-height:420px}
/* The new cost is the figure the whole panel exists to show, so it stays bold and coloured — up is
   the danger colour because a rise is what somebody has to decide about. Classes, not inline
   styles, so dark mode can move them. */
.lr-newcost{font-weight:700}
.lr-up{color:var(--danger)}
.lr-down{color:var(--ok)}
.lr-arrow{color:var(--muted);padding:0 3px}
.lr-mult.lr-neg{color:var(--danger);font-weight:700}

/* ---- THE ONE CELL THAT IS TYPED IN, MADE TO LOOK LIKE IT ------------------------------------
   *"we can't see the editable cell rate very well."* It was a 100px inline width inside a flex cell
   with `min-width:0`, so it shrank until "150" rendered as "15C" — and `table.editable input` gives
   it a 1px line the same colour as the table's own gridlines, which on a striped row is invisible.
   So: a fixed, non-shrinking box, a real border, a white ground that does not take the row stripe,
   and tabular figures so a column of them lines up digit for digit. */
#lr-preview-box .lr-sellcell{display:flex;align-items:center;justify-content:flex-end;gap:2px}
#lr-preview-box .lr-sellcell .money-prefix{flex:0 0 auto;color:var(--muted);font-weight:700}
#lr-preview-box input.lr-sell{flex:0 0 auto;width:82px;min-width:82px;text-align:right;
  padding:6px 8px;font-size:13.5px;font-weight:600;font-variant-numeric:tabular-nums;
  border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--ink)}
#lr-preview-box input.lr-sell:focus{border-color:var(--blue);outline:2px solid var(--accent);
  outline-offset:1px;background:var(--panel)}
/* Hide the spinners: they steal a third of an 82px box and nobody nudges a charge-out rate by 1. */
#lr-preview-box input.lr-sell::-webkit-outer-spin-button,
#lr-preview-box input.lr-sell::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
#lr-preview-box input.lr-sell{-moz-appearance:textfield;appearance:textfield}

/* ================================================================================================
   WHO THE CHANGE REACHES — TWO CARDS, ONE OF WHICH HAS TO BE PICKED (v3.451.0)
   ------------------------------------------------------------------------------------------------
   Darren: *"They should be side by side, and they should show as something that needs to be
   selected before you can continue."*

   The choice was already required in code — both push buttons stay dead and the server refuses the
   push without it — and nothing on the screen said so until somebody pressed a dead button. So the
   waiting state is drawn: a dashed, tinted surround and a "Pick one" chip on the question while it
   is unanswered, both of which come off the moment either card is chosen. Cards are equal-width and
   pressable anywhere; the radios stay real so the keyboard and a screen reader still work. */
.lr-scope-opts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lr-scope-opt{display:flex;gap:10px;align-items:flex-start;padding:11px 13px;cursor:pointer;
  border:1px solid var(--line);border-radius:10px;background:var(--panel);min-width:0}
.lr-scope-opt:hover{border-color:var(--blue)}
.lr-scope-opt input{margin-top:3px;flex:0 0 auto}
.lr-scope-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.lr-scope-body b{font-size:14px;line-height:1.3}
.lr-scope-body .muted{font-size:12.5px;line-height:1.45}
.lr-scope-opt.sel{border-color:var(--blue);border-width:2px;padding:10px 12px;background:var(--tint)}
/* THE WAITING STATE. Dashed, because dashed reads as "not filled in yet" everywhere else in the
   app, and it goes the instant a card is chosen. */
.lr-scope.lr-scope-need{border:1px dashed var(--warn);border-radius:12px;padding:12px 14px;
  background:color-mix(in srgb,var(--warn) 5%,transparent)}
.lr-req{display:none;margin-left:8px;font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.04em;color:#fff;background:var(--warn);border-radius:999px;padding:2px 9px;
  vertical-align:2px}
.lr-scope-need .lr-req{display:inline-block}
#lr-scope-warn{color:var(--danger);margin:8px 0 0}
#lr-scope-warn:empty{margin:0}
@media(max-width:820px){ .lr-scope-opts{grid-template-columns:1fr} }

/* ================================================================================================
   ONE PIPELINE — THE STATUSES AND THE RECORD-DRIVEN STAGES, ON ONE SCREEN (v3.452.0)
   ------------------------------------------------------------------------------------------------
   Darren: *"The inquiry board needs to link and connect to the built-in statuses as a through line…
   Those statuses can't be removed that are built-in but we should be able to change the colours of
   them."*

   The set-up screen is now two kinds of row in one list, and they behave differently: a stage has no
   Remove button and cannot be chosen from a dropdown. A row that looks identical to its neighbour
   and then refuses to be pressed reads as a bug, so the difference is drawn — a chip on every row
   saying who moves it, and the stage's `needs` line under its label. */
.es-legend{display:flex;flex-direction:column;gap:4px;margin:10px 0 8px;font-size:12.5px;
  color:var(--muted)}
.es-legend-i{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.es-chip{flex:0 0 auto;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;
  border-radius:999px;padding:2px 8px;white-space:nowrap;border:1px solid transparent}
.es-chip-hand{color:var(--blue-ink);background:var(--tint);border-color:var(--blue)}
.es-chip-stage{color:var(--muted);background:var(--panel-2);border-color:var(--line)}
.es-chip-end{color:var(--ok);background:var(--panel-2);border-color:var(--line)}
/* The name column holds the label AND, on a stage, what it is waiting for — so it is a column
   rather than a cell, and the row's grid gives it the slack. */
.es-name{display:flex;flex-direction:column;gap:2px;min-width:0}
.es-needs{font-size:11.5px;color:var(--muted);line-height:1.4}
/* ---- WHY A ROW HAS NO REMOVE (v3.558.0) -----------------------------------------------------
   Darren: *"If some of these are marked as yours, why can't I remove them?"* Five rows had no
   button and no sentence. This sits exactly where the Remove would be, so the eye that goes
   looking for the button finds the answer instead of a gap — and it is deliberately QUIET rather
   than a warning: nothing is wrong, this row is simply part of the machinery. The full reason is
   its title, because three words in a table cell cannot carry it and a paragraph per row would
   bury the two rows that CAN be removed. */
.es-kept{flex:0 0 auto;font-size:11px;color:var(--muted);white-space:nowrap;
  border:1px dashed var(--line);border-radius:999px;padding:2px 8px;cursor:help}
/* A stage is quieter than a status somebody owns: it is a fact being reported, not a field. */
.es-row.es-stage{background:var(--panel-2)}
/* v3.1110.0 — on a phone the row wraps: colour, name, chip, the arrows and "set by the records" in one
   unbroken line were 5px wider than a 390px screen, so the whole page scrolled sideways. */
@media (max-width:640px){.es-row{flex-wrap:wrap}}

/* ---- THE THROUGH-LINE, DRAWN FROM THAT LIST -------------------------------------------------
   `--pill` is the status's own colour, coming off the same list the set-up screen edits, so a
   recolour there lands here. Three states: reached, not reached, and WHERE IT IS NOW — the third
   was missing, and a row of ticks with no "you are here" cannot answer the question the panel is
   titled after. `tl-hand` marks one of the operator's own statuses, which ticks by being passed
   rather than by evidence. */
.tl-step.tl-on .tl-mark{color:var(--pill,var(--blue))}
/* ---- SOLID AGAIN, AND THE OLD OBJECTION TO SOLID IS HANDLED (v3.588.0) ---------------------
   The rule that was here said why "where it is now" was a RIM and not a fill (0181, 8 Sep):
   *"Solid meant the label went white and the status's own `--pill` colour became the background,
   so a pale custom colour made the text unreadable and the tick invisible."* That was true and it
   is still true — a pale yellow status with white text on it is unreadable, and the operator picks
   these colours themselves on Set-up → The enquiry pipeline, so any of them can be pale.
   But the rim lost the other argument twice: Darren, 9 September, *"The one that is highlighted
   isn't as bold and obvious as I would like it."*
   BOTH ARE SATISFIED BY MIXING THE FILL TOWARD THE INK COLOUR rather than using it raw. The
   status keeps its hue — the strip still agrees with the board and the set-up screen — and the
   fill is guaranteed dark enough for white text however pale the chosen colour is. CSS cannot
   measure contrast, so this does not try to: it removes the case instead of detecting it.
   The shape, size and lift live in theme.css beside the rest of the epaulette. */
.tl-step.tl-now{background:color-mix(in srgb,var(--pill,var(--orange)) 74%,#231F20);
  color:#fff}
.tl-step.tl-now .tl-lab,.tl-step.tl-now .tl-mark{color:#fff}
/* v3.588.0 — a whisper, not a barber's pole. At 7% over 5px it was the loudest thing in the strip
   on the screenshot, across two whole steps; the point is only to say "no record behind this". */
.tl-step.tl-hand{background-image:repeating-linear-gradient(135deg,
  transparent 0 7px,color-mix(in srgb,var(--ink) 4%,transparent) 7px 14px)}

/* ---- AND WHAT HAS NOT HAPPENED YET, WITH THE REASON ----------------------------------------
   Darren's call was "evidence only, AND SAY SO". A stage nobody can press has to explain itself or
   the first person who looks for it in "Move it to" concludes it is broken. */
.tl-pending{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;margin:8px 0 0;
  padding-top:8px;border-top:1px dashed var(--line)}
.tl-pending-h{font-size:var(--fs-xs);font-weight:700;color:var(--muted);white-space:nowrap}
.tl-pend{font-size:var(--fs-xs);color:var(--muted);border-left:3px solid var(--pill,var(--line));
  padding-left:7px}
.tl-pend b{color:var(--ink);font-weight:600}

/* ---- THE SAME LIST, INSIDE THE "?" (v3.493.0) ----------------------------------------------
   Darren, 8 Sep 2026: *"we don't need the explanation. I thought I told you to put that in a ?"*
   It is the same markup in a 260px dark bubble now, so: stack it, drop the dashed rule (the bubble
   IS the separation), and take the colours off `--muted`/`--ink`, which are dark-on-light and
   invisible on the bubble's blue. */
.help-pop .tl-pending{display:block;margin:8px 0 0;padding-top:8px;
  border-top:1px solid rgba(255,255,255,.25)}
.help-pop .tl-pending-h{display:block;color:#fff;white-space:normal;margin-bottom:4px}
.help-pop .tl-pend{display:block;color:rgba(255,255,255,.82);margin:3px 0}
.help-pop .tl-pend b,.help-pop .tl-pend .hint{color:#fff}

/* ---- WHERE THIS IS UP TO, NOW A TOP-AREA PANEL (v3.493.0) ----------------------------------
   Darren: *"I think that all this should go to the top area."* It reads as one of the bands of the
   record rather than as a footnote under it, so it gets the band's own spacing instead of the
   run-on margin a trailing panel inherits. */
.enq-upto{margin-top:10px}

/* ---- THE SUBJECT, AS A TITLE RATHER THAN A FIELD (0161, v3.452.0) --------------------------
   Darren: *"every inquiry should have a title or subject that AI puts in to begin with, and a human
   can override it if they have more info."*

   Drawn as the title it is: no caption, large text, a borderless box that only shows its edges on
   hover and focus — so a record with a good subject reads as a headline, and one without reads as
   an invitation rather than an empty form field. The mark underneath says where the current one
   came from, because "the AI guessed this" and "somebody decided this" are different levels of
   trust and the person about to correct it should know which they are looking at. */
.enq-subject{display:flex;flex-direction:column;gap:1px;min-width:0;margin:0}
/* ---- THE PENCIL SITS BESIDE THE TITLE, NOT UNDER IT (0220, v3.593.0) ------------------------
   Darren: *"The pencil next to remote training should be to the right side of remote training, or
   just not at all, potentially."*

   It is the "set by <name>" hover mark (v3.588.0) and it was costing a whole line of its own under
   the title, which is exactly what that release moved it off the page to avoid.

   ONLY THE QUIET MARK GOES INLINE. The other two states of this slot carry a SENTENCE — "Suggested
   — correct it if you know better", "No subject yet" — and a sentence beside a full-width input is
   a squashed input on a laptop. `:has()` picks out the one-character case and leaves the other two
   stacked, so this is a rule about the pencil rather than about the slot. */
.enq-subject:has(> .enq-subject-who){flex-direction:row;align-items:center;gap:8px}
.enq-subject:has(> .enq-subject-who) > input{flex:1 1 auto;min-width:0}
.enq-subject > .enq-subject-who{flex:0 0 auto;line-height:1}

/* Whether we hold this person, under the person — moved out of the footer bar (0220, v3.593.0). */
.enq-indir{margin:4px 0 0}
.enq-subject>input{font:inherit;font-size:var(--fs-lg);font-weight:600;color:var(--ink);width:100%;
  padding:5px 8px;margin-left:-8px;border:1px solid transparent;border-radius:7px;
  background:transparent}
.enq-subject>input::placeholder{font-weight:400;color:var(--muted)}
.enq-subject>input:hover{border-color:var(--line)}
.enq-subject>input:focus{border-color:var(--blue);background:var(--panel);outline:2px solid var(--accent);
  outline-offset:1px}
.enq-subject-by{font-size:11.5px;color:var(--muted)}
/* A subject a PERSON set gets the blue rule — it is the one somebody is accountable for. */
.enq-subject-own>input{box-shadow:inset 3px 0 0 var(--blue)}
.enq-subject-ro{font-size:var(--fs-lg);font-weight:600;margin:2px 0 0}
/* The board's headline column. */
.enq-subj{display:block;font-size:14px;line-height:1.35}

/* ---- THE TICK ON A DEALT-WITH INBOX ROW (v3.453.0) -----------------------------------------
   Darren asked for *"a tick next to it or something, but essentially displays the way it normally
   would"*. So: the kind icon keeps its place and the tick sits over its corner, which marks the row
   without moving anything or taking a column. Green because that is what "handled" is everywhere
   else in the app, and small because it is a state, not a heading. */
.ib-kind{position:relative}
.ib-tick{position:absolute;right:-4px;bottom:-3px;width:15px;height:15px;border-radius:50%;
  background:var(--ok);color:#fff;font-size:10px;line-height:15px;text-align:center;font-weight:700;
  box-shadow:0 0 0 2px var(--panel)}

/* ---- "SOMETHING HAS HAPPENED" (0162, v3.453.0) ----------------------------------------------
   Darren asked for an "alert: updated" status. It is a pill BESIDE the status instead — if it
   replaced the status the row would stop saying *Waiting on them*, which is the fact that made the
   reply worth flagging. So it has to read as a second, louder thing rather than as the status
   itself: orange (the app's attention colour, and used nowhere else on this row), uppercase, and
   small enough that a board with six of them is still a board. */
.enq-alert{display:inline-block;font-size:10.5px;font-weight:800;text-transform:uppercase;
  letter-spacing:.05em;color:#fff;background:var(--orange,#E8630A);border-radius:999px;
  padding:2px 8px;vertical-align:1px;white-space:nowrap}
/* On the record it is a line of its own with the reason beside it, because there it IS the reason
   somebody is looking at the screen. */
.enq-alert-line{margin:4px 0 0;font-size:13.5px;display:flex;align-items:baseline;gap:8px;
  flex-wrap:wrap}

/* ================================================================================================
   OUR DETAILS, AND THE TEMPLATE VOCABULARY (v3.454.0)
   ================================================================================================
   Grouped sections rather than one column of twenty boxes, because twenty boxes in a column is a
   form nobody finishes. Two columns on a laptop, one on a phone, and the label carries its own
   source badge so a field that is coming from the server configuration cannot be mistaken for one
   somebody typed here. */
#od-panel .od-sec{margin:12px 0 0}
#od-panel .od-sec h4{margin:0 0 2px;display:flex;align-items:center;gap:8px}
.od-locked{font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  color:var(--muted);border:1px solid var(--line);border-radius:99px;padding:1px 8px}
/* The money section is set apart on purpose — it is the one somebody attacks. */
#od-panel .od-sec-bank{border-left:3px solid var(--orange)}
.od-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px 14px;
  margin:10px 0 0}
.od-f{display:flex;flex-direction:column;gap:3px;min-width:0}
.od-lab{font-size:12.5px;font-weight:600;color:var(--muted);display:flex;gap:6px;align-items:baseline}
.od-src{font-weight:500;font-size:11.5px;color:var(--muted);border:1px solid var(--line);
  border-radius:99px;padding:0 6px}
.od-f input{width:100%;min-width:0;padding:7px 9px;border:1px solid var(--line);border-radius:8px;
  font:inherit;background:var(--panel);color:inherit}
.od-f input:disabled{background:var(--bg);color:var(--muted)}
.od-why{font-size:12.5px;min-height:0}
/* A masked value is drawn as TEXT, never in a box — an editable box holding bullets invites
   somebody to save the bullets over the real account number. */
.od-masked{font-variant-numeric:tabular-nums;letter-spacing:.06em;padding:7px 9px;
  border:1px dashed var(--line);border-radius:8px;color:var(--muted);background:var(--bg)}
.od-warn{margin:8px 0 0;padding:8px 10px;border-left:3px solid var(--orange);background:var(--bg);
  border-radius:0 8px 8px 0;font-size:13.5px}
.od-head-act{margin-left:auto}
/* ---- READ WHAT THEY SENT (v3.462.0) ---------------------------------------------------------
   The evidence row under a scraped sender. `pre` because a signature IS its line breaks — reflowed
   into a paragraph, "Operations Manager / 0412 000 111 / acme.com.au" stops looking like a
   signature at all. Wrapped rather than scrolling: a long line in an email body is normal, and a
   horizontal scrollbar inside a table cell is a thing nobody finds. */
/* v3.463.0 — the merge door on a customer record. Deliberately quiet: it sits beside the pencil
   that edits a name, and it deletes a record for good, so it must not read as a peer of that. */
.dir-mergeco{vertical-align:middle;font-weight:600;opacity:.75}
.dir-mergeco:hover{opacity:1}
/* v3.1109.0 — deleting customers: the record's quiet Delete, and the tick column + bar on the
   search results. The tick cell is narrow and not a link; the bar sits above the table. */
.dir-delco{vertical-align:middle;font-weight:600;opacity:.75}
.dir-delco:hover{opacity:1}
/* 0283, v3.1113.0 — archived customers and contacts: the Archive/Unarchive button beside Delete, the badge a
   row carries when "Show archived" found it, and the banner under an archived customer's heading. Colours
   are the existing tokens, so both themes follow. */
.dir-archco{vertical-align:middle}
.dir-archived{display:inline-block;margin-left:6px;padding:0 6px;border-radius:999px;font-size:11px;font-weight:600;
  border:1px solid var(--line);color:var(--muted);text-transform:uppercase;letter-spacing:.03em;vertical-align:middle}
.dir-archived-banner{margin:6px 0 10px;padding:8px 10px;border-left:4px solid var(--line);background:var(--panel-2, transparent);
  color:var(--muted)}
.dir-tickh,.dir-tick{width:2.2em;text-align:center}
.dir-tick input{cursor:pointer}
.dir-tickbar{display:flex;flex-wrap:wrap;align-items:center;gap:.5em;margin:.25em 0 .5em}
.snd-read>td{background:var(--tint);border-top:0;padding:10px 12px 14px}
.snd-subj{margin:0 0 8px;font-size:var(--fs-sm)}
.snd-block{margin:0 0 10px}
.snd-block:last-child{margin-bottom:0}
.snd-h{display:block;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  color:var(--muted);margin:0 0 4px}
.snd-block pre{margin:0;padding:8px 10px;background:var(--panel);border:1px solid var(--line);
  border-radius:6px;font:12.5px/1.5 var(--font-mono);
  white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow-y:auto;color:var(--ink)}
.od-f-media{gap:6px}
.od-logo{max-width:200px;max-height:88px;object-fit:contain;background:var(--bg);
  border:1px solid var(--line);border-radius:8px;padding:6px}
.od-logo-none{display:flex;align-items:center;justify-content:center;height:60px;max-width:200px;
  font-size:var(--fs-sm);color:var(--muted);border:1px dashed var(--line);border-radius:8px}
.od-logo-act{display:flex;flex-wrap:wrap;gap:6px;align-items:center}

/* The variable helper. A reference, folded by default, so it never pushes the box somebody came to
   type in below the fold. The VALUE column is the point of the whole table — a name tells you what
   you may type, a value tells you what the customer will read. */
.od-fields{margin:12px 0 0}
.od-fields > summary{cursor:pointer;font-weight:600}
.od-tip{margin:6px 0 0;padding:8px 10px;border-left:3px solid var(--blue);background:var(--tint);
  border-radius:0 8px 8px 0;font-size:13.5px}
.odv-g{margin:12px 0 0}
.odv-g h5{margin:0 0 4px;font-size:12.5px;text-transform:uppercase;letter-spacing:.04em;
  color:var(--muted)}
.odv-t{width:100%;border-collapse:collapse;font-size:var(--fs-sm)}
.odv-t td{padding:4px 8px 4px 0;vertical-align:top;border-top:1px solid var(--line)}
.odv-name{font:600 12.5px/1.4 var(--font-mono);
  background:var(--tint);border:1px solid var(--line);border-radius:6px;padding:1px 6px;
  cursor:pointer;color:inherit;white-space:nowrap}
.odv-name:hover{border-color:var(--blue)}
.odv-copied{background:var(--tint);border-color:var(--ok);color:var(--ok)}
.odv-what{color:var(--muted)}
.odv-val{font-weight:600;word-break:break-word}
.odv-empty .odv-val{font-weight:400}
.odv-none,.odv-hidden{color:var(--muted);font-weight:400;font-size:12.5px}
@media (max-width:560px){
  .od-grid{grid-template-columns:1fr}
  .odv-t,.odv-t tbody,.odv-t tr,.odv-t td{display:block;width:100%}
  .odv-t tr{border-top:1px solid var(--line);padding:6px 0}
  .odv-t td{border-top:0;padding:1px 0;white-space:normal}   /* v3.1119.0: a stacked cell wraps (Inter sets wider) */
}

/* ================================================================================================
   THE ARRIVALS AWAITING A DECISION (v3.457.0)
   ================================================================================================
   One card per arrival. The MESSAGE is the biggest thing on it and the machine's opinion is a chip
   beside it, not a headline over it — the person's job here is to read what came in, and a confident
   label at the top does their thinking for them. */
/* ---- ATTACH PAST EMAILS TO CUSTOMERS (v3.466.0) ----------------------------------------------
   Two folders side by side on a wide screen, stacked on a phone. Each is a small card because each
   is a separate long-running job with its own place in the mailbox. */
.bf-folds{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;margin:12px 0 0}
.bf-fold{border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:var(--panel)}
.bf-fold.bf-done{background:var(--tint)}
.bf-fold>b{font-size:14px}
.bf-fold .bi-actions{margin:8px 0 0;display:flex;flex-wrap:wrap;gap:6px}
.bf-fold .btn{white-space:nowrap}

/* ---- DRAFT IT FOR ME (v3.465.0) --------------------------------------------------------------
   The options sit ABOVE the reply box, because you choose what the reply should do before you have
   anything to edit. Quiet: it is a row of small buttons under a label, not a panel — the reply box
   is still the thing on this screen, and a bordered card of AI controls above it would make the
   window look like it is about the AI. */
.rep-ai{margin:10px 0 12px;padding:10px 12px;background:var(--tint);border-radius:9px}
.rep-ai-h{display:block;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  color:var(--muted);margin:0 0 7px}
.rep-ai-btns{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.rep-ai-more{width:100%;margin:6px 0 0}
.rep-ai-more>summary{cursor:pointer;font-size:12.5px;color:var(--muted);font-weight:600}
.rep-ai-more[open]>summary{margin-bottom:6px}
.rep-ai-when{margin:8px 0 0;font-size:12.5px}
.rep-ai .btn[disabled]{opacity:.5;cursor:not-allowed}

/* ---- WHAT TO DO ABOUT IT (v3.465.0) ---------------------------------------------------------
   The one line on the row that is an INSTRUCTION rather than a description, so it is the one thing
   marked as such: a left rule in our blue and the label above it. It sits above the message body
   because its whole value is not having to read the body. */
.ia-next{margin:8px 0 10px;padding:9px 11px;background:var(--tint);
  border-left:3px solid var(--blue);border-radius:0 8px 8px 0;font-size:13.5px;line-height:1.5;
  color:var(--ink)}
.ia-next-h{display:block;font-size:10.5px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--blue-ink);margin:0 0 3px}
#ia-panel .ia-row{border:1px solid var(--line);border-radius:10px;padding:11px 13px;margin:10px 0;
  background:var(--panel)}
.ia-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.ia-kind{font-size:16px;line-height:1;flex:0 0 auto}
/* ---- THE RECORDING, UNDER THE MESSAGE (0243, v3.613.1) --------------------------------------
   Outside the "open the whole message" button on purpose — a player inside a button is a control
   inside a control. `width:100%` and `max-width:100%` because a bare <audio> takes its own
   intrinsic width (about 300px in Chromium) and would sit short of the column at every size, then
   overflow it on a phone. */
.ia-audio{display:flex;flex-direction:column;gap:4px;margin-top:8px;min-width:0}
.ia-audio audio{width:100%;max-width:100%;height:34px}
/* ---- WHICH WAY IT WENT (0213, v3.613.0) -----------------------------------------------------
   "We rang" in front of the name, on a row whose every other field is named for a sender. It has
   to read as a qualifier on the name rather than as part of it, so: quieter than the name, and its
   own little chip so it survives the name wrapping away from it at phone width. Uppercase-small
   rather than bold, because bold here would compete with the name it is qualifying. */
.ia-way{display:inline-block;font-size:10.5px;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:var(--muted);border:1px solid var(--line);border-radius:999px;
  padding:1px 6px;vertical-align:middle;white-space:nowrap}
.ia-who{min-width:0;word-break:break-word}
/* v3.477.0 — the verdict moved into the decision column, so it no longer pushes off the head line's
   right edge. Left-aligned there, above the advice it is a verdict about. */
.ia-verdict{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 0 auto}
/* 0366 — back on the head line (see the note in inboxaipanel.js). `margin-left:auto` right-aligns
   it against the sender; the head wraps, so at phone width it drops below the name instead of
   crushing it. */
@media(max-width:560px){.ia-verdict{margin-left:0}}
.ia-chip{font-size:var(--fs-xs);font-weight:600;border-radius:99px;padding:2px 9px;white-space:nowrap;
  border:1px solid var(--line)}
/* The five verdicts, coloured by what they would DO rather than by how sure they are — attaching and
   raising are ordinary work, archiving is the one that takes something off the list. */
.ia-existing{background:var(--tint);border-color:var(--blue);color:var(--blue-dark-ink,var(--blue))}
.ia-new,.ia-customer{background:var(--tint);border-color:var(--line)}
.ia-junk{background:var(--bg);border-color:var(--muted);color:var(--muted)}
.ia-unsure{background:var(--bg);border-color:var(--warn,var(--orange));color:var(--orange)}
.ia-none{background:var(--bg);border-style:dashed;color:var(--muted)}
.ia-conf{font-size:var(--fs-xs);color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
/* ================================================================================================
   THE MESSAGE ONE SIDE, THE DECISION THE OTHER (v3.477.0)
   ------------------------------------------------------------------------------------------------
   Darren, 8 Sep 2026: *"I feel like that can be at the top next to the title and 'From'. We just
   need to make this more compact and give more space to the email to read. Maybe you can put that
   panel to the right and have an email to the left, or put our stuff to the left and have an email
   to the right."*

   It was one column eleven blocks deep, and the WIDEST thing on it — the controls — was the part
   somebody looks at last. Now the message gets the wide left column and the decision a fixed 330px
   on the right. The email is on the left because it is the thing being READ, and a block of prose
   with its left margin two thirds across the screen is harder to read than the same block against
   the edge; it also matches the booking sheet (v3.476.0), where the thing you read is wide and left
   and the thing you fill in is narrow and right.

   THE MESSAGE GETS TWELVE LINES, not four. That is the whole of "give more space to the email to
   read": in a column of its own there is room, and the clamp exists to keep the LIST scannable
   rather than to save space it no longer needs.
   ================================================================================================ */
.ia-cols{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start;
  margin-top:8px}
.ia-mail{min-width:0}
.ia-decide{min-width:0;display:flex;flex-direction:column;gap:0}
/* The whole message block is one button: keyboard-reachable, announces itself, and looks like the
   text it contains rather than like a control. */
.ia-open{display:block;width:100%;text-align:left;background:none;border:0;padding:6px 8px;
  margin:0 0 0 -8px;font:inherit;color:inherit;cursor:pointer;border-radius:8px}
.ia-open:hover{background:var(--tint)}
.ia-open:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.ia-subject{display:block;margin:0 0 4px;font-weight:600;word-break:break-word}
/* Clamped, not truncated: the whole message is in the DOM and one press opens it. */
.ia-body{display:-webkit-box;margin:0;font-size:13.5px;color:inherit;white-space:pre-wrap;
  word-break:break-word;-webkit-line-clamp:12;-webkit-box-orient:vertical;overflow:hidden}
.ia-nobody{color:var(--muted);font-style:normal}
/* "Read it all" is the thing to press; an ellipsis is only a fact about the text. OUTSIDE the
   clamped block, or the clamp hides it. */
.ia-more{display:block;margin:5px 0 0;font-size:12.5px;font-weight:700;color:var(--blue-ink)}
@media(max-width:900px){
  /* No room for two columns, and the message goes on top — deciding without reading is the thing
     this screen exists to prevent. */
  .ia-cols{grid-template-columns:1fr}
  .ia-decide{border-top:1px solid var(--line);padding-top:10px}
}
.ia-why{margin:7px 0 0;font-size:var(--fs-sm);color:var(--muted);border-left:2px solid var(--line);
  padding-left:8px}
.ia-title{margin:6px 0 0;font-size:var(--fs-sm);color:var(--muted)}
/* ---- TIGHTER IN THE COLUMN THAN IT WAS ACROSS THE ROW (v3.477.0) --------------------------
   Darren: *"We just need to make this more compact."* Four stacked blocks of prose at 13px with
   7px between them was written for a full-width row; in a 330px column the same words are twice as
   many lines, so the leading and the gaps come in a notch. Nothing is removed — the verdict, the
   reasoning, the suggested title and the advice are all still there, which is the half of this
   screen that makes the automation correctable. */
.ia-decide .ia-next{margin:6px 0 0;font-size:12.5px;line-height:1.4}
.ia-decide .ia-why{margin:6px 0 0;font-size:12.5px;line-height:1.4}
.ia-decide .ia-title{margin:5px 0 0;font-size:12.5px;line-height:1.4}
.ia-decide .ia-findnote{margin:0}
.ia-decide .ia-msg{margin:4px 0 0}
.ia-acts{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:10px 0 0}
/* ---- FIVE ACTIONS IN A 330px COLUMN (v3.477.0) ----------------------------------------------
   MEASURED at 1400px: as a flex row the five buttons wrapped to five lines and set the height of
   the whole row — 514px for a six-line email, which is the opposite of *"make this more compact"*.
   A two-up grid puts them in three rows instead, and the two that carry a sentence rather than a
   label (the recommended one, and "Create a customer, the contact and the enquiry") take the full
   width rather than being squeezed to half of it.

   `white-space:normal` because a 155px button holding "Raise it against them" has to wrap; the
   default `nowrap` would push it out of its own column. */
.ia-decide .ia-acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
  align-items:stretch}
.ia-decide .ia-acts .btn{white-space:normal;text-align:center;justify-content:center;line-height:1.3}
/* 0370, v3.723.0 — Darren: *"no need to make this full size. Why isn't this archive button just
   kept the same size but made to be orange?"* Right: the orange fill is ALREADY what says "this is
   the recommended one", so spending a whole row on it says the same thing twice and pushes the
   button beside it onto a row of its own. Half width like the rest; the colour does the work. */
.ia-decide .ia-acts .btn.primary{grid-column:auto}
/* 0366 — `ia-wideact` no longer forces a full row. Every label on this row is under 28 characters
   now ("Create enquiry", "Archive and ignore these"), so the widening rule that existed for
   "Create a customer, the contact and the enquiry" would keep three of the four buttons full width
   for no reason. Darren: *"can be a half-size button."* */
.ia-decide .ia-acts .btn.ia-wideact{grid-column:auto}
/* The destructive one is an OUTLINE, not a fill: Darren asked for "a dark red outline or something
   just so that it looks more serious", and a solid red beside the orange primary would read as the
   loudest thing on a card whose loudest thing should be the recommendation. */
.ia-decide .ia-acts .btn.danger{background:transparent;color:var(--danger);
  border:2px solid var(--danger);font-weight:700}
.ia-decide .ia-acts .btn.danger:hover{background:var(--danger);color:#fff}
.ia-pick{min-width:0;flex:1 1 200px}
.ia-pick select{width:100%;max-width:100%;padding:6px 8px;border:1px solid var(--line);
  border-radius:8px;font:inherit;background:var(--panel);color:inherit}
/* ---- THE PICKER IS TYPED INTO (v3.474.0) -----------------------------------------------------
   Darren: *"this needs to be a search by customer, site, contact name. There could be hundreds in
   there."* A search box above the native select, and a line under it saying how many survived.

   `flex-basis:260px` rather than 200: the option labels now carry the customer, the contact and the
   site, and a 200px control shows about four words of that. On a phone the row wraps and it takes
   the full width, which is where a control somebody types into belongs. */
/* ---- ONE BOX, A REAL LIST, AND ATTACH BESIDE IT (0366, v3.721.0) ----------------------------
   Darren: *"We don't need a second line. We only need one box, and as you type, it expands... the
   attach button should be a little button to the right."*

   The input and the Attach press are one row; the list sits under them in the normal flow, so a
   phone can scroll it and nothing can clip it. `font:inherit` on the input AND the list, because a
   bare <input> takes the browser's own UI font — which is why the old box read in a different
   typeface from every other word on the card. */
.ia-pick2{display:flex;flex-direction:column;gap:4px;margin-top:8px;min-width:0}
.ia-pickrow{display:flex;gap:6px;align-items:stretch;min-width:0}
.ia-pickrow .ia-find{flex:1 1 auto;min-width:0;padding:7px 9px;font:inherit;line-height:1.3;
  border:1px solid var(--line);border-radius:8px;background:var(--panel);color:inherit}
.ia-pickrow .ia-find:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.ia-pickrow .ia-attach{flex:0 0 auto;white-space:nowrap;align-self:stretch}
/* The list. Rows are 44px minimum because that is what a finger needs — the picker this replaces
   was abandoned in v3.467.0 with text-height rows that could not be hit on a phone. */
.ia-list{list-style:none;margin:0;padding:4px;max-height:232px;overflow:auto;font:inherit;
  border:1px solid var(--line);border-radius:8px;background:var(--panel)}
.ia-list[hidden]{display:none}
.ia-list li{min-height:44px;display:flex;align-items:center;padding:6px 9px;border-radius:6px;
  cursor:pointer;line-height:1.35;font-size:var(--fs-sm);word-break:break-word}
.ia-list li:hover,.ia-list li.on{background:var(--tint)}
.ia-list li[aria-selected="true"]{font-weight:600}
.ia-findnote{font-size:var(--fs-xs);line-height:1.35}
.ia-row .ia-msg{margin:6px 0 0;font-size:var(--fs-sm);min-height:0}
/* The classifier being OFF is a sentence, not an absence — a screen that quietly does nothing is the
   worst version of this feature. */
.ia-off{margin:6px 0 0;padding:9px 11px;border-left:3px solid var(--orange);background:var(--bg);
  border-radius:0 8px 8px 0;font-size:13.5px}

/* What it did by itself. Folded, present whenever there is anything in it. */
.ia-did{margin:10px 0 0}
.ia-did > summary{cursor:pointer;font-weight:600}
.ia-didlist{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.ia-didlist li{display:grid;grid-template-columns:88px 1fr;gap:2px 10px;padding:7px 9px;
  border:1px solid var(--line);border-radius:8px;font-size:var(--fs-sm)}
.ia-didlist li.ia-auto{border-left:3px solid var(--blue)}
.ia-didwho{font-weight:600;color:var(--muted);font-size:var(--fs-xs)}
.ia-didwhat{font-weight:600}
.ia-didsub,.ia-didwhy{grid-column:2;color:var(--muted);font-size:12.5px;word-break:break-word}
@media (max-width:560px){
  .ia-verdict{margin-left:0;width:100%}
  .ia-acts .btn{flex:1 1 auto}
  .ia-didlist li{grid-template-columns:1fr}
  .ia-didsub,.ia-didwhy{grid-column:1}
}

/* ================================================================================================
   MY DETAILS (v3.480.0) — the person's own record, not the company's.
   Darren: *"support consultant should definitely not get access to setup except for their own
   details"*. Every field on this screen is either theirs to set or explicitly somebody else's, and
   the styling has one job: make which-of-the-two obvious at a glance rather than on a second read.
   ============================================================================================== */
.md-facts{display:flex;flex-direction:column;gap:10px;margin:10px 0 0}
.md-facts > p{display:grid;grid-template-columns:150px 1fr;gap:2px 12px;margin:0;
  padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:var(--bg)}
.md-facts > p > b{color:var(--muted);font-size:12.5px;text-transform:uppercase;letter-spacing:.03em}
.md-facts > p > span{word-break:break-word}
.md-facts > p > .hint{grid-column:2;font-size:12.5px}

/* Yes and no said in words as well as in colour — colour alone is not an answer to anybody who
   cannot see it, and this screen's whole point is telling somebody what they may do. */
.md-yes{color:var(--ok);font-weight:600}
.md-no{color:var(--muted);font-weight:600}

.md-areas{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;
  margin:10px 0 0}
.md-area{padding:11px 13px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.md-area-h{margin:0 0 6px;display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}
.md-area .hint{margin:4px 0 0;font-size:12.5px}

.md-caps{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:7px}
.md-caps li{padding:8px 11px;border:1px solid var(--line);border-left:3px solid var(--ok);
  border-radius:0 9px 9px 0;font-size:13.5px}
.md-caps-off li{border-left-color:var(--line);color:var(--muted)}
.md-more{margin:12px 0 0}
.md-more > summary{cursor:pointer;font-weight:600;color:var(--muted)}
@media (max-width:560px){
  .md-facts > p{grid-template-columns:1fr}
  .md-facts > p > .hint{grid-column:1}
}

/* ---- EXACT MATCH (v3.554.0) -----------------------------------------------------------------
   Darren: *"it would be good to have a tick box to say 'exact match'… as opposed to an 'any word' /
   part word search."* Beside the Search button, not under it: it changes what that button does. */
.dir-exact{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:var(--fs-sm);
  padding:0 4px;cursor:pointer}
.dir-exact input{margin:0}
.dir-exactwhy{margin:6px 0 0}

/* ---- A SAVE THAT WORKED SAYS SO (v3.556.0) --------------------------------------------------
   Darren: *"every time there's a save button and we click save, if it did work, something should
   come up to say 'saved' or 'save successful' or something."* Most screens have a `.save-status`
   beside the button and `saidSaved()` writes there; this is the fallback for the few that do not.
   Bottom-centre, above everything, and it fades rather than jumping. */
.saved-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(8px);
  background:var(--ink);color:var(--panel);padding:8px 16px;border-radius:999px;font-size:var(--fs-sm);
  font-weight:700;box-shadow:0 4px 16px rgba(0,0,0,.25);z-index:9999;pointer-events:none;
  opacity:0;transition:opacity var(--dur-2) var(--ease-out),transform var(--dur-2) var(--ease-out)}
.saved-toast.on{opacity:1;transform:translateX(-50%) translateY(0)}

/* ---- A CUSTOMER'S OWN SITES (0203, v3.569.0) -------------------------------------------------
   Darren: *"I want this to be a proper address field that can go in as a site, so they can create
   their own sites and we don't have to create them all the time."* A list, not a form per row: the
   thing somebody scans is "which of these is the one I mean", so the name leads, the address sits
   under it in the muted colour, and the two buttons stay hard right on one line. */
.cs-list{list-style:none;margin:8px 0 4px;padding:0;display:grid;gap:8px}
.cs-row{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);
  border-radius:var(--r);background:var(--panel-2);padding:10px 12px}
.cs-what{flex:1 1 auto;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
.cs-what b{font-size:15px}
.cs-addr,.cs-note{flex:1 1 100%;min-width:0;color:var(--muted);font-size:var(--fs-sm);line-height:1.4}
.cs-note{font-style:italic}
.cs-tz{font-size:11.5px}
.cs-main{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;
  color:var(--ok);border:1px solid currentColor;border-radius:999px;padding:0 6px}
.cs-acts{flex:0 0 auto;display:flex;gap:6px;align-items:center;white-space:nowrap}
/* The add/edit form is the same two-column grid the staff site editor uses, so the four address
   boxes line up the way they do everywhere else in the product. */
.cs-edit{margin:8px 0 4px}
@media(max-width:640px){
  .cs-row{flex-direction:column;gap:8px}
  .cs-acts{align-self:stretch}
  .cs-acts .btn{flex:1 1 auto}
}

/* ---- CONTACT PLATINUM: RING US, WRITE TO US (v3.573.0) --------------------------------------
   Darren: *"I want it to have a button where it calls us directly from the website."* The call
   block sits at the top of the panel because it is what somebody in trouble wants first; the
   message form is under it. On a call the block turns into a status line and a hang-up, so the
   panel never shows "call us" and "you are on a call" at once. */
.mk-call{border:1px solid var(--line);border-radius:var(--r);background:var(--panel-2);
  padding:10px 12px;margin:8px 0 12px}
.mk-call .bi-actions{margin:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mk-call .hint{margin:6px 0 0}
.mk-oncall{border-color:var(--ok);background:color-mix(in srgb,var(--ok) 8%,transparent)}
.mk-callnow{margin:0 0 6px}
.mk-tel{white-space:nowrap;font-weight:600}
.mk-h{margin:12px 0 2px}

/* ---- A MESSAGE FROM BEFORE THE APP EXISTED (v3.574.0) ---------------------------------------
   auth.js runs ahead of app.js, so `hAlert` is not there yet and a native dialog is not allowed
   (housemodal.js says why: it ignores the theme, announces the domain, and on a phone it is a
   system sheet with nothing to do with the page). One banner, at the top, dismissible — it is
   information rather than a decision, and it must not sit over the app it is announcing. */
.boot-notice{position:fixed;left:50%;transform:translateX(-50%);top:12px;z-index:9999;
  display:flex;align-items:flex-start;gap:10px;max-width:min(640px,92vw);
  background:var(--panel,#fff);color:var(--ink,#111);border:1px solid var(--warn,#B26B00);
  border-left-width:4px;border-radius:var(--r,10px);padding:10px 12px;
  box-shadow:0 6px 24px rgba(0,0,0,.18);font-size:14px;line-height:1.45}
.boot-notice-x{background:none;border:0;cursor:pointer;font-size:18px;line-height:1;
  padding:0 2px;color:var(--muted,#667)}

/* ---- THE CUSTOMER'S OWN PAGE USES THE ROOM (fixed v3.576.0) ---------------------------------
   Darren: *"In the customer details area we are still wrapping when we don't need to."*

   MEASURED in headless Chromium at 1600px: every lead and hint on this page wrapped at **638px**
   inside a panel **1552px** wide — 41% of the width used, and two-sentence captions running to
   three lines. It is `.panel > p{max-width:var(--measure)}` again: 82ch, and `ch` is a unit of the
   element's own font, so a 12.5px hint comes out narrower still.

   That 82ch rule is right for an ARTICLE. This is a FORM: every paragraph on it is one or two
   sentences captioning the field underneath, and a caption that wraps to three lines beside a
   half-empty panel costs the row its height twice over for nothing. The enquiry screen lifted the
   measure in v3.494.0 and the customer record in v3.568.0, both for exactly this; this is the
   third and last of the dense screens still on the reading measure.

   The button row goes with them — `.bi-actions` is a paragraph of buttons, and there is no reading
   measure for a button. */
#custdetails-body .panel > p,
#custdetails-body .panel > .lead,
#custdetails-body .panel > .hint,
#custdetails-body .panel > .bi-actions,
#custdetails-body .cd-warn,
#custdetails-body label small.hint,
#custdetails-body .panel .lead{max-width:none}

/* ---- 0214 (v3.620.0) — "THIS QUOTE PRICES THAT BOOKING" -------------------------------------
   It sits next to the enquiry chip on a quote row, and two identical chips side by side are two
   things a person has to read to tell apart. The accent tint marks it as the newer, narrower link:
   the enquiry chip says which JOB, this one says which piece of work. Border only — a filled chip
   here would outweigh the status column beside it, which is what somebody is actually scanning.

   MEASURED, AND THE FIRST ATTEMPT FAILED DARK: `color:var(--accent-ink)` is 3.94:1 on the dark panel,
   and this chip is 10.5px — normal text, so the floor is 4.5. The TEXT keeps the chip's own ink
   (which already passes in both themes) and only the BORDER carries the accent. A border is a UI
   component, not text: its floor is 3:1, which 3.94 clears. Light is 5.82 either way. */
.chip.sm.q-onbook{border-color:var(--accent)}

/* ---- 0256 (v3.625.0) — A SHEET'S ACTIONS IN ITS TITLE ROW -----------------------------------
   Darren: *"Can we put this up the top right in the title area that is currently not being used?"*
   `.sheet-head` is space-between with a title at one end and a × at the other, so a wide sheet has
   a whole empty row in the middle while the presses that finish the job sit below a scrolling body.
   EMPTY BY DEFAULT, so every other sheet is untouched — only one that moves its actions in gets a
   row here. `margin-left:auto` pushes them to the right, hard against the ×; wrapping is allowed
   because four buttons and a status line do not fit beside a long title on a narrow sheet, and
   wrapping under the title is better than either overflowing or squeezing the title to nothing. */
.sheet-headacts:empty{display:none}
.sheet-headacts{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-left:auto}
.sheet-headacts .bs-acts{margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.sheet-headacts .bs-msg{margin:0;font-size:var(--fs-xs)}
/* A hint that explained a disabled button ("Choose the site above…") is a sentence, and a sentence
   in a row of buttons pushes them off the line. Given its own full-width row under them. */
.sheet-headacts .bs-needsite,.sheet-headacts .bs-offlinenote{flex:1 0 100%;text-align:right}

/* ================================================================================================
   0262 — BRAND MARKS ON THE BUTTONS THAT CONNECT (v3.643.0)
   ================================================================================================
   Darren: *"Can we not use the Xero icon, the MYOB icon, the QBO icon, and for Simpro, the Simpro
   icon in the buttons that we use for import / export?"*

   THE EMOJI IS THE FLOOR, NOT THE FALLBACK-OF-LAST-RESORT. Both are rendered; the emoji is visible
   and the image is not, until the image's own `load` event puts `.bm-ok` on the wrapper (see
   brandMarkHtml in public/app.js). So a connector whose official file has not been dropped into
   public/brand/ looks exactly as it did before this release, and there is never a broken-image
   glyph or a blank gap while a 404 resolves.

   SIZED IN `em`, SO IT MATCHES THE TEXT IT SITS BESIDE. These marks appear in an <h3> on the
   connect tiles and in a <b> on the import tiles, and a fixed pixel height would be wrong in one of
   them. `vertical-align:-0.18em` puts the optical centre of the mark on the text baseline-ish,
   which is where an emoji already sits.

   NOT RECOLOURED, NOT CROPPED, NOT PUT ON A COLOURED CHIP. Every one of these vendors' brand kits
   asks for the mark to be used as supplied with clear space around it, and a CSS filter that made
   them all one colour to "match the theme" would be modifying somebody's trade mark. `object-fit:
   contain` means a square or a wide wordmark both fit without distortion.
   ------------------------------------------------------------------------------------------- */
/* ---- 0298, v3.673.0 — THE HIDING DEADLOCKED THE REVEAL ---------------------------------------

   Darren, 14 September 2026: *"I've added the connector images but they're not showing?"*

   He had. The upload worked, the record held the media id, and `/api/brand/simpro` served the file
   — all three verified against a running server. The mark still could not appear, and it could
   never have appeared for anybody: this rule said `display:none`, and

     AN IMAGE WITH NO LAYOUT BOX IS NEVER FETCHED.

   So the `load` event never fires, so `.bm-ok` is never added, so the image is never displayed, so
   it is never fetched. A closed loop. MEASURED in Chromium on 14 September 2026: with the old rule
   the browser made ZERO requests to `/api/brand/*` — not a 404, not a slow load, no request at all
   — and with the rule below it made one per mark and revealed the two that answered.

   That is what made it look like an upload problem: the network tab is empty either way, so there
   is nothing to distinguish "we never asked for it" from "there is nothing to ask for".

   THE FIX IS TO HIDE IT WITHOUT REMOVING IT FROM LAYOUT. The image is laid over the emoji at
   `opacity:0` and faded in; the emoji is hidden with `visibility` rather than `display` so the
   wrapper keeps the emoji's size while the image is absolutely positioned over it. Everything the
   original comment promises still holds — the emoji is the floor, there is no broken-image glyph,
   and a connector with no file looks exactly as it did.
   ------------------------------------------------------------------------------------------- */
.brandmark{ display:inline-flex; align-items:center; justify-content:center; position:relative;
  width:1.35em; height:1.35em; vertical-align:-0.18em; flex:0 0 auto; line-height:1; }
.brandmark .bm-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain;
  opacity:0; pointer-events:none; }
.brandmark.bm-ok .bm-emoji{ visibility:hidden; }
.brandmark.bm-ok .bm-img{ opacity:1; }
/* A dark theme does not get a filter — see the note above. A mark that needs a light ground gets a
   light ground, which is what the kits themselves say to do. */
:root[data-theme="dark"] .brandmark.bm-ok,
html.dark .brandmark.bm-ok{ background:#fff; border-radius:4px; padding:1px; }

/* ---- 0263 — THE GUIDE IS THE ONLY THING ON SCREEN (v3.644.0) --------------------------------
   Darren: *"I want to make sure that the guided steps in easy start means that you never have to
   leave there or end up in the main area until you have completed all the way through… spoon fed
   one step at a time."*

   Walking the guide in a browser showed the "Did you know?" bar sitting on top of it, rotating a
   new link out of the guide every thirty seconds. 0247 closed the door; this closes the
   invitation. `data-guide="on"` is set by showView on the wizard view and cleared on every other,
   so nothing here has to know when the guide ends. */
:root[data-guide="on"] .tipbar{ display:none !important; }

/* ================================================================================================
   0267 — CONNECTOR ICONS, THE SET-UP SCREEN (v3.645.0)
   ================================================================================================
   Darren: *"add a setup area for each icon for software we connect or want to connect to."*

   A CARD PER CONNECTOR, and the mark is drawn at the size it will actually be used at rather than
   blown up to fill a tile: the question this screen answers is "does this look right on a button",
   and a 200px preview of a 20px mark answers a different one. `object-fit: contain` because a
   square icon and a wide wordmark both have to fit without being stretched — which is one of the
   three rules on the screen itself. */
.ci-grid{ display:grid; gap:12px; margin-top:14px;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); }
.ci-card{ border:1px solid var(--line); border-radius:var(--r); padding:12px 14px;
  background:var(--panel); display:flex; flex-direction:column; gap:8px; }
.ci-card.has{ border-color:#D6E3FF; }
.ci-top{ display:flex; align-items:center; gap:10px; }
.ci-mark{ width:34px; height:34px; flex:0 0 auto; display:flex; align-items:center;
  justify-content:center; border:1px solid var(--line); border-radius:8px; background:#fff; }
.ci-mark img{ width:26px; height:26px; object-fit:contain; }
.ci-mark .ci-emoji{ font-size:20px; line-height:1; }
.ci-who{ display:flex; flex-direction:column; line-height:1.25; min-width:0; }
.ci-who b{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ci-role{ font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.ci-top .conn-pill{ margin-left:auto; flex:0 0 auto; }
.ci-state{ margin:0; font-size:var(--fs-sm); color:var(--muted); }
.ci-acts{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.ci-say{ font-size:var(--fs-xs); color:var(--muted); }
.ci-say.bad{ color:var(--danger); }
.ci-from{ margin:0; padding-top:8px; border-top:1px dashed var(--line); }
.ci-rules{ margin:6px 0 10px 18px; }
.ci-rules li{ margin-bottom:4px; }
/* The white ground behind a mark is not decoration — see the note on .brandmark above. Marks are
   drawn for light backgrounds and a kit that says "on white" means it. */
:root[data-theme="dark"] .ci-mark,
html.dark .ci-mark{ background:#fff; border-color:#2E2D2F; }
@media (max-width:520px){ .ci-grid{ grid-template-columns:1fr; } }

/* ---- 0268 — THEY SAY THEY HAVE PAID (v3.646.0) ----------------------------------------------
   Their own reference is the point of the row: it is the only string that ties a line on a bank
   statement to this booking, so it is monospaced and never truncated. A row waiting three days or
   more is tinted rather than badged — everybody on this list has done their part, and a red badge
   on a customer who paid a week ago reads as blaming them for our own delay. */
.sp-ref{ font-family:var(--font-mono); font-size:var(--fs-xs);
  background:var(--panel-2,rgba(127,127,127,.08)); padding:1px 5px; border-radius:4px; }
tr.sp-late > td{ background:rgba(239,109,26,.07); }

/* ================================================================================================
   0269 — EASIER TO SEE THE IMPORTANT ONES (v3.647.0)
   ================================================================================================
   Darren: *"How do you make it easier to see the important emails in the inbox?"* … *"Maybe they go
   down the bottom in a shrunk under a menu list. Silently ignored etc. And the ones that we've
   ignored that might possibly be real emails we need to put slightly higher."*

   THE SECTION HEADINGS ARE QUIET ON PURPOSE. They separate two lists that are already marked row by
   row; making them loud would compete with the red marks, which are the thing that has to win. */
.ib-sect{ margin:18px 0 2px; font-size:14px; letter-spacing:.01em; }
.ib-sect:first-of-type{ margin-top:6px; }
.ib-sect .hint{ font-weight:400; }
.ib-sectnote{ margin:0 0 8px; }
/* The flag is the one judgement that read the WORDS of the message (urgency, 0205), so it is the
   only mark on the row allowed to carry a whole sentence. */
.ib-flag{ color:var(--danger); font-weight:600; }

/* ---- WHAT WE IGNORED: FOLDED, AND AT THE BOTTOM -------------------------------------------
   `<details>` because the panel two above it already uses one for "what the inbox did by itself",
   so the screen has ONE idiom for "this is here and it is not shouting". The less certain pile is
   open and the certain one is shut — that ordering is the whole of his last sentence. */
.ib-ignored{ margin-top:16px; }
.ib-ignored > summary{ cursor:pointer; font-weight:600; }
.ig-pile{ margin:10px 0 0; border-left:3px solid var(--line); padding-left:10px; }
.ig-pile > summary{ cursor:pointer; font-weight:600; font-size:var(--fs-sm); }
.ig-note{ margin:4px 0 8px; }
.ig-row{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 10px;
  padding:8px 0; border-top:1px solid var(--line); align-items:start; }
.ig-who{ display:flex; gap:8px; align-items:baseline; min-width:0; }
.ig-who b{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ig-when{ flex:0 0 auto; }
.ig-subj{ grid-column:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ig-why{ grid-column:1; }
.ig-why.bad{ color:var(--danger); }
.ig-rule{ opacity:.75; }
.ig-act{ grid-column:2; grid-row:1 / span 3; align-self:center; }
.ig-done{ opacity:.75; }
.ig-foot{ margin:10px 0 0; }
@media (max-width:600px){
  .ig-row{ grid-template-columns:1fr; }
  .ig-act{ grid-column:1; grid-row:auto; }
}

/* 0304, v3.675.0 — the help-guide probe's report. Monospaced and scrollable because it is written
   to be selected and pasted, not skimmed; capped in height so a hundred request lines do not push
   the rest of the screen off the page. */
.ahelp-probe{margin:10px 0 0;padding:10px 12px;max-height:420px;overflow:auto;
  border:1px solid var(--line);border-radius:8px;background:var(--card,transparent);
  font:12px/1.5 var(--font-mono);white-space:pre;
  color:var(--ink)}
/* ---- PAST ZOOM SESSIONS (15 September 2026) -------------------------------------------------
   The outcomes table carries a SENTENCE in its first column, not a label: Darren has to be able to
   tell "60 of them had nothing technical in them" from "it is broken", and a bare number in a cell
   is exactly what reads as the second. Every other `table.grid` in this product holds short values,
   so `td` is `white-space:nowrap` globally — which turned each of those sentences into one
   920px-wide line inside a 358px scroller. MEASURED in headless Chromium at 420px: the table came
   out 1,075px and the reader had to drag sideways to read a sentence about why nothing was added.

   Scoped to this panel and to the first column only, the same way #enquiries-body scopes its own
   two prose columns, so no other grid in the app changes. `max-width` in ch rather than px because
   the thing being bounded is a line of text: 52 characters is the measure prose stays readable at,
   whatever the viewport is doing. */
#al-zoom table.grid{width:auto;max-width:100%}
#al-zoom table.grid td:first-child{white-space:normal;max-width:52ch}
#al-zoom table.grid td:first-child .hint{display:block;margin-top:3px;font-weight:400}
/* The count hugs the sentence it belongs to. MEASURED: with the table at `width:100%` the first
   column was capped at 52ch and the remaining 600px went to the two narrow columns, so on a
   laptop the "87" sat 700px away from the words "Nothing technical in them" — a number nobody
   reads as belonging to that row. `width:1%` makes the browser give these columns their content
   and no more. */
#al-zoom table.grid th.num,#al-zoom table.grid td.num{width:1%;white-space:nowrap;padding-left:18px}
#al-zoom table.grid td:last-child{white-space:nowrap}
/* The "start again from a date" row: a label, a date box and a button. Wrapping rather than
   shrinking, because a date input with no room becomes a field you cannot read the year in. */
#al-zoom .bi-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#al-zoom #alz-from{padding:5px 8px;border:1px solid var(--line);border-radius:8px;
  background:var(--card,transparent);color:var(--ink);font:13px/1.4 var(--font)}

/* 0307, v3.678.0 — and the box that says WHICH page. Wide enough for a real article address and
   allowed to shrink, so the actions row still wraps cleanly on a narrow screen. */
.ahelp-url{min-width:200px;max-width:100%;flex:0 1 420px;padding:6px 9px;
  border:1px solid var(--line);border-radius:8px;background:var(--card,transparent);
  /* MEASURED in headless Chromium, 15 September 2026: `font:13px/1.4 inherit` computed to
     13.33px — `inherit` is not a family in the shorthand, so the whole declaration was dropped and
     the box kept the browser's default input font. Longhand, because a shorthand that silently
     does nothing is the kind of styling that looks applied in the file and is not on the screen. */
  font-family:inherit;font-size:var(--fs-sm);line-height:1.4;color:var(--ink)}

/* ---- THE MEMBER'S CALENDAR (0313, v3.684.0) ---------------------------------------------------
   Darren: *"In the members area we need to add a calendar. A single calendar for the company."*
   Seven columns on a monitor; the grid collapses to a single column on a phone and the list under
   it becomes the primary reading — both draw from the same array, so neither can go stale. */
.cal-top{align-items:center;gap:10px;flex-wrap:wrap}
.cal-title{font-size:15px}
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:10px}
.cal-head{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:2px 4px}
.cal-cell{min-height:92px;border:1px solid var(--line);border-radius:8px;padding:5px 5px 7px;
  background:var(--card,transparent);display:flex;flex-direction:column;gap:3px;overflow:hidden}
.cal-cell.cal-pad{border:0;background:transparent;min-height:0}
.cal-cell.cal-today{border-color:var(--accent,#f7a600);box-shadow:inset 0 0 0 1px var(--accent,#f7a600)}
.cal-dnum{font-size:11px;color:var(--muted);font-weight:700}
.cal-chip{display:block;width:100%;text-align:left;border:0;border-radius:6px;padding:3px 6px;
  font:600 11.5px/1.35 inherit;color:#fff;cursor:pointer;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.cal-chip .cal-when{opacity:.85;font-weight:500}
/* ---- 0326, v3.695.0 — RED, YELLOW, GREEN, AS DARREN ASKED ---------------------------------
   *"red for offered - choose a time; yellow for tentative - waiting on payment; green for
   confirmed."* Which is the traffic light everybody already knows, and it is the right call: the
   states ARE a progression, and "this one needs you" / "this one is waiting" / "this one is done"
   is exactly what red-amber-green means to anybody who has driven a car.

   AND IT IS THE ONE PALETTE THAT NEEDS A NON-COLOUR CUE. Red and green are precisely the pair that
   the ~8% of men with a red-green deficiency cannot separate, and the old palette (burnt orange /
   teal / green) avoided the problem by avoiding the metaphor. So the chip now carries a GLYPH as
   well — see .cal-chip::before and edgecalChipClass — and the three differ in lightness too:
   red L≈45%, yellow L≈85%, green L≈30%. Colour is never the only carrier.

   YELLOW TAKES DARK TEXT. White on #facc15 is about 1.6:1 and illegible; #3f2d00 on it is ~11:1.
   That is why .cal-tent overrides the chip's own colour rather than only its background. */
.cal-ev{background:#004EFE}
/* THE TOKEN, not the hex. --danger is a light red in dark mode and a hard-coded dark one there is
   unreadable — the census in test/uipolish.test.mjs counts every inlined copy, comments included.
   The chip's white text needs the dark value, so dark mode takes dark text on the lighter token,
   the same trick .cal-tent uses on yellow. */
.cal-offer{background:var(--danger,#c0392b)}
.cal-tent{background:#facc15;color:#3f2d00}
.cal-conf{background:#15803d}
/* The yellow chip on a white cell needs an edge of its own; the dark three do not. */
.cal-tent{box-shadow:inset 0 0 0 1px rgba(63,45,0,.25)}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .cal-offer{color:#2b0a07} }
[data-theme="dark"] .cal-offer{color:#2b0a07}
.cal-tent .cal-when{opacity:.7}
/* THE GLYPH. One character, before the time, so the state survives a greyscale print, a colour
   deficiency, and a screenshot pasted into an email. */
.cal-chip::before,.cal-dot-g{font-weight:800;margin-right:4px}
.cal-offer::before{content:"\25B2"}   /* ▲ needs you */
.cal-tent::before{content:"\25CF"}    /* ● waiting */
.cal-conf::before{content:"\2713"}    /* ✓ done */
.cal-ev::before{content:"\2605"}      /* ★ ours */

/* ---- THE HOVER CARD (0326) ----------------------------------------------------------------
   Darren: *"when you hover over the actual scheduled time on the calendar, should pop up with the
   start time - finish time, the consultant that's booked, and the note of what needs to be done
   next."* Three constraints shaped this into a real element rather than a CSS tooltip:
     1. .cal-cell has overflow:hidden, so anything drawn inside a cell is clipped by it. The card
        is appended to the panel and positioned, so it can overhang.
     2. It contains a Zoom LINK. A :hover pseudo-element cannot be clicked into — the pointer
        leaves the trigger on the way. So it is a real node with a grace period.
     3. Hover does not exist on a phone. Touch keeps the existing tap-opens-the-sheet behaviour,
        which was always the right affordance there; this is additive, never the only route. */
.cal-pop{position:absolute;z-index:60;width:min(320px,calc(100vw - 32px));
  background:var(--card,#fff);border:1px solid var(--line);border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);padding:11px 13px;font-size:var(--fs-sm);line-height:1.5;
  color:var(--ink)}
.cal-pop[hidden]{display:none}
.cal-pop h4{margin:0 0 2px;font-size:14px}
.cal-pop .cal-pop-when{font-weight:700;color:var(--blue-ink,#0045E0)}
.cal-pop .cal-pop-who{color:var(--muted)}
.cal-pop .cal-pop-next{margin:6px 0 0}
.cal-pop .cal-pop-sum{margin:6px 0 0;color:var(--muted);white-space:pre-wrap}
.cal-pop .cal-pop-join{display:inline-block;margin-top:8px;font-weight:700}
.cal-pop .cal-pop-hint{margin:8px 0 0;font-size:11.5px;color:var(--muted)}
/* The grid needs to be the positioning context for the card. */
.cal-wrap{position:relative}
.cal-legend{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin:8px 0 0;
  font-size:var(--fs-xs);color:var(--muted)}
/* 0326 — a key and its word are one thing and wrap as one. */
.cal-legend-item{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.cal-key{display:inline-block;width:11px;height:11px;border-radius:3px;vertical-align:-1px;margin-right:2px}
.cal-list{display:flex;flex-direction:column;gap:6px}
.cal-row{display:block;width:100%;text-align:left;border:1px solid var(--line);border-radius:8px;
  padding:8px 10px;background:var(--card,transparent);color:var(--ink);cursor:pointer;
  font:inherit;line-height:1.45}
.cal-row:hover{border-color:var(--accent,#f7a600)}
/* 0326 — THE JOIN BUTTON BELONGS TO ITS ROW. It sits outside .cal-row (a link inside a button is
   not valid and not clickable), so the CARD moves out to the wrapper and the row loses its own
   border — otherwise the button floats between two cards and appears to belong to the next one. */
.cal-row-wrap{border:1px solid var(--line);border-radius:8px;padding:8px 10px;
  background:var(--card,transparent)}
.cal-row-wrap:hover{border-color:var(--accent,#f7a600)}
.cal-row-wrap .cal-row{border:0;padding:0;background:transparent}
.cal-row-wrap .cal-row:hover{border-color:transparent}
.cal-dot{display:inline-block;width:10px;height:10px;border-radius:3px;padding:0;margin-right:6px;
  vertical-align:-1px;cursor:inherit}
.cal-body{white-space:pre-wrap;margin:6px 0 10px}
@media (max-width:780px){
  /* A six-box month on a phone is unreadable, so the grid goes away and the list below it — the same
     items, in order — is what a phone reads. */
  .cal-grid{display:none}
}

/* 0314, v3.685.0 — what the customer wants covered, on the consultant's card and in the week grid.
   The ABSENCE is the state worth seeing from across a room, so it is the one that gets a colour. */
.myd-cover{margin:8px 0 0;padding:8px 10px;border-radius:8px;background:var(--tint,rgba(127,127,127,.08));
  font-size:var(--fs-sm);line-height:1.45}
.myd-cover ul{margin:4px 0 0 18px;padding:0}
.myd-cover-none{color:var(--warn,#b45309);background:rgba(180,83,9,.10)}
/* 0315, v3.686.0 — OUR half of the agenda, drawn as its own block under theirs. Green rather than
   the neutral tint so a glance can tell the two apart without reading the heading; the point of
   separating them is that a consultant never quotes our own note back as a customer request. */
.myd-cover-ours{background:rgba(15,81,50,.09);color:var(--ink,inherit)}
/* And which list this is, on a booking with several days. Small and quiet — it matters only when it
   is unexpected. */
.myd-cover-from{margin:4px 0 0;font-size:var(--fs-xs)}
.wk-cover{color:var(--muted)}
.wk-nocover{color:#b45309;font-weight:600}
/* lane bec1109book (9 Nov 2026) — Bec, item 12: the topics "don't display nicely once saved". Each part of the agenda is a
   block across the WHOLE row (grid-column 1/-1). It used to land in the row's last, content-sized column, which grew to hold
   one long line and crushed the booking's name and buttons into a strip a word wide. The topics are a list, one per line.
   Tokens only. */
.enq-appt-cover{display:block;grid-column:1/-1;min-width:0;margin:6px 0 0;font-size:var(--fs-sm);color:var(--ink);
  line-height:1.4;overflow-wrap:anywhere}
.enq-appt-cover-none{color:var(--warn);font-weight:600}
.enq-cover-lbl{display:block;font-size:var(--fs-xs);font-weight:700;color:var(--muted)}
.enq-cover-list{margin:2px 0 0;padding:0 0 0 18px;list-style:disc}
.enq-cover-list li{margin:1px 0}
.enq-cover-list .enq-cover-more{list-style:none;color:var(--muted);font-size:var(--fs-xs)}
.enq-cover-files{display:block;color:var(--muted);font-size:var(--fs-xs)}
/* The request line and the "Arranged outside the app" line go across the row too, for the same reason. */
.enq-appt>.enq-appt-request,.enq-appt>.enq-appt-outside{grid-column:1/-1;min-width:0}
/* 0315, v3.686.0 — our half of the agenda, and one line per day where a day differs. Indented and
   quieter than the customer's line on purpose: on this screen what THEY asked for is the thing being
   read, and our own plan is context beside it rather than a second headline. */
.enq-appt-cover-ours{padding-left:10px;border-left:2px solid var(--ok)}
.enq-appt-cover-day{padding-left:10px;border-left:2px solid var(--line)}
/* 0316 — how many files, counting the booking's library and every day's own. Neutral, because a
   file count is a fact rather than a state to act on; the alarmed colour above is reserved for the
   two lines that are ("nothing said", "could not be read"). */
.enq-appt-cover-files{color:var(--muted)}
/* lane bec-booking (3.1217.0) — "Request from the customer": the row's line, and its section on the booking sheet. Tokens only. */
.enq-appt-request{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 0;font-size:var(--fs-sm);color:var(--ink)}
.enq-request-when,.enq-request-status{color:var(--muted);font-size:var(--fs-xs)}
.bs-req{display:flex;flex-direction:column;gap:6px}
.bs-req-on{display:flex;align-items:center;gap:6px;font-weight:600}
.bs-req-sec{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:var(--fs-sm)}
.bs-req-sec > span{font-weight:600;width:100%}
.bs-req-sec label{display:flex;align-items:center;gap:4px}

/* ---- 0337, v3.705.0 — THE COMPANY / INSTANCE CHIPS HAD NO RULES AT ALL ----------------------
   `.co-chip` is used in eleven places and `.co-banner-line` alongside it, and neither had a single
   line of CSS — so what the markup calls a chip rendered as bare inline text. The same fault as
   `.cm` in v3.693.0, found the same way: by adding a class next to it and going looking.
   Deliberately modest. These sit on the archiver's connection panel, which is the screen somebody
   reads to check WHICH Simpro they are about to write to, so the job is legibility and separation,
   not decoration. The host chip is quieter than the company chip on purpose: the company is the
   answer, the instance is the corroboration. Contrast measured in headless Chromium. */
.co-banner-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0}
.co-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;
  background:var(--blue-lt);color:var(--blue-ink);border:1px solid var(--blue);
  font-weight:600;font-size:var(--fs-sm);white-space:nowrap}
.co-chip-host{background:var(--grey-light);color:var(--grey);border-color:var(--grey-mid);
  font-weight:500;font-family:var(--font-mono);font-size:var(--fs-xs)}
/* 0497, v3.793.0 — a connection with no company chosen. The blue chip states a fact ("we are
   pointed at The Electric Company"); this one states the absence of one, so it must not be mistaken
   for a company name at a glance. Warning colours, not danger: nothing is broken, a decision is
   outstanding. Uses the same tokens as every other warning so it follows both themes. */
.co-chip-warn{background:var(--warn-lt,#fff3cd);color:var(--warn-ink,#7a5b00);
  border-color:var(--warn,#ffc107)}
/* v3.1201.4 — the company list could not be read: a short status beside the company, the reason in its hover text, and
   Try again beside it. Theme tokens only; the dotted underline says there is more on hover. */
.sp-co-fail{color:var(--danger);font-weight:600;cursor:help;text-decoration:underline dotted;text-underline-offset:3px}

/* ---- 0339, v3.707.0 — THE ASSIST THINKING INDICATOR -----------------------------------------
   Darren asked for something to watch while it reads. Two GIFs rather than one: GIF transparency
   is 1-bit, so a single transparent file fringes every rounded corner against whichever panel it
   is NOT drawn for. The dark one is swapped in by the same html[data-theme="dark"] rule the rest
   of the app uses, and only one is ever displayed. */
/* ---- 0428, v3.747.0 — THE FILING CABINET BEING RANSACKED --------------------------------------
   Darren: *"what is a funny GIF that we could use… to be kind of funny?"* The joke is the honest
   one — Assist is tearing through thousands of hours of our own calls to find six sentences — so
   the drawer shoots out, three folders pop up out of order, and one gives up and flies off.
   DRAWN, NOT DOWNLOADED: this replaces two 25 KB GIFs (one per theme, because GIF transparency is
   1-bit and fringed the corners). Every colour here is a token, so there is one of it, it is right
   on both themes, and it follows a theme change live instead of at the next render. */
.assist-thinking-row{display:flex;align-items:center;gap:12px}
/* 0668, v3.858.0 — while a question is in flight: the box greyed, the old answer greyed and inert,
   and the waiting row unmistakable. */
.assist-busy .assist-compose{opacity:.55}
.assist-busy-note{margin:6px 0 0}
.assist-dim{opacity:.45;filter:grayscale(.6);pointer-events:none;user-select:none;transition:opacity var(--dur-2) var(--ease-out)}
.assist-waiting{border-style:solid;border-color:var(--blue);background:var(--blue-lt)}
.assist-working{margin:0 0 6px;font-size:15px}
/* Clear of the sticky top bar when the page scrolls to it. */
.assist-waiting,.assist-turn{scroll-margin-top:110px}
.assist-think{flex:0 0 auto}
.ath-body{fill:var(--grey-mid)}
.ath-drawer-face{fill:var(--muted)}
.ath-handle{fill:var(--panel)}
.ath-f rect{fill:var(--blue)}
/* ONE FOLDER BEHAVING DIFFERENTLY FROM THE OTHERS IS THE WHOLE GAG, so it is the one accent in the
   drawing and it is the brand's own orange rather than a second blue. */
.ath-odd rect{fill:var(--orange)}
.ath-drawer{animation:ath-drawer 2.4s ease-in-out infinite}
.ath-f1{animation:ath-pop 2.4s ease-in-out infinite}
/* Out of ORDER, not in sequence: 3 then 1 then 2. A tidy left-to-right ripple reads as a progress
   bar, which is the opposite of the joke. */
.ath-f2{animation:ath-pop 2.4s ease-in-out infinite .9s}
.ath-f3{animation:ath-pop 2.4s ease-in-out infinite .35s}
.ath-fly{opacity:0;animation:ath-fly 2.4s ease-in infinite 1.25s}
@keyframes ath-drawer{0%,100%{transform:translateY(0)}18%{transform:translateY(3px)}
  40%{transform:translateY(-1px)}62%{transform:translateY(2px)}}
@keyframes ath-pop{0%,100%{transform:translateY(0)}20%{transform:translateY(-7px)}
  45%{transform:translateY(-2px)}}
@keyframes ath-fly{0%{opacity:0;transform:translate(0,0) rotate(0)}
  25%{opacity:1;transform:translate(5px,-6px) rotate(20deg)}
  100%{opacity:0;transform:translate(16px,-15px) rotate(58deg)}}
/* ---- THE CAPTIONS, WHICH ARE THE ACTUAL JOKE -------------------------------------------------
   Stacked and revealed in turn by staggered delays rather than by a JavaScript timer: a timer
   needs clearing when the answer arrives, and the one nobody clears keeps running on a screen that
   has moved on. A CSS animation dies with the element, which is the lifetime this wants. */
.assist-think-says{display:block;position:relative;min-height:2.6em;flex:1 1 auto}
.assist-think-say{position:absolute;left:0;top:0;opacity:0;color:var(--ink);font-weight:600;
  animation:ath-say 15s linear infinite}
.assist-think-say-2{animation-delay:3s}
.assist-think-say-3{animation-delay:6s}
.assist-think-say-4{animation-delay:9s}
.assist-think-say-5{animation-delay:12s}
/* Five lines, fifteen seconds, so each holds for three: long enough to read a long one, short
   enough that somebody waiting sees it change and knows the screen is alive. */
@keyframes ath-say{0%{opacity:0}2%{opacity:1}18%{opacity:1}20%{opacity:0}100%{opacity:0}}
/* THE LINE THAT IS NOT A JOKE, under the rotating one and never moving. Somebody eight seconds
   into a wait needs to know it is normal, and a funny line alone does not tell them that. */
.assist-think-plain{display:block;position:absolute;left:0;top:1.35em;color:var(--muted)}
/* ---- LESS MOTION, IF THAT IS WHAT THEY ASKED FOR ---------------------------------------------
   Everything stops and the FIRST caption stays put. Not "the animation slows down": somebody who
   has set this has usually set it for a reason, and a joke is not worth making them ill. */
@media (prefers-reduced-motion:reduce){
  .ath-drawer,.ath-f1,.ath-f2,.ath-f3,.ath-fly,.assist-think-say{animation:none}
  .ath-fly{opacity:0}
  .assist-think-say{opacity:0}
  .assist-think-say-1{opacity:1}
}

/* ---- 0375 — A HOUSE WINDOW THAT ASKS FOR SEVERAL THINGS (v3.725.0) ---------------------------
   Darren, of adding a connector customer: *"my preference would be a window pop-up."* The form was
   a panel BELOW a list of fifty-nine, so the Add button's own fields got further away with every
   customer added.

   WIDER, AND TWO COLUMNS WHERE THERE IS ROOM. Eleven fields in the 520px card is a dialog you
   scroll, which is the same complaint one layer in. `.hm-card` already caps its height at 80vh and
   `.hm-body` already scrolls, so a long form degrades correctly on a short screen rather than
   pushing its own Save button off the bottom.

   ONE COLUMN ON A PHONE. Two 240px columns at 390px wide is two unusable columns. */
.hm-card.hm-wide{width:min(720px,100%)}
.hm-fields{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  margin-top:12px}
.hm-f{display:grid;gap:4px;align-content:start}
/* A field the whole width of the dialog: a full base URL or an API key shows about six characters
   in half a column, which is a box you cannot check what you pasted into. */
.hm-f.hm-f-wide{grid-column:1/-1}
.hm-f>span{font-size:var(--fs-sm);font-weight:600;color:var(--muted)}
.hm-fi{width:100%;font:inherit;padding:9px 11px;border-radius:9px;min-height:44px;
  border:1px solid var(--line);background:var(--panel-2,var(--panel));color:var(--ink)}
.hm-f small{color:var(--muted);font-size:var(--fs-xs);line-height:1.35}
@media (max-width:560px){ .hm-fields{grid-template-columns:1fr} }
/* lane outlooksync (3.1207.0) — one tick in a dialog ("Also send our cancellation email"): the box and its words on one
   line, the whole width, a finger-sized target. */
.hm-f.hm-tick{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.hm-f.hm-tick>span{font-size:var(--fs-md,inherit);font-weight:600;color:var(--ink)}
.hm-f.hm-tick input{width:20px;height:20px;accent-color:var(--blue);flex:none}

/* ---- 0378 — A CHECKLIST OF FOUR HUNDRED (v3.727.0) ------------------------------------------
   Darren: *"How do we build something that can look up the tools and create a list that can be
   selected from?"* 422 options is past what any select or scrollable list is usable for, so THE
   SEARCH IS THE CONTROL and the list is the result of it. The bar stays put while the list under
   it scrolls — a search box that scrolls away is a search box you lose. */
.hm-checks{border:1px solid var(--line);border-radius:10px;overflow:hidden;
  background:var(--panel-2,var(--panel))}
.hm-ckbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:8px;
  border-bottom:1px solid var(--line);background:var(--panel)}
.hm-cksearch{flex:1 1 140px;min-width:0;font:inherit;padding:8px 10px;border-radius:8px;
  min-height:40px;border:1px solid var(--line);background:var(--panel-2,var(--panel));color:var(--ink)}
.hm-ckn{font-size:var(--fs-xs);color:var(--muted);margin-left:auto;white-space:nowrap}
/* Capped and scrolling: the dialog body scrolls too, and a 422-row list inside it would mean two
   scrollbars racing each other. */
.hm-cklist{max-height:320px;overflow:auto;padding:4px 0}
.hm-ck{display:flex;align-items:baseline;gap:8px;padding:5px 10px;cursor:pointer;line-height:1.35}
.hm-ck:hover{background:var(--panel)}
.hm-ck input{margin:0;width:16px;height:16px;flex:0 0 auto;position:relative;top:2px}
.hm-ck span{font-family:var(--font-mono);font-size:var(--fs-xs);
  word-break:break-all}
.hm-ck em{font-style:normal;font-size:11.5px;color:var(--muted)}
/* A name saved against a tool this build does not offer. NOT hidden and not dropped — it is still
   a live restriction, and silently losing it on the next save is how somebody's rule disappears. */
.hm-ck-stray span{color:var(--warn,#b26a00)}
.hm-ckgroup{position:sticky;top:0;padding:6px 10px 3px;font-size:11px;font-weight:800;
  letter-spacing:.05em;text-transform:uppercase;color:var(--muted);
  background:var(--panel-2,var(--panel));z-index:2}
/* v3.1092.0 — ABOVE THE ROWS IT HEADS. `.hm-ck input` is position:relative (to sit on the text's
   baseline), and a positioned box paints over a sticky one that has no z-index — so a checkbox
   scrolled over "JOBS" and left "BS" showing (Darren's screenshot, 28 September 2026). The z-index
   and the opaque panel background together keep a heading on top of whatever scrolls under it. */
/* The caveat under a role's tool list ("the manager list standing in"), shown only while it is true. */
.hm-ckcaveat{color:var(--warn,#b26a00)}
.hm-ckcaveat[hidden]{display:none}
/* v3.1092.0 — WHAT IS TICKED, ON THE RIGHT. The look is the archivers' "Selected" list (pick-grid,
   picked-box, chip-pick in theme.css); these only fit it inside a 720px dialog. Narrower than the
   archivers' 300px so the tool list keeps most of the room, and as tall as the list beside it. On a
   narrow screen theme.css stacks the pair with the chosen list on top; this keeps that. */
.hm-ckwrap .hm-ckpicked{flex:0 0 230px;max-height:440px}
.hm-ckwrap .hm-checks{flex:1 1 300px;min-width:0}
.hm-ckpicked .chip-pick>span{font-family:var(--font-mono);font-size:var(--fs-xs)}
.hm-ckpicked .chip-pick small{font-family:inherit;color:var(--warn,#b26a00);font-size:11px;margin-left:4px}
.hm-ckpicked .hm-ckempty{margin:0}
@media (max-width:780px){
  .hm-ckwrap .hm-ckpicked{flex:1 1 auto;width:100%;max-height:200px}
  .hm-ckwrap .hm-checks{width:100%;flex:1 1 auto}
}
/* v3.1092.0 — a list typed one per line shows its lines, and grows downward rather than sideways. */
textarea.hm-fi{min-height:96px;resize:vertical;line-height:1.4;white-space:pre-wrap}
/* The by-hand row: the catalogue is one role's registry, never every tool, so a picker with no way
   to type would make the admin role's destructive tools unpickable. */
.hm-ckadd{display:flex;gap:6px;padding:8px;border-top:1px solid var(--line);background:var(--panel)}
.hm-ckother{flex:1 1 auto;min-width:0;font:inherit;padding:7px 10px;border-radius:8px;
  border:1px solid var(--line);background:var(--panel-2,var(--panel));color:var(--ink);
  font-family:var(--font-mono);font-size:var(--fs-xs)}

/* ---- 0413, v3.742.0 — THE AI UPLOADER ---------------------------------------------------------
   One class, for a column or a row the checker stopped on. Not a colour on its own: a tint plus a
   left edge, because a red row on a grid of numbers is hard to place and the edge says which side
   the problem starts. Both themes carry their own tint — the light one over white and the dark one
   over the panel — so this is legible rather than a wash. */
.grid .up-bad{background:var(--bad-wash,#fdecea);box-shadow:inset 3px 0 0 var(--danger)}
/* v3.1106.0 — the Supplier File Reader: what each column is, chosen in its own heading; the table
   list that replaces a wall of chips past ten tables; and the rows the AI tidy changed. */
.up-grid th{vertical-align:top}
.up-grid .up-role{margin-top:4px;max-width:14em;font-size:12.5px}
.up-grid th.up-mapped{box-shadow:inset 0 -3px 0 var(--blue)}
.up-grid tr.up-tidied td{background:var(--blue-lt)}
.up-picklist{list-style:none;margin:0;padding:0;max-height:320px;overflow:auto;border:1px solid var(--line);
  border-radius:10px}
.up-picklist li{padding:6px 10px;border-bottom:1px solid var(--line)}
.up-picklist li:last-child{border-bottom:0}
.up-picklist label{display:flex;gap:8px;align-items:baseline;cursor:pointer}
.up-picklist .up-pick-t{flex:1}
.up-mapsum{margin:4px 0 10px;padding-left:18px;columns:2;column-gap:24px}
@media (max-width:640px){.up-mapsum{columns:1}}
.up-drop{margin-bottom:10px}
:root{--bad-wash:#fdecea}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--bad-wash:rgba(255,107,107,.12)}}
:root[data-theme="dark"]{--bad-wash:rgba(255,107,107,.12)}

/* ---- 0414, v3.742.0 — THE TOAST ---------------------------------------------------------------
   Darren: *"I think it should have a little pop-up towards the top that says 'Saved' and then
   disappears."*

   TOWARDS THE TOP and centred, because that is where he said and because a booking screen's action
   is usually in the upper half — a toast at the bottom is a toast somebody misses while looking at
   the thing they just changed.

   `pointer-events:none` while it is showing: it must never sit over a button and swallow the next
   click. It has no button of its own for the same reason — there is nothing to press.

   `prefers-reduced-motion` drops the slide and keeps the fade. The movement is decoration; the
   appearing is the message. */
/* v3.1119.0 — the house toast in the refresh's shape (12px, --sh-3); `.toast` is the same card for a
   screen that places its own (theme.css has its position). Ink on light, light on dark. */
.h-toast{position:fixed;left:50%;top:18px;transform:translate(-50%,-14px);z-index:9000;
  max-width:min(560px,92vw);padding:12px 16px;border-radius:12px;
  background:var(--ink);color:var(--bg);font-weight:600;font-size:14px;line-height:1.35;
  box-shadow:var(--sh-3,0 6px 24px rgba(0,0,0,.22));
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity var(--dur-2) var(--ease-out),transform var(--dur-2) var(--ease-out),visibility var(--dur-2) var(--ease-in)}
.h-toast.on{opacity:1;visibility:visible;transform:translate(-50%,0)}
/* A FAILURE LOOKS LIKE ONE and stays until it is replaced — see the note on hToast.

   NOT `var(--danger)` ON ITS OWN. MEASURED: the dark theme's danger is #FF6B6B, a light red chosen
   to be read AS TEXT on a dark panel, and white on it is 2.78:1 — under AA, on the one message in
   this application that must not be missed. So the toast carries its own red per theme, dark enough
   for white: 5.44:1 light and 5.91:1 dark. The token is right for what it was made for and wrong
   as a background, which is a distinction worth keeping rather than changing the token. */
.h-toast.bad{background:var(--toast-bad);color:#fff}
@media (prefers-reduced-motion: reduce){
  .h-toast{transition:opacity var(--dur-2) var(--ease-out),visibility var(--dur-2) var(--ease-in);transform:translate(-50%,0)}
}

/* ---- 0417, v3.742.0 — THE DIARY-VS-BOOKINGS BAND ------------------------------------------------
   Darren asked for "a big alert so it's easy to see that it's mismatching and request an answer",
   so it is sized like one: a full-width block at the top of the panel with a thick amber edge, not
   a hint under the filters. EVERY COLOUR IS A TOKEN — the whole point of --warn is that the dark
   theme gets to redefine it, and this band is drawn on --panel-2 in both. */
.bkg-mismatch{margin:0 0 14px;padding:14px 16px;border-radius:8px;
  border:1px solid var(--line);border-left:6px solid var(--warn);background:var(--panel-2)}
.bkg-mistitle{margin:0 0 6px;font-size:var(--fs-lg);font-weight:700;color:var(--ink)}
.bkg-miswords{margin:0 0 6px;font-weight:600;color:var(--ink)}
.bkg-mislead{margin:0 0 10px;font-size:var(--fs-sm);color:var(--muted)}
.bkg-mislist{display:flex;flex-direction:column;gap:10px}
.bkg-misone{padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:var(--panel)}
.bkg-miswhat{margin:0 0 4px;font-weight:600;color:var(--ink)}
.bkg-miswhy{margin:0 0 8px;font-size:var(--fs-sm);color:var(--muted)}
/* THE TWO ANSWERS STACK RATHER THAN SIT SIDE BY SIDE, and each carries its consequence under it.
   Two buttons one word apart, on a row, on a phone, is how somebody cancels a booking meaning to
   restore a diary entry. */
.bkg-misacts{display:grid;grid-template-columns:auto 1fr;gap:6px 10px;align-items:center}
.bkg-miswhat2{font-size:12.5px;color:var(--muted)}
@media (max-width:640px){
  .bkg-misacts{grid-template-columns:1fr;gap:2px}
  .bkg-misacts .btn{margin-top:8px}
  .bkg-miswhat2{margin-bottom:4px}
}

/* ---- 0419, v3.743.0 — THE ASSIST LIBRARY'S FOLDERS, SUBJECTS AND PAGE --------------------------
   Darren: *"I feel like they need to be in folders… that page is just going to get bigger and
   bigger and bigger."* Three rows of controls above the table, each one a different question:
   which folder, what subject, which words. Every colour is a token. */
.alib-folders{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px}
.alib-folders .btn b{font-weight:700;opacity:.75;margin-left:2px}
.alib-areas{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:0 0 8px;
  padding:8px 10px;border-radius:6px;background:var(--panel-2);border:1px solid var(--line)}
.alib-areas .btn b{font-weight:700;opacity:.75;margin-left:2px}
.alib-find{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 10px}
.alib-find input[type=search]{flex:1 1 240px;max-width:360px;padding:7px 9px;
  border:1px solid var(--line);border-radius:6px;font:inherit;background:var(--panel);
  color:var(--ink)}
/* A MONTH HEADING IS A DIVIDER INSIDE A PAGE, so it reads as a rule rather than as a column head —
   it is not sortable, not clickable and does not describe the cells under it. */
.alib-month th{background:var(--panel-2);color:var(--muted);font-weight:700;font-size:var(--fs-xs);
  text-transform:uppercase;letter-spacing:.04em;padding:6px 10px;border-top:2px solid var(--line)}
.alib-page{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0 0}
/* v3.1090.0 — HOW MUCH IS IN THE LIBRARY, in words and pages rather than "chunks". The bar is a
   <progress>: its filled part is the Simpro Help Guide and the track is Platinum's own material, so
   it needs no inline width, and the key beside it says both shares in words. */
.alib-size{margin:10px 0 0}
.alib-dups{margin:10px 0 0}
.alib-dups-lead{margin:0 0 8px}
.alib-dups-actions{margin:8px 0 0}
.alib-size-lead{margin:0 0 8px}
.alib-size-barrow{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 8px}
.alib-size-bar{flex:1 1 220px;max-width:420px;height:12px;border:0;border-radius:6px;overflow:hidden;
  background:var(--orange);appearance:none;-webkit-appearance:none;accent-color:var(--blue)}
.alib-size-bar::-webkit-progress-bar{background:var(--orange);border-radius:6px}
.alib-size-bar::-webkit-progress-value{background:var(--blue);border-radius:6px 0 0 6px}
.alib-size-bar::-moz-progress-bar{background:var(--blue)}
.alib-size-key{font-size:var(--fs-sm);color:var(--muted);display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}
.alib-size-sw{display:inline-block;width:10px;height:10px;border-radius:2px}
.alib-size-sw.simpro{background:var(--blue)}
.alib-size-sw.ours{background:var(--orange)}
.alib-size-table{margin:0 0 6px}
.alib-size-group th{text-align:left;font-weight:700}
.alib-size-part td{color:var(--muted);font-size:var(--fs-sm)}
.alib-size-small{margin:4px 0 0;font-size:var(--fs-xs)}
.assist-size-line{margin:4px 0 0}
/* The subject buttons ride inside a table cell beside four other columns, so they are smaller than
   a control anybody hunts for — they are there for "more like this one", not for navigation. */
.btn.tiny{padding:2px 7px;font-size:11.5px;line-height:1.5;border-radius:5px}
@media (max-width:640px){
  .alib-find input[type=search]{max-width:none}
  .alib-folders,.alib-areas{gap:4px}
}

/* ---- 0425, v3.744.0 — TURNING NOTIFICATIONS ON, AND SAYING WHAT IS ACTUALLY TRUE ---------------
   Darren, 18 September 2026: *"If you create a PWA you can get push notifications."* … *"Notifications
   only, for now."*

   EVERY COLOUR IS A TOKEN AND THERE IS NOT ONE HEX IN public/push.js. That file builds the panel
   with classes only, which is what lets the same markup read correctly in dark mode without the
   script knowing a single colour — and it is why the census in test/uipolish.test.mjs finds nothing
   to complain about in a file that draws a status panel.

   THE ONE COLOUR DECISION WORTH WRITING DOWN: a device with no delivered notification is NOT drawn
   in `--danger`. Nothing is wrong with it — it is new, or it is quiet — and a red row for a phone
   somebody set up correctly thirty seconds ago teaches people to ignore the red ones. So a proven
   device is `--ok` and an unproven one is `--muted`: a plain statement, not an alarm. Red is kept
   for the one thing that is actually wrong, which is a turn-on that failed. */
.push-panel{padding:12px 14px;border:1px solid var(--line);border-radius:var(--r);
  background:var(--panel-2);max-width:var(--panel-max,760px)}
.push-title{font-weight:700;color:var(--ink);margin:0 0 4px}
.push-note{color:var(--muted);margin:0 0 10px;line-height:1.5}
/* MEASURED, not assumed. On `--panel-2`: `--ok` is 5.82:1 light and 8.15:1 dark; `--danger` is
   5.17:1 light and 5.86:1 dark; `--muted` is 5.95:1 light and 6.02:1 dark. All six clear AA at body
   size in both themes. No new token is introduced here — these are the existing three, and the
   token census in test/uipolish.test.mjs re-checks them against --panel-2 on every run. */
.push-note.push-ok{color:var(--ok)}
.push-note.push-bad{color:var(--danger)}
/* 0594, v3.831.0 — "what does installing the app do?" It is a quiet aside, not the panel's point,
   so it is set apart rather than made louder. */
.push-note.push-installs{border-left:3px solid var(--line);padding-left:10px;font-size:var(--fs-sm)}
/* 0597, v3.832.0 — the chosen purchase order on the receipt screen. A tint rather than a border,
   so the row does not move when it is picked. */
tr.rec-picked td{background:var(--blue-lt)}
/* 0472, v3.771.0 — the four facts, when something is wrong. Small and monospaced because it is a
   fault report to read out, not prose; muted because it is never the first thing to read. */
.push-note.push-diag{font-family:var(--font-mono);font-size:var(--fs-xs);
  line-height:1.5;word-break:break-word;opacity:.85}
.push-note.push-muted{color:var(--muted);font-size:var(--fs-sm);margin:10px 0 0}
.push-btn{margin:0}
.push-devices{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.push-device{color:var(--muted);font-size:var(--fs-sm);padding:6px 8px;border-radius:var(--r);
  background:var(--panel);border:1px solid var(--line)}
.push-device-proven{color:var(--ok)}
/* v3.1184.0 — a phone from the mobile app, with its Forget button at the end of the row. */
.push-device-phone{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.push-phone-words{flex:1 1 auto;min-width:0}
.push-forget{flex:0 0 auto}
@media (max-width:640px){
  .push-panel{padding:10px 12px}
  /* A control somebody presses once, on a phone, with a thumb. WCAG 2.5.5 asks 24px; 44 is the
     figure that actually matters on a handset and this is the button the whole feature hangs on. */
  .push-btn{width:100%;min-height:44px}
}

/* ================================================================================================
 * 0423, v3.744.0 — THE SUB-HEADING INSIDE THE "RECORDINGS WITH NO TRANSCRIPT" PANEL
 * ================================================================================================
 *
 * That panel has two halves with two different consequences: a table of what COULD be recovered,
 * which costs nothing to look at, and a ceiling that authorises real spending. Running them
 * together under one heading is how somebody reads the second as a continuation of the first and
 * types a number into what they thought was a filter. A ruled sub-heading is the cheapest possible
 * way of saying "this next part is different".
 *
 * EVERY COLOUR HERE IS A TOKEN. `--ink` and `--line` both flip with the dark theme; a hex typed in
 * would be the light value pinned onto a dark panel, which is the 190-occurrence fault
 * test/uipolish.test.mjs was written to stop happening again.
 */
.al-sub{margin:18px 0 6px;padding-top:14px;border-top:1px solid var(--line);
  font-size:15px;font-weight:700;color:var(--ink)}

/* ---- 0430, v3.748.0 — THE MICROPHONE LEVEL METER ----------------------------------------------
   Darren, 19 September 2026: *"On the phone, the microphone input indicator doesn't seem to show or
   work."* There was none. This is it.

   MEASURED, in both themes, against the two boundaries that carry the meaning:
     * the FILL against the track — how much of the bar is lit — 4.69:1 light, 3.09:1 dark
     * the BORDER against the panel — where the bar begins and ends when it is silent, which is the
       exact case somebody is staring at when they ask whether the microphone works — 6.27:1 light,
       6.56:1 dark, and 4.93/5.15 against the track it encloses.
   All four clear the 3:1 that a non-text control needs. The border is `--muted` rather than
   `--line` or `--grey` because both of those measured under 3:1 against the panel in one theme or
   the other (1.27 and 2.62 respectively) — an outline you cannot see is not an outline.

   A THIRD COLOUR FOR "HEARING NOTHING" WAS TRIED AND DROPPED: orange measured 2.22:1 against the
   light track, and the honest version of that state is a sentence, not a hue. See `startLevelMeter`.

   No transition on the width. A meter that eases is a meter that lags, and the whole question this
   answers is "is it responding to my voice right now". */
.mic-meter{height:8px;margin:6px 0 0;border:1px solid var(--muted);border-radius:5px;
  background:var(--line);overflow:hidden;max-width:260px}
.mic-meter-fill{display:block;height:100%;width:0;background:var(--blue);border-radius:4px}

/* ---- 0437, v3.750.0 — THE LIBRARY'S SECTION CHIPS ---------------------------------------------
   Darren: *"chips / menu at the top to split this into the different sections … the page is too
   long."* Ten stacked panels became one at a time.

   `display:none` via [hidden] and not `visibility` or a height of nought: a hidden section must not
   be findable by the browser's own find-on-page either, or Ctrl+F lands you on a panel you cannot
   see and the page looks broken.

   The row wraps and scrolls rather than squeezing. Seven labels do not fit a narrow window, and a
   chip squeezed to three characters is not a chip. */
.al-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
/* BIGGER THAN A FILTER CHIP, because these are not filters — they are the page's navigation, and
   the 12px filter size reads as a footnote when it is the only way to reach nine tenths of the
   screen. MEASURED on the shared `.chip.on`: white on --blue is 5.96:1 light and 4.50:1 dark,
   both clear of 4.5:1 for text at this size. */
.al-tabs>.chip{font-size:13.5px;padding:6px 13px;font-weight:600}
.al-sec[hidden]{display:none}
@media (max-width:640px){
  /* One line that scrolls sideways, on a phone, because seven wrapped chips is most of the screen
     before any content is reached — which is the complaint this whole change answers. */
  .al-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}
  .al-tabs>.chip{flex:0 0 auto}
}

/* ---- 0447, v3.751.0 — THE HISTORY DRAWER, USING THE WIDTH IT HAS ------------------------------
   Darren, 19 September 2026: *"in the right-hand section, I think we should have date and subject
   on the top line, and then, instead of indenting all the way, we should do a two-character indent,
   or maybe three characters only, so we can utilise that space better. Also, I think we should be
   able to utilise more space, which is empty on the right-hand side. It looks like we've padded out
   that right side too much."*

   ---- WHY THE TWO-COLUMN LAYOUT IS RIGHT EVERYWHERE ELSE AND WRONG HERE -------------------------

   `.tl` is a dated list read top to bottom, and its fixed 100px date column exists so the dates line
   up — which is most of the value of a timeline when it has the width for it. The drawer does not.
   At its 380px default, 100px of date plus a 14px gap leaves 250px, and then EVERY line of every
   entry is indented past the date column: a hundred-pixel left margin on a two-hundred-and-fifty-
   pixel column, for the whole length of an email.

   So this is scoped to `.dir-history` and nothing else. The full-width timeline keeps its columns.

   ---- WHAT REPLACES IT ---------------------------------------------------------------------------

   The date stops being a column and becomes the first thing on the title's own line, which is what
   he asked for and is also how every mail client does it. Everything after the title — the AI gist,
   the urgency line, the fold — drops to its own line indented `2.5ch`. `ch` and not pixels: he asked
   for "two characters, or maybe three", and `ch` IS that unit, so the indent tracks the font rather
   than drifting away from his instruction the next time a size changes.

   MEASURED in headless Chromium at 1600x1000 with the drawer at its 380px default, against a
   control run with this whole block removed, on the entry from his screenshot:

       the gist's left offset     114px  ->   19px   (2.5 characters, as asked)
       the gist's usable width    233px  ->  341px   (+46%)
       the fold's usable width    238px  ->  341px
       the row's height           213px  ->  162px   (-24%)

   The indent is the number he named and the width is what it buys: nearly half as much text per
   line, and a quarter off the height of every entry in the list.

   ---- AND THE PADDING HE NAMED --------------------------------------------------------------------

   Three layers had each taken a little: the drawer's panel (12px each side), the scroller's gutter,
   and the card's own. Trimmed to 10px on the left and 6px on the right, because the right-hand one
   is next to a scrollbar that is already visual separation — padding beside a scrollbar is padding
   twice. */
.dir-history .tl>li{display:block;padding:8px 0}
.dir-history .tl-when{display:inline;flex:none;margin-right:7px}
/* `inline`, so the title sits beside the date. Its block-level children below then break to their
   own line on their own, without a single position or float anywhere. */
.dir-history .tl-what{display:inline;font-size:13.5px}
.dir-history .tl-what>.tl-gist,
.dir-history .tl-what>.tl-ai,
.dir-history .tl-what>.urg-why,
.dir-history .tl-what>details{display:block;margin-left:2.5ch}
/* The <br> before the gist did the job of a line break when the row was a flex column. It is now a
   blank line in the middle of an inline run, so it goes — the block above breaks the line already. */
.dir-history .tl-what>br{display:none}
.dir-history .panel.sub{padding:10px 6px 10px 10px}

/* ---- 0450, v3.752.0 — THE THREE FACTS, AND THE BUTTON THAT FIXES TWO OF THEM -------------------
   Darren, 19 September 2026: *"it doesn't seem to ask if it's okay to use the microphone, etc"*.

   Three rows, never one badge: mic allowed / sound allowed / registered fail for unrelated reasons
   and are fixed in three different places, so they are drawn as three lines a person can read down
   and act on one at a time. See the 0450 banner in public/phone.js.

   THE MARK IS NOT THE MESSAGE. A tick, a cross and a dot carry the state to somebody scanning, and
   each is `aria-hidden` with the whole sentence beside it in text — a screen reader gets the
   sentence, never a glyph. That is also why the marks are coloured and the TEXT is not: colouring a
   whole line red on a panel of grey hints reads as an error somebody has to deal with now, when
   "the microphone has not been asked for yet" is just where every new phone starts.

   MEASURED, on `--panel`, in both themes, for the three mark colours. Token names and not values:
   the values live in theme.css, both of them, and a hex repeated here would be a second copy that
   goes stale the first time one is tuned (and would trip uipolish's bare-error-red census):
     --ok      6.13:1 light   8.88:1 dark
     --danger  5.44:1 light   6.39:1 dark
     --muted   6.26:1 light   6.56:1 dark
   All three clear 4.5:1, which is what they need — they are text-sized glyphs carrying meaning, not
   decoration, so the 3:1 non-text bar would have been the wrong one to measure against. */
.ph-ready{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.ph-ready-list{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.ph-ready-list>li{display:flex;gap:7px;align-items:baseline;font-size:12.5px;color:var(--muted)}
/* A fixed width so the three sentences start on the same column whatever mark is in front of them —
   a ragged left edge on a three-item checklist is read as three unrelated lines. */
.ph-ready-mark{flex:0 0 auto;width:1em;text-align:center;font-weight:700}
.ph-ready-ok .ph-ready-mark{color:var(--ok)}
.ph-ready-bad .ph-ready-mark{color:var(--danger)}
.ph-ready-unknown .ph-ready-mark{color:var(--muted)}

/* ---- 0390 CATCH-UP, v3.752.0 — THE MIC LEVEL BAR HAD NO STYLE AT ALL ---------------------------
   `micHtml` in public/phone.js has been drawing `.ph-micbar` and `#ph-miclvl` since v3.735.0 and
   neither selector existed in this file. An unstyled `<div>` with an unstyled `<span>` of a given
   percentage width is a zero-height nothing: the bar the 0390 work was built around — *"It looked
   like my microphone input was showing that it was working"* — has been invisible on the phone
   panel this whole time, which makes "speak and watch the bar move" advice nobody can follow.

   Found while adding the readiness rows above, which sit directly under it.

   The same three tokens as `.mic-meter`, and deliberately so: that block's measurements (fill
   against track, border against panel, in both themes) were taken for this exact combination and a
   second set of colours here would be a second answer to the same question. It is not simply reused
   as a class because the two are drawn by different files with different lifetimes — this one lives
   for as long as the panel does — and a shared class would tie a change in one to the other. */
.ph-micbar{height:8px;margin:6px 0 0;border:1px solid var(--muted);border-radius:5px;
  background:var(--line);overflow:hidden;max-width:260px}
/* No transition on the width, for `.mic-meter`'s reason: a meter that eases is a meter that lags,
   and the question it answers is "is it responding to my voice RIGHT NOW". */
#ph-miclvl{display:block;height:100%;width:0;background:var(--blue);border-radius:4px}

/* ---- APPS ON SALE (0538, v3.819.0) ---------------------------------------------------------
   Darren, 22 Sep 2026: an enable/disable per app. A switched-off row is dimmed rather than
   hidden or struck through: struck-through reads as deleted, and this is a thing that is still
   there and still working for everybody who has it. */
.asw-list{display:flex;flex-direction:column;gap:2px;margin:14px 0 4px}
/* 3.1212.0 — one list, four ticks per row (On, For sale, Platinum staff only, On mobile). At phone width the ticks wrap
   under the name, so nothing scrolls sideways. */
.asw-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px 16px;
  padding:10px 12px;border:1px solid var(--line);border-radius:10px}
.asw-row+.asw-row{margin-top:-1px}
/* `--tint`, which theme.css DOES define in both themes. `--hover` is not a variable in this sheet —
   it is only ever used with a fallback (see tr.row-open:hover) — and painting from one that nothing
   declares paints nothing at all. That exact mistake with `--tint` went unnoticed for months. */
.asw-row:hover{background:var(--tint)}
.asw-what{min-width:0}
.asw-name{font-weight:600}
.asw-key{font-family:var(--font-mono);font-size:var(--fs-xs);opacity:.55}
.asw-ticks{display:flex;flex-wrap:wrap;gap:6px 16px}
.asw-state{font-size:var(--fs-xs);opacity:.75;min-width:110px;text-align:right}
.asw-row.asw-off .asw-name,.asw-row.asw-off .asw-key{opacity:.5}
.asw-row.asw-off .asw-state{color:var(--warn);opacity:1;font-weight:600}
.asw-tick{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;white-space:nowrap;cursor:pointer}
.asw-row.asw-hid .asw-state{color:var(--danger)}
.asw-row.asw-staff .asw-state{color:var(--muted)}
#asw-msg{margin-right:10px}
@media (max-width:760px){.asw-row{grid-template-columns:minmax(0,1fr) auto}.asw-ticks{grid-column:1 / -1;grid-row:2}.asw-key{display:none}}

/* ---- WEBSITE CHAT SETTINGS (0539, v3.820.0) ------------------------------------------------- */
.wc-faq{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:0 0 8px}
.wc-faq .wc-a{width:100%;font:inherit;padding:8px 10px;border:1px solid var(--line);border-radius:8px;resize:vertical}
.wc-faq-act{margin:6px 0 0;text-align:right}
.wc-tag{background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:10px 12px;
  font-family:var(--font-mono);font-size:var(--fs-xs);line-height:1.5;
  white-space:pre;overflow-x:auto;margin:8px 0}
.wc-key-act{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0}

/* ---- 0544, v3.822.0 — DIRECT CHAT INSIDE "CONTACT PLATINUM" ---------------------------------
   Darren: *"we want to build a similar chat into the member chat... Just piggyback off all the
   same."* So it wears the panel's own furniture (`.mk-call`'s border, radius and background) rather
   than a second visual language imported from the website bubble — it is the same panel, one block
   further down, not a widget embedded in it.

   THE LIVE DOT IS THE ONLY NEW SIGNAL, and it is drawn ONLY when somebody is actually there: the
   block renders without it when nobody is free, so a green dot on this panel always means a person.
   `prefers-reduced-motion` stops the pulse rather than the dot — the meaning is the colour. */
.mk-chat{border:1px solid var(--line);border-radius:var(--r);background:var(--panel-2);
  padding:10px 12px;margin:10px 0}
.mk-chat-on{border-color:var(--ok);background:color-mix(in srgb,var(--ok) 6%,transparent)}
.mk-chat .mk-h{margin:0 0 4px;display:flex;align-items:center;gap:7px}
.mk-chat .field{margin:8px 0 0}
.mk-chat textarea{width:100%;resize:vertical;min-height:52px}
.mk-chat .bi-actions{margin:8px 0 0}
.mk-live{width:8px;height:8px;border-radius:50%;background:var(--ok);flex:0 0 auto;
  box-shadow:0 0 0 0 color-mix(in srgb,var(--ok) 60%,transparent);animation:mkpulse 2s infinite}
@keyframes mkpulse{70%{box-shadow:0 0 0 7px transparent}100%{box-shadow:0 0 0 0 transparent}}
@media (prefers-reduced-motion:reduce){.mk-live{animation:none}}
/* The conversation. Capped and scrolled: a panel that grows with the thread pushes the message form
   and the ticket list off the bottom of the screen, which is where the member goes when nobody
   answers the chat. */
.mk-th{max-height:220px;overflow:auto;display:flex;flex-direction:column;gap:6px;
  margin:8px 0;padding:2px}
.mk-bub{max-width:85%;padding:7px 10px;border-radius:12px;font-size:13.5px;line-height:1.4;
  white-space:pre-wrap;word-break:break-word}
.mk-bub.me{align-self:flex-end;background:var(--accent);color:#fff;border-bottom-right-radius:4px}
.mk-bub.them{align-self:flex-start;background:var(--panel);border:1px solid var(--line);
  border-bottom-left-radius:4px}
.mk-you{margin:6px 0 0;font-size:var(--fs-xs)}

/* ---- 0546, v3.822.0 — "PHONE SETUP", FOLDED AWAY -------------------------------------------
   Darren, 22 September 2026: *"when I click 'Set up this device for calls,' it closes that tab and
   permanently has all this text written, which I think should be hidden. I think you can shrink the
   volume metre and put a little button that says 'Phone Setup' or something like that."*

   ONE ROW WHEN SHUT, carrying the only fact that matters at a glance — ready, or how many things
   are wrong. The count turns the row amber, so a fold can never hide a broken microphone. */
.ph-setup{margin:10px 0 0;border-top:1px solid var(--line);padding-top:8px}
.ph-setup-t{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:0;
  border:0;padding:4px 0;font:inherit;color:inherit;cursor:pointer}
.ph-setup-t:hover{color:var(--accent-ink)}
.ph-setup-c{display:inline-grid;place-items:center;width:17px;height:17px;flex:0 0 auto;
  border:1px solid var(--line);border-radius:4px;font-size:var(--fs-xs);line-height:1;color:var(--muted)}
.ph-setup-t b{font-size:var(--fs-sm);font-weight:600}
.ph-setup-w{font-size:var(--fs-xs);color:var(--muted);margin-left:auto;text-align:right}
.ph-setup-bad .ph-setup-w{color:var(--warn,#B26A00);font-weight:600}
.ph-setup-bad .ph-setup-c{border-color:var(--warn,#B26A00);color:var(--warn,#B26A00)}
.ph-setup-b{margin-top:6px}
/* Half height, and no top margin of its own — shut, it sits directly under the summary row rather
   than floating between two things. It stays visible because "can they hear me" is a question people
   ask DURING a call, and a fold you must open mid-conversation is a fold in the way. */
.ph-micbar-sm{height:4px;margin:6px 0 2px}

/* 0549, v3.823.0 — the staff-only "hide the services pane" tick on the Account screen. Its own
   class because `.chk` is scoped under a parent everywhere it is defined, so it would have drawn
   an unstyled control here. */
.acc-chk{display:flex;align-items:center;gap:8px;margin:10px 0 0;font-weight:600}
.acc-chk input[type=checkbox]{margin:0;flex:0 0 auto;width:auto}

/* ---- 0551, v3.823.0 — THE LIVE-CHAT BAR ------------------------------------------------------
   Darren: *"show a more urgent alert in bar at the top... Like a call demands more urgency, too."*
   So it is deliberately the ring bar's shape (`#ph-ring-bar`), one notch below it in the stack: if
   a call is ringing WHILE a chat waits, the call wins the top of the screen, because a call is a
   person who will hang up in fifteen seconds.

   AMBER FIRST, RED AFTER TWO MINUTES. The colour means "this is going badly", not "a chat exists" —
   a bar that is red from the first second is one nobody reads twice. */
.cm-chat-bar{position:fixed;left:0;right:0;top:0;z-index:2147482000;display:flex;align-items:center;
  gap:12px;padding:9px 16px;font-size:13.5px;color:#231F20;background:#FFE9C7;
  border-bottom:2px solid #E08700;box-shadow:0 6px 22px rgba(35,31,32,.18)}
/* `var(--danger)` rather than a hex. The token is a different red in each theme, and a bar hard
   coded to the light-mode one is nearly unreadable on a dark page — the house rule since v3.404.0,
   and the suite counts bare copies of that hex, including ones written in a comment like this. */
.cm-chat-bar.urgent{background:#FFD9D6;border-bottom-color:var(--danger)}
.cm-chat-bar .cmb-dot{width:9px;height:9px;border-radius:50%;background:#E08700;flex:0 0 auto;
  animation:cmbpulse 1.4s infinite}
.cm-chat-bar.urgent .cmb-dot{background:var(--danger)}
@keyframes cmbpulse{0%,100%{opacity:1}50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.cm-chat-bar .cmb-dot{animation:none}}
.cm-chat-bar .cmb-what{min-width:0;flex:1 1 auto;display:flex;gap:9px;align-items:baseline;
  flex-wrap:wrap}
.cm-chat-bar .cmb-wait{font-weight:600}
/* What they said, clipped: it is the reason to get up, not the conversation. */
.cm-chat-bar .cmb-said{color:#5a4a2a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  max-width:46ch}
.cm-chat-bar .btn{flex:0 0 auto}
/* 0562 — IT FLASHES WHEN IT ARRIVES, AND THEN IT STOPS. Darren: *"it doesn't flash or have a
   banner"*. Ten seconds of it is an arrival; a bar that flashes for ever is wallpaper, and the
   next one is invisible too. The urgent (older-than-two-minutes) bar does not flash at all — by
   then it is not news, it is a backlog, and it is already the louder colour. */
.cm-chat-bar.fresh{animation:cmbflash 1.1s ease-in-out 9}
@keyframes cmbflash{0%,100%{background:#FFE9C7}50%{background:#FFC55A}}
@media (prefers-reduced-motion:reduce){.cm-chat-bar.fresh{animation:none}}
/* 0566 — THE CALM STATE. The visitor has almost certainly gone, so nothing flashes and nothing is
   red — but the bar stays, because the message is still unanswered and the button on it is the only
   thing on the page that leads to the conversation. Grey-blue, quiet, and still obviously a bar. */
.cm-chat-bar.quiet{background:#F1F0F0;border-bottom-color:#7D8CA3;box-shadow:0 4px 14px rgba(35,31,32,.12)}
.cm-chat-bar.quiet .cmb-dot{background:#7D8CA3;animation:none}
.cm-chat-bar.quiet .cmb-said{color:#41506a}
/* A ringing call sits at the very top; this drops below it so the two never overlap. */
body:has(#ph-ring-bar) .cm-chat-bar{top:52px}
/* ---- 0602, v3.837.0 — THE X, AND THE ROOM THE BAR TAKES UP ------------------------------------
   Darren, 23 Sep 2026: *"how do I change apps now that that's sitting up there? Needs to be a
   little X button to close it."*

   The bar is `position:fixed`, so it took no space and covered the top of the sidebar — in his
   screenshot the logo is clipped behind it and the top menu item is unreachable, with the bar
   eleven hours old. `--cm-bar-h` is set from the MEASURED height in comms.js (the message line
   wraps, so it is one line or three depending on the screen) and cleared when the bar goes: with
   nothing waiting, not one of these rules applies.

   THE TWO STICKY TOPS HAVE TO MOVE AS WELL. Padding on the body pushes the page down, but
   `.apptop` and `.sidebar` are `position:sticky; top:0` — they would scroll straight back up
   underneath the bar and sit there, which is the same bug with extra steps. */
body.cm-bar-on{padding-top:var(--cm-bar-h,0px)}
body.cm-bar-on .apptop{top:var(--cm-bar-h,0px)}
body.cm-bar-on .sidebar{top:var(--cm-bar-h,0px);height:calc(100vh - var(--cm-bar-h,0px))}
.cm-chat-bar .cmb-x{flex:0 0 auto;width:26px;height:26px;padding:0;line-height:1;font-size:19px;
  font-weight:700;cursor:pointer;border-radius:var(--r);background:transparent;color:inherit;
  border:1px solid rgba(35,31,32,.28);opacity:.75}
.cm-chat-bar .cmb-x:hover{opacity:1;border-color:rgba(35,31,32,.6)}
/* The quiet bar is grey-blue and the amber one is amber; the X borrows the text colour of whichever
   it is sitting on rather than carrying a colour of its own. */
.cm-chat-bar.quiet .cmb-x{border-color:rgba(65,80,106,.35)}

/* ---- 0569/0570, v3.828.0 — THE ASSIST THREAD READS NEWEST FIRST -------------------------------
   Darren: *"the next result should go towards the top again so that the most recent one is at the
   top… maybe we have a small divider that says 'Previous Results' towards the bottom."* A chat is
   read forwards; a question with several attempts at an answer is not. */
.assist-previous{display:flex;align-items:center;gap:12px;margin:22px 0 10px;
  font-size:12.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.assist-previous::before,.assist-previous::after{content:"";flex:1 1 auto;height:1px;background:var(--line)}
/* What a harder attempt actually did, on the attempt itself — see src/assist.js `deeper`. */
.assist-deeper{margin:0 0 8px;font-size:var(--fs-sm);color:var(--muted)}
/* 0285, v3.1113.0 — "Useful for this" under an Assist answer, and the topic chips on a resource editor. */
.assist-useful{margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--card, transparent)}
.assist-useful h3{margin:0 0 4px;font-size:15px}
.assist-useful-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.assist-useful-item{display:flex;flex-direction:column;gap:4px;padding:10px;border:1px solid var(--line);border-radius:8px}
.assist-useful-item .btn{align-self:flex-start}
.assist-useful-item.locked{opacity:.92;border-style:dashed}
.assist-useful-kind{font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.02em;color:var(--muted)}
.assist-useful-locked{margin:0;font-size:var(--fs-sm);color:var(--muted)}
.topic-chips{margin:10px 0;padding:8px 10px;border:1px dashed var(--line);border-radius:8px}
.topic-chips .chip.suggested{outline:2px dotted var(--orange, currentColor)}
.at-links{margin:6px 0 10px;padding-left:18px}
.at-areas{border:0;padding:0;margin:8px 0}
.at-areas .chip{display:inline-flex;gap:4px;align-items:center;margin:2px}

/* ---- 0619, v3.842.0 — WHILE A RUN IS GOING -----------------------------------------------------
   Darren: *"when one is running, we should hide all the data entry for starting a new one... hide
   everything we don't need, except the stop button, of course."*

   `html.run-live` is set by `progressTracker` on every beat and clears itself after seven seconds of
   silence (see runLive in app.js). `[data-runhide]` marks the panels that are SETUP — the pickers,
   the supplier answers, the start button. The progress board, the Stop button and the results carry
   no such mark, so they stay.

   `display:none`, not disabled: he asked for it explicitly — *"if we can't change it, then we should
   hide it"* — and a greyed form four hours into a run is still a form somebody reads and worries at. */
html.run-live [data-runhide]{display:none !important}
/* Printing a run is printing what it DID, so the setup stays gone there too. */
@media print{ html.run-live [data-runhide]{display:none !important} }

/* 0676, v3.861.0 — a member event's picture in its pop-up, and the description editor on the admin form. */
.cal-ev-pic{margin:0 0 12px}
.cal-ev-pic img{display:block;max-width:100%;max-height:340px;border-radius:10px;border:1px solid var(--line);object-fit:cover}
.cal-body.rt-view p{margin:0 0 8px}
.cal-body.rt-view ul,.cal-body.rt-view ol{margin:0 0 8px 20px}
.edge-ev-desc{margin:10px 0}

/* 0677, v3.861.0 — the member dashboard: what is happening on the left, the allowances in a narrow
   column on the right, one line each with a ? for the detail. One column on a narrow screen, where
   the allowances drop below. */
.edge-dash{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;align-items:start}
.edge-dash-main{min-width:0}
.edge-dash-side{position:sticky;top:12px}
@media (max-width:1100px){.edge-dash{grid-template-columns:1fr}.edge-dash-side{position:static}}
.edge-inc{padding:14px 16px}
.edge-inc-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
.edge-inc-head h2,.edge-inc-head h3{margin:0}
.edge-inc-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto auto;align-items:center;gap:6px 8px;
  padding:7px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none;box-shadow:none;margin:0}
.edge-inc-row:first-of-type{border-top:0}
.edge-inc-n{font-size:20px;font-weight:800;color:var(--blue-ink);text-align:right}
.edge-inc-n.zero{color:var(--muted)}
.edge-inc-name{font-weight:600;font-size:14px;line-height:1.25}
/* v3.1124.0 — report only / with a consultation, beside a health check line; and the calculator's workspaces. */
.edge-delivery{font-size:11px;font-weight:600;vertical-align:middle;margin-left:4px;white-space:nowrap}
.edge-calcseats-list{list-style:none;margin:8px 0;padding:0;display:grid;gap:6px}
.edge-calcseats-list label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
/* v3.1127.0 — the panel itself, and staff's per-member calculator workspace override under it. */
.edge-calcseats .edge-calcover{margin-top:12px;padding-top:8px;border-top:1px solid var(--line)}
.edge-inc-row .help{margin-left:0}
.edge-inc-row .edge-claimform{grid-column:1/-1}
.edge-week-list{display:flex;flex-direction:column}
.edge-week-row{display:flex;align-items:center;gap:10px;text-align:left;padding:8px 4px;border:0;border-top:1px solid var(--line);
  background:none;font:inherit;color:inherit;cursor:pointer}
.edge-week-row:first-child{border-top:0}
.edge-week-row:hover{background:var(--blue-lt)}
.edge-week-day{font-weight:700;min-width:56px}
.edge-week-when{min-width:64px;color:var(--muted)}
/* 0678, v3.861.0 — Platinum Assist: the question box and the answers below it are ONE width.
   Darren, from a member login: *"Platinum Assist with different width boxes."* The box is a panel
   and took the panel rules; the thread under it did not, so the two edges did not line up. Both are
   now told the same width and the same ceiling. */
#assist-body > .assist-ask, #assist-body > .assist-thread{width:100%;max-width:min(100%, var(--panel-max));box-sizing:border-box;margin-right:0}

/* 0679, v3.861.0 — a member's level on a conversation, in the tier's own colour. */
.edge-badge.member-tier{font-size:10.5px;font-weight:700;letter-spacing:.02em;text-transform:none}
/* 0692, v3.862.0 — Darren: *"if someone is a member, can you please make the little badge the same colour
   as their membership?"* The same gradients as the member's own dashboard hero (.edge-hero.edge-tier-*),
   white text on each — platinum was blue before, which is nobody's membership colour. */
.edge-badge.member-tier[class*="tier-"]{color:#fff;border-color:transparent;text-shadow:0 1px 0 rgba(0,0,0,.18)}
.edge-badge.tier-bronze{background:linear-gradient(135deg,#6b4a2f,#a9764a)}
.edge-badge.tier-silver{background:linear-gradient(135deg,#4d5560,#8d97a4)}
.edge-badge.tier-gold{background:linear-gradient(135deg,#8a6414,#d3a13a)}
.edge-badge.tier-platinum{background:linear-gradient(135deg,#22303f,#5f7285)}
/* 0677 — the allowance line's ? holds the old card's figures; stacked, not the card's flex row. */
.edge-inc-row .edge-inc-n b{font-size:20px;color:inherit}
.edge-inc-row .edge-inc-n .edge-unknown{font-size:11px;font-weight:600}
.edge-inc-row .edge-inc-n.unl b{font-size:var(--fs-sm);font-weight:700}   /* v3.1214.0 — the word Unlimited fits the number column */
.edge-inc-row .help-pop .edge-nums{display:flex;flex-wrap:wrap;gap:2px 12px;font-size:var(--fs-xs);margin:0 0 6px}
.edge-inc-row .help-pop .edge-next{display:block;margin:0 0 6px;font-size:var(--fs-xs)}
.edge-inc-row .help-pop .edge-usewhat{display:block;font-size:var(--fs-xs)}

/* ===== Inbox: search, compact view, grouped chats (0681–0683, v3.861.0) ===== */
.ib-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.ib-tools .ib-q{flex:1 1 320px;min-width:0;max-width:560px;padding:8px 11px;border:1px solid var(--line);border-radius:8px;font:inherit}
.ib-tools .ib-qnote{flex:0 1 auto}
.ib-tools .ib-compactbtn{margin-left:auto}
.ia-count{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;background:var(--tint,#EAF0FF);
  color:var(--blue-ink);font-size:11.5px;font-weight:600;vertical-align:1px}
.ia-sum{display:none}
/* Compact (0683/0688): Outlook's reading list — two lines and a date per message. The tick stays; the
   rest of the head and both columns fold away until the line is pressed (app.js adds .ia-expanded). */
.ib-compact #ia-panel .ia-row:not(.ia-expanded){padding:8px 12px;margin:0 0 6px;cursor:pointer}
.ib-compact #ia-panel .ia-row:not(.ia-expanded) .ib-pickbox{margin:0}
.ib-compact .ia-row:not(.ia-expanded) .ia-head{flex-wrap:nowrap;gap:10px;align-items:center}
.ib-compact .ia-row:not(.ia-expanded) .ia-head > .ia-kind,
.ib-compact .ia-row:not(.ia-expanded) .ia-head > .ia-who,
.ib-compact .ia-row:not(.ia-expanded) .ia-cols{display:none}
.ib-compact .ia-row:not(.ia-expanded) .ia-head > .ia-verdict{flex:0 0 auto;align-self:flex-start;margin-left:0}
.ib-compact .ia-row:not(.ia-expanded) .ia-sum{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;
  column-gap:10px;row-gap:2px;flex:1 1 auto;min-width:0;align-items:center}
.ia-av{grid-row:1/3;width:32px;height:32px;border-radius:50%;background:var(--tint,#EAF0FF);color:var(--blue-ink);
  display:inline-flex;align-items:center;justify-content:center;font-size:var(--fs-xs);font-weight:700;letter-spacing:.02em}
.ia-sum-l1{display:flex;align-items:baseline;gap:6px;min-width:0;white-space:nowrap;overflow:hidden}
.ia-sum-l1 b{overflow:hidden;text-overflow:ellipsis}
.ia-sum-co{color:var(--muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis}
.ia-sum-when{margin-left:auto;padding-left:10px;color:var(--muted);font-size:var(--fs-xs);flex:none}
.ia-sum-l2{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--fs-sm);color:var(--muted)}
.ia-sum-subj{color:var(--ink);font-weight:600}
.ia-sum-ai{font-style:italic}
.ib-compact .ia-row:not(.ia-expanded):hover{background:var(--tint,#F4F7FF)}
/* 0685 — the notice a quote/invoice action writes into when the builder's message line is not on screen. */
.doc-toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);z-index:10050;max-width:min(560px,calc(100vw - 32px));
  background:#231F20;color:#fff;border-radius:12px;padding:12px 16px;font-size:14px;line-height:1.4;
  box-shadow:0 10px 30px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:opacity var(--dur-2) var(--ease-out),transform var(--dur-2) var(--ease-out)}
.doc-toast.on{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.doc-toast.bad{background:var(--danger,#B42318)}
.doc-toast[style]{color:#fff!important}
/* 0687, v3.861.0 — Darren: *"Open, Preview, Send to Customer, and ... all have different heights."*
   They were three sizes of button (.tiny, .small, plain) and the ⋯ summary. On a quote or invoice
   row, wherever it is drawn, every control is one height now. */
.doc-acts{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;vertical-align:middle}
.doc-acts > .btn, .doc-acts > .row-more > summary.btn, .doc-acts > .hint{min-height:32px;height:32px;box-sizing:border-box}
.doc-acts > .btn, .doc-acts > .row-more > summary.btn{display:inline-flex;align-items:center;justify-content:center;
  padding:0 12px;font-size:var(--fs-sm);line-height:1;margin:0;white-space:nowrap}
.doc-acts > .hint{display:inline-flex;align-items:center}
.doc-acts > .row-more{margin:0}
/* …and the file picker beside its Attach button: the browser's own "Choose file" and ours, one height. */
.file-add{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.file-add input[type=file]{height:36px;display:inline-flex;align-items:center}
.file-add input[type=file]::file-selector-button{height:36px;padding:0 14px;box-sizing:border-box}
.file-add > .btn{height:36px;min-height:36px;padding:0 16px;display:inline-flex;align-items:center;box-sizing:border-box;margin:0}
/* 0686 — "Accepted on the phone": one column, the tick beside its words. */
.qv-form{display:flex;flex-direction:column;gap:12px;max-width:560px}
.qv-form > label:not(.qv-chk){display:flex;flex-direction:column;gap:5px;font-weight:600}
.qv-form > label:not(.qv-chk) input,.qv-form > label:not(.qv-chk) textarea{font:inherit;font-weight:400;padding:8px 10px;border:1px solid var(--line);border-radius:8px;width:100%;box-sizing:border-box}
.qv-form .qv-chk{display:flex;align-items:flex-start;gap:8px;font-weight:600}
.qv-form .qv-chk input{margin-top:3px;flex:none}
.qv-form .qv-acts{display:flex;gap:8px;margin:0}
.qv-form .qv-acts .btn{height:36px}
.ib-compact .ia-row:not(.ia-expanded) .ia-chip.ia-none{display:none}
/* ===== v3.1165.0 (oneinbox) — WHERE EACH ITEM IS UP TO, AND THE CHANNEL AS THE COMPACT LINE'S ICON =====
   Needs you (orange) · ⚡ Done automatically (grey) · ✓ Dealt with (green). One badge, on every item, compact or full
   (public/inboxaipanel.js stateBadgeHtml); the conversation's messages wear the same one (.cm-state). */
.ia-state,.cm-state{display:inline-flex;align-items:center;gap:3px;font-size:11.5px;font-weight:700;border-radius:99px;
  padding:1px 8px;white-space:nowrap;border:1px solid transparent;line-height:1.5;vertical-align:middle}
.ia-state-needs,.cm-state-needs{background:#FFF1E6;border-color:#F5A25D;color:#9A4A0B}
.ia-state-auto,.cm-state-auto{background:var(--bg,#F4F5F7);border-color:var(--line);color:var(--muted)}
.ia-state-done,.cm-state-done{background:#E7F6EC;border-color:#7CC394;color:#1E6B39}
.ia-sum-state{display:inline-flex;align-items:center;gap:6px;flex:none;padding-left:8px}
.ia-sum-conf{font-size:11.5px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
/* The channel leads the compact line, where the initials were. */
.ia-av.ia-chan{font-size:16px;font-weight:400;letter-spacing:0;background:var(--tint,#EAF0FF)}
/* In compact view the badge is at the line's right end, so the head's own verdict steps aside until the line opens. */
.ib-compact .ia-row:not(.ia-expanded) .ia-head > .ia-verdict{display:none}
.ia-row.ia-st-auto,.ia-row.ia-st-done{opacity:.92}
.ia-decided .ia-next-h{text-transform:none}
/* The tray's view switch and "Show only not dealt with" (public/comms.js): one row, pressed-in when on. */
.cm-viewsw{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;flex:none}
.cm-viewsw .cm-vbtn{border:0;background:transparent;font:inherit;font-size:12.5px;font-weight:600;padding:4px 10px;cursor:pointer;color:var(--muted)}
.cm-viewsw .cm-vbtn.on{background:var(--tint,#EAF0FF);color:var(--blue-ink)}
/* With the two views and the filter on it, the tools line wraps rather than pushing the tray wider. */
.cm-tools{flex-wrap:wrap;align-items:center;row-gap:6px}
.cm-tools input{min-width:140px}
.cm-openbtn{flex:none}
.cm-openbtn[aria-pressed="true"]{background:var(--tint,#EAF0FF);border-color:var(--blue,#004EFE);color:var(--blue-ink)}
/* Dark: `html[data-theme="dark"]` is the only switch this app has (see the note on .apptop). */
html[data-theme="dark"] .ia-state-needs,html[data-theme="dark"] .cm-state-needs{background:#3A2312;border-color:#B5651F;color:#FFC08A}
html[data-theme="dark"] .ia-state-done,html[data-theme="dark"] .cm-state-done{background:#12301D;border-color:#2F7A48;color:#9BE0B1}
/* 0689 — the earlier, already-dealt-with messages of an open thread, folded behind one press. */
.cm-earlier{display:block;width:100%;margin:6px 0;padding:8px 10px;border:1px dashed var(--line);border-radius:8px;
  background:transparent;color:var(--blue-ink);font:inherit;font-size:var(--fs-sm);font-weight:600;cursor:pointer;text-align:center}
.cm-earlier:hover{background:var(--tint,#F4F7FF)}

/* ===== 0693, v3.863.0 — each session of a repeating event ===== */
.evs-top{position:sticky;top:0;z-index:2;background:var(--panel,#fff);padding:8px 0;margin:0 0 6px;border-bottom:1px solid var(--line)}
.evs-list{display:flex;flex-direction:column;gap:12px}
.evs-card{border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:var(--panel,#fff)}
.evs-card.is-dirty{border-color:var(--orange,#f60);box-shadow:0 0 0 1px var(--orange,#f60) inset}
.evs-card.is-skipped{background:var(--grey-light,#f4f5f7)}
.evs-card.is-skipped .evs-when{text-decoration:line-through;color:var(--muted)}
.evs-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 8px}
.evs-when{font-size:15px}
.evs-tag{font-size:11px;font-weight:700;padding:1px 8px;border-radius:999px;background:var(--tint,#EAF0FF);color:var(--blue-ink)}
.evs-tag.bad{background:#fde8e6;color:var(--danger,#B42318)}
.evs-tag.ok{background:#e6f5ec;color:var(--ok,#1a7f3c)}
.evs-skip{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:var(--fs-sm)}
.evs-skipwhy{margin:0 0 8px}
.evs-skipwhy input,.evs-topic input,.evs-grid input[type=text],.evs-grid input[type=datetime-local]{width:100%;box-sizing:border-box;padding:7px 10px;border:1px solid var(--line);border-radius:8px;font:inherit}
.evs-topic{display:flex;flex-direction:column;gap:4px;font-weight:600;margin:0 0 8px}
.evs-more{margin:8px 0 0}
.evs-more summary{cursor:pointer;color:var(--blue-ink);font-weight:600;font-size:var(--fs-sm)}
.evs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:8px 12px;margin-top:8px}
.evs-grid label{display:flex;flex-direction:column;gap:4px;font-size:var(--fs-sm);font-weight:600}
.evs-grid label.wide{grid-column:1/-1}
.evs-acts{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:10px 0 0}
.evs-acts .btn{height:32px}
/* The hover card and the pop-up: the session's picture, topic and the members' ticket line. */
.cal-pop-pic{display:block;width:100%;max-height:150px;object-fit:cover;border-radius:8px;margin:0 0 8px}
.cal-pop-topic{font-weight:600;color:var(--blue-ink);margin:-2px 0 4px}
.cal-ev-topic{margin:4px 0 8px;color:var(--blue-ink)}
.cal-ev-h{margin:14px 0 4px;font-size:14px}
.cal-ticket{margin:8px 0;padding:8px 10px;border-radius:8px;background:#fff7e6;border:1px solid #f3d9a4;font-size:var(--fs-sm);line-height:1.45}
.cal-ticket a{font-weight:600}
.cal-code{font-family:var(--font-mono);letter-spacing:.04em;background:#fff;padding:0 6px;border-radius:4px;border:1px dashed #d9b35b}

/* ===== 0697, v3.864.0 — COMMUNICATIONS: PEOPLE ON THE LEFT, THE CONVERSATION ON THE RIGHT =====
   Darren: *"the left-hand side should get a little bit less space, and the right-hand side should get
   a little bit more space … a box to type in your message replies … that stays there the whole time."*
   The drawer is wider; the split is about a third / two thirds; the conversation scrolls on its own
   and the reply box is pinned under it. On a phone it is one side at a time, with ‹ to go back. */
.cm-drawer{width:var(--cm-w,min(1180px,100vw));max-width:100vw}
.cm-cols{overflow:hidden}
.cm-main > .cm-tools, .cm-main > .cm-tabs{flex:none}
.cm-split{flex:1;min-height:0;display:grid;grid-template-columns:var(--cm-left,minmax(260px,34%)) 7px minmax(0,1fr)}
.cm-left{min-height:0;min-width:0;display:flex;flex-direction:column}
.cm-left > .cm-body{flex:1;min-height:0;overflow:auto;padding:6px 8px 16px}
.cm-right{min-height:0;display:flex;flex-direction:column;background:var(--panel-2,#f7f9fc)}
.cm-li{display:flex;align-items:stretch;border-bottom:1px solid var(--line);border-radius:8px}
.cm-li.on{background:var(--tint,#EAF0FF);box-shadow:inset 3px 0 0 var(--blue)}
.cm-li-tick{flex:none;width:30px;display:flex;align-items:center;justify-content:center}
.cm-li-tick input{width:16px;height:16px}
.cm-li-b{flex:1;min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:1px 10px;align-items:center;
  text-align:left;background:none;border:0;padding:9px 8px 9px 0;font:inherit;color:inherit;cursor:pointer}
.cm-li-b:hover{background:rgba(0,78,254,.04)}
.cm-av{grid-row:1/3;width:32px;height:32px;border-radius:50%;background:#EAF0FF;color:var(--blue-ink);
  display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:var(--fs-xs);flex:none}
.cm-av.big{width:40px;height:40px;font-size:var(--fs-sm)}
/* v3.1178.0 (15 October 2026) — THE LIST'S BADGE: the latest item's channel and which way it went, not initials. Darren:
   "incoming or outgoing arrows, and the icon of the type of communication". ↙ in / ↗ out sits on the channel icon's corner;
   a missed inbound call is the danger wash, a call of ours nobody answered is muted. Theme tokens only. */
.cm-lb{grid-row:1/3;position:relative;width:32px;height:32px;border-radius:50%;background:var(--blue-lt);color:var(--blue-ink);
  display:inline-flex;align-items:center;justify-content:center;font-size:15px;line-height:1;flex:none}
.cm-lb-dir{position:absolute;right:-4px;bottom:-4px;min-width:16px;height:16px;border-radius:50%;background:var(--panel);
  border:1px solid var(--line);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;color:var(--blue-ink)}
.cm-lb-out .cm-lb-dir{color:var(--ok)}
.cm-lb-missed{background:var(--bad-wash);color:var(--danger)}
.cm-lb-missed .cm-lb-dir{color:var(--danger);border-color:var(--danger)}
.cm-lb-noanswer{background:var(--grey-light);color:var(--muted)}
.cm-lb-noanswer .cm-lb-dir{color:var(--muted)}
/* v3.1202.1 (23 October 2026) — THE SAME BADGE, SMALL, at the start of each Customer History line. Darren: "Just add the
   icon of what type of message … and whether the arrow comes in or out." Sized to the line so nothing wraps or moves. */
.cm-lb.cm-lb-sm{width:20px;height:20px;font-size:var(--fs-xs);font-weight:400;vertical-align:middle;margin:-7px 7px -7px 0}
.cm-lb-sm .cm-lb-dir{right:-5px;bottom:-4px;min-width:13px;height:13px;font-size:10px}
.cm-stamp-dir.cm-dir-in{color:var(--blue-ink)}
.cm-stamp-dir.cm-dir-out{color:var(--ok)}
/* And the phone panel's line after a call we made that nobody answered. */
.ph-lastout{margin:8px 0 0;padding:6px 10px;border-radius:8px;font-size:12.5px;background:var(--grey-light);color:var(--muted)}
.ph-lastout-bad{background:var(--bad-wash);color:var(--danger)}
.cm-li-who{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm-li-when{font-size:11.5px;color:var(--grey);white-space:nowrap}
.cm-li-peek{grid-column:2/4;font-size:12.5px;color:var(--grey);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm-li.has-unread .cm-li-who b{color:var(--ink)}
.cm-conv{flex:1;min-height:0;display:flex;flex-direction:column}
.cm-conv-empty{flex:1;display:flex;align-items:center;justify-content:center;padding:20px;text-align:center}
.cm-conv-h{flex:none;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--panel)}
.cm-conv-who{min-width:0;flex:1 1 200px}
.cm-conv-nm{font-weight:700;font-size:15px;overflow:hidden;text-overflow:ellipsis}
.cm-conv-sub{font-size:var(--fs-xs);color:var(--grey);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Darren, on the drawing: the header buttons wrapped onto two lines each. One line each, always; when
   there is no room they move under the name as a row rather than squashing. */
.cm-conv-acts{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}
/* v3.1208.0 — "On a call with Bec Cooper" beside the Call button (public/comms.js onCallPillHtml). Theme tokens only. */
.cm-oncall{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border-radius:999px;white-space:nowrap;
  font-size:var(--fs-xs,12px);font-weight:600;color:var(--ok);border:1px solid var(--ok);
  background:color-mix(in srgb,var(--ok) 10%,transparent)}
.cm-oncall-dot{width:8px;height:8px;border-radius:50%;background:var(--ok);flex:none}
.cm-conv-acts .btn{white-space:nowrap;height:32px;display:inline-flex;align-items:center}
.cm-back{display:none;border:0;background:none;font-size:26px;line-height:1;color:var(--blue-ink);padding:0 4px;cursor:pointer}
.cm-chips{flex:none;display:flex;gap:6px;flex-wrap:wrap;padding:8px 14px;border-bottom:1px solid var(--line);background:var(--panel)}
.cm-chip{height:28px;padding:0 10px;border-radius:999px;border:1px solid var(--line);background:var(--panel);
  font:inherit;font-size:12.5px;font-weight:600;color:var(--grey);cursor:pointer;white-space:nowrap}
.cm-chip span{opacity:.75;margin-left:2px}
.cm-chip.on{background:var(--blue);border-color:var(--blue);color:#fff}
.cm-msgs{flex:1;min-height:0;overflow:auto;padding:10px 12px;display:flex;flex-direction:column}
/* 0700 — Darren: *"The Us and Them only needs to be a slight indent and slightly overlap."* Each side
   takes the full width less a small indent on the other side, so a long email uses the room it has. */
.cm-msgs .cm-row{width:calc(100% - 40px);max-width:none;box-sizing:border-box;background:var(--panel);border:1px solid var(--line);align-self:flex-start;margin:4px 0}
.cm-msgs .cm-row.cm-out{align-self:flex-end;background:var(--blue-lt,#EAF0FF);border-color:transparent}
.cm-msgs .cm-row.cm-callrow{align-self:center;width:calc(100% - 20px)}
.cm-msgs .cm-row.cm-unread{border-color:var(--orange);box-shadow:0 0 0 1px var(--orange)}
.cm-msgs .cm-earlier{align-self:center;width:auto;border-radius:999px;padding:5px 14px;margin:2px 0 8px}
.cm-right .cm-reply{flex:none;border-top:1px solid var(--line);background:var(--panel);padding:10px 14px 12px}
.cm-right .cm-reply .cm-via{margin:0 0 8px}
.cm-right .cm-reply-row{display:flex;gap:8px;align-items:flex-end;margin:0}
.cm-right .cm-reply-row textarea{flex:1;min-height:46px;max-height:180px;resize:vertical}
.cm-right .cm-reply-row .btn{height:40px;padding:0 18px}
.cm-reply-to{margin-top:4px;font-size:11.5px}
.cm-callcard{flex:none;margin:12px 14px 0;padding:12px 14px;border-radius:12px;color:#fff;
  background:linear-gradient(135deg,#0038B8,var(--blue));display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center}
.cm-callcard .cm-av{background:rgba(255,255,255,.2);color:#fff}
.cm-callcard-nm{font-weight:700;font-size:16px}
.cm-callcard-sub{font-size:12.5px;opacity:.9}
.cm-callcard-acts{display:flex;gap:8px}
.cm-callcard .btn.green{background:var(--ok);border-color:var(--ok);color:#fff}
.cm-callcard .btn.red{background:var(--danger);border-color:var(--danger);color:#fff}
.cm-av.ring{animation:cm-ring 1.4s infinite}
@keyframes cm-ring{0%{box-shadow:0 0 0 0 rgba(255,255,255,.55)}70%{box-shadow:0 0 0 12px rgba(255,255,255,0)}100%{box-shadow:0 0 0 0 rgba(255,255,255,0)}}
@media (prefers-reduced-motion:reduce){ .cm-av.ring{animation:none} }
/* The two icons at the top: ☎ is the phone, 💬 the drawer (with the count). */
.cm-btn{position:relative}
.apptop-right .cm-btn{order:3}
.ph-btn .ph-ico{font-size:var(--fs-lg)}
/* The phone's own drop-down (drawing C): the pad and the team in one box under the ☎. */
.ph-pop{position:fixed;top:60px;right:16px;z-index:90;width:min(400px,calc(100vw - 32px));max-height:calc(100vh - 76px);
  overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 50px rgba(35,31,32,.2);padding:14px}
.ph-pop .ph-panel{position:static;width:auto;box-shadow:none;border:0;border-radius:0;padding:0;background:none}
.ph-pop .ph-team{margin-top:12px}
@media (max-width:520px){ .ph-pop{right:8px;left:8px;width:auto} }
/* ---- v3.1118.0, 30 September 2026 — ONE COLUMN, SO NOTHING SITS ON ANSWER ----------------------
   Darren: *"the client pop-up overlaps the phone area so you can't hit the Answer button properly."*
   The caller card (#ph-side) and the services list (#ph-svc) are now docked INSIDE the drop-down,
   under the controls, as ordinary blocks (public/phone.js `dockInPop`). The rule below un-fixes the
   card: `.ph-side` on its own is still the old v3.387.0 popover placement, kept for the drawer-hosted
   shape and anything else that draws one outside the drop-down. */
.ph-pop .ph-side{position:static;width:auto;max-height:none;overflow:visible;box-shadow:none;margin-top:12px;
  padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.ph-svc{margin-top:12px;padding:10px 12px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.ph-svc-h{display:flex;align-items:center;gap:8px;font-size:14px}
.ph-svc-h .cm-x{margin-left:auto}
.ph-svc .cm-tools{padding:8px 0;border-bottom:1px solid var(--line)}
.ph-svc .cm-body{overflow:visible;padding:4px 0 0}
.ph-svc-row{margin-top:6px}
.ph-svc-row .btn.on{border-color:var(--blue);color:var(--blue-ink)}
/* WHILE IT RINGS (and while the services list is open on a call) THE CONTROLS STICK TO THE TOP of
   the drop-down: scroll down to read what they owe or what a service costs, and Answer / Hang up
   are still under your finger. `top` and the negative margins cancel the drop-down's own 14px
   padding, so the stuck strip meets the edge instead of leaving a gap things scroll through. */
.ph-pop.ph-pop-ringing #ph-panel,.ph-pop.ph-pop-svc #ph-panel{position:sticky;top:-14px;z-index:2;
  margin:-14px -14px 0;padding:14px 14px 10px;background:var(--panel);border-bottom:1px solid var(--line)}
/* The ring bar along the bottom of the screen is ~70px tall; the drop-down stops above it rather
   than running underneath it. */
.ph-pop.ph-pop-ringing{max-height:calc(100vh - 76px - 88px)}
body.cm-bar-on .ph-pop.ph-pop-ringing{max-height:calc(100vh - 76px - 88px - var(--cm-bar-h,0px))}
/* The keypad folds away while the list is open on a live call: the two together are taller than a
   laptop screen. Closing the list brings it back. */
.ph-pop.ph-pop-svc .ph-live-call .ph-pad,.ph-pop.ph-pop-svc .ph-pad-hint{display:none}
/* ---- v3.1142.0 (5 October 2026) — ONE LAYOUT FOR A RINGING PHONE AND A CALL ---------------------
   Darren: *"I don't understand why the buttons are one under each other… when someone's calling,
   that's probably how you want it to be when you answer too… I don't think we need the numbers."*
   Both states are now: a status line (Ringing… / On a call 03:12, with Services and Keypad small at its
   right), who it is, ONE row of equal buttons, then the caller card. The keypad, the audio settings and
   the full team list are folds (public/phone.js). Colours are the theme's tokens only, so the dark theme
   follows without a second set of rules. */
.ph-in,.ph-live-call{border-left:0;padding-left:0}
.ph-call-top{display:flex;align-items:center;gap:8px;min-height:28px;margin:0 0 4px}
.ph-call-st{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--orange-ink)}
.ph-call-dot{width:8px;height:8px;border-radius:50%;background:var(--orange);flex:none;animation:ph-pulse 1s infinite}
.ph-call-st-live{color:var(--ok)}
.ph-call-st-live .ph-call-dot{background:var(--ok);animation:none}
.ph-call-st-held{color:var(--warn)}
.ph-call-st-held .ph-call-dot{background:var(--warn);animation:none}
@media (prefers-reduced-motion:reduce){ .ph-call-dot{animation:none} }
.ph-clock{font-variant-numeric:tabular-nums;letter-spacing:.02em;font-weight:700;color:var(--ink)}
.ph-call-tools{margin-left:auto;display:inline-flex;gap:6px;flex:none}
.ph-tool{padding:4px 10px;font-size:var(--fs-xs);border-radius:999px}
.ph-tool.on{border-color:var(--blue);color:var(--blue-ink);background:color-mix(in srgb,var(--blue) 10%,transparent)}
.ph-in .ph-who,.ph-live-call .ph-who{margin:0;font-size:var(--fs-lg);line-height:1.25}
.ph-in .ph-who .hint,.ph-live-call .ph-who .hint{display:block;font-size:var(--fs-sm);line-height:1.3;font-weight:600;color:var(--muted)}
.ph-in .ph-num,.ph-live-call .ph-num{margin:1px 0 0;font-size:12.5px}
/* THE ONE ROW. Equal columns, an icon over a short word: five fit across a 390px phone. */
.ph-acts{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;margin:10px 0 0}
.ph-act{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;
  padding:7px 2px 6px;font-size:11.5px;line-height:1.15;text-align:center}
.ph-act-i{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ph-act-l{display:block;max-width:100%;overflow-wrap:anywhere}
.ph-act.on{border-color:var(--blue);color:var(--blue-ink);background:color-mix(in srgb,var(--blue) 12%,transparent)}
.ph-act.danger{background:var(--danger);border-color:var(--danger);color:var(--panel)}
.ph-act.danger:hover{background:color-mix(in srgb,var(--danger) 88%,var(--ink))}
.ph-live-call .ph-pad{margin:10px 0 4px}
.ph-live-call .ph-xfer{margin-top:10px}
/* THE CALLER CARD: tiles two across, the last call the width of the card. Green for good news, red for
   money that is late, the accent for open work; a section we could not read is grey and says so. */
.ph-pop .ph-side{margin-top:10px}
.ph-cg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.ph-ct{display:flex;flex-direction:column;gap:1px;min-width:0;padding:7px 10px 8px;border:1px solid var(--line);
  border-left:3px solid var(--line);border-radius:10px;background:var(--panel-2,var(--panel))}
.ph-ct-wide{grid-column:1/-1}
.ph-ct-k{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ph-ct-v{font-size:15px;font-weight:700;line-height:1.25;color:var(--ink);overflow-wrap:anywhere}
.ph-ct-s{font-size:var(--fs-xs);line-height:1.3;color:var(--muted);overflow-wrap:anywhere}
.ph-ct-good{border-left-color:var(--ok)}
.ph-ct-good .ph-ct-v{color:var(--ok)}
.ph-ct-bad{border-left-color:var(--danger)}
.ph-ct-bad .ph-ct-v{color:var(--danger)}
.ph-ct-warn{border-left-color:var(--orange)}
.ph-ct-unk .ph-ct-v{color:var(--muted);font-weight:600}
.ph-card .glance-enq{margin-top:10px}
.ph-card-foot{margin:8px 0 0;text-align:right}
.ph-card-h{margin:0 0 2px;font-size:15px}
.ph-card-unknown .bi-actions{margin:8px 0 0}
.ph-card-note{margin:0}
/* AUDIO SETTINGS, under the card: shut, a line naming the microphone and the small level bar. */
.ph-audio{margin-top:10px;padding:6px 12px 8px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.ph-audio-t{display:flex;align-items:center;gap:8px;width:100%;padding:4px 0;border:0;background:0;font:inherit;
  color:var(--ink);text-align:left;cursor:pointer}
.ph-audio-t b{font-size:var(--fs-sm);font-weight:600}
.ph-audio-w{margin-left:auto;max-width:58%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--fs-xs);color:var(--muted)}
.ph-audio .ph-micbar-sm{margin:4px 0 2px}
.ph-audio-b{padding-top:4px}
/* THE TEAM AS ONE STRIP while a call rings or is up: a chip per colleague, Transfer inside the free ones. */
.ph-pop .ph-team.ph-team-strip{margin-top:10px;padding:6px 12px 8px}
.ph-team-strip .ph-team-caret{font-size:var(--fs-xs)}
.ph-chips{display:flex;flex-wrap:wrap;gap:6px;padding:4px 0 2px}
.ph-chip{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:2px 4px 2px 9px;border:1px solid var(--line);
  border-radius:999px;background:var(--panel);font-size:12.5px}
.ph-chip b{font-weight:600}
.ph-chip .ph-dot{width:8px;height:8px;border-radius:50%;flex:none;border:2px solid var(--line);background:transparent}
.ph-chip .hint{padding-right:6px}
.ph-chip .btn.small{padding:3px 10px;font-size:11.5px;border-radius:999px}
.ph-chip.ph-mate-ready .ph-dot{background:var(--ok);border-color:var(--ok)}
.ph-chip.ph-mate-busy .ph-dot{background:var(--danger);border-color:var(--danger)}
.ph-chip.ph-mate-ringing .ph-dot{background:var(--orange);border-color:var(--orange)}
/* The status line under the buttons takes no room until it has something to say. */
.ph-live-call .save-status:empty{display:none}
.ph-pop.ph-pop-live #ph-panel{position:sticky;top:-14px;z-index:2;margin:-14px -14px 0;padding:14px 14px 10px;
  background:var(--panel);border-bottom:1px solid var(--line)}
/* The pickers moved out of #ph-panel into the audio fold; they keep the panel's label styling. */
.ph-audio .ph-lab{display:grid;gap:5px;font-size:var(--fs-sm);font-weight:600;color:var(--grey)}
@media (max-width:860px){
  .cm-split{grid-template-columns:1fr}
  .cm-divider,.cm-edge{display:none}
  .cm-split:not(.show-conv) .cm-right{display:none}
  .cm-split.show-conv .cm-left{display:none}
  .cm-back{display:inline-block}
  .cm-cols{flex-direction:column;overflow:hidden}
  .cm-main{flex:1;min-height:0}
  .cm-left > .cm-body{overflow:auto}
  .cm-msgs .cm-row{max-width:88%}
  .cm-conv-acts .btn{height:30px;padding:0 9px;font-size:12.5px}
}
/* 0697 — the drawer and the phone's drop-down start under the urgent bar too, like the header does;
   they were drawn under it, hiding the drawer's own title line and the 💬 / ☎ buttons. */
body.cm-bar-on .cm-drawer{top:calc(56px + var(--cm-bar-h,0px))}
body.cm-bar-on .ph-pop{top:calc(60px + var(--cm-bar-h,0px));max-height:calc(100vh - 76px - var(--cm-bar-h,0px))}
/* A short conversation sits at the BOTTOM, against the reply box, the way every chat does. */
.cm-msgs > :first-child{margin-top:auto}
/* 0698, v3.864.0 — the event's "All day" tick sits on the row with the times, not stretched like a text box. */
.edge-form .edge-ev-allday{display:flex;align-items:center;gap:8px;align-self:end;min-height:40px}
.edge-form .edge-ev-allday input{width:auto;margin:0}
/* 0699, v3.864.0 — the Choose-all bar on the "Waiting for you" heading's line, not a line of its own. */
.enq-head .ia-headbar{flex:1 1 320px;min-width:0}
.enq-head .ia-headbar .ib-bulk{margin:0}
/* 0699, v3.864.0 — the Inbox's title, About, search and Compact view on one line inside the chip box. */
#view-inbox:has(.ib-headrow) > .view-head{display:none}
.ib-headrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.ib-headrow .ib-h1{margin:0;font-size:1.45rem;line-height:1.2;white-space:nowrap}
.ib-headrow .ib-tools{flex:1 1 380px;margin:0;min-width:0}
.ib-sects .ib-about{margin:0 0 10px;max-width:760px}

/* 0700, v3.865.0 — THE SLIDE BARS. The line between the people and the conversation, and the drawer's
   own left edge: drag either (or focus it and use the arrow keys); double-click puts it back. */
.cm-divider{cursor:col-resize;background:var(--line);background-clip:content-box;padding:0 3px;min-height:0;touch-action:none;outline:none}
.cm-divider:hover,.cm-divider:focus-visible,body.cm-resizing .cm-divider{background-color:var(--blue)}
.cm-edge{position:absolute;left:-4px;top:0;bottom:0;width:9px;cursor:col-resize;z-index:2;touch-action:none;outline:none}
.cm-edge::after{content:"";position:absolute;left:3px;top:50%;height:44px;margin-top:-22px;width:3px;border-radius:3px;background:var(--line)}
.cm-edge:hover::after,.cm-edge:focus-visible::after,body.cm-resizing .cm-edge::after{background:var(--blue);top:0;height:100%;margin-top:0}
body.cm-resizing{cursor:col-resize;user-select:none}
/* (No animation override while dragging: switching it back on at the end replays the drawer's slide-in
   and moves the bar out from under a second press.) */

/* 0701, v3.866.0 — THE MEMBER BADGE STAYS ON SCREEN. Darren: *"make sure that the membership badge
   doesn't disappear even if you shrink that side."* The row's name line was one nowrap box clipped at
   its end, so a long name pushed the badge (and the unread count) off it. Now the NAME gives way —
   it is cut with … — and the badge and count never shrink. In a narrow list the badge drops the word
   "member" and keeps the tier. */
.cm-left{container-type:inline-size}
.cm-li-who{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden}
.cm-li-who > b{min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-li-who > .edge-badge,.cm-li-who > .cm-n{flex:none;white-space:nowrap}
@container (max-width:380px){ .cm-li .mb-suf{display:none} }
/* A very narrow list: the time goes under the name, and the badge under the name too, so the name,
   the badge and the count each get the full width of the row rather than sharing 20px of it. */
@container (max-width:320px){
  .cm-li-b{grid-template-columns:34px minmax(0,1fr)}
  .cm-li-when{grid-column:2}
  .cm-li-peek{grid-column:2}
  .cm-li-who{flex-wrap:wrap;row-gap:2px}
  .cm-li-who > b{flex-basis:100%}
}

/* 0703, v3.868.0 — SIMPRO TRANSFER: THE EXCEL DESTINATION AND "EVERYTHING ELSE". Tick boxes grouped into
   small boxes that wrap across the width; the destination choice sits on one line. */
/* v3.1110.0 — a fieldset is as wide as its widest child by default (min-width:min-content), and the
   workspace picker's options carry the whole Simpro address, so on a phone the Source and Destination
   boxes were 480px wide on a 390px screen. The box fits the screen and the dropdown fits the box. */
.ax-side{min-width:0;max-width:100%}
.ax-side select{max-width:100%}
.ax-destkind{display:flex;flex-wrap:wrap;gap:6px 18px;margin:4px 0 10px}
.ax-destkind label{display:inline-flex;align-items:center;gap:6px;font-weight:500}
.ax-xgroups{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;margin:8px 0 12px}
.ax-xgroup{border:1px solid var(--line);border-radius:8px;padding:6px 10px 8px;margin:0;min-width:0}
.ax-xgroup legend{font-weight:600;font-size:var(--fs-sm);padding:0 4px}
.ax-xgroup label{display:flex;align-items:flex-start;gap:6px;margin:3px 0;line-height:1.3}
.ax-xgroup .pill{margin-left:auto;flex:none}
/* v3.1209.1 — what a Simpro Transfer is for, and the Catalogue & templates step. */
.ax-what{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;border:1px solid var(--line);border-radius:8px;padding:6px 10px 8px;margin:6px 0 12px;min-width:0}
.ax-what legend{font-weight:600;font-size:var(--fs-sm);padding:0 4px}
.ax-what label,.ax-catopts label{display:inline-flex;align-items:center;gap:6px;font-weight:500}
.ax-catopts{display:flex;flex-wrap:wrap;gap:6px 18px}
.ax-tablewrap{overflow-x:auto;max-width:100%}
.ax-vtable select,.ax-vtable .ax-vother{max-width:260px}
.ax-vtable .ax-vother{display:block;margin-top:4px}
@media (max-width:640px){.ax-vtable,.ax-vtable tbody{display:block;width:100%}.ax-vtable td{white-space:normal;overflow-wrap:anywhere}.ax-vtable thead{display:none}.ax-vtable tr,.ax-vtable td{display:block}.ax-vtable td{border:0;padding:4px 12px}.ax-vtable tr{border-bottom:1px solid var(--line);padding:6px 0}.ax-vtable select,.ax-vtable .ax-vother{max-width:100%;width:100%}}
.ax-vtable tr.ax-needs td:first-child{box-shadow:inset 3px 0 0 var(--warn)}
.ax-catcounts td:not(:first-child),.ax-catcounts th:not(:first-child){text-align:right}

/* 0704, v3.869.0 — the Zoom panel's one bar and folded details. */
#al-zoom .alz-bar{height:8px;border-radius:4px;background:var(--line);overflow:hidden;margin:4px 0 12px;max-width:640px}
#al-zoom .alz-bar span{display:block;height:100%;background:var(--accent,#004EFE);}
#al-zoom .alz-details{margin-top:14px}

/* 0705, v3.870.0 — the summary first. An email: summary, then the email on a press, then the chain on
   "More". A text or chat conversation: one summary and a next step above the messages. */
.cm-brief .cm-next{margin-top:4px}
.cm-mailacts{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.cm-mailbtn{background:none;border:1px solid var(--line);border-radius:999px;padding:2px 10px;font:inherit;font-size:var(--fs-xs);color:var(--blue-ink);cursor:pointer}
.cm-mailbtn:hover{background:var(--hover,rgba(0,78,254,.06))}
.cm-mailmain,.cm-mailchain{white-space:pre-wrap;margin-top:6px}
.cm-mailchain{color:var(--muted);border-left:3px solid var(--line);padding-left:8px;max-height:420px;overflow:auto}
.cm-convbrief{margin:6px 10px 0;max-height:34vh;overflow:auto;flex:none}
.cm-convbrief .cm-brief{margin:0}

/* 0707, v3.872.0 — tick all / none, and "only these numbers". */
.ax-allnone{margin:4px 0 0;font-size:var(--fs-sm)}
.ax-only{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center}
.ax-only input[type=text]{width:220px;max-width:100%}

/* 0708, v3.872.0 — Darren, of the allowance line's ? on Your membership: *"css needs work"*. The pop is
   dark blue, and the figures inside it kept the page's own colours — grey labels (unreadable on blue)
   and a pale box with dark text that read as a different component. Everything in the pop is now
   drawn FOR the pop: light labels, the figures as small chips, the "when" line a quiet band. */
.edge-inc-row .help-pop .edge-nums{gap:6px;margin:0 0 8px;color:rgba(255,255,255,.82)}
.edge-inc-row .help-pop .edge-nums > span{background:rgba(255,255,255,.12);border-radius:999px;padding:2px 9px;white-space:nowrap}
.edge-inc-row .help-pop .edge-nums b{color:#fff;font-size:12.5px}
.edge-inc-row .help-pop .edge-next{background:rgba(255,255,255,.1);color:#fff;border:0;border-left:3px solid #ffb877;border-radius:6px;padding:7px 9px;margin:0 0 8px;line-height:1.45}
.edge-inc-row .help-pop .edge-usewhat{color:rgba(255,255,255,.9);line-height:1.5}

/* 0709, v3.872.0 — YOUR MEMBERSHIP BENEFITS: the badge and count, the exclusive discount card in the
   tier's own colours, and one ticked list of everything that is theirs while the membership runs. */
.edge-benefits .edge-ben-sub{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:-2px 0 12px}
.edge-benefits .edge-ben-sub .edge-badge{font-size:11.5px;padding:3px 10px}
.edge-ben-count{font-size:12.5px;color:var(--muted);font-weight:600}
.edge-ben-h{font-size:var(--fs-xs);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:16px 0 4px;font-weight:700}
/* v3.1137.0 (3 October 2026) — "NOT IN YOUR PLAN". Darren: "showing that it's not available may create a little bit of
   FOMO. If they hover over it, we could show the allowances on the other tiers that do have it." Quiet, not an error:
   the line in the page's muted ink, a soft outlined pill that is a real button (hover, focus or tap opens the list),
   and the list in the same dark-blue bubble the ? uses. Theme tokens only, so dark mode follows on its own. On a phone
   the bubble pins to the bottom of the screen like the ? does, so it never hangs off the edge. */
.edge-inc-other .edge-inc-name{color:var(--muted);font-weight:600}
.edge-inc-other .edge-inc-off{font-size:14px;color:var(--muted);text-align:right}
.edge-fomo{position:relative;display:inline-flex}
.edge-fomo-btn{font:inherit;font-size:11.5px;font-weight:700;line-height:1.2;padding:3px 10px;border-radius:999px;cursor:pointer;
  background:transparent;color:var(--blue-ink);border:1px dashed var(--blue-ink);white-space:nowrap}
.edge-fomo-btn:hover,.edge-fomo.on .edge-fomo-btn{background:var(--blue-lt);border-style:solid}
.edge-fomo-btn:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.edge-fomo-pop{visibility:hidden;opacity:0;pointer-events:none;position:absolute;z-index:60;right:0;top:calc(100% + 6px);width:250px;
  background:var(--blue-dark);color:var(--s-hero-ink);border-radius:var(--r,10px);padding:10px 12px;font-size:12.5px;line-height:1.5;
  box-shadow:var(--shadow);transition:opacity var(--dur-1) var(--ease-out);text-align:left;display:flex;flex-direction:column;gap:5px}
.edge-fomo-pop::before{content:"";position:absolute;left:0;right:0;top:-8px;height:8px}
.edge-fomo:hover .edge-fomo-pop,.edge-fomo:focus-within .edge-fomo-pop,.edge-fomo.on .edge-fomo-pop{visibility:visible;opacity:1;pointer-events:auto}
.edge-fomo-h{font-weight:800}
.edge-fomo-who{font-weight:600}
.edge-fomo-fine{opacity:.85}
.edge-fomo-pop .edge-fomo-go{color:inherit;text-decoration:underline;font-weight:700;text-align:left;padding:0;align-self:flex-start}
@media (max-width:620px){
  .edge-fomo-pop{position:fixed;left:12px;right:12px;top:auto;bottom:12px;width:auto}
}
.edge-disc{position:relative;overflow:hidden;border-radius:14px;padding:16px 18px 14px;color:#fff;margin:0 0 6px;
  background:linear-gradient(135deg,#0038B8,#004EFE);box-shadow:0 10px 24px rgba(0,56,184,.22)}
.edge-disc::after{content:"";position:absolute;right:-40px;top:-40px;width:140px;height:140px;border-radius:50%;background:rgba(255,255,255,.10)}
.edge-disc.tier-platinum{background:linear-gradient(135deg,#1b2633 0%,#3d5064 55%,#8fa3b8 100%)}
.edge-disc.tier-gold{background:linear-gradient(135deg,#7a560d 0%,#b98a26 55%,#f0cf73 100%)}
.edge-disc-tag{display:inline-block;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:3px 10px}
.edge-disc-big{display:flex;align-items:baseline;gap:6px;margin:8px 0 2px;line-height:1}
.edge-disc-big b{font-size:48px;font-weight:800;letter-spacing:-.02em;text-shadow:0 2px 0 rgba(0,0,0,.15)}
.edge-disc-big span{font-size:18px;font-weight:700;opacity:.9}
.edge-disc-what{margin:6px 0 4px;font-size:14px;line-height:1.4;position:relative;z-index:1}
.edge-disc-what b{color:#fff}
.edge-disc-fine{margin:0;font-size:11.5px;opacity:.85;position:relative;z-index:1}
.edge-ben-list{list-style:none;margin:4px 0 0;padding:0}
.edge-ben-list li{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-top:1px solid var(--line)}
.edge-ben-list li:first-child{border-top:0}
.edge-ben-tick{flex:none;width:22px;height:22px;border-radius:50%;background:#e7f6ec;color:#15803d;font-weight:800;font-size:var(--fs-sm);display:grid;place-items:center}
.edge-ben-list b{display:block;font-weight:600}
.edge-ben-list small{display:block;color:var(--muted);font-size:var(--fs-xs);line-height:1.35;margin-top:1px}
/* v3.1078.0 — FILE BUTTONS FOLLOW THE SAME ANSWER THE DOWNLOAD ROUTES REFUSE ON. public/ui.js marks
   the page from /api/me: `data-file-refused` for a Platinum staff member without data.export (a
   customer's list is theirs, not ours to take away), `data-no-export` for anybody without data.export
   (a file of our own book). A hidden button is a courtesy — every route still refuses on its own. */
html[data-file-refused] [data-staff-file],html[data-no-export] [data-our-book]{display:none!important}
/* v3.1200.0 — "Can download all data" (src/downloadall.js): hidden from a member who has not been given it. The routes refuse anyway. */
html[data-no-download-all] [data-all-data]{display:none!important}
.team-dl{display:inline-flex;align-items:center;gap:6px;margin-top:4px;font-size:.88em;cursor:pointer}
/* v3.1203.1 — "Can see billing" and an owner's password reset: the answer beside the control, red when it did not go */
[data-team-bill-say],[data-team-reset-say]{font-size:var(--fs-sm)}
[data-team-bill-say].bad,[data-team-reset-say].bad{color:var(--danger)}
/* lane userapps (3.1222) — apps per person on Team › My team: the ticks wrap, each with its Saved beside it; staff get the switch above the list */
.ua-apps{display:grid;grid-template-columns:repeat(auto-fill,minmax(178px,1fr));gap:0 12px}
table.grid tr.ua-tr>td{border-top:0;padding-top:0}
.ua-apps-row{padding-left:42px}
/* A phone scrolls the team table sideways (as it always has); the ticks stay in view at its left edge. */
@media (max-width:700px){.ua-apps-row{position:sticky;left:0;max-width:calc(100vw - 104px);padding-left:0;grid-template-columns:repeat(2,minmax(0,1fr))}}
.ua-cell{display:inline-flex;align-items:center;gap:4px;min-width:0}
.ua-cell .ua-tick,.ua-cell .team-dl{margin-top:2px;font-size:.82em;line-height:1.25;white-space:normal}
.ua-cell [data-ua-say]{font-size:var(--fs-sm)}
.ua-cell [data-ua-say].bad,[data-ua-sw-say].bad{color:var(--danger)}
.ua-switch{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0 0 10px;padding:8px 12px;border:1px solid var(--line);border-radius:var(--rad-in,10px);background:var(--bg)}
.ua-sw-l{display:inline-flex;align-items:center;gap:6px;font-size:.88em}
.ao-ws{margin:6px 0}.ao-ws summary{cursor:pointer;font-size:.9em;font-weight:600}

/* ---- "DID YOU KNOW…" on the Your rate screen (src/ohcinsights.js) ------------------------------
   Cards that flow like the rest of the results grid: one column on a phone, as many as fit on a big
   monitor. Tokens only, so the dark theme follows without a second set of rules. */
.dyk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px;margin:6px 0 10px}
/* v3.1104.0 — "Did you know" folds to one strip with a Show me button; one headline turns over at a time. */
.dyk-strip{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--panel);border:1px solid var(--line);border-left:4px solid var(--orange,#f7941d);border-radius:var(--r);padding:8px 12px;margin:4px 0 8px}
.dyk-strip .dyk-count{font-weight:700;color:var(--blue-dark-ink);white-space:nowrap}
.dyk-strip .dyk-flash{flex:1 1 260px;min-width:0;color:inherit;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dyk-strip .dyk-show{margin-left:auto}
.dyk-flash.dyk-in{animation:dykIn .45s ease-out}
@keyframes dykIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.dyk-flash.dyk-in{animation:none}}
/* v3.1110.0 — and the count wraps too: "4 things worked out from your figures · 2 worth checking" on one
   unbreakable line was 387px of a 390px phone, and the strip's padding pushed the page sideways. */
@media (max-width:640px){.dyk-strip .dyk-flash{white-space:normal}.dyk-strip .dyk-count{white-space:normal;min-width:0;flex:1 1 200px}}
.dyk-item{background:var(--panel);border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:var(--r);padding:10px 13px}
.dyk-item.dyk-risk{border-left-color:var(--orange)}
.dyk-item.dyk-benchmark{border-left-color:var(--muted)}
.dyk-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:4px}
.dyk-tag,.dyk-conf,.dyk-subj{font-size:11px;letter-spacing:.3px;text-transform:uppercase;color:var(--muted)}
.dyk-tag{font-weight:700}
.dyk-subj{text-transform:none;font-weight:600}
.dyk-head{font-weight:700;line-height:1.4}
.dyk-detail{margin-top:4px;line-height:1.45}
.dyk-basis{margin-top:4px;font-size:var(--fs-xs);color:var(--muted);line-height:1.4}
.dyk-more>summary,.dyk-checks>summary{cursor:pointer;margin:6px 0}
.dyk-checks{margin-top:8px}
.dyk-cgroup{margin:6px 0 8px}
.dyk-clabel{font-weight:700;font-size:var(--fs-sm)}
.dyk-cgroup ul{margin:4px 0 0;padding-left:18px}
.dyk-cgroup li{margin:3px 0}
.dyk-ai{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.dyk-ai #dyk-ai-out{flex:1 1 100%}
.dyk-ai-card p{margin:6px 0}
.dyk-pri{margin:6px 0;padding-left:20px}
.dyk-pri li{margin:5px 0}

/* ---- 0272, v3.1103.0 — REPLY SCRIPTS: the Scripts dropdown and Suggest over a reply box, and the Set-up panel ---- */
.rs-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0}
.rs-bar .rs-pick{max-width:240px;min-width:0;flex:0 1 auto;font-size:var(--fs-sm);padding:4px 6px}
.rs-bar .rs-count{font-size:var(--fs-xs)}
.rs-chips{flex-basis:100%;display:flex;flex-direction:column;gap:5px}
.rs-chip{text-align:left;border:1px solid var(--line);background:var(--tint);border-radius:9px;padding:6px 9px;
  font:inherit;font-size:var(--fs-sm);line-height:1.35;cursor:pointer;color:inherit;white-space:normal}
.rs-chip:hover,.rs-chip:focus-visible{border-color:var(--orange)}
.rs-msg{flex-basis:100%;font-size:var(--fs-xs)}
.rs-compact{margin:4px 0}
.rs-list{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.rs-row{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;border:1px solid var(--line);
  border-radius:9px;padding:8px 10px}
.rs-row.rs-off{opacity:.7}
.rs-row-main{min-width:0;flex:1 1 auto}
.rs-row-peek{margin-top:3px;overflow-wrap:anywhere}
.rs-row-acts{display:flex;flex-wrap:wrap;gap:4px;flex:0 0 auto}
.rs-tag{display:inline-block;font-size:11px;padding:1px 7px;border-radius:999px;background:var(--tint);margin-left:2px}
.rs-chs{border:0;padding:0;margin:8px 0;display:flex;flex-wrap:wrap;gap:12px}
.rs-chs legend{font-size:var(--fs-sm);font-weight:600;margin-bottom:4px}
.rs-prev{margin:10px 0;padding:10px 12px;background:var(--tint);border-radius:9px}
.rs-prev-h{display:block;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;margin-bottom:6px}
.rs-prev-box{white-space:normal;overflow-wrap:anywhere}
@media (max-width:640px){.rs-row{flex-direction:column}.rs-bar .rs-pick{max-width:100%;flex:1 1 100%}}

/* v3.1105.0 — where a chat came from, beside the name when there is no member badge. */
.edge-badge.src-badge{font-weight:700;border:1px solid transparent}
.edge-badge.src-web{background:#EAF0FF;color:#0038b8;border-color:#D6E3FF}
.edge-badge.src-fb{background:#e7f0fd;color:#1a56b8;border-color:#bcd3f5}
.edge-badge.src-app{background:#fff1e3;color:#9a4a00;border-color:#ffd6ad}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .edge-badge.src-web,:root:not([data-theme="light"]) .edge-badge.src-fb{background:#1c2a4a;color:#bcd0ff;border-color:#2f4577}:root:not([data-theme="light"]) .edge-badge.src-app{background:#3a2610;color:#ffc98f;border-color:#5a3a16}}
:root[data-theme="dark"] .edge-badge.src-web,:root[data-theme="dark"] .edge-badge.src-fb{background:#1c2a4a;color:#bcd0ff;border-color:#2f4577}
:root[data-theme="dark"] .edge-badge.src-app{background:#3a2610;color:#ffc98f;border-color:#5a3a16}

/* v3.1105.0 — Worth checking: one red line, closed, with Show me; each kind can be answered "That's fine". */
.dyk-checks{border:1px solid color-mix(in srgb, var(--danger,#c62828) 35%, transparent);border-left:4px solid var(--danger,#c62828);border-radius:var(--r);padding:6px 12px;margin:8px 0;background:var(--panel)}
.dyk-checks>summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;list-style:none}
.dyk-checks>summary::-webkit-details-marker{display:none}
.dyk-checks .dyk-warn{color:var(--danger,#c62828);font-weight:800}
.dyk-checks .dyk-warn-n{color:var(--danger,#c62828);font-weight:700}
.dyk-checks .dyk-checks-show{margin-left:auto}
.dyk-checks .when-open{display:none}
.dyk-checks[open] .when-open{display:inline}
.dyk-checks[open] .when-closed{display:none}
.dyk-clabel{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dyk-clabel .dyk-ok{margin-left:auto}

/* v3.1105.0 — "Allow Platinum Consultants" leads the Account screen and is marked as the one to find. */
.panel.acc-access-lead{border:1px solid var(--blue);border-left:5px solid var(--orange);background:linear-gradient(0deg,var(--panel),var(--panel)) padding-box}
.panel.acc-access-lead #C9C7C7-support-allow{width:20px;height:20px}

/* v3.1106.0 — an open "May we come in?" ask marks My Account, and is said under the switch. */
.tab .ask-dot{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;margin-left:6px;border-radius:8px;background:var(--danger,#c62828);color:#fff;font-size:11px;font-weight:800;line-height:1}
.ask-inline{color:var(--danger,#c62828)}

/* v3.1107.0 — "Open a membership" is a button top right that opens a window almost as wide as the screen. */
.enq-head .edge-om-open{margin-left:auto}
.edge-om-ov{position:fixed;inset:0;z-index:1500;background:rgba(35,31,32,.45);display:flex;align-items:flex-start;justify-content:center;padding:3vh 2vw;overflow:auto}
.edge-om-ov[hidden]{display:none}
.edge-om-card{position:relative;width:96vw;max-width:96vw;background:var(--bg,var(--panel));border-radius:var(--r);box-shadow:0 20px 60px rgba(0,0,0,.35);padding:14px 16px 18px}
.edge-om-card > .edge-seg > .panel{margin:0;max-width:none}
.edge-om-x{position:absolute;top:10px;right:12px;z-index:2}
@media (max-width:640px){.edge-om-ov{padding:0}.edge-om-card{width:100vw;max-width:100vw;min-height:100vh;border-radius:0}}
/* v3.1116.0 — a membership just opened is marked on the list for a few seconds (edgeRefreshMemberList),
   so the eye finds the new row among twenty. Colour AND an inset bar, so it is not colour alone. */
.edge-members tr.edge-row-new>td{background:color-mix(in srgb,var(--orange) 16%,transparent);transition:background var(--dur-3) var(--ease-out)}
.edge-members tr.edge-row-new>td:first-child{box-shadow:inset 4px 0 0 var(--orange)}
@media (prefers-reduced-motion:reduce){.edge-members tr.edge-row-new>td{transition:none}}

/* v3.1111.0 — Public Holidays step 1: the two ticks as two labelled rows (see holidaysWhereHtml). The box
   keeps its own width and sits on the label's first line; the sentence wraps under the label, never
   beside the box, so a phone gets two short rows rather than one squeezed column. */
/* (v3.1112.0: the rules themselves moved to the redrawn screen's block at the end of this file — two
   switches side by side on a desktop, one under the other on a phone, for the same reason.) */

/* v3.1112.0 (30 September 2026) — THE PUBLIC HOLIDAYS IMPORTER, REDRAWN (see holidaysHtml in app.js).
   Darren: "this UI isn't great." One settings card (state, year and activity side by side, two switches),
   a result that leads with four tiles which are also its filters, the people grouped by state with their
   holidays as date chips, and the one write in a bar that stays at the bottom of the screen. Every colour
   is a theme token, so light and dark are the same design; each text colour here was chosen from the pairs
   test/v31111a11y already measures (ink on panel/tint/ok-soft/orange-soft, ok/warn/danger on panel). */
.hol-ui{display:flex;flex-direction:column;gap:0}
.hol-set-head,.hol-res-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 10px}
.hol-set-head h2,.hol-res-head h2{margin:0}
.hol-chip{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;max-width:100%;padding:4px 12px;border-radius:999px;
  border:1px solid var(--line);background:var(--ok-soft);color:var(--ink);font-size:var(--fs-sm);line-height:1.4}
.hol-chip.warn{background:var(--orange-soft)}
.hol-chip .linkbtn{font-size:var(--fs-sm)}
.hol-ask{flex-basis:100%;margin:0}
.hol-set-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;max-width:880px}
.hol-set-grid .field{max-width:none;min-width:0}
.hol-set-grid select{width:100%;min-width:0}
.hol-ticks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:14px 0 6px;max-width:880px}
.hol-tick-row{display:flex;align-items:flex-start;gap:6px;min-width:0}
.hol-tick{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.4;cursor:pointer;min-width:0}
.hol-tick > span{min-width:0}
.hol-tick .hint{display:block;margin:2px 0 0}
/* The box, drawn as a switch. Still an <input type="checkbox">: the keyboard, the label and a screen
   reader get exactly what they got before. */
.hol-switch{appearance:none;-webkit-appearance:none;flex:none;position:relative;width:36px;height:20px;margin:1px 0 0;
  border-radius:999px;background:var(--grey-mid);border:1px solid var(--line);cursor:pointer;transition:background var(--dur-2) var(--ease-out)}
.hol-switch::before{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;
  background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.3);transition:transform var(--dur-2) var(--ease-move)}
.hol-switch:checked{background:var(--blue);border-color:var(--blue)}
.hol-switch:checked::before{transform:translateX(16px)}
.hol-switch:focus-visible{outline:2px solid var(--accent-ink);outline-offset:2px}
.hol-people{margin:6px 0 0}
.hol-run{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:10px 0 0}
#hol-msg:empty{display:none}
.hol-loading{display:flex;align-items:center;gap:10px;color:var(--ink);margin:4px 0 12px}
.hol-spin{width:16px;height:16px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--blue);animation:holspin .8s linear infinite;flex:none}
@keyframes holspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.hol-spin{animation:none}}
.hol-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:4px 0 14px}
.hol-tile{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-width:0;padding:10px 14px;text-align:left;
  font:inherit;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:10px;cursor:pointer}
.hol-tile:hover{border-color:var(--blue)}
.hol-tile.on{background:var(--accent-soft);border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.hol-tile-n{font-size:24px;font-weight:800;line-height:1.1}
.hol-tile-l{font-weight:700;font-size:var(--fs-sm)}
.hol-tile-s{font-size:var(--fs-xs);color:var(--muted)}
.hol-t-add .hol-tile-n{color:var(--ok)}
.hol-t-move .hol-tile-n{color:var(--warn)}
.hol-t-ok .hol-tile-n{color:var(--muted)}
.hol-t-bad .hol-tile-n{color:var(--danger)}
.hol-tile.zero .hol-tile-n{color:var(--muted)}
.hol-skel span{display:block;height:70px;border-radius:10px;background:var(--tint);border:1px solid var(--line)}
.hol-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 6px}
.hol-search{flex:0 1 320px;min-width:0}
.hol-search input{width:100%}
.hol-shown{margin:4px 0 6px}
.hol-table{width:100%}
.hol-table tr.hol-grp th{text-align:left;background:var(--tint);color:var(--ink);font-weight:700;position:static}
.hol-sort{font:inherit;font-weight:700;color:inherit;background:none;border:0;padding:0;cursor:pointer;white-space:nowrap}
.hol-sort:focus-visible,.hol-exp:focus-visible{outline:2px solid var(--accent-ink);outline-offset:2px}
.hol-exp{display:inline-flex;align-items:baseline;gap:6px;font:inherit;color:var(--ink);background:none;border:0;padding:2px 0;cursor:pointer;text-align:left}
.hol-caret{color:var(--muted);width:10px;flex:none}
/* position:relative so the pill's .sr-only reason (absolutely placed) stays inside the table's scroll box —
   without it the 1px box escaped to the page and gave a phone a sideways scroll. */
.hol-pill{position:relative;display:inline-block;white-space:nowrap;font-size:var(--fs-xs);font-weight:700;padding:1px 9px;border-radius:999px;border:1px solid currentColor;cursor:default}
.hol-pill.bad{color:var(--danger)}
.hol-pill.ok{color:var(--ok);font-weight:600}
.hol-detail td{background:var(--panel-2)}
.hol-dcs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0}
.hol-dcs-h{font-size:var(--fs-xs);font-weight:700;color:var(--muted);min-width:110px}
.hol-dc{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:4px;font-size:var(--fs-xs);padding:2px 9px;border-radius:999px;
  border:1px solid var(--line);border-left:4px solid var(--grey-mid);background:var(--panel);color:var(--ink)}
.hol-dc.add{border-left-color:var(--ok)}
.hol-dc.move{border-left-color:var(--warn)}
.hol-dc.ok{border-left-color:var(--grey-mid)}
.hol-dc.held{border-left-color:var(--orange)}
.hol-dc-x{color:var(--muted)}
.hol-held h3{margin-top:0}
/* STICKY ON THE HOST, not the bar: a sticky box is held inside its parent, and the bar's parent is the host,
   which is exactly as tall as the bar — so the bar itself could never move. The host's parent is the whole
   result panel, so the bar rides the bottom of the screen for as long as the table is on it. */
#hol-bar-host{position:sticky;bottom:0;z-index:5}
.hol-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:14px 0 0;
  padding:12px 14px;background:var(--panel);border:1px solid var(--line);box-shadow:0 -6px 14px rgba(35,31,32,.10);
  border-radius:var(--r)}
.hol-bar-note{flex:1 1 200px}
#hol-apply-msg:empty{display:none}
#hol-apply-msg{flex-basis:100%}
@media (max-width:900px){.hol-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .hol-set-grid,.hol-ticks{grid-template-columns:minmax(0,1fr)}
  .hol-bar{padding:10px 12px}
  .hol-bar .btn{flex:1 1 100%}
  .hol-dcs-h{min-width:0;flex-basis:100%}
  .hol-search{flex-basis:100%}
}
/* v3.1113.0 (30 Sep 2026) — the importer: which Simpro and company, the tiles' `?` beside (not inside) each
   tile, the zero counts as one muted line, the people and holiday pickers, and the write as it goes. */
.hol-conn{margin:0 0 10px;font-size:var(--fs-sm);color:var(--ink)}
.hol-conn .linkbtn{font-size:var(--fs-sm)}
.hol-tile-w{position:relative;display:flex;min-width:0}
.hol-tile-w .hol-tile{flex:1 1 auto;padding-right:30px}
.hol-tile-q{position:absolute;top:8px;right:8px}
.hol-zero{margin:-6px 0 12px}
.hol-pick{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 8px}
.hol-pick-n{margin-right:4px}
.hol-team{display:inline-flex;align-items:center;gap:6px;min-width:0;font-size:14px}
.hol-team select{max-width:100%;min-width:0}
.hol-hols{margin:0 0 12px}
.hol-hols summary{cursor:pointer;font-weight:600}
.hol-hol-acts{margin:6px 0}
.hol-hol-list{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:4px 16px}
.hol-pick-c{width:32px;text-align:center}
.hol-row.hol-off td{color:var(--muted)}
.hol-row.hol-off .hol-exp{color:var(--muted)}
.hol-pill.off{color:var(--muted);font-weight:600}
.hol-job h2{margin-top:0}
.hol-prog{height:10px;border-radius:999px;background:var(--tint);border:1px solid var(--line);overflow:hidden;margin:6px 0 10px;max-width:640px}
.hol-prog span{display:block;height:100%;background:var(--blue);}
@media (prefers-reduced-motion:reduce){.hol-prog span{transition:none}}
.hol-per{margin:10px 0}
.hol-per summary{cursor:pointer;font-weight:600}
/* 0284, v3.1113.0 — tags on customers and contacts. The worked-out ones (State:, Country:, Heard:) are
   grey and carry no ×: they are put right by correcting the address, not by deleting the chip. */
.dtag-box{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:8px 0}
.dtag-label{font-weight:700;font-size:var(--fs-sm)}
.dtag{display:inline-flex;align-items:center;gap:4px;font-size:var(--fs-xs);line-height:1.4;padding:1px 8px;
  border:1px solid var(--line);border-radius:999px;background:var(--panel)}
.dtag-auto{background:var(--grey-light);color:var(--muted)}
.dtag-x{border:0;background:none;padding:0 2px;cursor:pointer;font-size:14px;line-height:1;color:var(--muted)}
.dtag-x:hover{color:var(--danger)}
.dtag-in{max-width:160px;padding:3px 8px;border:1px solid var(--line);border-radius:var(--r);font-size:var(--fs-sm)}
.dtag-row{display:inline-flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.dtag-msg.bad{color:var(--danger)}

/* ---- v3.1113.0 — REPLY BY (public/replyby.js): one switch, the same on every screen ------------------ */
.rb{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:4px 0}
.rb-lbl{font-size:var(--fs-xs);font-weight:600;color:var(--muted,#667)}
.rb-btns{display:inline-flex;flex-wrap:wrap;gap:4px}
/* v3.1148.0 (7 October 2026) — Jarryd: "The tags are not readable." `--card` is not a token in either theme,
   so the chip fell back to a fixed WHITE and inherited the dark theme's near-white ink: white on white.
   And a "can't" chip at .45 opacity was grey on grey. Now on the theme's own tokens in both themes, and
   an unavailable channel stays legible (muted ink, dashed edge, struck through) instead of faded out. */
.rb-b{font:inherit;font-size:var(--fs-sm);line-height:1.2;padding:4px 10px;border:1px solid var(--line);border-radius:999px;
  background:var(--panel);color:var(--ink);cursor:pointer;position:relative}
.rb-b.on{border-color:var(--orange);background:var(--orange-soft);color:var(--ink);font-weight:600}
.rb-b:hover:not([disabled]),.rb-b:focus-visible{border-color:var(--orange)}
.rb-b[disabled]{opacity:1;color:var(--muted);background:var(--panel-2);border-style:dashed;cursor:not-allowed;text-decoration:line-through}
.rb-came-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--orange);margin-left:5px;vertical-align:middle}
.rb-why{flex-basis:100%;font-size:11.5px}
.rb-none{font-size:var(--fs-xs)}
.ib-actions .rb{margin:0}
/* ---- v3.1113.0 — THE PRE-TYPED DRAFT (public/replyscripts.js) --------------------------------------- */
.rd{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12.5px;border-radius:8px;padding:5px 8px}
.rd-busy{background:var(--tint)}
.rd-ready{background:#fff6e5;border:1px solid #f0c36d;color:#5a4100}
.rd-acts{display:inline-flex;flex-wrap:wrap;gap:4px}
.rd-offer{flex-basis:100%;display:flex;flex-direction:column;gap:4px}
.rd-peek{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px dashed #f0c36d;border-radius:6px;padding:5px 7px}
.rd-msg,.rd-off{flex-basis:100%;font-size:var(--fs-xs)}
@media (prefers-color-scheme:dark){ .rd-ready{background:#3a2e12;border-color:#8a6a2a;color:#f3e2bd} .rd-peek{background:transparent} }
/* ---- v3.1150.0 — THE REPLY BOX, TIGHTER (8 October 2026). Darren: "Where we can, we want to conserve space."
   1. Scripts | Suggest | the AI-draft pill and its four chips on ONE row, wrapping only when narrow (was a full-width
      yellow box under the row). The busy, stopped and off states sit on the same row too.
   2. Reply by and the Subject share a row (public/comms.js .cm-reply-top).
   3. A struck-through Reply-by chip shows WHY as a tooltip on hover, focus or tap (public/replyby.js), not a line. */
.rd.rd-ready,.rd.rd-busy,.rd.rd-idle,.rd.rd-off{flex:0 1 auto;background:none;border:0;padding:0;color:inherit}
.rd.rd-busy .rd-h{color:var(--muted)}
/* lane bec1106 (Bec, 6 Nov 2026: "a button that generates it or makes it disappear") — the AI Draft button the strip folds behind.
   Amber while an AI draft is in the box and the strip is closed, so the "check before sending" warning is not lost. */
.rd.rd-closed{flex:0 1 auto;background:none;border:0;padding:0}
.rd-toggle[aria-expanded="true"]{background:var(--grey-light);border-color:var(--grey-mid)}
.rd-toggle.rd-has{background:var(--orange-soft);border-color:var(--orange);color:var(--orange-ink);font-weight:600}
.rd-pill{display:inline-flex;align-items:center;gap:4px;padding:1px 8px;border-radius:999px;background:#fff6e5;border:1px solid #f0c36d;
  color:#5a4100;font-size:var(--fs-xs);font-weight:600;line-height:18px;white-space:nowrap;cursor:help}
.rd-ready .rd-acts{gap:4px}
.rd-ready .rd-offer,.rd-ready .rd-msg{flex-basis:100%}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .rd-pill{background:#3a2e12;border-color:#8a6a2a;color:#f3e2bd} }
:root[data-theme="dark"] .rd-pill{background:#3a2e12;border-color:#8a6a2a;color:#f3e2bd}
.cm-reply-top{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 6px}
.cm-reply-top .rb{margin:0}
.cm-reply-top .cm-subj{flex:1 1 220px;min-width:0;margin:0}
.cm-reply .rs-bar{margin:0 0 6px;gap:6px}
.cm-reply .rt{margin-top:0}
.rd-acts .rd-b{padding:1px 7px;font-size:11.5px;font-weight:500;line-height:18px;min-height:0}
@media (min-width:641px){ .cm-reply .rs-bar .rs-pick{max-width:124px;min-height:0;height:30px;padding:2px 6px} .cm-reply .rs-suggest{height:30px} }
@media (max-width:640px){ .cm-reply .rs-bar .rs-pick{flex:1 1 140px;max-width:none} }
.rb-b[aria-disabled="true"]{opacity:1;color:var(--muted);background:var(--panel-2);border-style:dashed;cursor:help;text-decoration:line-through}
.rb-tip{display:none;position:absolute;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);z-index:40;width:max-content;
  max-width:240px;padding:5px 8px;border-radius:6px;background:var(--ink);color:var(--panel);font-size:var(--fs-xs);font-weight:400;
  line-height:1.35;text-align:left;white-space:normal;pointer-events:none;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.rb-b[data-rb-off]:hover .rb-tip,.rb-b[data-rb-off]:focus-visible .rb-tip,.rb-b.rb-tipon .rb-tip{display:block}
/* ---- v3.1150.0 — READING AN EMAIL (public/mailsplit.js readHtml): its lines kept, the signature behind "…", the
   earlier thread behind "Show earlier messages (N)". Used by the inbox sheet, the customer's history and the drawer. */
.mr-read{min-width:0}
.mr-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;line-height:1.5}
.ib-read-mail{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:0 0 12px;max-height:62vh;overflow:auto}
.mr-sig{margin-top:4px}
.mr-sig>summary,.mr-earlier>summary{cursor:pointer;list-style:none}
.mr-sig>summary::-webkit-details-marker,.mr-earlier>summary::-webkit-details-marker{display:none}
.mr-sig>summary,.cm-sigbtn{display:inline-block;padding:0 8px;border:1px solid var(--line);border-radius:999px;background:var(--panel-2);
  color:var(--muted);font:inherit;font-size:var(--fs-xs);line-height:16px;cursor:pointer}
.mr-sig>summary:hover,.mr-sig>summary:focus-visible,.cm-sigbtn:hover,.cm-sigbtn:focus-visible{border-color:var(--orange)}
.mr-sigtext,.cm-sigtext{color:var(--muted);font-size:12.5px;margin-top:4px;white-space:pre-wrap}
.mr-earlier{margin-top:8px}
.mr-earlier>summary{color:var(--blue-ink);font-size:12.5px;font-weight:600}
.mr-earlier>summary::before{content:"\25B8  ";font-size:10px}
.mr-earlier[open]>summary::before{content:"\25BE  "}
.mr-quoted{color:var(--muted);border-left:3px solid var(--line);padding-left:8px;margin-top:6px;font-size:var(--fs-sm)}
.tl-mail{white-space:normal}
/* ---- v3.1113.0 — the email box's size and quote, and an email we sent shown as it went -------------- */
.rt-size{font-size:var(--fs-xs);padding:2px 4px;margin:0 2px}
.rt-box blockquote,.tl-html blockquote,.cm-html blockquote{margin:6px 0;padding:2px 10px;border-left:3px solid var(--line);color:var(--muted,#556)}
.tl-html,.cm-html{overflow-wrap:anywhere}
.tl-html p,.cm-html p{margin:0 0 8px}
.cm-reply .rt{flex:1 1 auto;min-width:0}
.cm-reply .rt-box{min-height:70px;max-height:260px;overflow:auto}

/* ---- v3.1113.0 (30 September 2026) — ACADEMY EDITORS: LABEL ON TOP, HELP UNDER IT, BOX FULL WIDTH --------
   Darren: *"Text boxes in courses are appearing to the side, which is very strange and random."* The
   column rule for forms (`.panel:has(>.bia-grid)>label`, above) only matches a label that is a DIRECT child
   of a panel holding a `.bia-grid`. v3.1086.0 put the lesson editor's fields into numbered fieldsets
   (`.acl-step`), and the lesson's-own-words panel never had a grid at all — so those labels fell back to
   plain inline boxes, and a textarea sat wherever the end of its long help sentence happened to land. That
   is why it looked random: the box's position was the length of the sentence before it.
   Scoped to the Academy editor screen (its sheets mount inside it, `openSheet({ within })`), every field
   that is not a tick, a radio, an answer row (`.acad-opt`) or a grid cell is now one column, whatever it sits inside. */
/* v3.1142.0 (5 October 2026) — AND THE SAME EDITOR ON THE INTERNAL TRAINING SCREEN. Darren, with a screenshot of a new
   internal lesson's "1 Details": the label "Title" inline with a tiny box (the title cut off), the Blurb hint running along
   the same line and its box floating top-right — "Internally, when creating a new lesson, this UI isn't very good." The
   Internal training screen draws the Academy's own editor into its Courses and lessons tab (#trainadmin-editor, where its windows open too), and every
   rule below was scoped to #view-academyadmin alone, so there every label fell back to an inline box. Both now — the slot only, so the
   Assignments tab's own one-line filters on that screen are left as they were. */
:is(#view-academyadmin,#trainadmin-editor) label:not(.bia-grid>label):not(.acad-opt):not(.acd-chk):not(:has(>input[type=checkbox])):not(:has(>input[type=radio])):not(td label):not(th label){
  display:flex;flex-direction:column;align-items:stretch;gap:4px;font-weight:600;font-size:13.5px;margin:12px 0 0}
:is(#view-academyadmin,#trainadmin-editor) label:not(.bia-grid>label):not(.acad-opt):not(.acd-chk):not(:has(>input[type=checkbox])):not(:has(>input[type=radio])):not(td label):not(th label)>.hint{
  display:block;font-weight:400;font-size:12.5px;line-height:1.4}
:is(#view-academyadmin,#trainadmin-editor) label:not(.bia-grid>label):not(.acad-opt):not(.acd-chk):not(:has(>input[type=checkbox])):not(:has(>input[type=radio])):not(td label):not(th label)>:is(input:not([type=file]):not([type=range]),select,textarea){
  width:100%;max-width:none;min-width:0;box-sizing:border-box;font:inherit;font-weight:400}
:is(#view-academyadmin,#trainadmin-editor) label>textarea{resize:vertical;line-height:1.5}
/* The rich-text boxes (lesson text, course blurb) sit in the same column, full width. */
:is(#view-academyadmin,#trainadmin-editor) .rt{width:100%}
/* v3.1142.0 — "Or upload the video into our own store" reads as a field label too: its words on top, its hint under it. */
:is(#view-academyadmin,#trainadmin-editor) .acl-vidup>#acl-vidlab{display:block;font-weight:600;font-size:13.5px;margin:12px 0 4px}
:is(#view-academyadmin,#trainadmin-editor) .acl-vidup>.hint{display:block;font-size:12.5px;line-height:1.4}
:is(#view-academyadmin,#trainadmin-editor) .rt-box{width:100%;box-sizing:border-box;max-height:70vh;overflow:auto}
:is(#view-academyadmin,#trainadmin-editor) .rt-box :is(h3,h4){color:var(--ink)}
/* A fieldset's own min-width is its content's, which is how one long word can push a step off a phone. */
.acl-step{min-width:0;max-width:100%}

/* ---- v3.1114.0 (30 September 2026) — THE APP AT THE PHONE'S OWN WIDTH -----------------------------------
   Darren, with a screenshot of the app installed on his iPhone's home screen: *"every time I open the app
   that I installed on my home screen, it doesn't size properly. I have to zoom out every time to make sure it
   fits on the screen."* Jarryd saw the same on Android. The screenshot was the Communications drawer on an
   email thread: the tabs, the search row, "Mark all dealt with" and the Send button all ran off the right.

   TWO FAULTS, BOTH FIXED AT THE CAUSE (test/v31114mob.test.mjs measures them at 360 and 390, light and dark):

   1. A TEXT BOX UNDER 16px. iOS zooms the page in the moment you tap into an input, select or textarea whose
      text is smaller than 16px, and it does NOT zoom back out when you leave it — that is "I have to zoom out
      every time". Nearly every box in the app was 12–14px. On a phone every one of them is 16px now, with
      !important because the small sizes are spread over a hundred rules (and some inline styles) and the
      one rule has to beat all of them. Zoom itself stays ON (the viewport never says user-scalable=no): a
      person who needs to enlarge the page must still be able to.
   2. SOMETHING WIDER THAN THE PHONE. On a phone the drawer's list/thread grid was `grid-template-columns:1fr`,
      and `1fr` means "at least as wide as the widest thing that will not wrap" — a long email address, a URL
      with no spaces, the reply row. So the thread column grew past the screen, and the drawer's columns
      (overflow:hidden) cut everything at the edge. `minmax(0,1fr)` is the fix; the rows below then wrap,
      stack or scroll inside themselves instead of pushing. */
@media (max-width:860px){
  .cm-split{grid-template-columns:minmax(0,1fr)}
  .cm-right,.cm-left,.cm-conv,.cm-msgs,.cm-reply{min-width:0;max-width:100%}
}
/* The tab row scrolls sideways INSIDE ITSELF (it always had overflow-x:auto; it now also may not be wider
   than the drawer, and does not show a scrollbar track on a phone). */
.cm-tabs{max-width:100%;min-width:0;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.cm-tab{flex:none}
/* Long addresses, subjects and links break instead of pushing the bubble past the screen. */
.cm-row,.cm-text,.cm-title,.cm-meta,.cm-conv-nm,.cm-ai{overflow-wrap:anywhere;min-width:0}
.cm-row img,.cm-row table,.cm-html img{max-width:100%;height:auto}
.cm-html table{display:block;overflow-x:auto}
@media (max-width:600px){
  /* The search, "30 days", "In and out", ↻ and Grab email: the search takes the first line, the rest wrap. */
  .cm-tools{flex-wrap:wrap}
  .cm-tools input{flex:1 1 100%;min-width:0}
  .cm-tools select{flex:1 1 auto;min-width:0;max-width:100%}
  /* The thread's header: the name keeps its line, the buttons wrap under it and start at the left. */
  .cm-conv-who{flex:1 1 0}
  .cm-conv-acts{flex:1 1 100%;margin-left:0;justify-content:flex-start}
  /* The reply box stacks: the writing box full width, Send under it on the right, inside the width. */
  .cm-right .cm-reply-row{flex-direction:column;align-items:stretch}
  .cm-right .cm-reply-row textarea,.cm-reply .rt{width:100%;flex:none}
  .cm-right .cm-reply-row > .btn{align-self:flex-end}
  .cm-right .cm-reply{padding:10px 10px 12px}
  .cm-subj{width:100%;box-sizing:border-box}
  .cm-msgs{padding:8px}
  .cm-msgs .cm-row{width:calc(100% - 16px);max-width:none}
}
/* Every box, on every screen: never wider than what holds it. */
input:not([type=checkbox]):not([type=radio]),select,textarea{max-width:100%}
@media (max-width:600px){
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]):not([type=image]),
  select,textarea,[contenteditable="true"],[contenteditable=""]{font-size:16px !important}
  /* A select's chosen text at 16px needs its box to be allowed to shrink with the row it is in. */
  select{min-width:0}
}
/* THE INSTALLED APP ON AN iPHONE draws under the notch and the home bar once the viewport says
   viewport-fit=cover (public/index.html). Each edge keeps what it had, or the inset, whichever is bigger;
   on a phone without a notch, and on every desktop, env() is 0 and nothing moves. */
/* v3.1132.0 (2 October 2026) — Darren, with a screenshot of his iPhone on its side: "Also landscape on the phone
   is not quite right and also doesn't fill the screen." Padding the BODY by the side insets painted the page's grey
   down both edges — the notch is only on one side, the bars were on both, and they were the background, not the app.
   The insets now go on the header, the bars, the sidebar and the content (theme.css, "A PHONE ON ITS SIDE"), each of
   which paints its own background into them, so the app runs edge to edge and only what you read is kept clear. */
html body{padding-left:0;padding-right:0}
/* The top bar and the sidebar grow by the inset rather than having their padding replaced — a transparent
   border shows the bar's own background, so the bar simply starts under the notch. */
html .apptop,html .sidebar{border-top:env(safe-area-inset-top,0px) solid transparent}
html .sidebar{border-bottom:env(safe-area-inset-bottom,0px) solid transparent}
#app-shell main::after{content:'';display:block;height:env(safe-area-inset-bottom,0px)}
.cm-drawer{padding-bottom:env(safe-area-inset-bottom,0px);box-sizing:border-box;top:calc(56px + env(safe-area-inset-top,0px))}
/* A long email address or link on a record (the enquiry's "reach" line was the one measured) breaks rather
   than pushing past a phone's edge. Only on a phone: `anywhere` also lets a table column shrink round the
   word, which on a desktop would squeeze columns that have room. */
@media (max-width:600px){
  a[href^="mailto:"],a[href^="http"],a[href^="tel:"],.enq-reach,.cm-conv-sub{overflow-wrap:anywhere}
}
/* On a phone the email reply box (switch, Subject, Scripts, the editor's toolbar) is taller than the room
   the drawer has left, and as a fixed footer it squeezed the conversation above it to a sliver. So on a
   phone the conversation and the box scroll together, the messages keeping a readable height. */
@media (max-width:600px){
  .cm-conv{overflow-y:auto;-webkit-overflow-scrolling:touch}
  .cm-conv .cm-msgs{flex:none;min-height:45vh;max-height:none;overflow:visible}
}
/* v3.1114.0 — WHAT 16px TEXT BOXES PUSHED OUT, found by the look sweep at 390px once the boxes were 16px:
   * Assist library, "How it answers": `.al-grid` is one `1fr` column on a phone, and `1fr` is at least as
     wide as the widest box in it — a 16px input's own default width took the label past the edge.
   * Enquiry stats, "our numbers": each row's label holds "Our number" and the box inline, and as a flex
     item it would not shrink below the two side by side.
   * Labour types: the Simpro-rate dropdown's "— not mapped —" needed 7px more at 16px than its share of
     the row gave it; the typed name (which scrolls in its box) gives the dropdown a little more. */
.al-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.al-grid label{min-width:0}
.al-grid :is(input,select,textarea){width:100%;box-sizing:border-box;min-width:0}
@media(max-width:800px){.al-grid{grid-template-columns:minmax(0,1fr)}}
.where-num label{min-width:0;max-width:100%}
.where-num input{max-width:100%;min-width:0;box-sizing:border-box}
@media(max-width:640px){
  .lt-head,.lt-row{grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr) 34px}
}

/* ---- 0290, v3.1117.0 — MY TRAINING AND INTERNAL TRAINING (public/training.js) ------------------------
   Overdue is red and says so in words as well (never colour alone). The bar is decoration beside the
   printed percentage, which is the figure. */
.train-bar{display:inline-block;width:80px;height:8px;border-radius:4px;background:var(--line, #e3e6ea);vertical-align:middle;overflow:hidden}
.train-bar>span{display:block;height:100%;background:var(--accent, #004EFE)}
.train-overdue{font-weight:600}
tr.train-late td,td.train-late{background:color-mix(in srgb, var(--danger, #c62828) 7%, transparent)}
.train-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 14px}
.train-targets{border:1px solid var(--line, #e3e6ea);border-radius:8px;padding:10px 12px;margin:10px 0}
.train-tgrp{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin:4px 0}
.train-people,.train-done,.train-others,.train-path-list{margin:0;padding-left:18px}
.train-filters{flex-wrap:wrap;gap:6px}
/* v3.1142.0 (5 October 2026) — "Platinum internal": the badge on an internal course (the editor's list, the course page
   in the player, My training's lead), the kind of training beside a course, and My training's kind headings and
   the one-line blurb under each other course. Tokens only. */
.acad-internal{background:var(--accent-soft);border-color:var(--blue);color:var(--blue-ink,var(--blue));font-weight:600}
.train-kind{margin-left:4px}
.train-kind-h{margin:12px 0 4px;font-size:var(--fs-sm,13px);color:var(--muted)}
.train-others li{margin:0 0 6px}
.train-internal .lead .chip{vertical-align:middle}
.train-sec{margin:14px 0 0}

/* ---- SET-UP → LEGAL PAGES (v3.1120.0, 30 September 2026) ------------------------------------------
   public/legalpagesui.js. Tokens only (test/v31119ui). The staff notice wears the same orange edge as the
   bank warning on Our details: it is the one thing on the screen to read first. */
.lgp-notice{margin:0 0 14px;padding:10px 12px;border-left:3px solid var(--orange);background:var(--panel);
  border-radius:0 8px 8px 0;font-size:13.5px}
.lgp-urls,.lgp-page{padding:16px 18px;margin:0 0 16px}
.lgp-urls h2,.lgp-page h2{margin:0 0 8px;font-size:var(--fs-lg)}
.lgp-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.lgp-head h2{margin:0}
.lgp-url{margin:10px 0}
.lgp-url label{display:block;font-weight:600;margin-bottom:4px}
.lgp-url-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.lgp-url-row input{flex:1 1 280px;min-width:0}
.lgp-preview{margin-top:10px;padding:12px 16px;border:1px dashed var(--line);border-radius:10px;background:var(--bg)}
.lgp-page .rt-box{max-height:520px;overflow:auto}

/* ---- THE GUIDE WINDOW YOU CAN DRAG AROUND (v3.1120.0, 30 September 2026) --------------------------------------
   public/guidewin.js. The "? Guide" pill sits on the title line beside About, in the same glass on the brand band.
   The window floats (non-modal: no backdrop, the page underneath still answers), is dragged by its title bar and
   resized from its corner; on a phone it is a full-width bottom sheet. Colours are tokens, so dark comes free. */
.guide-link{border:1px solid var(--line);background:var(--panel);color:var(--blue-ink);border-radius:999px;
  padding:2px 10px;font:inherit;font-size:var(--fs-xs);font-weight:600;cursor:pointer;line-height:1.5;align-self:center}
.guide-link:hover{border-color:var(--blue)}
.guide-link:focus-visible,.gw-btn:focus-visible,.gw-move:focus-visible,.gw-item:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.view-head .guide-link{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.28)}
.view-head .guide-link:hover{background:rgba(255,255,255,.24);border-color:rgba(255,255,255,.5)}
.guide-bar{display:flex;justify-content:flex-end;margin:0 0 8px}
.guidewin{position:fixed;z-index:1200;display:flex;flex-direction:column;background:var(--panel);color:var(--ink);
  border:1px solid var(--line);border-radius:var(--rad-lg);box-shadow:var(--sh-3);overflow:hidden;resize:both;
  min-width:300px;min-height:180px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px)}
.guidewin[hidden]{display:none}
.guidewin.gw-min{resize:none;min-height:0;height:auto !important}
.guidewin.gw-min .gw-body{display:none}
.guidewin.gw-dragging{user-select:none;opacity:.96}
.gw-head{display:flex;align-items:center;gap:6px;padding:8px 10px;background:var(--s-hero);color:var(--s-hero-ink);
  cursor:move;touch-action:none;flex:0 0 auto}
.gw-head h2{flex:1;min-width:0;margin:0;font-size:var(--fs-md);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:inherit}
.gw-move{background:none;border:0;color:inherit;font-size:16px;cursor:move;padding:2px 4px;border-radius:6px;line-height:1}
.gw-btn{background:rgba(255,255,255,.14);color:inherit;border:1px solid rgba(255,255,255,.28);border-radius:999px;
  font:inherit;font-size:var(--fs-xs);padding:2px 10px;cursor:pointer;line-height:1.5}
.gw-btn:hover{background:rgba(255,255,255,.26)}
.gw-btn.gw-ico{padding:0 8px;font-size:15px;min-width:28px}
.gw-body{flex:1 1 auto;overflow:auto;padding:14px 16px 18px;font-size:var(--fs-md);line-height:1.55}
.gw-body:focus{outline:none}
.gw-summary{margin:0 0 12px;color:var(--muted)}
.gw-steps{list-style:none;margin:0;padding:0;counter-reset:none}
.gw-step{margin:0 0 18px;padding:0 0 14px;border-bottom:1px solid var(--line)}
.gw-step:last-child{border-bottom:0}
.gw-step h3{display:flex;gap:8px;align-items:baseline;margin:0 0 6px;font-size:var(--fs-md);font-weight:700}
.gw-n{flex:0 0 auto;display:inline-grid;place-items:center;width:22px;height:22px;border-radius:999px;background:var(--s-accent-soft);
  color:var(--blue-ink);font-size:var(--fs-xs);font-weight:800}
.gw-step p{margin:0 0 8px}
.gw-sub{margin:0 0 8px;padding-left:20px}
.gw-fig{margin:8px 0 0}
.gw-fig img{display:block;max-width:100%;height:auto;border:1px solid var(--line);border-radius:var(--rad-in);background:var(--s-sunk)}
.gw-also{margin:0 0 10px;font-size:var(--fs-sm);color:var(--muted)}
.gw-search{display:flex;flex-direction:column;gap:4px;margin:0 0 12px;font-size:var(--fs-sm);font-weight:600}
.gw-search input{font:inherit;font-size:16px;padding:8px 10px;border:1px solid var(--line);border-radius:var(--rad-in);background:var(--panel);color:var(--ink)}
.gw-grp h3{margin:10px 0 6px;font-size:var(--fs-sm);font-weight:700;color:var(--muted)}
.gw-count{font-weight:600}
.gw-grp ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.gw-item{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;font:inherit;background:var(--panel);color:var(--ink);
  border:1px solid var(--line);border-radius:var(--rad-in);padding:8px 10px;cursor:pointer}
.gw-item:hover{border-color:var(--blue)}
.gw-item span{font-size:var(--fs-sm);color:var(--muted)}
.guidewin.gw-sheet{left:0 !important;right:0;bottom:0;top:auto !important;width:auto !important;height:62vh !important;max-width:none;
  border-radius:var(--rad-lg) var(--rad-lg) 0 0;resize:none}
.guidewin.gw-sheet.gw-min{height:auto !important}
.guidewin.gw-sheet .gw-head,.guidewin.gw-sheet .gw-move{cursor:default}
@media print{ .guidewin,.guide-link{display:none !important} }
.gw-head :focus-visible,.view-head .guide-link:focus-visible{outline-color:#fff}
/* v3.1133.0 (2 October 2026) — "Expand" on the guide window. Darren: "there should be a button that says 'Expand' or
   'Full Screen' … It's hard to see at first that you can expand it out into a bigger size." Big = the whole screen less
   a margin; on a phone the sheet goes from 62% of the height to all of it. */
.gw-expand{display:inline-flex;align-items:center;gap:5px;font-weight:600}
.gw-xi{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.guidewin.gw-big{left:24px !important;top:24px !important;right:24px;bottom:24px;width:auto !important;height:auto !important;
  max-width:none;max-height:none;resize:none}
.guidewin.gw-big .gw-head,.guidewin.gw-big .gw-move{cursor:default}
.guidewin.gw-big .gw-body{padding:20px 28px 28px;font-size:var(--fs-lg)}
.guidewin.gw-big .gw-steps{max-width:900px}
.guidewin.gw-sheet.gw-big{left:0 !important;right:0;top:0 !important;bottom:0;height:auto !important;border-radius:0}

/* =================================================================================================
   v3.1120.0 (30 September 2026) — THE FRONT OF PLATINUM ASSIST
   -------------------------------------------------------------------------------------------------
   Darren: the member's Assist screen "looks cheap". A hero with one large ask box (it glows when you
   are in it), questions to start from, and a band on the brand gradient that draws Assist's 12 million
   words against the help guide's 600,000 as bars to scale. Then nicer answers: easier type, sources as
   small cards, "Useful for this" as cards, copy and thumbs. Every colour is a token from theme.css, so
   dark mode is the same rules; the only motion (the shimmer, the pulse) stops for prefers-reduced-motion.
   ================================================================================================= */
#assist-body > .asn-knows, #assist-body > .asn-join{width:100%;max-width:min(100%, var(--panel-max));box-sizing:border-box;margin-right:0}
.panel.asn-hero{position:relative;overflow:hidden;padding:0;border-radius:var(--rad-lg);border:1px solid var(--s-line-2);
  background:radial-gradient(900px 320px at 12% -10%, var(--s-accent-soft) 0%, transparent 70%),
    radial-gradient(600px 260px at 100% 0%, var(--s-accent-soft) 0%, transparent 65%), var(--s-raised);
  box-shadow:var(--sh-2)}
.asn-hero-in{padding:clamp(20px,4vw,40px) clamp(16px,4vw,40px) clamp(18px,3vw,28px);display:grid;gap:12px}
.asn-eyebrow{margin:0;font-size:var(--fs-xs);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--blue-ink)}
.asn-title{margin:0;font-size:clamp(26px,4vw,40px);line-height:1.1;letter-spacing:-.025em;font-weight:800;color:var(--ink)}
.asn-sub{margin:0;font-size:var(--fs-lg);line-height:1.5;color:var(--muted);max-width:62ch}
.asn-nudge{border-left:4px solid var(--orange)}
/* v3.1124.0 (1 October 2026) — Darren: "the Ask button is sitting in the middle. I feel it should be on the bottom
   right, and typing should be allowed to go all the way across to the edge of that field." Two rows: the box spans
   the whole field (`.field`'s house max-width of 320px was what stopped it halfway), and Ask sits under it on the
   right — so the words run edge to edge and never under the button, at every width. */
.asn-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:4px 10px;margin-top:6px;padding:10px 10px 10px 16px;border:1.5px solid var(--s-line);
  border-radius:var(--rad);background:var(--panel);box-shadow:var(--sh-1);transition:border-color var(--dur-2) var(--ease-out),box-shadow var(--dur-2) var(--ease-out)}
.asn-compose:focus-within{border-color:var(--b-500);box-shadow:var(--s-focus), 0 10px 32px rgba(0,78,254,.16)}
.asn-compose .field{grid-column:1 / -1;display:block;max-width:none;width:100%;margin:0;min-width:0}
.asn-compose .field textarea, .asn-compose .field textarea:focus{width:100%;box-sizing:border-box;border:0;background:transparent;box-shadow:none;outline:none;
  padding:8px 0;font-size:16px;line-height:1.5;min-height:52px;resize:vertical;color:var(--ink)}
.asn-compose textarea::placeholder{color:var(--muted);opacity:1}
.asn-compose .field textarea:disabled{background:transparent}
.btn.primary.asn-go{grid-column:2;justify-self:end;min-height:44px;padding:0 22px;font-size:15px;border-radius:var(--rad-in);background:var(--b-500);border-color:var(--b-500);color:#fff}
.btn.primary.asn-go:hover:not(:disabled){background:var(--b-600);border-color:var(--b-600)}
.asn-chips{display:flex;flex-wrap:wrap;gap:8px}
.asn-chip{font:inherit;font-size:var(--fs-sm);line-height:1.3;padding:7px 12px;border-radius:var(--rad-pill);border:1px solid var(--s-line);
  background:var(--panel);color:var(--ink-2);cursor:pointer;text-align:left;max-width:100%;transition:border-color var(--dur-2) var(--ease-out),color var(--dur-2) var(--ease-out)}
.asn-chip:hover:not(:disabled), .asn-chip:focus-visible{border-color:var(--b-500);color:var(--blue-ink);outline:none;box-shadow:var(--s-focus)}
.asn-chip:disabled{cursor:default;opacity:.6}
.asn-chip-static{cursor:default}
.asn-hero .save-status:empty{display:none}
/* STEPPED BACK once a question is on the screen: the headline and the box stay, the rest makes room. */
.asn-compact .asn-sub, .asn-compact .asn-chips, .asn-compact .asn-band, .asn-compact .asn-eyebrow{display:none}
.asn-compact .asn-hero-in{padding-top:clamp(16px,3vw,24px);padding-bottom:clamp(16px,3vw,24px);gap:8px}
.asn-compact .asn-title{font-size:clamp(20px,2.6vw,26px)}
/* THE BAND — on the brand gradient, the comparison drawn to scale. */
.asn-band{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);grid-template-areas:"lead bars" "lead facts";
  column-gap:clamp(16px,4vw,48px);row-gap:14px;align-items:center;
  padding:clamp(18px,3vw,26px) clamp(16px,4vw,40px);background:var(--s-hero);color:var(--s-hero-ink)}
.asn-band-lead{grid-area:lead;display:flex;flex-direction:column;gap:2px;min-width:0}
.asn-big{font-size:clamp(28px,4.2vw,42px);line-height:1.05;letter-spacing:-.025em;font-weight:800;font-variant-numeric:tabular-nums;color:#fff}
.asn-band-lead span, .asn-fact span{font-size:var(--fs-sm);color:var(--s-hero-muted)}
.asn-bars{grid-area:bars;display:grid;gap:10px;min-width:0;max-width:620px}
.asn-bar-row{display:grid;grid-template-columns:128px minmax(0,1fr) 92px;gap:10px;align-items:center}
.asn-bar-l{font-size:var(--fs-sm);font-weight:600;color:var(--s-hero-muted)}
.asn-bar-n{font-size:var(--fs-sm);font-variant-numeric:tabular-nums;color:#fff;text-align:right}
.asn-prog{-webkit-appearance:none;appearance:none;width:100%;height:14px;border:0;border-radius:var(--rad-pill);overflow:hidden;background:rgba(255,255,255,.16)}
.asn-prog::-webkit-progress-bar{background:rgba(255,255,255,.16);border-radius:var(--rad-pill)}
.asn-prog-us::-webkit-progress-value{background:#fff;border-radius:var(--rad-pill)}
.asn-prog-us::-moz-progress-bar{background:#fff;border-radius:var(--rad-pill)}
.asn-prog-simpro::-webkit-progress-value{background:var(--o-500);border-radius:var(--rad-pill)}
.asn-prog-simpro::-moz-progress-bar{background:var(--o-500);border-radius:var(--rad-pill)}
.asn-facts{grid-area:facts;display:flex;gap:10px;flex-wrap:wrap}
.asn-fact{display:flex;flex-direction:column;gap:1px;padding:8px 14px;border-radius:var(--rad);background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);min-width:96px}
.asn-fact b{font-size:22px;line-height:1.1;font-variant-numeric:tabular-nums;color:#fff}
@media (max-width:900px){ .asn-band{grid-template-columns:1fr;grid-template-areas:"lead" "bars" "facts"} }
@media (max-width:560px){
  .asn-compose{padding:10px 10px 10px 12px}
  .asn-bar-row{grid-template-columns:minmax(0,1fr) auto;row-gap:4px}
  .asn-bar-row .asn-prog{grid-column:1 / -1;grid-row:2}
}
/* WHAT IT KNOWS — subject tiles with counts. */
.asn-h3{margin:0 0 4px;font-size:var(--fs-lg);font-weight:700;color:var(--ink)}
.asn-tiles{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
.asn-tile{display:flex;flex-direction:column;gap:2px;padding:14px;border-radius:var(--rad);border:1px solid var(--s-line-2);background:var(--s-raised);box-shadow:var(--sh-1)}
.asn-tile b{font-size:var(--fs-xl);font-weight:800;font-variant-numeric:tabular-nums;color:var(--blue-ink)}
.asn-tile span{font-size:var(--fs-sm);color:var(--ink-2)}
.panel.asn-join{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-left:4px solid var(--b-500)}
.panel.asn-join .lead{margin:0}
/* THE WAIT — "Searching 12 million words…" over the answer's outline. */
.asn-searching{margin:10px 0 4px}
.asn-searching-l{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-weight:700;color:var(--blue-ink)}
.asn-pulse{width:9px;height:9px;border-radius:50%;background:var(--b-500);flex:none;animation:axpulse 1.4s ease-in-out infinite}
@keyframes axpulse{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}
/* On the waiting row's blue wash the house shimmer (sunk grey to b-50) is invisible, so it runs in the blue. */
.assist-waiting .asn-skel i{background:linear-gradient(90deg,var(--b-100) 0%,var(--panel) 40%,var(--b-100) 80%);background-size:200% 100%}
.asn-skel i:nth-child(1){width:58%}.asn-skel i:nth-child(2){width:94%}.asn-skel i:nth-child(3){width:86%}.asn-skel i:nth-child(4){width:66%}
@media (prefers-reduced-motion: reduce){ .asn-pulse{animation:none;opacity:1} .asn-compose, .asn-chip{transition:none} }
/* THE ANSWER — easier to read, sources as cards, tools under it. */
.panel.assist-turn{padding:clamp(16px,3vw,26px);border-radius:var(--rad)}
.assist-turn .assist-q{padding:10px 14px;border-radius:var(--rad-in);background:var(--s-sunk);color:var(--ink-2)}
.assist-turn .assist-q b{font-size:var(--fs-xs);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.assist-turn .assist-q p{font-size:var(--fs-md);color:var(--ink)}
.assist-turn .assist-atext{font-size:15.5px;line-height:1.65;max-width:72ch;color:var(--ink)}
.assist-turn .assist-cited ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.assist-cited li.asn-source{display:flex;flex-direction:column;gap:3px;margin:0;padding:10px 12px;border:1px solid var(--s-line-2);
  border-radius:var(--rad-in);background:var(--s-raised);box-shadow:var(--sh-1);font-size:var(--fs-sm)}
.asn-source-k{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.asn-source a{font-weight:600;color:var(--s-link)}
.assist-turn .assist-useful{background:var(--s-sunk);border-color:var(--s-line-2);border-radius:var(--rad);padding:14px 16px}
.assist-turn .assist-useful-item{background:var(--s-raised);border-color:var(--s-line-2);border-radius:var(--rad-in);box-shadow:var(--sh-1);padding:12px}
.assist-turn .assist-useful-item.locked{box-shadow:none;background:transparent}
.asn-tools{display:flex;gap:8px;justify-content:flex-end;margin:8px 0 0}
.asn-thumb{display:inline-flex;align-items:center;gap:5px}
.asn-ico{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.asn-ico-down{transform:rotate(180deg)}

/* v3.1123.0 (30 September 2026) — THE ANSWER BESIDE THE BUTTON. `saidOn` (public/ui.js) puts a small
   pill straight after the control that was pressed, because the screen's own `.save-status` line is
   usually at the bottom of a long panel, out of sight — which is how "Saved" read as "that button
   does nothing". The status-pill colours, so it reads as part of the same family; it fades for a
   success and stays for a failure. The toast it falls back on is the house `.toast` (theme.css);
   `[hidden]` has to be said out loud because `.toast` sets display:flex. */
.said-on{display:inline-flex;align-items:center;min-height:22px;margin:0 0 0 8px;padding:2px 9px;border-radius:999px;
  font-size:12.5px;font-weight:600;line-height:1.3;vertical-align:middle;max-width:min(420px,100%);
  transition:opacity var(--dur-3) var(--ease-out)}
.said-on.ok{background:var(--s-ok-soft);color:var(--s-ok)}
.said-on.bad{background:var(--s-bad-soft);color:var(--s-bad)}
.said-on.note{background:var(--s-sunk);color:var(--ink-2)}
.said-on.fading{opacity:0}
.said-toast[hidden]{display:none}
/* 3.1202.0 — words only (aria-hidden, no controls), so it never takes a press: it sits in the bottom-right corner, over the
   Suite Help button when that is there, and with every write now saying its word it covered the button for seconds at a time. */
.said-toast{pointer-events:none}
.said-toast.bad,html[data-theme="dark"] .said-toast.bad{background:var(--toast-bad);color:#fff}
/* v3.1202.0 (instant) — the word and a timed pop-up ("Marked dealt with. Undo") can be up together; the word sits above the
   pop-up instead of on top of it. */
body:has(.link-toast.on) .said-toast{bottom:calc(24px + 64px)}
@media (max-width:600px){body:has(.link-toast.on) .said-toast{bottom:calc(16px + 88px)}}
@media (prefers-reduced-motion: reduce){.said-on{transition:none}}

/* v3.1124.0 (1 October 2026) — the witty "Try again" and its plain note in brackets beside it (wraps under it
   when there is no room). Muted ink in both themes via the theme tokens. */
.assist-again{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 8px;max-width:100%}
.assist-again-note{font-size:var(--fs-xs,12px);line-height:1.4;color:var(--muted);max-width:48ch}

/* v3.1124.0 (1 October 2026) — Member events: the list first, the form folded until "New event" (or Edit/Copy). */
.edge-ev-head{align-items:center}
.edge-ev-head h2{display:flex;align-items:center;gap:8px;margin:0}
.edge-ev-formwrap{margin:12px 0 16px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--rad,10px);background:var(--panel)}
.edge-ev-formtitle{margin:0 0 10px;font-size:var(--fs-lg,17px)}
.edge-ev-list td .btn{margin:2px 0}

/* ---- v3.1124.0 (1 October 2026) — THE BILLING SCHEDULE, THE CALENDAR'S ✦, AND THE CARD NOTE -------------------
   Darren: "I don't think it should be too significant, but maybe a symbol." Small, muted, beside the day number; a
   real button so a keyboard and a tap both reach it. */
.cal-bill{background:none;border:0;padding:0 2px;margin:0;font-size:11px;line-height:1;cursor:help;
  color:var(--blue-ink,#0045E0);opacity:.8;vertical-align:1px}
.cal-bill:hover,.cal-bill:focus-visible{opacity:1}
.cal-bill.cal-bill-invoice{color:var(--ink)}
.cal-bill-list{margin:4px 0 0;padding-left:18px}
.edge-cardnudge{border-left:4px solid var(--blue-ink,#0045E0)}
.edge-cardnudge h3{margin:0 0 4px}
/* v3.1127.0 — "Asked for invoices — switch them?" on the Billing schedule and a membership record */
.bs-asks{border-left:4px solid var(--warn,#B7791F)}
.bs-asks h3{margin:0 0 4px}
.bs-asklist{margin:6px 0 0;padding-left:18px}
.bs-asklist li{margin:4px 0}
.edge-ask{margin:6px 0;padding:6px 10px;border-left:3px solid var(--warn,#B7791F);background:var(--warn-soft,rgba(183,121,31,.08))}
.bs-filter-row{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:flex-end;margin:0 0 8px}
.bs-filter-row label{display:flex;flex-direction:column;gap:2px;font-size:12.5px}
.bs-filter-row label.inline{flex-direction:row;align-items:center;gap:6px}
.bs-tablewrap{overflow-x:auto;max-width:100%}
.bs-table{width:100%;border-collapse:collapse;font-size:var(--fs-sm)}
.bs-table th,.bs-table td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.bs-table thead th{position:sticky;top:0;background:var(--s-panel);z-index:1}
.bs-table tfoot td{border-top:2px solid var(--line);border-bottom:0}
.bs-date{white-space:nowrap}
.bs-amt{white-space:nowrap}
.bs-note{white-space:normal;color:var(--muted);font-size:var(--fs-xs);line-height:1.35}
.bs-table td:nth-child(4){min-width:180px;max-width:300px}
.bs-table td:nth-child(3){max-width:200px}
.bs-type{display:inline-block;padding:1px 7px;border-radius:999px;font-size:11.5px;font-weight:700;background:var(--s-sunk);color:var(--ink)}
.bs-type-invoice{background:var(--s-warn-soft);color:var(--ink)}
.bs-type-release{background:var(--s-accent-soft);color:var(--ink)}
.bs-type-renewal{background:var(--s-ok-soft);color:var(--ink)}
.bs-type-app{background:var(--s-sunk);color:var(--ink);border:1px solid var(--s-line)}
.bs-flag{display:inline-block;padding:0 6px;border-radius:4px;font-size:11px;border:1px solid var(--line);white-space:nowrap}
.bs-flag.bs-card{border-color:var(--ok-ink,#15803D);color:var(--ok-ink,#15803D)}
.bs-flag.bs-out{border-color:var(--warn-ink,#B45309);color:var(--warn-ink,#B45309)}
.bs-flag.bs-end,.bs-flag.bs-zero{border-color:var(--danger,#B91C1C);color:var(--danger,#B91C1C)}
.bs-flag.bs-test{background:var(--s-sunk)}
@media (max-width:640px){.bs-table{font-size:var(--fs-xs)}.bs-filter-row label{flex:1 1 45%}}

/* ---- v3.1125.0 (1 October 2026) — the Calculator's workspaces and set-ups, and the focused checkout's
   "Add other apps to this basket" button. Darren: "a customer who requires four different companies to be
   calculated … would need four setup fees plus … +3 additional workspace costs". Same escape-the-field
   treatment as .bk-plus above: the basket lives inside a .field, whose span/input rules would otherwise
   turn these into uppercase labels and 100%-wide boxes. */
.bk-ws, .bk-setups{ display:block; margin-top:10px; padding:8px 10px; border-radius:6px;
  background:rgba(0,78,254,.06); border-left:3px solid var(--blue,#004EFE); font-size:12.5px; }
.bk-setups{ background:rgba(255,193,7,.08); border-left-color:#ffc107; }
.login-card .field .bk-ws input, .login-card .field .bk-setups input{
  width:4.5em; min-width:0; padding:3px 6px; margin:0 0 0 6px; display:inline-block; }
#su-basket-field .bk-app span.bk-ws, #su-basket-field .bk-app span.bk-setups{ display:block; margin-top:10px; }
#su-basket-field .bk-app span.bk-ws-explain{ display:block; margin-top:6px; color:var(--muted); font-size:11.5px; line-height:1.45; }
#su-basket-field .bk-ws label, #su-basket-field .bk-setups label{ font-weight:700; }
.bk-ws-note{ font-style:normal; color:var(--muted,#65708a); font-size:11.5px; }
.bk-more{ margin:8px 0 0; }
/* v3.1126.0 — the membership panel beside the Calculator's own checkout (public/basketview.js upsellHtml). Inside a
   .field like the rows above, so its spans are put back to ordinary text. */
.bk-upsell{ display:block; margin:12px 0 4px; padding:10px 12px; border-radius:8px; font-size:12.5px; line-height:1.45;
  background:rgba(255,122,0,.06); border:1px dashed rgba(255,122,0,.45); text-transform:none; letter-spacing:0; }
#su-basket-field .bk-upsell span, #su-basket-field .bk-upsell b{ display:block; text-transform:none; letter-spacing:0; }
#su-basket-field .bk-upsell .bk-up-head{ margin:2px 0 6px; color:var(--muted,#65708a); }
.bk-upsell .bk-up-list{ margin:0 0 6px 18px; padding:0; }
#su-basket-field .bk-upsell .bk-up-list b{ display:inline; }
#su-basket-field .bk-upsell .bk-up-quip{ font-style:italic; color:var(--muted,#65708a); margin-bottom:4px; }
#su-basket-field .bk-upsell .bk-up-from{ display:inline; font-style:normal; }
.bk-upsell .bk-up-link{ font-weight:700; }

/* v3.1129.0 (2 October 2026) — TEST CUSTOMERS. Darren: "a tick box on reports to 'show test customers'". The small
   "Test" badge a list draws, the tick at the top of each report, the sentence under it (orange when the figures are
   test customers only, so nobody mistakes them for the real business), and the tick on the customer record. */
.badge.test-badge{display:inline-block;font-size:.72em;font-weight:600;padding:1px 6px;border-radius:999px;
  background:var(--orange-soft);color:var(--orange-ink);vertical-align:middle;letter-spacing:.02em}
.test-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:4px 0 8px}
.test-tick{display:inline-flex;align-items:center;gap:6px;font-size:.92em;cursor:pointer}
.test-note{margin:0}
.test-note.test-only{color:var(--orange-ink);font-weight:600}
.dir-test{margin:6px 0;padding:6px 10px;border-radius:8px;background:var(--s-sunk, rgba(0,0,0,.03))}
.dir-test.on{background:var(--orange-soft);color:var(--orange-ink)}

/* v3.1133.0 (2 October 2026) — the test-customer tick, folded away at the foot of the customer record. Darren: "There will
   only be a couple of customers that we will do this with out of 40,000." */
.dir-moreopts{margin:18px 0 4px;padding-top:8px;border-top:1px dashed var(--line)}
.dir-moreopts>summary{cursor:pointer;font-size:12.5px;display:inline-block}
.dir-moreopts[open]>summary{margin-bottom:6px}
.dir-testflag{margin:4px 0}
/* v3.1179.0 — "Don't charge GST" on the customer record (dirGstCustomerHtml): theme colours only. */
.dir-gst{margin:6px 0;padding:6px 10px;border-radius:8px;background:var(--s-sunk)}
.dir-gst.on{background:var(--orange-soft);color:var(--orange-ink)}

/* v3.1133.0 (2 October 2026) — Platinum Edge as a preview for a non-member (edgePreviewApply in app.js).
   Jarryd: "It looks too much like you can use and view everything as if you were a member but cannot click
   anything." A banner that sells, a clear Preview label, and the screen underneath visibly a look-over-the-fence. */
.edge-preview-banner{border-left:4px solid var(--orange);background:var(--orange-soft)}
.edge-preview-banner h2{margin:2px 0 6px}
.edge-preview-tag{display:inline-block;margin:0;padding:2px 10px;border-radius:var(--rad-pill,999px);background:var(--panel);
  border:1px solid var(--orange);color:var(--ink);font-size:var(--fs-xs);font-weight:700;letter-spacing:.02em}
.edge-preview-compare{margin-top:8px}
.edge-preview-compare summary{cursor:pointer;font-weight:700}
.edge-preview .edge-preview-banner ~ *{position:relative}
.edge-preview .edge-preview-banner ~ * .panel,.edge-preview .edge-preview-banner ~ .panel{opacity:.92}
.edge-join-btn{border-color:var(--orange);color:var(--ink)}
/* v3.1133.0 — a Replace-every box with no years, after a save (assetYearsCheck). */
input.needs-value{border-color:var(--danger);box-shadow:0 0 0 1px var(--danger)}
.admin-kit-tick{font-size:15px}
.wif-out-list{display:flex;flex-wrap:wrap;gap:6px 16px;margin:6px 0}
.wif-out.is-out{text-decoration:line-through;color:var(--muted)}

/* ==== v3.1136.0 (2 October 2026) — THE CUSTOMER-SCREEN SWEEP (uxa) ===================================
   Darren: "Are you sure you've been right through all the UI/UX and everything now meets my standard?"
   Findings table: docs/handover/UX-SWEEP-CUSTOMER-v3.1136.md. Each rule names the screen it fixes. */
/* Your team — "Amy Winehouse" read "Amy Winehous": the ch measure counted the letters but not the box's own
   padding and border, and capitals are wider than a "0". */
#emp-grid td.namecol input,#emp-grid td[data-col="name"] input{min-width:calc(var(--emp-name-ch,130px) * 1.08 + 18px)}
#emp-grid td[data-col="position"] input{min-width:calc(var(--emp-position-ch,150px) * 1.08 + 18px)}
/* Business Health Check — "% of the paid week" wrapped one word per line beside its box, and "How deep" cut its
   first choice off at "every record in the". */
.bhq-num input{flex:0 1 140px;min-width:90px}
.bhq-num>.muted{white-space:nowrap;flex:0 0 auto}
#bh-depth-wrap{min-width:min(100%,330px)!important}
/* Your expenses — on a phone the P&L tables shared 360px between seven columns and every box was a sliver
   ("E", "3", "("). They scroll inside their card instead, with the card's own scroll hint. */
@media(max-width:700px){
  #removals-table,#additions-table{min-width:640px}
  #removals-table th.c-label,#additions-table th.c-label{width:190px}
  #removals-table th.c-qty,#additions-table th.c-qty{width:70px}
  #removals-table th.c-cost,#additions-table th.c-cost{width:120px}
  #removals-table th.c-pct,#additions-table th.c-pct{width:96px}
  #removals-table th.r,#additions-table th.r{width:96px}
}
/* Labour rates — on a phone the type name had 86px ("Tradespe") and the tick sat apart from its words. The name
   takes the first line, the Simpro rate the second, the tick the third, beside its own label. */
@media(max-width:640px){
  .lt-row>.lt-name{grid-column:1 / 3;grid-row:1}
  .lt-row>.lt-ratecell{grid-column:1 / 3;grid-row:2}
  .lt-head{display:none}
  .lt-row>.lt-del{grid-column:3;grid-row:1}
  .lt-row>.lt-office{grid-column:1 / 4;grid-row:3;justify-self:start;display:inline-flex;align-items:center;gap:8px}
}
/* Every filter bar with a date (Bulk Invoice Credit, Supplier Price Check, the health check's period): the boxes in a
   panel's fields are 16px with 12px/14px padding (theme.css, ".panel .field input"), but a date box keeps the fixed
   39px height meant for the old 14px size — 8px shorter than the number box beside it, so the labels sat ragged and
   the date's own text was squeezed. A date box in a panel field grows with its padding like the others. */
.panel .field input:where([type=date],[type=time],[type=month],[type=week],[type=datetime-local]){height:auto;min-height:var(--field-h)}
/* My Company Details — "+ Add a site" now opens in the wide window, whose own heading says "Add a site"; the form's
   heading would say it twice. */
.in-form-modal>.cs-edit>h3{display:none}
.in-form-modal>.cs-edit{border:0;background:none;padding:0;margin:0}

/* v3.1136.0 (3 October 2026) — Darren: "fields wide enough … sensible columns, consistent spacing". THE STAGE ROWS on
   Enquiries & mail rules: the name box grew or shrank with the sentence under it, so no two rows lined up. One width. */
.es-row .es-name{flex:0 1 420px}
.es-row .es-name .es-label{width:100%;box-sizing:border-box}

/* v3.1136.0 — "Hide this" sat on a line of its own under every introduction, a stray word floating at the right
   with a gap above and below it. On a screen wide enough it now sits at the end of the introduction's last line,
   in the empty space the measure leaves; a phone keeps the line of its own (no room beside the words there). */
@media (min-width:760px){
  .xpl-wrap{position:relative;padding-right:92px}
  .xpl-wrap>.xpl-bar{position:absolute;right:0;bottom:8px;margin:0}
}

/* v3.1136.0 — Website chat: the wording boxes sat beside their labels at a fixed narrow width, so "We will read and
   reply by text or…" was cut off in its own box. Label on top, the box the full column, as on Our details. */
#wc-panel label.wide:not(.edge-check){display:flex;flex-direction:column;align-items:stretch;gap:4px}
#wc-panel label.wide:not(.edge-check)>input,#wc-panel label.wide:not(.edge-check)>textarea{width:100%;max-width:none;box-sizing:border-box}
#wc-panel label.wide:not(.edge-check)>input[type=tel]{max-width:260px}

/* v3.1136.0 (3 October 2026) — Darren: "Are you sure you've been right through all the UI/UX…?" The consultant sidebar
   read "My work", then a "My work" group, then "My work" again inside it; the office one "Office" over "The office ›
   Office Dashboard". An area-home tab is put away whenever the area's own menu (renderAreaMenu) already lists that
   screen — one door to each room. Outside the area the menu is empty and the tab is back. */
.sidebar:has(#sb-areamenu [data-area-view="conhome"]) #sb-area-grp .tab[data-view="conhome"],
.sidebar:has(#sb-areamenu [data-area-view="officehome"]) #sb-area-grp .tab[data-view="officehome"]{display:none !important}

/* v3.1136.0 — a tile with no number ("Card payments are off" is a state, not a count) put its title in the
   number's column and squeezed its sentence into a sliver beside it. The words always take the words' column, and a
   tile with no number has only that one. */
.att-t,.att-d{grid-column:2}
.att-tile:not(:has(.att-n)){grid-template-columns:1fr}
.att-tile:not(:has(.att-n)) .att-t,.att-tile:not(:has(.att-n)) .att-d{grid-column:1}
/* …and in a row of tall tiles the title and its sentence stay together at the top instead of drifting apart. */
.att-tile{align-content:start}

/* v3.1136.0 — Darren: "Phone landscape fills the screen, short header". The blue page header was 91px of a 390px-high
   screen before a single figure showed (20/28px padding, a 26px title, 24px under it). On a phone on its side it is
   tighter: the trail, the title and its buttons on two short lines. */
@media (max-height:500px) and (orientation:landscape) and (pointer:coarse){
  #app-shell .view-head{padding:10px 18px 11px;margin-bottom:12px}
  #app-shell .view-head h1{font-size:var(--fs-xl);line-height:1.2}
  #app-shell .view-head .crumbs{font-size:11.5px;margin-bottom:1px}
  #app-shell .view-head .ph-stat{padding:6px 10px;min-width:84px}
  #app-shell .view-head .ph-stat b{font-size:18px}
}

/* v3.1136.0 — the "Show test customers" tick inside a filter row whose labels stack (Billing schedule, Consultant
   KPIs' trend row) drew its box above its words. It is a tick: box and words on one line, wherever it is put. */
label.test-tick.test-tick{flex-direction:row;align-items:center;align-self:center;gap:6px;white-space:nowrap}

/* v3.1136.0 — Tiers & services: the sentence under an entitlement ("With a consultation — the report opens straight
   away…") inherited the table's no-wrap and ran on under the Bronze/Silver/Gold boxes. It wraps inside its own cell.
   Service effort: the hours box was a quarter of the table wide while the notes beside it were cut off. */
.edge-allownote{white-space:normal;display:block;max-width:60ch}
input.eff-h{max-width:96px}

/* v3.1136.0 — the New free-access invite window: two even columns of full-width boxes. */
.inv-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px 14px;align-items:end}
.inv-grid>.field{margin:0;max-width:none}
.inv-grid>.field>input,.inv-grid>.field>select{width:100%;box-sizing:border-box}

/* v3.1136.0 — New task in the wide window: no second heading, no grey box inside the window, the boxes full width. */
.sheet-form .tk-new{background:none;border:0;padding:0;margin:0;box-shadow:none}
.sheet-form .tk-new>.tk-new-h{display:none}
.sheet-form .tk-new .row{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px 14px;align-items:end}
.sheet-form .tk-new .field{max-width:none;width:100%}
.sheet-form .tk-new .field>input,.sheet-form .tk-new .field>select,.sheet-form .tk-new .field>textarea{width:100%;box-sizing:border-box}

/* v3.1136.0 — Darren: "capital first letter on every button/label". The stat tiles' words are written lower-case in
   the code because they read on from the number ("1 · open tasks"); on the screen each one is its own label, so the
   first letter is a capital. Styling only — the words, and every test that reads them, are unchanged. */
.cs-fig>span{display:block}
/* v3.1148.0 (7 October 2026) — the average call rating tile: a button that looks like its neighbours, with the half-star
   bar in its own colours (the tile's grey span colour would otherwise paint over the orange fill). */
button.cs-fig.cs-fig-stars{font:inherit;color:inherit;text-align:left;cursor:pointer;width:100%;min-width:0}
button.cs-fig.cs-fig-stars:hover,button.cs-fig.cs-fig-stars:focus-visible{border-color:var(--orange)}
.cs-fig-stars b>span{color:var(--orange);font-size:inherit}
.cs-fig .cs-figstars{margin:2px 0}
.cs-fig .cs-figstars .cs-starbar{font-size:15px;color:var(--line)}
.cs-fig .cs-figstars .cs-starfill{color:var(--orange);font-size:inherit}
.cs-fig>span::first-letter,.view-head .ph-stat>span::first-letter,.off-blurb::first-letter{text-transform:uppercase}
.off-blurb{display:block}
#app-shell .kpb-range label.kpb-test{flex-direction:row;align-items:center;align-self:center;gap:6px}

/* v3.1136.0 — What's new: the release table did not wrap, so it was 3,600px wide inside a 1,100px card and the
   customer words — the column this screen is for — sat two screens off to the right. The words wrap; the two text
   columns share the width. */
#view-changes table.grid td{white-space:normal;vertical-align:top}
#view-changes table.grid td:nth-last-child(3){min-width:260px;width:40%}
#view-changes table.grid td:nth-last-child(2){min-width:300px;width:45%}

/* v3.1137.0 — "Show older" on a customer history (dirTlOlderHtml): the row the button sits in. */
.dir-tl-older{display:flex;align-items:center;gap:10px;margin:10px 0 4px}

/* v3.1137.0 (3 October 2026) — THE LIST TOOLBAR (listBarHtml in app.js). Darren: "a search box at the top so we can
   search for a customer name, a workspace, filter by when it expires, filter by when they last used it". Sticky at the
   top of a long list, a wide search box, and it wraps to one control a line on a phone. Theme tokens only. */
.list-bar{position:sticky;top:0;z-index:6;display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 14px;
  margin:6px 0 10px;padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:var(--rad, 10px);
  box-shadow:var(--sh-1, none)}
.list-bar label{display:flex;flex-direction:column;gap:3px;font-size:.88em;font-weight:600;color:var(--ink);margin:0}
.list-bar .lb-search{flex:1 1 340px;min-width:240px}
.list-bar .lb-search input{width:100%;box-sizing:border-box;min-width:0}
.list-bar .lb-filter select{min-width:170px}
.list-bar label.lb-test{flex-direction:row;align-items:center;gap:6px;align-self:center;white-space:nowrap;font-weight:600}
.list-bar .lb-count{align-self:center;white-space:nowrap}
.list-bar .lb-clear{align-self:center}
.list-bar .lb-lbl{display:block}
/* v3.1137.0 (lists2) — the lone "Show test customers" tick on a list with a search of its own (listTestTickHtml). */
label.lb-test{display:inline-flex;flex-direction:row;align-items:center;gap:6px;white-space:nowrap;font-weight:600;margin:0}
label.lb-test input{margin:0}
.lb-testhidden{white-space:nowrap}
/* lane myscope (25 October 2026) — "Your customers only" beside a list cut to a limited consultant's own customers
   (scopeChipHtml in app.js). The reason is the hover text, so the words are a short, quiet label. */
.lb-scope{cursor:help;border-bottom:1px dotted var(--muted)}
.sm-scope,.tk-scope{margin:4px 0}
.find-test{padding:6px 10px;border-top:1px solid var(--line)}
tr[hidden],[data-lb-row][hidden]{display:none !important}
.lb-none{margin:6px 0}
@media (max-width:640px){
  .list-bar{position:sticky;padding:8px}
  .list-bar label,.list-bar .lb-search,.list-bar .lb-filter{flex:1 1 100%;min-width:0}
  .list-bar .lb-filter select{width:100%;min-width:0}
}
/* The same tick where a screen keeps its own filter row (Enquiries, Inbox, Support, Bookings, Customers and contacts). */
label.lb-test{display:inline-flex;flex-direction:row;align-items:center;gap:6px;white-space:nowrap;cursor:pointer;font-weight:600}
.enq-filterbar{position:sticky;top:0;z-index:6;background:var(--panel);padding:6px 0}
.edge-form.list-bar.edge-mbar{align-items:flex-end}

/* ---- 0325, v3.1137.0 (3 October 2026) — Set-up → Server health (public/serverhealthui.js). Theme tokens only. ---- */
.sh-card.sh-problem{border-left:4px solid var(--s-bad)}
.sh-card.sh-attention{border-left:4px solid var(--s-warn)}
.sh-card.sh-healthy{border-left:4px solid var(--s-ok)}
.sh-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin:10px 0 4px}
.sh-chart{margin:0}
.sh-chart figcaption{font-size:var(--fs-sm);margin-bottom:4px}
.sh-chart svg{width:100%;height:96px;display:block;background:var(--s-sunk);border-radius:var(--rad-sm)}
.sh-key{display:inline-flex;align-items:center;gap:4px;margin-left:8px;color:var(--muted)}
.sh-key i{display:inline-block;width:10px;height:3px;border-radius:2px}
.sh-axis{display:flex;justify-content:space-between;font-size:var(--fs-xs)}
.sh-heat-wrap{overflow-x:auto;max-width:100%}
.sh-heat{border-collapse:separate;border-spacing:2px;font-size:var(--fs-xs);width:auto}
.sh-heat th{color:var(--muted);font-weight:500;text-align:right;padding:0 4px;border:0;background:none}
.sh-heat td{width:18px;height:16px;padding:0;background:var(--s-sunk);border-radius:3px;position:relative;border:0}
.sh-heat td span{position:absolute;inset:0;border-radius:3px}
.sh-field{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 12px 6px 0}
.sh-field input[type=number]{width:84px}
.sh-wide{display:flex;flex-direction:column;align-items:stretch}
.sh-th{border:1px solid var(--line);border-radius:var(--rad-sm);padding:8px 12px;margin:10px 0}
.sh-token ol{margin:6px 0 0;padding-left:20px}
/* v3.1144.0 (6 October 2026) — Darren: "a flag somewhere that I can tick, which Platinum Consultants employees should receive
   the alert". The tick list on the Settings chip. Theme tokens only. */
.sh-to{border:1px solid var(--line);border-radius:var(--rad-sm);padding:8px 12px;margin:10px 0;min-width:0}
.sh-picks{list-style:none;margin:6px 0;padding:0}
.sh-picks li{border-top:1px solid var(--s-line-2,var(--line))}
.sh-picks li:first-child{border-top:0}
.sh-pick{display:flex;align-items:center;gap:10px;padding:7px 0;cursor:pointer}
.sh-pick input{flex:0 0 auto;width:18px;height:18px;margin:0}
.sh-pick-who{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.sh-pick-what{flex:0 0 auto;color:var(--muted);font-size:var(--fs-sm,13px)}
.sh-add input{min-width:260px}
.sh-goes{font-weight:600;margin:8px 0 4px}
.sh-email-off{border-left:3px solid var(--warn);padding:6px 10px;background:var(--s-sunk);border-radius:var(--rad-sm)}
@media (max-width:640px){
  .sh-pick{display:grid;grid-template-columns:18px minmax(0,1fr);gap:2px 10px;align-items:start}.sh-pick input{margin-top:2px}
  .sh-pick-what{grid-column:2}
  .sh-add input{min-width:0;width:100%}
}
/* v3.1143.0 (6 October 2026) — Darren: "can the alerts go to the top … each app as its own chip and settings as their own
   … Can you neaten it up? Doesn't need to use so much space." One header line, the open alerts under it, the chip row,
   then one pane at a time. Theme tokens only. */
.sh-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:10px 16px}
.sh-bar-main{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;min-width:0;flex:1 1 320px}
.sh-bar-main h2{margin:0;font-size:var(--fs-md,15px);line-height:1.3}
.sh-bar-main .sh-dot{align-self:center}
.sh-bar .save-status:empty{display:none}
.sh-bar-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sh-seg{margin:0;padding:2px}
.sh-seg .chip{padding:4px 10px;font-size:var(--fs-xs,12px)}
.sh-meta{color:var(--muted);font-size:var(--fs-xs,12px)}
.sh-dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex:none;background:var(--muted)}
.sh-dot.ok{background:var(--s-ok)}
.sh-dot.warn{background:var(--s-warn)}
.sh-dot.bad{background:var(--s-bad)}
.sh-dot.neutral{background:var(--muted)}
.panel.sh-alerts{padding:10px 16px;border-left:4px solid var(--s-warn)}
.panel.sh-alerts.sh-alerts-problem{border-left-color:var(--s-bad)}
.sh-alerts-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sh-alerts-head h2{margin:0;font-size:var(--fs-md,15px)}
.sh-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:4px;
  border-radius:999px;background:var(--s-bad-soft);color:var(--s-bad);font-size:var(--fs-xs,12px);vertical-align:2px}
.sh-alist{list-style:none;margin:6px 0 0;padding:0}
.sh-alert{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding:8px 0;border-top:1px solid var(--s-line-2,var(--line))}
.sh-alert:first-child{border-top:0}
.sh-alert-body{min-width:0;flex:1}
.sh-alert-top{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.sh-alert-what{margin:4px 0 0}
.sh-alert-do{margin:4px 0 0;font-size:var(--fs-sm,13px);color:var(--ink-2,var(--ink))}
.sh-alert-do code{font-size:.92em;padding:1px 5px;border-radius:5px;background:var(--s-sunk);overflow-wrap:anywhere}
.sh-alert-acts{display:flex;gap:6px;flex:none}
.sh-chips{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 4px}
.sh-chip{font:inherit;position:relative;display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 12px;border-radius:999px;cursor:pointer;
  border:1px solid var(--s-line-2,var(--line));background:var(--panel);color:var(--ink-2,var(--ink));font-size:var(--fs-sm,13px);font-weight:600}
.sh-chip:hover{border-color:var(--blue)}
.sh-chip.on{background:var(--s-accent-soft);border-color:var(--blue);color:var(--blue-ink,var(--ink))}
.sh-chip-set{margin-left:auto}
.sh-n{color:var(--muted);font-weight:500}
.sh-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;font-size:11px;font-weight:700}
.sh-badge.bad{background:var(--s-bad-soft);color:var(--s-bad)}
.sh-badge.warn{background:var(--s-warn-soft);color:var(--s-warn)}
.sh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sh-card{padding:12px 16px}
.sh-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.sh-card-head h2{margin:0;font-size:var(--fs-md,15px)}
.sh-card-head .sh-meta{margin-left:auto}
.sh-card p.sh-why{margin:4px 0 0}
.sh-card p.sh-why-bad{color:var(--ink);font-size:var(--fs-sm,13px)}
.sh-card p.hint{margin:4px 0 0}
.sh-stats{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.sh-stat{font-size:var(--fs-sm,13px);padding:3px 10px;border-radius:var(--rad-sm,8px);background:var(--s-sunk);color:var(--ink-2,var(--ink))}
.sh-stat b{color:var(--ink);font-weight:700}
.sh-more{margin:6px 0 0;border-top:1px solid var(--s-line-2,var(--line));padding-top:6px}
.sh-more > summary{cursor:pointer;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;list-style:none}
.sh-more > summary::-webkit-details-marker{display:none}
.sh-more > summary::before{content:"▸";color:var(--muted);font-size:var(--fs-xs);width:10px}
.sh-more[open] > summary::before{content:"▾"}
.sh-more > summary h3{margin:0;font-size:var(--fs-sm,13px)}
.sh-more[open] > summary{margin-bottom:6px}
.sh-more[open] > summary > .hint{display:none}
.sh-history > summary{cursor:pointer;display:flex;align-items:baseline;gap:8px;list-style:none}
.sh-history > summary::-webkit-details-marker{display:none}
.sh-history > summary::before{content:"▸";color:var(--muted);width:10px}
.sh-history[open] > summary::before{content:"▾"}
.sh-history > summary h2{margin:0;font-size:var(--fs-md,15px)}
.sh-history{padding:10px 16px}
.sh-hist-pick{display:inline-flex;align-items:center;gap:6px;margin:8px 0 0;font-size:var(--fs-sm,13px)}
.sh-hlist{list-style:none;margin:8px 0 0;padding:0}
.sh-hlist li{padding:6px 0;border-top:1px solid var(--s-line-2,var(--line))}
.sh-hlist li:first-child{border-top:0}
@media (max-width:640px){
  .sh-field{display:flex}.sh-heat td{width:12px;height:12px}
  .sh-bar{padding:10px 12px}
  .sh-bar-tools{width:100%;justify-content:space-between}
  .sh-alert{flex-direction:column;gap:6px}
  .sh-alert-acts{width:100%}.sh-alert-acts .btn{flex:1}
  .sh-chips{flex-wrap:nowrap;overflow-x:auto;margin-left:-4px;margin-right:-4px;padding:0 4px 4px;scrollbar-width:none;
    -webkit-mask-image:linear-gradient(to right,black 88%,transparent);mask-image:linear-gradient(to right,black 88%,transparent)}
  .sh-chip{flex:none}
  .sh-chip-set{margin-left:0}
  .sh-card{padding:12px}
  .sh-card-head .sh-meta{margin-left:0;flex-basis:100%}
}
/* v3.1145.0 (6 October 2026) — Server health → Logs (public/serverhealthui.js logsShellHtml / logsResultsHtml). Darren: "Can
   we pull logs regularly into our app so you'll be able to read them?" The filter bar, the per-app pull line, the memory
   line and the tables. Theme tokens only. */
.sh-chip-logs{margin-left:auto}
.sh-chip-logs + .sh-chip-set{margin-left:0}
.sl-logs{padding:12px 16px}
.sl-filters{display:flex;flex-wrap:wrap;align-items:center;gap:0 4px;margin:8px 0 4px}
.sl-filters select,.sl-filters input[type=search],.sl-filters input[type=datetime-local]{min-height:32px}
.sl-q input{min-width:240px}
.sl-custom{display:inline-flex;flex-wrap:wrap}
.sl-custom[hidden]{display:none}
.sl-tools{padding:0 12px 0 0;font-size:var(--fs-sm,13px);font-weight:600}
.sl-acts{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0;flex-basis:100%}
.sl-status{list-style:none;margin:8px 0;padding:0;font-size:var(--fs-sm,13px)}
.sl-status li{padding:3px 0;overflow-wrap:anywhere}
.sl-status li.sl-bad{color:var(--ink)}
.sl-summary{margin:8px 0 4px;font-size:var(--fs-sm,13px);color:var(--muted)}
.sl-table{font-size:var(--fs-sm,13px)}
.sl-table th,.sl-table td{vertical-align:top}
.sl-table td.num,.sl-table th.num{text-align:right;white-space:nowrap}
.sl-table .sl-time{white-space:nowrap;color:var(--ink-2,var(--ink))}
.sl-table .sl-msg code{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.92em;background:none;padding:0}
.sl-table .sl-err{display:block;font-size:var(--fs-xs,12px);overflow-wrap:anywhere}
.sl-sort{font:inherit;font-weight:600;color:var(--ink-2,var(--ink))}
.sl-sort.on{color:var(--blue)}
.sl-pager{display:flex;gap:8px;justify-content:flex-end;margin:8px 0 0}
.sl-rss .sh-chart svg{height:80px}
@media (max-width:640px){
  .sl-logs{padding:12px}
  .sh-chip-logs{margin-left:0}
  .sl-filters .sh-field{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:8px;width:100%;margin:3px 0}
  .sl-filters .sh-field select,.sl-filters .sh-field input{min-width:0;width:100%}
  .sl-custom{display:block;width:100%}
  .sl-q input{min-width:0}
  .sl-acts .btn{flex:1 1 auto}
  /* the tool-call table becomes one small card per call on a phone, so ΔRSS and ms are seen without scrolling sideways */
  .sl-tools-tbl,.sl-tools-tbl tbody{display:block}
  .sl-tools-tbl thead tr{display:flex;flex-wrap:wrap;gap:4px 12px;padding:6px 8px}
  .sl-tools-tbl thead th{display:none;padding:0;border:0}
  .sl-tools-tbl thead th:has(.sl-sort){display:block}
  .sl-tools-tbl tr[data-sl-row]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 10px;padding:8px;border-top:1px solid var(--line)}
  .sl-tools-tbl tr[data-sl-row] td{display:block;padding:0;border:0;text-align:left;white-space:normal;min-width:0;overflow-wrap:anywhere}
  .sl-tools-tbl tr[data-sl-row] td.sl-time{grid-column:1 / -1;font-weight:600}
  .sl-tools-tbl tr[data-sl-row] td[data-l="Tool"],.sl-tools-tbl tr[data-sl-row] td[data-l="Outcome"]{grid-column:1 / -1}
  .sl-tools-tbl td[data-l]::before{content:attr(data-l);display:block;font-size:var(--fs-xs,12px);color:var(--muted)}
}

/* v3.1137.0 (learn) — the Courses | Lessons tabs, the Lessons library's search row, the "Add lessons" picker's list,
   and the lesson window's course list. Layout only; colours come from the theme. */
.acad-libtabs{margin:0 0 10px}
.acad-libbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:8px 0}
.acad-libbar input[type=search]{flex:1 1 260px;min-width:200px}
.acad-picklist{max-height:320px;overflow:auto;border:1px solid var(--line);border-radius:6px;padding:6px 8px;margin:6px 0}
.acad-picklist label.check{display:block;margin:2px 0}
.acad-libin{list-style:none;padding:0;margin:6px 0}
.acad-libin li{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0}
.acad-mighty details{margin:10px 0}

/* ---- WEBSITE FORMS (0327, v3.1137.0) — Set-up → Website forms -----------------------------------------------
   Darren, 3 October 2026: "I want to create a place where we can have any form we like." The list, the wide
   editor window (questions on the left, the live preview on the right), and the submissions. Theme tokens only. */
.sheet-card.sheet-form.sheet-wf{max-width:min(1500px,95vw)}
.wf-tools,.wf-subtools{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 16px;margin:6px 0 12px}
.wf-search input{min-width:220px}
.wf-chips{display:flex;flex-wrap:wrap;gap:6px}
.wf-chip{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:999px;padding:5px 12px;font:inherit;font-size:var(--fs-sm);font-weight:600;cursor:pointer}
.wf-chip.on{background:var(--blue-ink);border-color:var(--blue-ink);color:var(--panel)}
.wf-pill{display:inline-block;border-radius:999px;padding:2px 10px;font-size:var(--fs-xs);font-weight:700;border:1px solid var(--line);background:var(--panel-2)}
.wf-pill-live{color:var(--ok)}
.wf-pill-paused{color:var(--muted)}
.wf-pill-archived{color:var(--muted);text-decoration:line-through}
.wf-ehead{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 10px}
.wf-ehead-acts{display:inline-flex;gap:8px}
.wf-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:0 0 14px}
.wf-tab{border:0;background:transparent;color:var(--muted);font:inherit;font-weight:700;padding:9px 14px;cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-1px}
.wf-tab.on{color:var(--ink);border-bottom-color:var(--blue-ink)}
.wf-build{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;align-items:start}
.wf-right{position:sticky;top:0;align-self:start;max-height:78vh;overflow:auto}
.wf-prevhead{font-weight:700;margin:0 0 8px}
.wf-preview{border:1px dashed var(--line);border-radius:12px;padding:18px;background:var(--panel)}
.wf-sec{border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin:0 0 12px;background:var(--panel)}
.wf-sec>summary{font-weight:700;cursor:pointer;padding:2px 0}
.wf-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin:10px 0 4px}
.wf-grid .wide,.wf-q-body .wide{grid-column:1/-1}
.wf-qs{list-style:none;margin:10px 0;padding:0}
.wf-q{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:0 0 10px;background:var(--panel-2)}
.wf-q-head{display:flex;align-items:center;gap:8px}
.wf-q-head select{max-width:260px}
.wf-q-n{font-weight:700;color:var(--muted);min-width:1.5em}
.wf-grip{cursor:grab;color:var(--muted);letter-spacing:-2px;user-select:none}
.wf-q-acts{margin-left:auto;display:inline-flex;gap:4px}
.wf-q-body{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:10px 0 0}
.wf-showif{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end}
.wf-add{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}
.wf-staff{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:4px 12px}
.wf-savebar{position:sticky;bottom:0;background:var(--panel);padding:10px 0;border-top:1px solid var(--line)}
.wf-subwrap{overflow-x:auto}
.wf-tally{margin:4px 0;font-size:var(--fs-sm)}
.wf-dl{display:grid;grid-template-columns:minmax(140px,30%) 1fr;gap:6px 14px;margin:8px 0 14px}
.wf-dl dt{color:var(--muted);font-weight:600}
.wf-dl dd{margin:0;white-space:pre-wrap;word-break:break-word}
.wf-new .wf-purposes{border:0;padding:0;margin:0 0 12px}
.wf-new .wf-purposes label{display:flex;margin:0 0 8px}
@media (max-width:900px){
  .wf-build{grid-template-columns:1fr}
  .wf-right{position:static;max-height:none}
  .wf-grid,.wf-q-body{grid-template-columns:1fr}
}

/* v3.1137.0 (forms) — the button row at the foot of a window form (Make the form, Open enquiry, Save the form). */
.sheet-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 0 0}

/* =================================================================================================
   v3.1137.0 (3 October 2026) — THE BUSINESS HEALTH CHECK, GIVEN THE MODERN TREATMENT (hcui)
   -------------------------------------------------------------------------------------------------
   Darren: "It didn't get all the modern treatment of all the other ones … we're charging $1,500 … I really
   think it needs to look $1,500 worth. Maybe even when you do a comprehensive business health check, it looks
   even flashier." A hero (on the brand gradient for a Comprehensive), the products as cards, the period as one
   tidy row, the areas as a grid, the readiness as a checklist, a strong Run button, a live view while it runs,
   and the history as cards. Theme tokens only (dark mode is the same rules); motion stops for reduced motion.
   ================================================================================================= */
.panel.bh-form{background:transparent;border:0;box-shadow:none;padding:0}
.bh-form .bh-card{padding:clamp(14px,2.4vw,22px);border-radius:var(--rad);box-shadow:var(--sh-1);margin:0 0 14px}
.bh-form .bh-card-h{font-size:var(--fs-lg);font-weight:800;letter-spacing:-.01em;margin:0 0 14px;color:var(--ink)}
.bh-form .bh-num{width:28px;height:28px;font-size:var(--fs-sm);background:var(--b-500);color:var(--s-hero-ink)}
/* v3.1137.0 (merge) — the old product select stays for the product rules and the run, but is not shown at all (display:none, so it is out of the tab order and the layout checks): the cards are the control. */
.bh-sel-keep{display:none}
.bh-product-row:not(:has(> :not(.bh-sel-keep):not([hidden]))){display:none}
/* THE HERO */
.bh-hero{position:relative;overflow:hidden;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto);gap:18px clamp(18px,3vw,36px);
  align-items:end;padding:clamp(18px,3.4vw,34px);margin:0 0 16px;border-radius:var(--rad-lg);border:1px solid var(--s-line-2);
  background:radial-gradient(900px 300px at 0% -25%,var(--s-accent-soft) 0%,transparent 70%),var(--s-raised);box-shadow:var(--sh-2);color:var(--ink)}
.bh-hero-in{display:grid;gap:8px;min-width:0}
.bh-eyebrow{margin:0;font-size:var(--fs-xs);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--blue-ink);display:flex;align-items:center;gap:6px}
.bh-hero-title{margin:0;font-size:clamp(24px,3.4vw,36px);line-height:1.12;letter-spacing:-.025em;font-weight:800;color:var(--ink)}
.bh-hero-sub{margin:0;font-size:var(--fs-lg);line-height:1.5;color:var(--muted);max-width:60ch}
.bh-hero-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.bh-hero-chip{display:inline-flex;align-items:center;min-height:28px;padding:3px 12px;border-radius:var(--rad-pill);border:1px solid var(--s-line);
  background:var(--panel);font-size:var(--fs-sm);font-weight:600;color:var(--ink-2);max-width:100%;overflow-wrap:anywhere}
.bh-hero-prod{border-color:var(--b-500);color:var(--blue-ink)}
.bh-cred{margin:6px 0 0;font-size:var(--fs-sm);color:var(--muted);display:flex;align-items:center;gap:8px}
.bh-cred::before{content:"";width:22px;height:2px;border-radius:2px;background:var(--o-500);flex:none}
.bh-hero-stats{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:10px;margin:0;min-width:min(100%,320px)}
.bh-stat{padding:10px 14px;border-radius:var(--rad);border:1px solid var(--s-line-2);background:var(--panel);min-width:0}
.bh-stat dt{font-size:var(--fs-xs);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.bh-stat dd{margin:2px 0 0;font-size:var(--fs-md);font-weight:700;color:var(--ink);overflow-wrap:anywhere}
/* …and flashier for a Comprehensive: the brand gradient, an orange glow, glass chips. */
.bh-hero[data-product="comprehensive"]{background:var(--s-hero);border-color:transparent;color:var(--s-hero-ink)}
.bh-hero[data-product="comprehensive"]::before{content:"";position:absolute;z-index:-1;inset:auto -10% -60% 45%;height:140%;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--o-500) 38%,transparent),transparent);pointer-events:none}
.bh-hero[data-product="comprehensive"]::after{content:"";position:absolute;z-index:-1;inset:-40% 40% auto -10%;height:120%;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--s-hero-ink) 14%,transparent),transparent);pointer-events:none}
.bh-hero[data-product="comprehensive"] .bh-eyebrow,.bh-hero[data-product="comprehensive"] .bh-hero-sub,
.bh-hero[data-product="comprehensive"] .bh-cred,.bh-hero[data-product="comprehensive"] .bh-stat dt{color:var(--s-hero-muted)}
.bh-hero[data-product="comprehensive"] .bh-hero-title,.bh-hero[data-product="comprehensive"] .bh-stat dd{color:var(--s-hero-ink)}
.bh-hero[data-product="comprehensive"] .bh-hero-chip,.bh-hero[data-product="comprehensive"] .bh-stat{background:var(--s-glass);border-color:var(--s-glass-line);color:var(--s-hero-ink)}
.bh-hero[data-product="comprehensive"] .bh-hero-prod{background:var(--o-500);border-color:var(--o-500);color:var(--ink-brand)}
.bh-hero[data-product="comprehensive"] .help{color:var(--s-hero-ink)}
/* THE PRODUCT CARDS */
.bh-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.bh-pcard{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;text-align:left;font:inherit;cursor:pointer;
  padding:18px 18px 16px;border-radius:var(--rad);border:1.5px solid var(--s-line);background:var(--s-raised);color:var(--ink);box-shadow:var(--sh-1);
  transition:border-color var(--dur-2) var(--ease-out),box-shadow var(--dur-2) var(--ease-out),transform var(--dur-2) var(--ease-out)}
.bh-pcard:hover{border-color:var(--b-400);box-shadow:var(--sh-2)}
.bh-pcard:focus-visible{outline:none;box-shadow:var(--s-focus),var(--sh-2)}
.bh-pcard.is-on{border-color:var(--b-500);box-shadow:var(--s-focus),var(--sh-2)}
.bh-pcard.is-off{border-style:dashed;background:var(--s-sunk);box-shadow:none;cursor:default}
.bh-pradio{position:absolute;top:16px;right:16px;width:20px;height:20px;border-radius:50%;border:2px solid var(--s-line-hover);background:var(--panel)}
.bh-pcard.is-on .bh-pradio{border-color:var(--b-500);background:radial-gradient(circle,var(--b-500) 0 5px,var(--panel) 5.5px)}
.bh-ptag,.bh-pbadge{display:inline-block;padding:2px 9px;border-radius:var(--rad-pill);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.bh-ptag{background:var(--s-accent-soft);color:var(--blue-ink)}
.bh-pbadge{background:var(--o-500);color:var(--ink-brand)}
.bh-pname{font-size:var(--fs-xl);font-weight:800;letter-spacing:-.02em;line-height:1.15;padding-right:26px}
.bh-pfull{font-size:var(--fs-xs);color:var(--muted);margin-top:-4px}
.bh-pline{font-size:var(--fs-sm);line-height:1.5;color:var(--ink-2)}
.bh-pchecks{font-size:var(--fs-sm);font-weight:700;color:var(--blue-ink)}
.bh-plist{display:grid;gap:3px;margin:2px 0 0}
.bh-plist span{position:relative;padding-left:20px;font-size:var(--fs-sm);line-height:1.4;color:var(--ink-2)}
.bh-plist span::before{content:"✓";position:absolute;left:0;top:0;font-weight:800;color:var(--s-ok)}
.bh-pstatus{margin-top:auto;padding-top:8px;font-size:var(--fs-xs);font-weight:700;color:var(--muted)}
.bh-pstatus.is-ok{color:var(--s-ok)}
.bh-pcard.is-premium{border-color:color-mix(in srgb,var(--b-500) 45%,var(--s-line));
  background:linear-gradient(160deg,var(--s-accent-soft) 0%,var(--s-raised) 55%)}
.bh-pcard.is-premium.is-on{background:var(--s-hero);border-color:transparent;color:var(--s-hero-ink);box-shadow:var(--s-focus),var(--sh-3)}
.bh-pcard.is-premium.is-on :is(.bh-pname,.bh-pchecks,.bh-pstatus.is-ok){color:var(--s-hero-ink)}
.bh-pcard.is-premium.is-on :is(.bh-pfull,.bh-pline,.bh-plist span){color:var(--s-hero-muted)}
.bh-pcard.is-premium.is-on .bh-plist span::before{color:var(--o-500)}
.bh-pcard.is-premium.is-on .bh-pradio{border-color:var(--s-hero-ink);background:radial-gradient(circle,var(--o-500) 0 5px,var(--s-hero-ink) 5.5px)}
.bh-product-row{margin:12px 0 0}
/* v3.1138.0 — "What should this report focus on?" on the run form (public/app.js loadBizHealth). */
.bh-focus{margin:12px 0 0}
.bh-focus-field select{min-width:260px}
.bh-focus-why{margin:4px 0 0}
.bh-charge{align-self:center}
/* "Great choice" */
.bh-great{display:flex;gap:12px;align-items:flex-start;margin:14px 0 0;padding:12px 16px;border-radius:var(--rad);
  background:var(--o-soft);border:1px solid color-mix(in srgb,var(--o-500) 35%,transparent);color:var(--ink);font-size:var(--fs-md);line-height:1.5;
  animation:bhPop .45s cubic-bezier(.2,.9,.3,1.25)}
.bh-great b{color:var(--o-ink)}
.bh-great-ic{flex:none;width:30px;height:30px;border-radius:50%;background:var(--o-500);display:inline-flex;align-items:center;justify-content:center}
.bh-great-ic::before{content:"★";color:var(--ink-brand);font-size:16px;line-height:1}
@keyframes bhPop{0%{opacity:0;transform:translateY(6px) scale(.98)}100%{opacity:1;transform:none}}
.bh-chosen{margin:12px 0 0}
.bh-chosen .bh-includes{display:none}
/* THE PERIOD */
.bh-seg{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bh-seg-main{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:var(--rad-in);background:var(--s-sunk);border:1px solid var(--s-line-2);max-width:100%}
.bh-seg .ic-chip.bh-preset{min-height:36px;border-radius:calc(var(--rad-in) - 3px);border-color:transparent;background:transparent;color:var(--ink-2);padding:6px 12px}
.bh-seg .ic-chip.bh-preset:hover{border-color:var(--s-line-hover)}
.bh-seg .ic-chip.bh-preset.on{background:var(--b-500);border-color:var(--b-500);color:var(--s-hero-ink);box-shadow:var(--sh-1)}
.bh-more-ranges{display:inline-block}
.bh-more-ranges>summary{display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;border-radius:var(--rad-in);cursor:pointer;
  font-size:var(--fs-sm);font-weight:600;color:var(--s-link);list-style:none}
.bh-more-ranges>summary::-webkit-details-marker{display:none}
.bh-more-ranges>summary::after{content:"▾";margin-left:6px;font-size:11px}
.bh-more-ranges[open]>summary::after{content:"▴"}
.bh-more-ranges>summary:focus-visible{outline:none;box-shadow:var(--s-focus)}
.bh-seg-more{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 0;padding:4px;border-radius:var(--rad-in);background:var(--s-sunk);border:1px solid var(--s-line-2)}
.bh-dates{display:grid;grid-template-columns:minmax(0,200px) minmax(0,200px) minmax(0,360px);align-items:end;gap:12px;margin:14px 0 0}
.bh-dates .field[hidden]{display:none}
.bh-dates .field{min-width:0;max-width:none;width:100%}
.bh-dates .field input,.bh-dates .field select{width:100%;box-sizing:border-box}
.bh-range-say{margin:8px 0 0}
/* THE AREAS */
.bh-area-tools{margin:0 0 12px;align-items:center}
.bh-count{align-self:center}
.bh-area-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:8px;align-items:stretch}
.bh-area-grid .ic-chip[data-bh-area]{height:100%}
.bh-area-grid .ic-chip[data-bh-area]{align-items:flex-start;border-radius:var(--rad-in);padding:10px 12px;min-width:0;width:100%;box-sizing:border-box;white-space:normal}
.bh-area-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.bh-area-t b{color:var(--ink);font-size:var(--fs-sm)}
.bh-area-t small{font-size:var(--fs-xs);font-weight:500;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.bh-form .bh-group{margin:0 0 14px}
/* BEFORE IT RUNS */
.bh-checklist{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.bh-check-wrap:empty,.bh-check-wrap:has(> #bh-acct:empty){display:none}
.bh-ready{display:grid;gap:8px;margin:8px 0 0}
.bh-check{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:4px 12px;align-items:center;padding:12px 14px;border-radius:var(--rad);
  border:1px solid var(--s-line-2);background:var(--s-raised)}
.bh-check-ic{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:14px}
.bh-check.is-ok .bh-check-ic{background:var(--s-ok-soft);color:var(--s-ok)}
.bh-check.is-ok .bh-check-ic::before{content:"✓"}
.bh-check.is-warn{border-color:color-mix(in srgb,var(--s-warn) 35%,var(--s-line-2))}
.bh-check.is-warn .bh-check-ic{background:var(--s-warn-soft);color:var(--s-warn)}
.bh-check.is-warn .bh-check-ic::before{content:"!"}
.bh-check.is-note .bh-check-ic{background:var(--s-accent-soft);color:var(--blue-ink)}
.bh-check.is-note .bh-check-ic::before{content:"i"}
.bh-check-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.bh-check-t>b,.bh-check-tick b{font-size:var(--fs-md);color:var(--ink)}
.bh-check-t>span{font-size:var(--fs-sm);color:var(--muted);line-height:1.45}
.bh-check-tick{display:flex;align-items:center;gap:8px;cursor:pointer}
.bh-check-tick input{width:18px;height:18px;margin:0;accent-color:var(--b-500)}
.bh-check>.btn{justify-self:end;white-space:nowrap}
.bh-why{display:inline;vertical-align:middle}
.bh-why>summary{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;cursor:pointer;list-style:none;
  border:1px solid var(--s-line);font-size:var(--fs-xs);font-weight:800;color:var(--blue-ink);background:var(--panel);margin-top:2px}
.bh-why>summary::-webkit-details-marker{display:none}
.bh-why>summary:focus-visible{outline:none;box-shadow:var(--s-focus)}
.bh-why[open]{display:block}
.bh-why[open]>span{display:block;margin:6px 0 0;font-size:var(--fs-sm);line-height:1.5;color:var(--ink-2);max-width:72ch}
.bh-cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin:16px 0 0;padding:16px 0 0;border-top:1px solid var(--s-line-2)}
.bh-cta{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.btn.primary.bh-run-btn{min-height:52px;padding:0 28px;font-size:var(--fs-lg);font-weight:800;border-radius:var(--rad-in);
  background:var(--b-500);border-color:var(--b-500);color:var(--s-hero-ink);box-shadow:var(--sh-2)}
.btn.primary.bh-run-btn:hover:not(:disabled){background:var(--b-600);border-color:var(--b-600)}
.bh-form:has(.bh-hero[data-product="comprehensive"]) .btn.primary.bh-run-btn{background:var(--s-hero);border-color:transparent}
.bh-eta{margin:0;display:flex;align-items:center;gap:8px;font-size:var(--fs-sm);color:var(--muted)}
.bh-eta b{color:var(--ink-2)}
.bh-eta-ic{width:18px;height:18px;border-radius:50%;border:2px solid var(--muted);position:relative;flex:none}
.bh-eta-ic::before{content:"";position:absolute;left:6px;top:2px;width:2px;height:6px;background:var(--muted);border-radius:1px}
.bh-close-note{margin:10px 0 0}
.bh-board-more{margin:12px 0 0}
.bh-board-more>summary{cursor:pointer;font-size:var(--fs-sm);font-weight:600;color:var(--s-link)}
/* THE RUN, LIVE */
.bh-live{margin:16px 0 0}
.bh-live-in{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px 22px;align-items:center;padding:clamp(16px,2.6vw,24px);
  border-radius:var(--rad-lg);border:1px solid var(--s-line-2);background:radial-gradient(700px 240px at 0% 0%,var(--s-accent-soft),transparent 70%),var(--s-raised);box-shadow:var(--sh-2)}
.bh-live-in.is-premium{background:var(--s-hero);border-color:transparent;color:var(--s-hero-ink)}
.bh-ring{position:relative;width:112px;height:112px}
.bh-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.bh-ring circle{fill:none;stroke-width:9}
.bh-ring-bg{stroke:var(--s-sunk)}
.bh-ring-fg{stroke:var(--b-500);stroke-linecap:round;transition:stroke-dashoffset var(--dur-3) var(--ease-out)}
.is-premium .bh-ring-bg{stroke:var(--s-glass)}
.is-premium .bh-ring-fg{stroke:var(--o-500)}
.bh-ring-n{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:26px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.bh-ring-n small{font-size:var(--fs-xs);font-weight:600;margin-top:3px;color:var(--muted)}
.is-premium .bh-ring-n small{color:var(--s-hero-muted)}
.bh-live-body{min-width:0;display:grid;gap:4px}
.bh-live-k{margin:0;display:flex;align-items:center;gap:8px;font-size:var(--fs-xs);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--blue-ink)}
.is-premium .bh-live-k{color:var(--s-hero-muted)}
.bh-pulse{width:9px;height:9px;border-radius:50%;background:var(--o-500);animation:axpulse 1.4s ease-in-out infinite}
.bh-live-h{margin:0;font-size:var(--fs-xl);font-weight:800;letter-spacing:-.02em}
.bh-live-now{margin:0;font-size:var(--fs-md)}
.bh-live-now span,.bh-live-facts{color:var(--muted);font-size:var(--fs-sm)}
.is-premium .bh-live-now span,.is-premium .bh-live-facts,.is-premium .bh-live-note{color:var(--s-hero-muted)}
.bh-live-facts{margin:0}
.bh-live-stall{margin:4px 0 0;padding:8px 10px;border-radius:var(--rad-sm);background:var(--s-warn-soft);color:var(--s-warn);font-size:var(--fs-sm);font-weight:600}
.bh-tiles,.bh-steps{grid-column:1 / -1;list-style:none;margin:0;padding:0;display:grid;gap:8px}
.bh-tiles{grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr))}
.bh-tile,.bh-steps li{display:flex;align-items:center;gap:8px;min-width:0;padding:9px 12px;border-radius:var(--rad-in);font-size:var(--fs-sm);font-weight:600;
  border:1px solid var(--s-line-2);background:var(--panel);color:var(--muted)}
.is-premium .bh-tile{background:var(--s-glass);border-color:var(--s-glass-line);color:var(--s-hero-muted)}
.bh-tile-ic{flex:none;width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;border:1.5px solid currentColor}
.bh-tile.is-done,.bh-steps li.is-done{color:var(--s-ok)}
.bh-tile.is-done .bh-tile-ic,.bh-steps li.is-done .bh-tile-ic{background:var(--s-ok-soft);border-color:transparent}
.is-premium .bh-tile.is-done{color:var(--s-hero-ink)}
.is-premium .bh-tile.is-done .bh-tile-ic{background:var(--o-500);color:var(--ink-brand)}
.bh-tile.is-now,.bh-steps li.is-now{color:var(--ink);border-color:var(--b-500)}
.is-premium .bh-tile.is-now{color:var(--s-hero-ink);border-color:var(--o-500)}
.bh-tile.is-now .bh-tile-ic,.bh-steps li.is-now .bh-tile-ic{border-color:var(--b-500);border-right-color:transparent;animation:bhSpin 1s linear infinite}
.is-premium .bh-tile.is-now .bh-tile-ic{border-color:var(--o-500);border-right-color:transparent}
.bh-tile.is-failed{color:var(--s-bad)}
@keyframes bhSpin{to{transform:rotate(360deg)}}
.bh-live-note{grid-column:1 / -1;margin:0;font-size:var(--fs-sm);color:var(--muted)}
.bh-form:has(#bh-live:not([hidden])) .bh-close-note{display:none}
.bh-form:has(#bh-live:not([hidden])) .bh-eta{display:none}
.bh-auto .save-status:empty{display:none}
/* PREVIOUS CHECKS, AS CARDS */
.bh-hgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:12px}
.bh-hcard{display:flex;flex-direction:column;gap:10px;min-width:0;padding:16px;border-radius:var(--rad);border:1px solid var(--s-line-2);background:var(--s-raised);box-shadow:var(--sh-1);
  transition:box-shadow var(--dur-2) var(--ease-out),border-color var(--dur-2) var(--ease-out)}
.bh-hcard[data-rowopen]{cursor:pointer}
.bh-hcard[data-rowopen]:hover,.bh-hcard[data-rowopen]:focus-visible{border-color:var(--b-400);box-shadow:var(--sh-2);outline:none}
.bh-hcard[data-rowopen]:focus-visible{box-shadow:var(--s-focus),var(--sh-2)}
.bh-hcard.is-premium{border-top:3px solid var(--o-500)}
.bh-hcard-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline;flex-wrap:wrap}
/* v3.1150.0 — the tick box and Remove button Platinum sees on each Previous checks card (removing a health check). */
.bh-hpick{flex:0 0 auto;margin:0;align-self:center;width:16px;height:16px}
.bh-hpick + .bh-hprod{margin-right:auto}
.bh-hact .bh-hremove{margin-left:auto}
.bh-removed-list{margin:6px 0 0;padding-left:18px}
.bh-removed-list li{margin:4px 0}
.bh-hprod{font-weight:800;color:var(--ink);font-size:var(--fs-md)}
.bh-hwhen{font-size:var(--fs-xs);color:var(--muted);white-space:nowrap}
/* v3.1208.0 — the Simpro company a check read, by name, on its card and at the head of its result. */
.edge-co{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.edge-co-k{font-size:var(--fs-sm);font-weight:700;color:var(--muted)}
.edge-co-n{font-size:var(--fs-md);color:var(--blue-ink);overflow-wrap:anywhere}
.edge-co select{max-width:100%;min-width:0}
.bh-cos-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.bh-cos-list li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0}
.bh-co-sw{display:inline-flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere;cursor:pointer}
.bh-hco{margin:-4px 0 0;font-size:var(--fs-sm);font-weight:700;color:var(--blue-ink);overflow-wrap:anywhere}
.bh-rco{margin:-6px 0 12px;font-size:var(--fs-md);font-weight:700;color:var(--blue-ink);overflow-wrap:anywhere}
.bh-hcard-mid{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.bh-score{display:inline-flex;align-items:baseline;gap:2px;padding:6px 12px;border-radius:var(--rad-in);font-variant-numeric:tabular-nums}
.bh-score b{font-size:26px;font-weight:800;line-height:1}
.bh-score small{font-size:var(--fs-xs);font-weight:600}
.bh-score i{font-style:normal;margin-left:8px;padding:1px 7px;border-radius:var(--rad-pill);font-size:var(--fs-xs);font-weight:800;background:var(--panel)}
.bh-score.is-good{background:var(--s-ok-soft);color:var(--s-ok)}
.bh-score.is-mid{background:var(--s-warn-soft);color:var(--s-warn)}
.bh-score.is-low{background:var(--s-bad-soft);color:var(--s-bad)}
.bh-score.is-none{background:var(--s-sunk);color:var(--muted)}
.bh-trend{font-size:var(--fs-sm);font-weight:700}
.bh-trend.is-up{color:var(--s-ok)}
.bh-trend.is-down{color:var(--s-bad)}
.bh-trend.is-flat{color:var(--muted)}
.bh-hmoney{display:flex;flex-direction:column;margin-left:auto;text-align:right}
.bh-hmoney b{font-size:var(--fs-lg);color:var(--ink);font-variant-numeric:tabular-nums}
.bh-hmoney small{font-size:var(--fs-xs);color:var(--muted)}
.bh-hmeta{margin:0;font-size:var(--fs-sm);color:var(--muted);overflow-wrap:anywhere}
.bh-hact{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}
/* THE AUTOMATIC ONE LEADS */
.panel.bh-auto.bh-auto-lead{border:1px solid var(--s-line-2);border-left:4px solid var(--b-500);
  background:radial-gradient(800px 240px at 0% 0%,var(--s-accent-soft),transparent 70%),var(--s-raised);box-shadow:var(--sh-2)}
.bh-auto-k{margin:0 0 4px;font-size:var(--fs-xs);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--blue-ink)}
.bh-auto-h{margin:0 0 8px;font-size:clamp(19px,2.4vw,24px);font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.bh-auto-list{margin:0 0 8px;padding-left:20px}
.bh-auto-act{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0 0}
/* THE SMALL SCREENS */
@media (max-width:900px){
  .bh-hero{grid-template-columns:minmax(0,1fr)}
  .bh-hero-stats{min-width:0}
  .bh-dates{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .bh-dates #bh-depth-wrap{grid-column:1 / -1}
}
@media (max-width:600px){
  .bh-form .bh-card{padding:14px}
  .bh-hero{padding:18px 16px;border-radius:var(--rad)}
  .bh-hero-title{font-size:23px}
  .bh-hero-sub{font-size:var(--fs-md)}
  .bh-check{grid-template-columns:30px minmax(0,1fr)}
  .bh-check>.btn{grid-column:2;justify-self:start}
  .bh-live-in{grid-template-columns:76px minmax(0,1fr)}
  .bh-ring{width:76px;height:76px}
  .bh-ring-n{font-size:19px}
  .btn.primary.bh-run-btn{width:100%;justify-content:center}
  .bh-cta{width:100%}
  .bh-seg-main{width:100%}
  .bh-hmoney{margin-left:0;text-align:left}
  .bh-pcard:not(.is-on) .bh-plist{display:none}
}
@media (prefers-reduced-motion: reduce){
  .bh-great,.bh-pulse,.bh-tile.is-now .bh-tile-ic,.bh-steps li.is-now .bh-tile-ic{animation:none}
  .bh-pcard,.bh-hcard,.bh-ring-fg{transition:none}
}

/* v3.1137.0 (merge) — ON A PHONE HELD SIDEWAYS ONLY THE HEADER STAYS PUT (the v3.1132.0 rule: .stepbar, .sec-bar and
   .dir-secs already go static there). The new list toolbar, the enquiry filter bar and the forms editor's save bar and
   preview joined them as sticky strips and took a third of a 375px-high screen between them. */
@media (max-height:500px) and (orientation:landscape){
  .list-bar,.enq-filterbar,.wf-right,.wf-savebar{position:static}
}

/* =====================================================================================================================
   v3.1142.0 (5 October 2026) — THE HEALTH CHECK'S RUN FORM, DIRECTION "B" (runform): TWO COLUMNS, A LIVE SUMMARY.
   Darren chose "b" of two prototypes (outputs/runform-B.html). Left: five compact steps, one open at a time, each saying
   what is chosen in one line when closed. Right: a sticky summary in the hero's look — the brand gradient for a
   Comprehensive — with the facts, what's included, the readiness ticks and Run. A phone stacks it all and keeps a bar
   with Run at the bottom. Theme tokens only (dark mode is the tokens and nothing else); brand blue and orange only.
   A closed step is folded HERE, by CSS, not by `hidden`: its controls stay on the page and are still sent with the run.
   ===================================================================================================================== */
.bhx{display:block}
.bhx [hidden]{display:none!important}
.bhx-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin:0 0 14px}
.bhx-chip{display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:2px 11px;border-radius:var(--rad-pill);border:1px solid var(--s-line);
  background:var(--panel);font-size:12.5px;font-weight:600;color:var(--ink-2);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.bhx-chip.is-co::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--s-ok);flex:none}
.bhx-chip.is-staff{border-color:color-mix(in srgb,var(--b-500) 40%,var(--s-line));color:var(--blue-ink);background:var(--s-accent-soft)}
.bhx-grid{display:grid;grid-template-columns:minmax(0,1fr) 392px;gap:22px;align-items:start}

/* ---- the steps: one card, five rows ---- */
.bhx-steps{border:1px solid var(--s-line);border-radius:var(--rad);background:var(--panel);box-shadow:var(--sh-1);overflow:hidden;min-width:0}
.bhx-wiz{display:contents}
.bhx-step{border-top:1px solid var(--s-line-2)}
.bhx-step:first-child{border-top:0}
.bhx-step-h{display:grid;grid-template-columns:28px 160px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;min-height:58px;margin:0;
  padding:10px 18px;border:0;border-radius:0;background:transparent;font:inherit;color:inherit;text-align:left;cursor:pointer;box-shadow:none}
.bhx-step-h:hover{background:color-mix(in srgb,var(--b-500) 3%,var(--panel))}
.bhx-step-h:focus-visible{outline:none;box-shadow:inset var(--s-focus)}
.bhx-n{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;font-size:12.5px;font-weight:800;
  background:var(--s-sunk);color:var(--muted);border:1px solid var(--s-line)}
.bhx-step.is-done .bhx-n{background:var(--s-ok-soft);color:var(--s-ok);border-color:transparent;font-size:0}
.bhx-step.is-done .bhx-n::before{content:"✓";font-size:var(--fs-sm)}
.bhx-step.is-todo .bhx-n{background:var(--o-soft);color:var(--o-ink);border-color:color-mix(in srgb,var(--o-500) 55%,transparent)}
.bhx-step.is-open .bhx-n{background:var(--b-500);color:var(--s-hero-ink);border-color:transparent;font-size:12.5px}
.bhx-step.is-open .bhx-n::before{content:none}
.bhx-t{display:flex;align-items:center;gap:8px;min-width:0;font-size:var(--fs-md);font-weight:700;color:var(--ink);white-space:nowrap}
.bhx-lock{font-size:11px;font-weight:700;color:var(--muted);border:1px solid var(--s-line);border-radius:var(--rad-pill);padding:1px 8px;white-space:nowrap}
.bhx-v{min-width:0;font-size:14px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bhx-v b{color:var(--ink);font-weight:700}
/* v3.1142.0 — the dot is text, so it is held to text contrast (v31111a11y): muted, not the line colour (1.7:1). */
.bhx-v .sep{color:var(--muted);margin:0 7px}
/* v3.1142.0 — "Based in" open on arrival in step 5: its "Choose…" needs 78px and 6.5em gave 73px (v31110look). */
.bhx .bhq-about .bhq-cell[data-bhq="business_state"] select{width:7.5em}
@media (max-width:760px){ .bhx .bhq-about .bhq-cell[data-bhq="business_state"] select{width:100%} }
.bhx-v .warn{color:var(--o-ink);font-weight:700}
.bhx-v .mut{color:var(--muted)}
.bhx-act{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-sm);font-weight:600;color:var(--s-link);white-space:nowrap}
.bhx-act::after{content:"";width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:-3px 2px 0 0;transition:transform var(--dur-2) var(--ease-out)}
.bhx-step.is-open .bhx-act::after{transform:rotate(-135deg);margin-top:3px}
.bhx-step.is-open .bhx-step-h{background:color-mix(in srgb,var(--b-500) 5%,var(--panel));box-shadow:inset 3px 0 0 var(--b-500)}
.bhx-step.is-open .bhx-step-h:focus-visible{box-shadow:inset 3px 0 0 var(--b-500),inset var(--s-focus)}
.bhx-step.is-open .bhx-v{color:var(--muted)}
.bhx-step-b{display:none;padding:6px 18px 16px 60px;box-shadow:inset 3px 0 0 var(--b-500);background:color-mix(in srgb,var(--b-500) 2%,var(--panel))}
.bhx-step.is-open .bhx-step-b{display:block}
.bhx-step-f{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin:12px 0 0}
.bhx-step-f .bhx-help{display:inline-flex}
.bhx-next{border:1px solid var(--b-500);background:var(--panel);color:var(--blue-ink);font:inherit;font-size:var(--fs-sm);font-weight:700;border-radius:var(--rad-pill);padding:6px 14px;cursor:pointer}
.bhx-next:hover{background:var(--s-accent-soft)}
.bhx-next:focus-visible{outline:none;box-shadow:var(--s-focus)}
/* in the guided start each step's body is shown on its own page, so it is never folded there */
.aw-live .bhx-step-b{display:block;padding:6px 0 0;box-shadow:none;background:none}
.aw-live .bhx-step-h,.aw-live .bhx-step-f{display:none}

/* step 1 — the products as three compact radio tiles (the same .bh-pcard buttons, smaller) */
.bhx .bh-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.bhx .bh-pcard{gap:3px;padding:11px 14px 12px;border-radius:12px;border-width:1.5px;box-shadow:none}
.bhx .bh-pcard.is-on{box-shadow:var(--s-focus)}
.bhx .bh-ptag,.bhx .bh-pbadge{padding:0;background:none;font-size:10px;color:var(--blue-ink)}
.bhx .bh-pcard.is-premium.is-on .bh-pbadge{color:var(--o-500)}
.bhx .bh-pname{font-size:var(--fs-lg);padding-right:22px}
.bhx .bh-pfull,.bhx .bh-plist{display:none}
.bhx .bh-pline{order:3;font-size:12.5px;line-height:1.4;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bhx .bh-pchecks{order:2;font-size:12.5px}
.bhx .bh-pstatus{order:4;margin-top:3px;padding-top:0;font-size:11.5px}
.bhx .bh-pradio{top:12px;right:12px;width:18px;height:18px}
.bhx .bh-product-row{margin:0}
.bhx .bh-buy{margin-top:6px}

/* step 2 — the period */
.bhx .bh-seg-main .ic-chip.bh-preset,.bhx .bh-seg-more .ic-chip.bh-preset{min-height:32px;padding:4px 8px;font-size:12.5px}
.bhx .bh-dates{grid-template-columns:minmax(0,170px) minmax(0,170px) minmax(0,330px);margin:12px 0 0}
.bhx .bh-range-say{margin:10px 0 0;font-size:var(--fs-sm);color:var(--ink-2)}

/* step 3 — the focus */
.bhx-focus{display:flex;flex-wrap:wrap;gap:10px 28px;align-items:flex-end}
.bhx .bh-focus{margin:0}
.bhx .bh-focus-field select,.bhx .bhx-mix select{min-width:260px}
.bhx-mix{min-width:0}
.bhx-tick{display:flex;align-items:center;gap:8px;margin:12px 0 0;cursor:pointer}
.bhx-tick input{width:16px;height:16px;margin:0;accent-color:var(--b-500)}
.bhx .bh-focus-why{margin:8px 0 0}

/* step 4 — the areas: a dense chip grid, three groups, a count beside each heading */
.bhx .bh-area-tools{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:0 0 12px}
.bhx-sets{display:inline-flex;flex-wrap:wrap;gap:3px;padding:3px;border-radius:var(--rad-in);background:var(--s-sunk);border:1px solid var(--s-line-2);max-width:100%}
.bhx-sets .ic-chip{min-height:32px;padding:4px 12px;border:1px solid transparent;border-radius:7px;background:transparent;font-size:var(--fs-sm);color:var(--ink-2)}
.bhx-sets .ic-chip:hover{border-color:var(--s-line-hover)}
.bhx-sets .ic-chip.on{background:var(--b-500);border-color:var(--b-500);color:var(--s-hero-ink);box-shadow:var(--sh-1)}
.bhx .bh-count{margin-left:auto;font-size:var(--fs-sm)}
.bhx .bh-group{margin:0 0 12px}
.bhx .bh-group:last-child{margin-bottom:0}
.bhx .bh-group-h{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:10.5px;letter-spacing:.08em;color:var(--muted)}
.bhx .bh-group-h::after{content:"";flex:1;height:1px;background:var(--s-line-2)}
.bhx-gn{font-weight:600;letter-spacing:0;text-transform:none;font-size:var(--fs-xs)}
.bhx .bh-area-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.bhx .bh-area-grid .ic-chip.bhx-ac{display:grid;grid-template-columns:18px minmax(0,1fr);gap:0 9px;align-items:start;min-height:0;height:auto;width:auto;
  padding:8px 10px 8px 9px;border-radius:10px;border:1px solid var(--s-line);background:var(--panel);white-space:nowrap}
.bhx .bhx-ac:hover{border-color:var(--b-400)}
.bhx .bhx-ac input{width:17px;height:17px;margin:1px 0 0;accent-color:var(--b-500)}
.bhx .bhx-ac:has(input:checked){border-color:color-mix(in srgb,var(--b-500) 55%,var(--s-line));background:color-mix(in srgb,var(--b-500) 7%,var(--panel))}
.bhx .bhx-ac:focus-within{box-shadow:var(--s-focus)}
.bhx .bhx-ac .bhx-bx{display:none}
.bhx .bhx-ac .bh-area-t{gap:0;min-width:0}
.bhx .bhx-ac .bh-area-t b{display:block;font-size:var(--fs-sm);font-weight:700;line-height:1.3;color:var(--ink);overflow:hidden;text-overflow:ellipsis}
.bhx .bhx-ac .bh-area-t small{display:block;font-size:11.5px;line-height:1.35;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bhx-slow{font-size:9.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--o-ink);margin-left:6px}
.bhx .bhx-ac.is-ro{cursor:default;border-color:color-mix(in srgb,var(--b-500) 55%,var(--s-line));background:color-mix(in srgb,var(--b-500) 7%,var(--panel))}
.bhx .bhx-ac.is-ro .bhx-bx{display:flex;align-items:center;justify-content:center;width:17px;height:17px;margin-top:1px;border-radius:4px;background:var(--b-500)}
.bhx .bhx-ac.is-ro .bhx-bx::before{content:"";width:8px;height:4px;border-left:2px solid var(--s-hero-ink);border-bottom:2px solid var(--s-hero-ink);transform:rotate(-45deg);margin-top:-2px}
.bhx #bh-areas-fixed .hint{margin:10px 0 0}

/* step 5 — about your business: the approved card and its folding sections, as built */
.bhx .bh-core-q{margin-top:0}
.bhx .bhq-about{margin:0 0 10px}
.bhx .bhs{margin:0 0 8px}
.bhx .bhs-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px 12px}
.bhx-moreq{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 0;font-size:12.5px}
.bhx-moreq .btn{border-radius:var(--rad-pill)}

/* ---- the summary: sticky, in the hero's look ---- */
.bhx-sum{position:sticky;top:16px;min-width:0;border-radius:var(--rad-lg);overflow:hidden;border:1px solid var(--s-line);background:var(--panel);box-shadow:var(--sh-2)}
.bhx-sum-top{position:relative;isolation:isolate;overflow:hidden;padding:18px 20px;border-bottom:1px solid var(--s-line-2);
  background:radial-gradient(600px 220px at 0% -30%,var(--s-accent-soft) 0%,transparent 70%),var(--s-raised)}
.bhx-sum-k{display:flex;align-items:center;gap:8px;margin:0 0 6px}
.bhx-badge{display:inline-block;padding:2px 9px;border-radius:var(--rad-pill);font-size:10.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;background:var(--s-accent-soft);color:var(--blue-ink)}
.bhx-checks{margin-left:auto;font-size:12.5px;font-weight:700;color:var(--blue-ink)}
.bhx-sum-t{margin:0;font-size:26px;font-weight:800;letter-spacing:-.025em;line-height:1.1;color:var(--ink)}
.bhx-sum-s{margin:4px 0 0;font-size:var(--fs-sm);line-height:1.45;color:var(--muted)}
.bhx-sum .bh-great{display:flex;gap:9px;align-items:flex-start;margin:6px 0 0;padding:0;border:0;background:none;box-shadow:none;animation:none;font-size:var(--fs-sm);line-height:1.4;color:var(--ink-2)}
.bhx-sum .bh-great b{color:inherit}
.bhx-sum .bh-great-ic{width:18px;height:18px;margin-top:1px}
.bhx-sum .bh-great-ic::before{font-size:10px}
.bhx-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 0}
.bhx-sum .bhx-stat{padding:9px 12px 10px;border-radius:12px;border:1px solid var(--s-line-2);background:var(--panel);min-width:0}
.bhx-sum .bhx-stat dt{font-size:10.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin:0 0 2px}
.bhx-sum .bhx-stat dd{margin:0;font-size:16px;font-weight:800;letter-spacing:-.01em;color:var(--ink);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bhx-sum .bhx-stat dd small{display:block;font-size:var(--fs-xs);font-weight:500;letter-spacing:0;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bhx-sum .bhx-stat dd button{all:unset;display:block;cursor:pointer;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.bhx-sum .bhx-stat dd button:focus-visible{outline:none;box-shadow:var(--s-focus);border-radius:4px}
.bhx-sum .bhx-stat:has(button):hover{border-color:var(--b-400)}
.bhx-sum .bhx-stat.is-wide{grid-column:1 / -1;display:flex;align-items:baseline;gap:10px;padding:8px 12px}
.bhx-sum .bhx-stat.is-wide:empty{display:none}
.bhx-sum .bhx-stat.is-wide dt{margin:0;flex:none}
.bhx-sum .bhx-stat.is-wide dd{display:flex;align-items:baseline;gap:8px;min-width:0}
.bhx-sum .bhx-stat.is-wide dd small{display:inline}
.bhx-inc-h{margin:14px 0 0;font-size:10.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.bhx-sum .bh-includes.bhx-inc{display:grid;gap:2px;margin:5px 0 0;padding:0;list-style:none}
.bhx-sum .bhx-inc li{position:relative;padding-left:17px;font-size:var(--fs-xs);line-height:1.38;color:var(--ink-2)}
.bhx-sum .bhx-inc li::before{content:"✓";position:absolute;left:0;top:0;font-weight:800;color:var(--s-ok)}
.bhx-sum .bhx-inc li.bh-checks{display:none}
/* the Comprehensive: the brand gradient, an orange glow, glass tiles — as the hero was */
.bhx-sum[data-product="comprehensive"] .bhx-sum-top{background:var(--s-hero);color:var(--s-hero-ink);border-bottom-color:transparent}
.bhx-sum[data-product="comprehensive"] .bhx-sum-top::before{content:"";position:absolute;z-index:-1;inset:auto -30% -55% 35%;height:120%;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--o-500) 36%,transparent),transparent);pointer-events:none}
.bhx-sum[data-product="comprehensive"] .bhx-badge{background:var(--o-500);color:var(--ink-brand)}
.bhx-sum[data-product="comprehensive"] :is(.bhx-sum-t,.bhx-checks,.bhx-stat dd){color:var(--s-hero-ink)}
.bhx-sum[data-product="comprehensive"] :is(.bhx-sum-s,.bh-great,.bhx-stat dt,.bhx-stat dd small,.bhx-inc li,.bhx-inc-h){color:var(--s-hero-muted)}
.bhx-sum[data-product="comprehensive"] .bh-great b{color:var(--s-hero-ink)}
/* v3.1143.0 (6 October 2026) — "GREAT CHOICE" IS A QUIET LINE, NOT A PANEL (plan §3.6: the loudest thing on the screen
   carried the least). No star, the subtitle's size and weight; the words are unchanged. */
.bhx-sum .bh-great{display:block;margin:3px 0 0;font-size:12.5px;line-height:1.45}
.bhx-sum .bh-great .bh-great-ic{display:none}
.bhx-sum .bh-great b{font-weight:600}
.bhx-sum[data-product="comprehensive"] .bh-great b{color:inherit}
/* THE BLOCK ABOVE THE PERIOD, one hierarchy: the focus and Platinum's "Judge the business as" side by side at one weight,
   one line under them; the use-the-customer's-own tick a quiet row in step 1; Platinum's controls marked as Platinum's. */
.bhx-focus{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,300px));gap:10px 20px;align-items:end}
.bhx .bh-focus-field select,.bhx .bhx-mix select{min-width:0;width:100%}
.bhx .bh-focus-field>span,.bhx .bhx-mix>span{display:flex;align-items:center;gap:6px;white-space:nowrap;min-height:18px}
.bhx .bhx-pl-tag{display:inline-block;font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:1px 5px;border-radius:4px;
  line-height:1.5;background:var(--blue-lt);color:var(--blue-ink);vertical-align:1px}
.bhx-tick.bhx-pl{align-items:flex-start;margin:12px 0 0;font-size:var(--fs-sm);line-height:1.45;color:var(--ink)}
.bhx-tick.bhx-pl input{margin-top:2px;flex:none}
.bhx-tick.bhx-pl input:disabled+span{color:var(--muted)}
.bhx-pl-note{color:var(--muted)}
.bhx .bh-focus-why{margin:6px 0 0}
/* THE FIVE: ONE PROVENANCE LANGUAGE (plan §3.4f/§3.4g). A stripe down the cell's left edge and a word beside its label, in
   four colours that mean the same everywhere on the card: FROM SIMPRO blue (with a tick), OUR GUESS orange (with its own
   one-press Confirm), YOU TOLD US green, and NOT SURE / BLANK grey — dashed for a blank, which is checked in full. */
.bhq-about .bhq-q{--prov:var(--line)}
.bhq-about .bhq-q.is-simpro{--prov:var(--b-500)}
.bhq-about .bhq-q.is-guess{--prov:var(--orange)}
.bhq-about .bhq-q.is-yours{--prov:var(--ok)}
.bhq-about .bhq-q.is-unsure{--prov:var(--muted)}
.bhq-about .bhq-cell{border-left:3px solid var(--prov);padding-left:11px}
.bhq-about .bhq-cell.is-empty{border-left-style:dashed}
.bhq-about .bhq-cell.is-yours{border-color:color-mix(in srgb, var(--ok) 30%, var(--line));border-left-color:var(--ok)}
.bhq-about .bhq-cell-l{flex-wrap:wrap;row-gap:2px}
.bhq-tag.is-simpro::before{content:"\2713\00a0"}
.bhq-mark{font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:1px 5px;border-radius:4px;line-height:1.5;white-space:nowrap}
.bhq-mark:empty{display:none}
.bhq-q.is-yours .bhq-mark{background:var(--ok-soft);color:var(--ok)}
.bhq-q.is-yours .bhq-mark::before{content:"\2713\00a0"}
.bhq-q.is-unsure .bhq-mark{background:var(--tint,var(--grey-light));color:var(--muted)}
.bhq-q.is-empty .bhq-mark{color:var(--muted);box-shadow:inset 0 0 0 1px var(--line)}
.bhq-line-q>b .bhq-mark{margin-left:8px;vertical-align:2px}
/* a line's value box carries the same stripe */
.bhq-about .bhq-line .bhq-val{border-left:3px solid var(--prov)}
.bhq-about .bhq-line.is-empty .bhq-val{border-left-style:dashed}
/* "Not sure" counts as an answer and means "check it in full": grey when on, and the number beside it steps back */
.bhq-about .bhq-ns.on{background:var(--tint,var(--grey-light));border-color:var(--muted);color:var(--ink)}
.bhq-about .bhq-ns.on>span::before{content:"\2713\00a0"}
.bhq-about .bhq-q.is-unsure .bhq-val,.bhq-about .bhq-cell.is-unsure .bhq-cell-v input[type=number],.bhq-about .bhq-cell.is-unsure .bhq-u{opacity:.45}
.bhq-about .bhq-cell-v.is-pick::after{display:none}
.bhq-about .bhq-pickw{position:relative;display:inline-flex;max-width:100%}
.bhq-about .bhq-pickw::after{content:"";position:absolute;right:3px;top:50%;width:6px;height:6px;margin-top:-5px;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);pointer-events:none}
/* a suggestion's own Confirm */
.bhq-yes{flex:none;align-self:center;margin-left:6px;border:1px solid var(--prov);border-radius:999px;background:var(--panel);color:var(--orange-ink);
  font:inherit;font-size:11.5px;font-weight:700;padding:2px 10px;cursor:pointer;white-space:nowrap}
.bhq-q.is-simpro .bhq-yes{color:var(--blue-ink)}
.bhq-yes::before{content:"\2713\00a0"}
.bhq-yes:hover{background:color-mix(in srgb, var(--prov) 14%, var(--panel))}
.bhq-yes:focus-visible{outline:0;box-shadow:var(--s-focus)}
/* ---- v3.1175.0 (14 October 2026) — THE TRADE AND STATE PICKERS: THE APP'S OWN LIST, AND IT HOLDS STILL -------------------
   Darren wanted a "fancier" dropdown than the browser's own list (which took the value's 17px/800 font), and the State one
   "expands/contracts and overlaps" the Payment terms cell. The box is a button styled exactly as the value was; the list is
   the services picker's look (public/svcpick.js) in the field tokens, absolutely placed under the cell and exactly as wide
   as it — so opening it moves nothing and never reaches the cell beside it. The real select stays, invisible, under the
   button: it holds the answer and fires the change (bhqPickHtml). */
.bhq-about .bhq-cell .bhq-pickw select.bhq-native{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;
  border:0;opacity:0;pointer-events:none}
.bhq-about .bhq-pickb{appearance:none;-webkit-appearance:none;display:block;border:0;border-radius:0;background:transparent;box-shadow:none;
  min-height:0;height:auto;margin:0;padding:0 18px 0 0;font:inherit;font-size:var(--fs-lg);font-weight:800;letter-spacing:-.01em;line-height:1.35;
  color:var(--ink);text-align:left;cursor:pointer;width:12em;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bhq-about .bhq-cell[data-bhq="business_state"] .bhq-pickb{width:6.5em}
.bhx .bhq-about .bhq-cell[data-bhq="business_state"] .bhq-pickb{width:7.5em}
.bhq-about .bhq-pickb:hover,.bhq-about .bhq-pickb:active{background:transparent}
.bhq-about .bhq-pickb:focus,.bhq-about .bhq-pickb:focus-visible{outline:0;box-shadow:none}
.bhq-about .bhq-pickv{display:block;overflow:hidden;text-overflow:ellipsis}
.bhq-about .bhq-pickb.is-empty{color:var(--muted);font-weight:600}
.bhq-about .bhq-cell.is-guess .bhq-pickb{color:var(--orange-ink)}
.bhq-about .bhq-cell.is-picking{border-color:var(--b-500);box-shadow:var(--s-focus)}
/* The list hangs from the CELL (position:relative), not from the box inside it, so it is exactly the cell's width: the
   wrappers between are static, and the chevron moves onto the button itself. */
.bhq-about .bhq-cell .bhq-cell-v.is-pick,.bhq-about .bhq-cell .bhq-pickw[data-bhq-pick]{position:static}
.bhq-about .bhq-pickw[data-bhq-pick]::after{display:none}
.bhq-about .bhq-pickb{position:relative}
.bhq-about .bhq-pickb::after{content:"";position:absolute;right:3px;top:50%;width:6px;height:6px;margin-top:-5px;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);pointer-events:none}
.bhq-about .bhq-cell.is-picking .bhq-pickb::after{transform:rotate(-135deg);margin-top:-1px}
.bhq-pickl{position:absolute;left:-3px;right:-1px;top:calc(100% + 4px);z-index:40;max-height:264px;overflow:auto;margin:0;padding:4px;
  list-style:none;background:var(--s-raised,var(--panel));border:1px solid var(--line);border-radius:var(--rad-in,10px);box-shadow:var(--sh-2);
  font-family:var(--font);text-transform:none;letter-spacing:normal}
.bhq-pickl[hidden]{display:none}
.bhq-pickl.is-up{top:auto;bottom:calc(100% + 4px)}   /* opened upward when there is more room above (bhqPickPlace) */
.bhq-pickl li{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;cursor:pointer;font-size:var(--field-size,14px);
  font-weight:500;line-height:1.3;color:var(--ink);white-space:normal}
.bhq-pickl li::before{content:"";flex:0 0 14px;width:14px;color:var(--accent);font-weight:700}
.bhq-pickl li[aria-selected="true"]{font-weight:700}
.bhq-pickl li[aria-selected="true"]::before{content:"\2713"}
.bhq-pickl li.is-none{color:var(--muted)}
.bhq-pickl li.is-active,.bhq-pickl li:hover{background:var(--panel-2,var(--panel))}
@media (max-width:600px){
  .bhq-about .bhq-cell-v{flex-wrap:wrap;row-gap:6px}
  .bhq-about .bhq-pickw .bhq-pickb,.bhx .bhq-about .bhq-cell[data-bhq="business_state"] .bhq-pickb{width:100%}
  /* v3.1166.0 (12 October 2026) — THE 400px CHECK (plan §3.4g). Measured at 400px: the trade's picker took its widest
     answer as its width, so its Confirm dropped to a second line while the state's sat beside its picker — two shapes
     for one control. The picker now takes what is left of the row (flex-basis 0), so every Confirm sits on the line of
     the value it confirms. And the pair: "Not sure" was 40px tall (the phone tap-target rule for a label holding a tick
     box) beside a 20px Confirm. Both are 40px now, the phone's own tap-target size, in the same pill. */
  .bhq-about .bhq-pickw{flex:1 1 0;min-width:0}
  .bhq-about .bhq-pickw select{width:100%}
  .bhq-about .bhq-yes{min-height:40px;padding:0 14px;font-size:12.5px}
  .bhq-about .bhq-cell .bhq-ns{padding:0 12px;font-size:12.5px}
  .bhx-focus{grid-template-columns:1fr}
}
.bhx-sum[data-product="comprehensive"] .bhx-stat{background:var(--s-glass);border-color:var(--s-glass-line)}
.bhx-sum[data-product="comprehensive"] .bhx-inc li::before{color:var(--o-500)}
/* the readiness ticks, the Run button and the notes */
.bhx-sum-bot{padding:10px 20px 14px}
.bhx-sum .bh-checklist.bhx-ready,.bhx-sum .bh-ready.bhx-ready{display:grid;gap:0;margin:0}
.bhx-sum .bhx-readywrap>*+*:not([hidden]){border-top:1px solid var(--s-line-2)}
.bhx-sum .bhx-ready .bh-check{grid-template-columns:22px minmax(0,1fr) auto;gap:2px 10px;padding:6px 0;border:0;border-radius:0;background:none}
.bhx-sum .bhx-ready>li+li:not([hidden]),.bhx-sum .bh-ready.bhx-ready>.bh-check+.bh-check{border-top:1px solid var(--s-line-2)}
.bhx-sum .bhx-ready .bh-check-ic{width:22px;height:22px;font-size:11.5px}
.bhx-sum .bhx-ready .bh-check-t{display:block;font-size:var(--fs-sm);line-height:1.4}
.bhx-sum .bhx-ready .bh-check-t>b,.bhx-sum .bhx-ready .bh-check-tick{display:inline}
.bhx-sum .bhx-ready .bh-check-t>b,.bhx-sum .bhx-ready .bh-check-tick b{font-size:var(--fs-sm)}
.bhx-sum .bhx-ready .bh-check-t>span{display:inline;font-size:12.5px;color:var(--muted)}
.bhx-sum .bhx-ready .bh-check-t>span::before{content:" · "}
.bhx-sum .bhx-ready .bh-check-line{display:inline}
.bhx-sum .bhx-ready .bh-check-tick input{width:15px;height:15px;vertical-align:-2px;margin-right:6px}
.bhx-sum .bhx-ready .bh-check>.btn{grid-column:2 / -1;justify-self:start;margin:2px 0 2px}
/* v3.1142.0 (5 October 2026) — "Connect" / "Reconnect" / a notice's action end their row as one word, like "Review". */
.bhx-sum .bhx-ready .bh-check>.btn.bhx-rowbtn{grid-column:3;align-self:center;justify-self:end;margin:0;border:0;background:none;box-shadow:none;
  padding:0;min-height:0;font:inherit;font-size:12.5px;font-weight:600;color:var(--s-link);white-space:nowrap}
.bhx-sum .bhx-ready .bh-check>.btn.bhx-rowbtn:hover{text-decoration:underline}
.bhx-sum .bhx-ready .bh-check-wrap{display:block}
.bhx-sum .bhx-ready .bh-check.is-bad .bh-check-ic{background:var(--s-bad-soft);color:var(--s-bad)}
.bhx-sum .bhx-ready .bh-check.is-bad .bh-check-ic::before{content:"✕"}
.bhx-link{border:0;background:none;padding:0;font:inherit;font-size:12.5px;font-weight:600;color:var(--s-link);cursor:pointer;white-space:nowrap}
.bhx-link:focus-visible{outline:none;box-shadow:var(--s-focus);border-radius:4px}
.bhx-sum .bhx-cta{display:block;margin:12px 0 0;padding:0;border:0}
.bhx-sum .bh-cta{display:flex;flex-wrap:wrap;gap:8px}
.bhx-sum .btn.primary.bh-run-btn{flex:1 1 100%;width:100%;justify-content:center;min-height:54px;font-size:var(--fs-lg)}
.bhx-sum[data-product="comprehensive"] .btn.primary.bh-run-btn:not(:disabled){background:var(--s-hero);border-color:transparent}
.bhx .btn.primary.bh-run-btn:disabled{opacity:.45;cursor:not-allowed}
.bhx-sum .bh-cta .save-status:empty{display:none}
.bhx-note{margin:10px 0 0;font-size:12.5px;line-height:1.45;color:var(--muted);text-align:center}
.bhx-sum .bhx-cred{justify-content:center;margin:10px 0 0;padding-top:10px;border-top:1px solid var(--s-line-2);font-size:11px;text-align:center}
.bhx-sum .bhx-cred::before{width:16px}
/* while it runs, the live view takes the readiness list's place */
.bhx-sum:has(#bh-live:not([hidden])) .bhx-readywrap{display:none}
.bhx-sum .bh-live{margin:12px 0 0}
.bhx-sum .bh-live-in{grid-template-columns:76px minmax(0,1fr);gap:12px 14px;padding:14px}
.bhx-sum .bh-ring{width:76px;height:76px}
.bhx-sum .bh-ring-n{font-size:19px}
.bhx-sum .bh-tiles{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
/* v3.1148.0 (7 October 2026) — while a check runs the summary is THAT check's card: its own facts (which follow the form, i.e.
   the NEXT check) fold away, the live card carries the running check's settings, and every step folds to one line. */
.bhx-sum.is-running .bhx-sum-top,.bhx-sum.is-running #bh-product-why{display:none}
.bhx-sum.is-running .bh-live{margin:4px 0 0}
.bhx-sum.is-running:not(.is-steps-open) .bh-tiles,.bhx-sum.is-running:not(.is-steps-open) .bh-steps{display:none}
.bh-live-set{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:0;padding:10px 0 0;border-top:1px solid var(--s-line-2)}
.bh-live-set>div{min-width:0}
.bh-live-set dt{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.bh-live-set dd{margin:1px 0 0;font-size:13.5px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.bh-live-set dd small{display:block;font-size:var(--fs-xs);font-weight:500;color:var(--muted)}
.is-premium .bh-live-set{border-top-color:var(--s-glass-line)}
.is-premium .bh-live-set dt,.is-premium .bh-live-set dd small,.is-premium .bh-live-ro{color:var(--s-hero-muted)}
.bh-live-ro{grid-column:1 / -1;margin:0;font-size:var(--fs-sm);font-weight:600;color:var(--muted)}
.bh-board-more{margin:10px 0 0}
.bh-board-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;font-size:12.5px;line-height:1.45;color:var(--muted)}
.bh-board-say{flex:1 1 180px;min-width:0}
.bh-board-tog{margin-left:auto}
.bh-board-more #bh-board{margin:8px 0 0}
.bh-board-more #bh-board[hidden]{display:none}
.bhx-next-note{margin:0 0 10px;padding:10px 12px;border-radius:var(--rad-sm);background:var(--blue-lt);color:var(--blue-ink);font-size:var(--fs-sm);line-height:1.45}
.bhx-next-note[hidden]{display:none}

/* ---- narrower: a slimmer summary, two chips a row ---- */
.bhx-bar{display:none}
@media (max-width:1180px){
  .bhx-grid{grid-template-columns:minmax(0,1fr) 330px;gap:18px}
  .bhx-step-h{grid-template-columns:28px 130px minmax(0,1fr) auto}
  .bhx .bh-area-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bhx .bh-cards{grid-template-columns:minmax(0,1fr)}
  .bhx .bh-pline{display:none}
}
/* ---- the phone: one column, and the summary's essentials in a bar at the bottom ---- */
@media (max-width:760px){
  .bhx{padding-bottom:84px}
  .bhx-head .is-ro{display:none}
  .bhx-grid{grid-template-columns:minmax(0,1fr)}
  .bhx-sum{position:static}
  .bhx-sum .bhx-cta,.bhx-sum .bhx-note .bh-close-note{display:none}
  .bhx-sum:has(#bh-live:not([hidden])) .bhx-cta{display:block}
  .bhx-step-h{grid-template-columns:26px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:1px 12px;padding:11px 14px;min-height:0}
  .bhx-step-h .bhx-n{grid-row:span 2;align-self:center}
  .bhx-step-h .bhx-t{grid-column:2}
  .bhx-step-h .bhx-v{grid-column:2;grid-row:2;font-size:var(--fs-sm);white-space:normal}
  .bhx-step-h .bhx-act{grid-column:3;grid-row:1 / span 2;font-size:0;gap:0}
  .bhx-step-h .bhx-act::after{width:7px;height:7px}
  .bhx-step-b{padding:6px 14px 14px}
  .bhx .bh-dates{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .bhx .bh-dates #bh-depth-wrap{grid-column:1 / -1}
  .bhx .bh-focus-field select,.bhx .bhx-mix select{min-width:0;width:100%}
  .bhx-focus>*{flex:1 1 100%}
  .bhx .bh-count{margin-left:0;flex:1 1 100%}
  .bhx .bhx-ac .bh-area-t b,.bhx .bhx-ac .bh-area-t small{white-space:normal}
  .bhx .bh-area-grid .ic-chip.bhx-ac{white-space:normal}
  .bhx .bhs-grid{grid-template-columns:1fr}
  .bhx-sum .bhx-stat dd small{white-space:normal}
  .bhx-bar{display:flex;position:fixed;z-index:30;left:0;right:0;bottom:0;align-items:center;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    background:var(--panel);border-top:1px solid var(--s-line);box-shadow:var(--sh-3)}
  .bhx:has(#bh-live:not([hidden])) .bhx-bar{display:none}
  .bhx-bar-t{flex:1;min-width:0}
  .bhx-bar-t b{display:block;font-size:14px;font-weight:800;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bhx-bar-t>span{display:block;font-size:var(--fs-xs);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bhx-bar-t .warn{color:var(--o-ink);font-weight:700}
  .bhx-bar .btn.bhx-bar-run{flex:none;min-height:46px;padding:0 18px;font-size:var(--fs-md);font-weight:800}
  .bhx-bar[data-product="comprehensive"] .btn.bhx-bar-run:not(:disabled){background:var(--s-hero);border-color:transparent}
  .bhx-bar .btn.bhx-bar-run:disabled{opacity:.45}
}
@media (prefers-reduced-motion: reduce){
  .bhx-act::after{transition:none}
}

/* v3.1142.x follow-up (5 October 2026) — THE REPLY BOX'S SLIDE BAR. Darren: *"a bar so that we can give more space
   to where we write the email … grab the bar and slide it up and down … the way we do between the two panels."*
   The left/right bar lying down: a thin line with a grip in the middle, blue when held or focused. Its height,
   once dragged, is --cm-reply-h on the drawer (public/comms.js), and it sizes the writing box itself — the plain
   box or the email editor's page — so the switch, Subject, Scripts and Send stay as they were. */
.cm-hsplit{flex:none;position:relative;height:9px;margin:-4px 0;z-index:2;cursor:row-resize;touch-action:none;outline:none}
.cm-hsplit::before{content:"";position:absolute;left:0;right:0;top:4px;height:1px;background:var(--line)}
.cm-hsplit-grip{position:absolute;left:50%;top:2px;width:44px;height:5px;margin-left:-22px;border-radius:3px;background:var(--grey);opacity:.55;box-shadow:0 0 0 1px var(--panel)}
.cm-hsplit:hover::before,.cm-hsplit:focus-visible::before,body.cm-resizing-v .cm-hsplit::before{background:var(--blue);height:3px;top:3px}
.cm-hsplit:hover .cm-hsplit-grip,.cm-hsplit:focus-visible .cm-hsplit-grip,body.cm-resizing-v .cm-hsplit-grip{background:var(--blue);opacity:1}
.cm-hsplit + .cm-reply{border-top:0}
body.cm-resizing-v{cursor:row-resize;user-select:none}
.cm-reply-sized .cm-right .cm-reply-row textarea{box-sizing:border-box;height:var(--cm-reply-h, auto);max-height:none;resize:none}
.cm-reply-sized .cm-reply .rt-box{box-sizing:border-box;height:var(--cm-reply-h, auto);min-height:0;max-height:none}
/* On a phone the conversation and the box already scroll together (above), so there is nothing to share out:
   no bar, and the box keeps its own size. */
@media (max-width:600px){
  .cm-hsplit{display:none}
  .cm-reply-sized .cm-right .cm-reply-row textarea,.cm-reply-sized .cm-reply .rt-box{height:auto}
}
/* ---- v3.1150.0 (8 October 2026) — THE CONVERSATION, SPACED OUT; AND COMMUNICATIONS AS A PAGE ------------------
 * Jarryd: *"Messages in the communications tab are quite bunched together. Potentially pull the date and time out of
 * the main box and stick it above the message … Similar to the LANA layout."* A day line between days, the sender and
 * time above each bubble on its own side, and more room between messages. THE WIDTHS ARE LEFT ALONE ON PURPOSE:
 * Darren chose full-width-less-a-small-indent in 0700 (v3.865.0, *"The Us and Them only needs to be a slight indent
 * and slightly overlap"*), replacing a 78% cap — so the separation comes from the stamps and day lines, not narrower
 * bubbles. And who an email was from, to and copied to, on one small line. Then the full page (public/comms.js, "ITS OWN
 * PAGE"): the same shell beside the sidebar, with a third pane for the customer. */
.cm-msgs .cm-row{margin:0 0 6px}
.cm-stamp{font-size:11.5px;color:var(--grey);margin:14px 2px 4px;align-self:flex-start;max-width:88%;overflow-wrap:anywhere}
.cm-stamp b{color:var(--ink);font-weight:700}
.cm-stamp-out{align-self:flex-end;text-align:right}
.cm-stamp-dir{opacity:.8}
.cm-day{align-self:stretch;display:flex;align-items:center;gap:10px;margin:18px 0 2px;font-size:var(--fs-xs);font-weight:700;color:var(--grey)}
.cm-day::before,.cm-day::after{content:"";flex:1;height:1px;background:var(--line)}
.cm-day span{padding:3px 12px;border:1px solid var(--line);border-radius:999px;background:var(--panel)}
.cm-rcpt{display:flex;flex-wrap:wrap;gap:2px 12px;font-size:11.5px;color:var(--grey);margin:2px 0 6px;overflow-wrap:anywhere}
.cm-rcpt .cm-rc b{color:var(--ink);font-weight:700;margin-right:2px}
.cm-side,.cm-drawer .cm-side-back,.cm-drawer .cm-side-btn{display:none}
.cm-drawer.cm-page{left:var(--cm-page-left,0px);right:0;width:auto;max-width:none;animation:none;border-left:1px solid var(--line)}
.cm-drawer.cm-page .cm-edge{display:none}
.cm-drawer.cm-page .cm-split{grid-template-columns:var(--cm-left,minmax(340px,27%)) 7px minmax(0,1fr) minmax(290px,340px)}
.cm-drawer.cm-page .cm-side{display:block;min-height:0;min-width:0;overflow:auto;border-left:1px solid var(--line);background:var(--panel);padding:14px 16px 24px;box-sizing:border-box}
.cm-side-h{display:flex;gap:10px;align-items:center;margin:0 0 12px}
.cm-side-who{min-width:0}
.cm-side-nm{font-weight:700;font-size:15px;overflow-wrap:anywhere}
.cm-side-sec{border-top:1px solid var(--line);padding:10px 0 4px}
.cm-side-sec h5{margin:0 0 6px;font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--grey)}
.cm-side-dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 10px;margin:0;font-size:var(--fs-sm)}
.cm-side-dl dt{color:var(--grey)}
.cm-side-dl dd{margin:0;overflow-wrap:anywhere}
.cm-side-act{border:0;background:none;color:var(--blue);font:inherit;font-weight:700;cursor:pointer;padding:0 0 0 6px}
.cm-mine-list{list-style:none;margin:0;padding:0;font-size:var(--fs-sm)}
.cm-mine-list li{display:flex;flex-direction:column;padding:5px 0;border-bottom:1px dashed var(--line)}
.cm-mine-list li:last-child{border-bottom:0}
.cm-mine-main{overflow-wrap:anywhere}
.cm-side-sub{font-size:var(--fs-xs);color:var(--grey)}
.cm-side-bad .cm-side-sub{color:var(--danger);font-weight:700}
.cm-side-tiles{margin:0 0 4px}
.cm-side-foot{margin:14px 0 0}
@media (max-width:1180px){
  .cm-drawer.cm-page .cm-split{grid-template-columns:var(--cm-left,minmax(240px,32%)) 7px minmax(0,1fr)}
  .cm-drawer.cm-page .cm-side{display:none}
  .cm-drawer.cm-page .cm-side-btn,.cm-drawer.cm-page .cm-side-back{display:inline-flex}
  .cm-drawer.cm-page .cm-split.show-side .cm-right{display:none}
  .cm-drawer.cm-page .cm-split.show-side .cm-side{display:block;grid-column:3;border-left:0}
  .cm-drawer.cm-page .cm-side-back{margin:0 0 10px;width:auto;height:auto;padding:4px 10px;font-size:var(--fs-sm)}
}
@media (max-width:860px){
  .cm-drawer.cm-page{left:0;border-left:0}
  .cm-drawer.cm-page .cm-split{grid-template-columns:minmax(0,1fr)}
  .cm-drawer.cm-page .cm-split.show-side .cm-side{grid-column:1}
}
@media (max-width:600px){
  .cm-pagebtn-t{display:none}
}
/* v3.1142.0 (5 October 2026) — a phone held sideways (under 500px tall) has no room for a fixed Run bar on top of
 * the header: the bar sits at the end of the form instead, so the screen keeps its height for the questions. */
@media (max-width:760px) and (max-height:500px){
  .bhx{padding-bottom:0}
  .bhx-bar{position:static;box-shadow:none;border:1px solid var(--s-line);border-radius:12px;margin-top:12px}
}

/* =====================================================================================================================
   v3.1146.0 (6 October 2026) — THE PHONE, UPRIGHT: a review of the daily screens at 390×844 and 360×740.
   Measured, not guessed (docs: outputs/phone-review/REVIEW.md; pinned by test/v31146phone.test.mjs). What was wrong:
   - THE HEADER WAS 154px AND STICKY — three rows (title; workspace, apps, 💬, ☎; the search with "Exact match"), so
     18–21% of the screen never scrolled, and 34–42% once a screen's own sticky strip (Tasks' filter box, the Snapshot
     step bar) stuck under or over it. The header is now ONE row (~56px): the search folds into its icon and opens
     across the bar exactly as on a phone on its side (app.js wireFind / findFold already do the work at any width),
     and the workspace switcher shows its icon (its menu still names every workspace).
   - Tap targets of 13–31px: small buttons (29px), chips (23–28px), tick boxes (13px), the drawer's × and ‹ (24px,
     18px), the breadcrumb and footer links (15px), 💬 and ☎ (31px). Now 40px (tick boxes 20px inside a 40px label).
   - Tasks' filter box (136px) stuck under the header; the Snapshot/guided step bar (159px) stuck to the bottom with
     a sentence and ten dots. On a phone the filter box scrolls with the page and the step bar is one short line.
   - The inbox's five tabs took four rows of the blue band; the Communications drawer kept its tabs, search and two
     pickers on screen while reading one conversation, leaving the messages ~170px. Two columns of tabs; the list's
     tools hide while a conversation is open (‹ goes back to them).
   - Bookings: four filters stacked one under another before the first booking; the health check's inline
     pickers were 20px tall. Two columns; 40px.
   Portrait phones only (max-width:600px); a phone on its side keeps the v3.1132.0 short-screen rules. Tokens only. */
@media (max-width:600px){
  /* 1. ONE ROW OF HEADER. `html body` outranks theme.css (loaded after this file) without !important. */
  html body .apptop{flex-wrap:nowrap;gap:4px;padding-top:8px;padding-bottom:8px;padding-left:10px;padding-right:10px}
  html body .apptop .sb-burger{width:40px;height:40px;flex:0 0 auto}
  /* The title gets what is left; on a 360px screen that is a word or two, so it may take two short lines. */
  html body .apptop-title{flex:1 1 auto;min-width:0;font-size:var(--fs-sm);line-height:1.2;white-space:normal;overflow:hidden;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}
  html body .apptop-help{margin-left:0}
  html body .apptop-find{order:0;flex:0 0 auto;margin:0;max-width:none;min-width:0}
  html body .apptop-find .find-q,html body .apptop-find .find-exact{display:none}
  html body .find-open-btn{display:inline-flex;width:40px;height:40px}
  html body .apptop.find-open .apptop-find{position:absolute;inset:0;z-index:6;margin:0;padding:0 10px;gap:8px;
    display:flex;align-items:center;background:var(--panel)}
  html body .apptop.find-open .apptop-find .find-q{display:block;flex:1 1 auto;min-width:0}
  html body .apptop.find-open .apptop-find .find-exact{display:flex;align-items:center;gap:6px;min-height:40px;white-space:nowrap}
  html body .apptop-find + .apptop-right,html body .apptop-right{margin-left:0;gap:4px;flex:0 0 auto;min-width:0}
  html body .apptop-right > *{flex:0 0 auto}
  html body .apptop-right .ws-switch{max-width:none;min-width:0}
  html body .apptop-right .ws-switch .ws-name,html body .apptop-right .ws-switch .ws-caret{display:none}
  html body .apptop-right .ws-switch .ws-btn{min-height:40px;min-width:40px;padding:0 8px;gap:3px;justify-content:center}
  html body .apptop-right .ph-btn,html body .apptop-right .cm-btn{min-height:40px;min-width:40px;
    padding:0 8px;justify-content:center}
  html body .ph-btn .ph-lab{display:none}

  /* 2. TAP TARGETS: 40px. */
  .btn.small,.btn.ghost,.chip,.cm-chip,.rb-b,.head-about,.guide-link,.ph-team-h{min-height:40px}
  .chip,.head-about,.guide-link{display:inline-flex;align-items:center;gap:.3em}
  html body input[type=checkbox],html body input[type=radio]{width:20px;height:20px;flex:0 0 auto}
  /* The QRS "Enter the cost and margin myself" choice was a flex row exactly as wide as a 375px screen; 7px more tick
     pushed the page sideways (v31121ui8). It wraps its boxes under the words instead. */
  html body .qrs-opt{flex-wrap:wrap}
  label:has(> input[type=checkbox]),label:has(> input[type=radio]){min-height:40px;align-items:center}
  .cm-x,.cm-back{min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center}
  /* Text links keep their look; their hit area grows into the space around them (padding paid back by margin). */
  .page-crumbs .linkbtn,.crumbs .linkbtn,.foot-link,.xpl-hide,.bhx-link{display:inline-block;padding-top:12px;padding-bottom:12px;
    margin-top:-12px;margin-bottom:-12px}

  /* 3. STRIPS THAT STAY PUT: Tasks' filter box scrolls with the page; the step bar is one short line. */
  .list-bar{position:static}
  html body .stepbar{padding:8px 12px;gap:8px}
  html body .stepbar .sb-state,html body .stepbar .sb-dots{display:none}
  html body .stepbar .sb-left{min-width:0}
  /* A section-chip bar is one row that scrolls inside itself, so the 40px chips do not stack it two rows deep. */
  html body .sec-bar,html body .dir-secs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  html body .sec-bar .chip,html body .dir-secs .chip{flex:0 0 auto}

  /* 4. THE INBOX: two columns of tabs; the drawer's list tools go while a conversation is open. */
  html body .ib-segs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  html body .ib-seg{min-height:40px;justify-content:space-between;gap:6px;padding-left:10px;padding-right:8px;font-size:13.5px;text-align:left;line-height:1.2}
  .cm-drawer:has(.cm-split.show-conv) .cm-tabs,.cm-drawer:has(.cm-split.show-conv) .cm-tools{display:none}
  /* The conversation and its reply box scroll together on a phone (v3.1114.0) and open at the newest message, so
     the head — ‹ back to the list, who it is, Call, Open customer — had scrolled off the top: no way back without
     scrolling up first. It stays pinned to the top of the conversation now. */
  .cm-conv > .cm-conv-h{position:sticky;top:0;z-index:2;padding:6px 10px;gap:6px 8px}

  /* 5. BOOKINGS' FILTERS two to a row; the health check's inline pickers a finger tall. */
  html body #view-bookings .bkg-filters{display:grid;align-items:end;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .bkg-filters > :not(.bkg-sel){grid-column:1 / -1}
  .bkg-filters .bkg-sel{min-width:0}
  .bkg-filters .bkg-sel input:not([type=checkbox]),.bkg-filters .bkg-sel select{width:100%;min-width:0}
  /* v3.1153.0 (8 October 2026) — the Order picker's longest choice ("What runs out soonest") is wider than half a phone,
     so it takes the whole row rather than being cut off in a half-width box. */
  html body #view-bookings .bkg-filters .bkg-sel:has(> #bkg-order){grid-column:1 / -1}
  .bhq-about .bhq-cell-v select,.bhq-about .bhq-cell-v input[type=number],.bhq-about .bhq-val input[type=number]{min-height:40px}
  .bhq-about .bhq-pickb{min-height:40px;display:flex;align-items:center}   /* v3.1175.0 — the picker's box, a finger tall too */
  /* 6. THE CUSTOMER RECORD: its number, Call and Message were one line that would not wrap (Message cut by the card);
     the sheet's × and the two head buttons were 23–26px. */
  html body .calls-line{white-space:normal;flex-wrap:wrap}
  .sheet-x,.dir-newenq,.dir-openwin{min-height:40px;min-width:40px}
  .calls-line .calls,a.calls{min-height:40px;display:inline-flex;align-items:center}
}
/* ---- v3.1153.0 (8 October 2026) — ONE TRAY: THE PHONE IN THE CALLS TAB, THE INBOX AS THE MAILBOX TAB ----------------
   Darren: "Okay, let's combine it together." … "where it says 'calls,' we should put all the phone stuff back into that".
   #cm-phone holds the phone's own nodes and is MOVED by public/comms.js `placePhone`: to the top of the Calls tab's list
   (the keypad, the recent calls under it), or under the tabs of any other tab, where it shows only a ringing or live
   call's controls and nothing at all otherwise (Darren's rule: conserve screen space). */
.cm-drawer .cm-cols > .cm-phone{display:none}
.cm-drawer .cm-left > .cm-phone{width:auto;flex:none;max-height:60%;overflow:auto;order:0;border-left:0;
  border-bottom:1px solid var(--line);padding:10px 12px 12px}
.cm-drawer .cm-left > .cm-phone.ph-oncall{max-height:82%}
.cm-drawer .cm-main > .cm-phone.cm-phone-mini{width:auto;flex:none;order:0;overflow:visible;border-left:0;
  border-bottom:1px solid var(--line);padding:8px 12px}
.cm-drawer .cm-phone.cm-phone-mini:not(.ph-oncall){display:none}
.cm-drawer .cm-phone.cm-phone-mini > :not(#ph-panel){display:none}
.cm-drawer .cm-phone.cm-phone-mini .ph-pad,.cm-drawer .cm-phone.cm-phone-mini .ph-pad-hint{display:none}
/* While it rings or is up, Answer / Hang up stick to the top of the Calls tab's box as they did in the drop-down. */
.cm-drawer .cm-left > .cm-phone.ph-pop-ringing #ph-panel,.cm-drawer .cm-left > .cm-phone.ph-pop-live #ph-panel,
.cm-drawer .cm-left > .cm-phone.ph-pop-svc #ph-panel{position:sticky;top:-10px;z-index:2;margin:-10px -12px 0;
  padding:10px 12px 8px;background:var(--panel);border-bottom:1px solid var(--line)}
.cm-drawer .cm-phone .ph-team{margin-top:10px}
.cm-ph-state[data-cm-tab]{cursor:pointer}
.cm-cog{display:flex;flex-wrap:wrap;gap:6px;padding:6px 12px;border-bottom:1px solid var(--line)}
.cm-cog.hidden{display:none}
/* v3.1154.0 — the automatic follow-up's tick, beside the cog's doors */
.cm-cog .cm-af{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-sm);cursor:pointer}
.cm-cog #cm-af-msg{align-self:center}
/* The Mailbox tab: the Inbox screen's own panels, in the tray. Its big heading is the tab's name, so it steps aside. */
.cm-mailbox-wrap{flex:1;min-height:0;overflow:auto;padding:4px 10px 16px}
.cm-mailbox .ib-h1{display:none}
.cm-mb-tools{align-items:center}
/* v3.1153.0 — the ⚙ joined the tray's title line; on a phone the line tightens so × still fits beside it at 360px. */
@media (max-width:600px){
  .cm-head{gap:4px;padding-left:10px;padding-right:8px}
  .cm-head h2{min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .cm-head .cm-cogbtn{padding-left:6px;padding-right:6px;min-width:0}
  /* v3.1197.0 — the Gaps button keeps only its count on a phone (its hover text and label still say what it is). */
  .cm-head .cm-gaps{padding-left:6px;padding-right:6px;min-width:0}
  .cm-head .cm-gaps .cm-gaps-t{display:none}
}
/* ---- v3.1154.0 (9 October 2026) — THE CALLS TAB IN THREE COLUMNS, AND THE KEYPAD SHUT UNTIL ASKED FOR ---------------
   Darren: "I think the calls screen should be 3 columns. One for history, one for keypad and internal numbers and
   searching and one for the results when clicking the customer. Columns need to be movable with a slider between each of
   them." public/comms.js draws `.cm-split.cm-3col` (history | .cm-mid | conversation) only when the tray is at least
   1000px wide and not on a phone; below that it is the two columns as before. The bars are `.cm-divider`s, so they look
   and behave like 0700's. On the full page the customer's details pane steps behind the conversation's Details button
   (as it does on a narrower page), so the three columns Darren asked for are the three on screen. */
.cm-drawer .cm-split.cm-3col,.cm-drawer.cm-page .cm-split.cm-3col{grid-template-columns:var(--cm-l3,minmax(240px,26%)) 7px var(--cm-mid,minmax(280px,28%)) 7px minmax(360px,1fr)}
/* lane bec1109mail (Bec, 9 Nov) — Maximise: the conversation takes the whole tray; not on a phone, which shows one part at a time. */
.cm-maxbtn.on{border-color:var(--accent);color:var(--accent-ink)}
@media (min-width:861px){
  .cm-drawer.cm-max .cm-tabs,.cm-drawer.cm-max .cm-tools,
  .cm-drawer.cm-max .cm-split:not(.cm-3col)>.cm-left,.cm-drawer.cm-max .cm-split:not(.cm-3col)>.cm-divider,
  .cm-drawer.cm-max .cm-split:not(.cm-3col)>.cm-side{display:none}
  .cm-drawer.cm-max .cm-split:not(.cm-3col),.cm-drawer.cm-max.cm-page .cm-split:not(.cm-3col){grid-template-columns:minmax(0,1fr)}
}
@media (max-width:860px){ .cm-drawer .cm-conv-acts .cm-maxbtn{display:none} }
.cm-split.cm-3col > .cm-mid{min-height:0;min-width:0;display:flex;flex-direction:column;background:var(--panel)}
.cm-drawer .cm-mid > .cm-phone{display:block;width:auto;flex:1;min-height:0;max-height:none;overflow:auto;order:0;border:0;padding:10px 12px 12px}
/* A ringing or live call's controls stick to the top of the middle column while it scrolls — always in view. */
.cm-drawer .cm-mid > .cm-phone.ph-pop-ringing #ph-panel,.cm-drawer .cm-mid > .cm-phone.ph-pop-live #ph-panel,
.cm-drawer .cm-mid > .cm-phone.ph-pop-svc #ph-panel{position:sticky;top:-10px;z-index:2;margin:-10px -12px 0;
  padding:10px 12px 8px;background:var(--panel);border-bottom:1px solid var(--line)}
.cm-drawer.cm-page .cm-split.cm-3col .cm-side{display:none}
.cm-drawer.cm-page .cm-split.cm-3col .cm-side-btn,.cm-drawer.cm-page .cm-split.cm-3col .cm-side-back{display:inline-flex}
.cm-drawer.cm-page .cm-split.cm-3col.show-side .cm-right{display:none}
.cm-drawer.cm-page .cm-split.cm-3col.show-side .cm-side{display:block;grid-column:5;border-left:0}
.cm-drawer.cm-page .cm-split.cm-3col .cm-side-back{margin:0 0 10px;width:auto;height:auto;padding:4px 10px;font-size:var(--fs-sm)}
/* The phone column's head: "Phone" and the Keypad show / hide. */
.ph-dial-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
.ph-dial-h > b{font-size:14px}
/* v3.1154.0 (9 October 2026) — "Show signature" under the drawer's email box (the footer as it will be sent, on a white
   card because that is how the customer sees it), Sent / Delivered / Seen on web chat replies, and the "Not seen" offer. */
.cm-oursig-b{margin-left:6px;padding:0 8px;font-size:11px;line-height:1.7}
.cm-oursig{margin:6px 0 0;padding:8px 10px;border:1px dashed var(--line);border-radius:8px;max-height:220px;overflow:auto;background:white;color:black}   /* the footer as the customer sees it: on white, in any theme */
.cm-oursig img{max-width:100%;height:auto}
.cm-seen{font-weight:600}
.cm-seen-seen{color:var(--ok)}
.cm-seen-unknown{font-weight:400;font-style:italic}
/* v3.1154.0 (9 October 2026) — "Quote opened" on the message that carried the link, and on the quote lists. */
.cm-qopen{font-weight:600}
.cm-qopen-yes,.q-opened{color:var(--ok)}
.cm-notseen{align-items:center}

/* ---- v3.1165.0 (12 October 2026) — THE NOTES TIMELINE AND THE COMMUNICATIONS BLOCK ------------------
   Jarryd: a notes timeline "with automatic date and time submission", and a communications section whose messages
   "can be expanded and opened". Quiet rows on the block's own panel; the stamp line leads, the words follow. */
.enq-notelog{margin-top:10px}
.enq-notelog-add{display:flex;gap:8px;align-items:flex-start}
.enq-notelog-add textarea{flex:1 1 auto;min-width:0}
.enq-notelog-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.enq-nl{padding:8px 10px;border-radius:var(--r);background:var(--panel);border:1px solid var(--line)}
.enq-nl-meta{font-size:var(--fs-xs);color:var(--muted)}
.enq-nl-meta b{color:var(--ink,inherit);margin-right:4px}
.enq-nl-text{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:2px}
/* v3.1178.0 — edit / delete on a note, the @ list under a note box, and a mentioned name in the words. Theme colours only. */
.enq-nl-acts{display:inline-flex;gap:4px;margin-left:6px;vertical-align:middle}
.enq-nl-hit{outline:2px solid var(--orange);outline-offset:1px}
.enq-mention{color:var(--blue-ink,var(--blue));font-weight:700}
.enq-mention-pick{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 0;padding:4px;border:1px solid var(--line);
  border-radius:var(--r);background:var(--panel)}
.enq-mention-pick[hidden]{display:none}
.enq-mention-opt{border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:999px;
  padding:3px 10px;font-size:var(--fs-sm);cursor:pointer}
.enq-mention-opt.is-active,.enq-mention-opt:hover,.enq-mention-opt:focus-visible{border-color:var(--blue);
  background:var(--accent-soft)}
/* v3.1178.0 — the workflow pickers (the board's and the enquiry's) and Set-up's workflow cards. */
.enq-wfview,.enq-wfpick select{font-size:var(--fs-xs);padding:3px 6px;max-width:220px}
.enq-wfpick{display:inline-flex;align-items:center;flex:0 0 auto}
.tl-step.tl-offwf{outline:1px dashed var(--muted);outline-offset:-3px}
.es-wf-cards{display:flex;flex-direction:column;gap:10px}
.es-wf{border:1px solid var(--line);border-radius:var(--r);padding:10px;background:var(--panel)}
.es-wf-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.es-wf-head .es-label{flex:1 1 220px;min-width:0}
.es-wf-def{display:inline-flex;align-items:center;gap:4px;font-size:var(--fs-sm)}
.es-wf-list{margin:8px 0 4px;padding-left:22px;display:flex;flex-direction:column;gap:4px}
.es-wf-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.es-wf-row[draggable="true"]{cursor:grab}
.es-wf-add{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-sm)}
.enq-comms{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.enq-comm > details{padding:6px 10px;border-radius:var(--r);background:var(--panel);border:1px solid var(--line)}
.enq-comm summary{cursor:pointer;overflow-wrap:anywhere}
.enq-comm-body,.enq-comm-full{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0;max-height:320px;overflow:auto}
.enq-comm-full{max-height:none}
.enq-comm-acts{margin:6px 0 0}
.enq-comms-more{margin-top:6px}
.enq-comms-more > summary{cursor:pointer;color:var(--accent-ink,var(--blue))}
/* v3.1165.0 — the record a duplicate check matched, as a link inside the warning (Jarryd: "so you can investigate"). */
.bia-note .dupe-open,.enq-mkco-why .dupe-open{color:var(--blue-ink,var(--blue));text-decoration:underline;font-size:inherit;font-weight:600}
.enq-comm-ico{display:inline-block;width:1.2em;text-align:center}
.enq-comm-how{font-style:italic}
.msg-addenq{white-space:nowrap}

/* ---- v3.1165.0 — PINNED PAGES (Jarryd: "multiple tabs/pages open in the app suite") ---------------------------------
   The pin sits beside the title in the house's 22px round (`.apptop-help`); filled when this page is pinned. The strip
   under the bar is only in the page once something is pinned, scrolls sideways rather than wrapping, so it is one row
   at every width, and each chip is a real link (a click switches, Ctrl+click opens a new tab). */
.apptop-pin svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.apptop-pin.on{background:var(--blue);color:white;border-color:var(--blue)}
.apptop-pin.on svg{fill:currentColor}
.pinstrip{display:flex;gap:6px;align-items:center;overflow-x:auto;padding:6px 22px;border-bottom:1px solid var(--line);
  background:var(--panel);scrollbar-width:thin}
.pin-chip{display:inline-flex;align-items:center;flex:0 0 auto;max-width:240px;border:1px solid var(--line);
  border-radius:999px;background:var(--panel);font-size:12.5px;font-weight:700}
.pin-chip a{color:var(--blue-ink);text-decoration:none;padding:3px 4px 3px 11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.pin-chip a:hover{text-decoration:underline}
.pin-chip button{border:0;background:none;color:var(--muted);cursor:pointer;padding:3px 9px 3px 4px;font-size:14px;line-height:1}
.pin-chip button:hover{color:var(--danger)}
.pin-chip.on{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
@media (max-width:640px){ .pinstrip{padding:6px 16px} .pin-chip{max-width:180px} .pin-chip button{min-width:32px;min-height:32px} }

/* ================================================================================================
   v3.1165.0 (12 October 2026) — ON THE PHONE AND STILL USING THE SYSTEM (public/phone.js `drawCallBar`)
   ================================================================================================
   Darren: "continue using the system while we're still on the phone with them". While a call is up and the tray is
   shut (or a form or record is open over it), the call's own controls sit in this bar: bottom LEFT, so it is clear of a
   sheet's Save buttons on the right and of the ring bar's full width (which only shows while a call is arriving). Above
   every overlay (sheets 95+, house dialogs 2000+) and below the app's toasts (9000+). Themed through the tokens. */
.ph-call-bar{position:fixed;left:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:8500;
  display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;max-width:min(560px,calc(100vw - 32px));
  padding:8px 10px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-left:4px solid var(--ok);
  border-radius:12px;box-shadow:var(--shadow)}
.ph-cb-who{display:grid;gap:1px;min-width:0;flex:0 1 auto;max-width:220px;text-align:left;background:none;border:0;padding:0;
  font:inherit;color:inherit;cursor:pointer}
.ph-cb-st{display:flex;align-items:center;gap:6px;font-size:var(--fs-xs);color:var(--grey)}
.ph-cb-st .ph-call-dot{background:var(--ok);animation:none}
.ph-cb-name{font-weight:700;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ph-cb-acts{display:flex;flex-wrap:wrap;gap:6px;flex:0 0 auto}
.ph-cb-acts .btn.on{border-color:var(--orange);color:var(--orange)}
.ph-cb-menu{flex:1 0 100%}
@media (max-width:520px){ .ph-call-bar{left:8px;right:8px;max-width:none} }
/* The live call's actions, under Mute · Hold · Transfer · Hang up, and in the bar's "Actions". One row that wraps. */
.ph-callacts{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 2px}
/* "Test speaker", beside the microphone's level and the "Sound allowed" line. */
.ph-spktest{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px}
.ph-spktest-msg.bad{color:var(--danger)}
/* public/callerfile.js — Create contact / Create customer. The house modal card, one column of labelled boxes. */
.cf-card{max-width:460px}
.cf-card h3{margin:0 0 10px}
.cf-lab{display:grid;gap:4px;margin:0 0 10px;font-size:var(--fs-sm);font-weight:600;color:var(--grey)}
.cf-lab input{font:inherit;font-weight:400}
.cf-hits{display:grid;margin:-4px 0 10px}
.cf-hit{display:block;width:100%;text-align:left;background:none;border:0;border-top:1px solid var(--line);
  padding:7px 2px;font:inherit;color:var(--ink);cursor:pointer}
.cf-hit:first-child{border-top:0}
.cf-hit:hover b{color:var(--blue)}
.cf-pick{margin:0 0 10px}
/* v3.1169.0 — "Add to existing contact" (the picker) and the suggestion card: "Looks like Ben Costa at Element Plumbing
   Services (from the voicemail)". The card is a quiet band under the thread's head; what was SAID is never drawn as fact. */
.cf-pick-card{max-width:520px}
.cf-pick-card .cf-hits{max-height:46vh;overflow:auto}
.cf-sugrow{display:grid;margin:0 0 10px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:var(--blue-soft,var(--grey-light))}
.cf-ok{color:var(--ok);font-weight:600;white-space:nowrap}
.cf-ask,.cf-done{margin:0 0 10px}
.cf-sug{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:6px 0 0;padding:6px 10px;border:1px solid var(--line);
  border-radius:8px;background:var(--blue-soft,var(--grey-light));font-size:var(--fs-sm);color:var(--ink)}
.cf-sug-acts{display:inline-flex;flex-wrap:wrap;gap:6px}
.cm-sugwrap{padding:0 12px}
.cm-li-guess,.ia-guess{font-weight:400;font-style:italic;opacity:.85}
.cm-li-who:has(> .cm-li-guess) > b{flex-shrink:0}
.cm-li-who > .cm-li-guess{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btn.primary .cf-ok{color:inherit}

/* v3.1165.0 — at phone width the top bar has no room for the pin (v31114mob: .apptop-right ran off a 360px screen on a
   customer record); the record windows keep their own pin. */
@media (max-width:600px){ html body .apptop .apptop-pin{display:none!important} }
/* v3.1165.0 — a member row with no tier yet (an unpaid membership, "Awaiting payment") draws its pill as class
   `edge-tier-` with nothing after it: muted, so it never reads as a tier. */
.edge-pill.edge-tier-{opacity:.7;font-style:italic}
/* v3.1170.0 (13 October 2026) — Set-up → Server health charts easier to read. Darren: "hard to read… is the top 100%? How do
   I know what the lines mean as far as good or bad?" The scale down the left, faint zones for getting tight and danger with a
   three-word key, a hover column per reading, and a colour key under the peak-times grid. Theme variables only. */
.sh-plot{display:grid;grid-template-columns:auto 1fr;gap:4px;align-items:stretch}
.sh-yaxis{display:flex;flex-direction:column;justify-content:space-between;font-size:var(--fs-xs);text-align:right;min-width:30px;line-height:1}
.sh-chart .sh-zone{pointer-events:none}
.sh-chart .sh-zone-warn{fill:var(--warn);fill-opacity:.14}
.sh-chart .sh-zone-bad{fill:var(--danger);fill-opacity:.16}
.sh-chart .sh-hit{fill:var(--ink);fill-opacity:0;pointer-events:all;cursor:crosshair}
.sh-chart .sh-hit:hover{fill-opacity:.08}
.sh-zkey{display:inline-flex;gap:8px;margin-left:10px;color:var(--muted);font-size:var(--fs-xs);cursor:help}
.sh-zk{display:inline-flex;align-items:center;gap:3px}
.sh-zk i{display:inline-block;width:10px;height:8px;border-radius:2px;border:1px solid var(--line)}
.sh-zk-ok i{background:var(--s-sunk)}
.sh-zk-warn i{background:color-mix(in srgb,var(--warn) 25%,var(--s-sunk))}
.sh-zk-bad i{background:color-mix(in srgb,var(--danger) 30%,var(--s-sunk))}
.sh-key[title]{cursor:help}
.sh-heat-key{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;font-size:var(--fs-xs);cursor:help}
.sh-heat-steps{display:inline-flex;gap:2px}
.sh-heat-steps i{display:inline-block;width:14px;height:12px;border-radius:3px}
.sh-heat-steps i.sh-heat-none{background:var(--s-sunk);border:1px solid var(--line)}
[data-sh-peakwords][title]{cursor:help}
/* v3.1171.0 (13 October 2026) — Server health → Memory by tool (public/serverhealthui.js memToolHtml): the tools by memory
   added with a small bar, the worst single calls, the memory guard's lines, memory by hour, and the one-line note when memory
   is coming back down after a spike. Theme variables only; kept inside the server health block (before .sh-inc-list li). */
.sh-mt-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:4px 0 6px}
.sh-mt-sum{font-size:var(--fs-sm);cursor:help}
.sh-mt-seg{margin-left:auto}
.sh-mt-tbl{font-size:var(--fs-sm)}
.sh-mt-tbl th[title],.sh-mt-h[title],.sh-mt-hours[title]{cursor:help}
.sh-mt-addcol{white-space:nowrap;min-width:130px}
.sh-mt-bar{display:inline-block;width:56px;height:8px;margin-right:6px;vertical-align:middle;border-radius:4px;background:var(--s-sunk);border:1px solid var(--line);overflow:hidden}
.sh-mt-bar i{display:block;height:100%;background:var(--orange)}
.sh-mt-h{margin:10px 0 4px;font-size:var(--fs-sm)}
.sh-mt-guards{margin:0;padding-left:18px;font-size:var(--fs-sm)}
.sh-mt-guards li{margin:2px 0}
.sh-mt-note{margin:6px 0;padding:4px 10px;border-left:3px solid var(--ok);background:var(--s-sunk);font-size:var(--fs-sm);color:var(--ink);cursor:help}
.sh-incidents h3{margin:0 0 4px;font-size:var(--fs-sm)}
.sh-inc-list{margin:0;padding-left:18px;font-size:var(--fs-sm)}
.sh-inc-list li{margin:2px 0}

/* ================================================================================================
   v3.1170.0 (13 October 2026) — THE PHONE: "CALL OR MESSAGE?", MESSAGE IN FIND, AND CALLING FROM A PHONE
   ================================================================================================ */
/* Darren: "when we click a link to call somebody, can it please come up with 'Would you like to send a message? Would
   you like to call?' The name and the number should show up". public/phone.js `ask`. Above sheets (95), the tray
   (85) and the search panel (60); under the ringing bar (300), which a call arriving must always be able to cover. */
.ph-ask-ov{position:fixed;inset:0;z-index:200;background:color-mix(in srgb,var(--ink) 45%,transparent);display:flex;align-items:center;
  justify-content:center;padding:16px}
.ph-ask-card{background:var(--panel);color:var(--ink);border-radius:14px;box-shadow:0 18px 48px color-mix(in srgb,var(--ink) 28%,transparent);
  width:min(360px,100%);padding:18px 18px 16px}
.ph-ask-card h3{margin:0 0 8px;font-size:var(--fs-lg)}
.ph-ask-who{margin:0;font-size:15px;overflow-wrap:anywhere}
.ph-ask-num{margin:4px 0 14px;font-size:20px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.01em}
.ph-ask-acts{display:flex;flex-wrap:wrap;gap:8px}
.ph-ask-acts .btn{min-height:44px;flex:1 1 90px;font-size:15px;display:inline-flex;align-items:center;
  justify-content:center;gap:6px;white-space:nowrap}
/* Find: Message sits right beside the mobile it texts. */
.ph-ringset{display:inline-flex;gap:4px;align-items:center;flex-wrap:nowrap}
.ph-ring.ph-text::before{content:'\2709'}
/* The top search on a phone: who to ring first, big enough to hit with a thumb in a car park (44px). */
.find-calls{display:grid;gap:6px;padding:2px 4px 6px}
.find-person{padding:8px 8px;border:1px solid var(--line);border-radius:10px}
.find-person.find-back{border-color:var(--orange)}
.find-who{margin-bottom:6px;overflow-wrap:anywhere}
.find-who .hint{font-size:12.5px}
.find-num{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px}
.find-num-n{flex:1 1 100%;font-variant-numeric:tabular-nums;font-size:15px}
.find-big{min-height:44px;min-width:44px;flex:1 1 120px;font-size:15px;display:inline-flex;align-items:center;
  justify-content:center;gap:6px;white-space:nowrap}

/* ================================================================================================
   v3.1170.0 — A LABEL SITS ON ITS BOX (the contact and customer edit forms)
   ================================================================================================
   Darren, with the "Edit Trent Baron" form: "labels should sit close to their fields; 'required' should sit inline next
   to 'Their email'. Same for 'Their position' helper text." The shared field rule reserves a hint ROW between every
   caption and its box (so side-by-side boxes line up); on these one-column sheets that reserved row was the gap — more
   space between a caption and its own box than between one field and the next. `.bia-tight` puts the hint INLINE
   after the caption, small and muted, the box straight underneath, and lines the boxes up from the bottom instead. */
.bia-grid.bia-tight{row-gap:10px}
.bia-grid.bia-tight>label{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;
  column-gap:6px;row-gap:3px;align-items:baseline;align-content:end}
.bia-grid.bia-tight>label .hint{grid-column:2;grid-row:1;display:inline;font-size:var(--fs-xs);font-weight:400;
  color:var(--muted);line-height:1.3;min-width:0}
.bia-grid.bia-tight>label>input,.bia-grid.bia-tight>label>select,.bia-grid.bia-tight>label>textarea{
  grid-column:1/-1;grid-row:2}
.bia-grid.bia-tight>label[title]{cursor:help}
.bia-grid.bia-tight>label[title]>input,.bia-grid.bia-tight>label[title]>select{cursor:auto}
@media (max-width:440px){ .bia-grid.bia-tight>label{grid-template-rows:auto auto} }

/* 0350, v3.1171.0 — client Zoom meetings on the customer record, and the "Meetings to check" window. Theme variables
   only. Each meeting is a card in a list, newest first; the transcript window wraps long lines instead of scrolling
   sideways. */
.meet-list{list-style:none;margin:8px 0 10px;padding:0;display:flex;flex-direction:column;gap:10px}
.meet-item{padding:10px 12px;border:1px solid var(--line);border-radius:var(--rad-in,6px);background:var(--panel)}
.meet-item.meet-check{cursor:pointer}
.meet-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px}
.meet-topic{font-weight:600}
.meet-from{font-size:var(--fs-xs);color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:0 8px}
.meet-who,.meet-why,.meet-sugg{margin:6px 0 0}
.meet-sum{margin:8px 0 0}
.meet-part{margin:8px 0 0}
.meet-part ul{margin:4px 0 0;padding-left:20px}
.meet-owner{color:var(--muted)}
.meet-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
.meet-rec{font-weight:600}
.meet-transcript{white-space:pre-wrap;word-break:break-word;max-height:60vh;overflow:auto;padding:10px;
  border:1px solid var(--line);border-radius:var(--rad-in,6px);background:var(--panel-2,var(--panel));font-size:var(--fs-sm)}

/* ---- v3.1173.0 — THE REPLY BOX, SHORTER (14 October 2026) -------------------------------------------------------------
   Darren: "we need to be more efficient with all this space … the send button can go to the right of the subject, and the
   show signature and the details below could be just on a little light bulb icon … I don't think it even needs to take up
   space." Send rides the top row (after the Subject, or after Reply by when there is no subject); the "To … Ctrl+Enter
   sends" line and "Show signature" were one light bulb at the end of the Scripts/Suggest row (public/comms.js; a small
   "Signature ▾" since v3.1178.0, decide16); the writing box
   takes the full width, and the toolbar and gaps are tighter. */
.cm-reply-top{gap:4px 8px;margin:0 0 4px}
.cm-reply-top .cm-send{flex:none;margin-left:auto;height:32px;padding:0 16px}
.cm-reply-top .cm-subj{height:32px;box-sizing:border-box;padding:4px 10px}
.cm-reply-top .cm-send-said{flex:1 1 100%;margin:0;font-size:var(--fs-xs);text-align:right}
.cm-reply-tools{display:flex;align-items:flex-start;gap:6px;margin:0 0 4px}
.cm-reply-tools > .rs-bar{flex:1 1 auto;min-width:0;margin:0}
.cm-tip{flex:none;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;
  border:1px solid transparent;border-radius:999px;background:none;font-size:15px;line-height:1;cursor:help;opacity:.7}
button.cm-tip{cursor:pointer}
.cm-tip:hover,.cm-tip:focus-visible,.cm-tip.on{opacity:1;border-color:var(--line);background:var(--panel)}
.cm-tip:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.cm-reply .cm-reply-row{margin:0}
.cm-right .cm-reply{padding:6px 12px 8px}
.cm-reply .rt-bar{gap:2px;padding:2px}
.cm-reply .rt-b{min-height:24px;min-width:26px;padding:1px 6px;font-size:var(--fs-xs)}
.cm-reply .rt-size{padding:1px 4px}
.cm-reply .rt-box{min-height:56px}
.cm-reply .cm-oursig{margin:4px 0 0}
@media (max-width:640px){ .cm-reply-top .cm-subj{flex:1 1 160px} }
/* v3.1178.0 (decide16) — Darren, 16 Oct 2026, of the light bulb: "Replace it with a small signature button." A small, quiet
   "Signature ▾" at the end of the Scripts row: muted text, no box until hovered, and on a text the signature as plain lines. */
.cm-sigslot:empty{display:none}
.cm-sigbtn{flex:none;align-self:center;margin:0;padding:1px 6px;border:1px solid transparent;border-radius:6px;background:none;
  color:var(--muted);font-size:11px;line-height:1.6;white-space:nowrap;cursor:pointer}
.cm-sigbtn:hover,.cm-sigbtn:focus-visible,.cm-sigbtn.on{color:var(--ink);border-color:var(--line);background:var(--panel)}
.cm-sigbtn:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.cm-oursig.cm-oursig-sms{white-space:pre-wrap;background:var(--panel);color:var(--ink);font-size:var(--fs-xs)}

/* ---- v3.1173.0 — THE ENQUIRY'S NUMBER (14 October 2026) ---------------------------------------------------------------
   Darren: "can we please have an enquiry number associated with each inquiry? Add the number under the tick box." Small and
   muted under the board row's tick (public/app.js enqRefHtml), and beside "Company" on the record. */
.enq-tickcol{width:52px;padding-left:6px}
.enq-num{display:block;margin-top:2px;font-size:10.5px;line-height:1.2;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:.01em}
.enq-num-rec{display:inline;margin:0 6px 0 0;font-size:11.5px;font-weight:600}
/* ---- v3.1197.0 (19 October 2026) — THE BOOKING'S NUMBER, WHEREVER A BOOKING IS ---------------------------------------
   Darren: "There's nothing that says booking 10 anywhere in the main app." "Booking #10" (public/refs.js — the words the
   recording summary and its PDF print) in the same quiet register as the enquiry's number: small, muted, tabular. On a
   row it sits inline before the name; under a cell it drops to its own line like `.enq-num`. Theme tokens only. */
.bk-num{display:block;margin-top:2px;font-size:10.5px;line-height:1.2;color:var(--muted);white-space:nowrap;
  font-variant-numeric:tabular-nums;letter-spacing:.01em}
.bk-num-in,.bkg-ref{display:inline;margin:0 4px 0 0;font-size:11.5px;font-weight:600}
.bkg-ref{color:var(--blue-ink)}
.bkg-ref-lg{font-size:15px;font-weight:700}
.bkg-row.row-open{cursor:pointer}
.bkg-row.row-open:hover{background:var(--tint)}
.bkg-row.row-open:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.ref-nw{white-space:nowrap}
/* The customer's Bookings tab: the hours and "and 2 more dates" lines were inline and ran into the words before them. */
.custbk .edge-sub{display:block}
@media(max-width:560px){.custbk .bk-num-in{display:block;margin:2px 0 0}}
/* v3.1198.0 (19 October 2026) — the Upcoming / Past tabs on the customer's Bookings panel (public/custbook.js). */
.custbk-tabs{margin:4px 0 10px}
.custbk-pane[hidden]{display:none}
.ref-link{color:var(--blue-ink);font-weight:600;text-decoration:underline;text-underline-offset:2px}
/* The booking's own window (public/apps/bookings.js detailHtml). */
.bkg-detail-refs{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 12px}
.bkg-detail-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 16px;margin:0 0 14px}
.bkg-detail-facts dt{color:var(--muted);font-size:var(--fs-xs);padding-top:2px}
.bkg-detail-facts dd{margin:0;overflow-wrap:anywhere}
.bkg-detail-h{margin:0 0 6px}
.bkg-detail-dates{margin:0 0 12px;padding-left:18px}
.bkg-detail-dates li{margin:2px 0}
/* booktime (23 October 2026) — each date's Date, Start, Finish and Save, under its line. Darren: "When I open a booking, I need
   to be able to put in the start time and finish time manually." Wraps on a phone; "Saved" and Undo sit beside Save. */
.bkg-detail-dates li{margin:6px 0 10px}
.bkt-edit{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 10px;margin:6px 0 0}
.bkt-f{display:flex;flex-direction:column;gap:2px;font-size:var(--fs-xs);color:var(--muted)}
.bkt-f input{min-width:0}
.bkt-f input[type="date"]{width:11.5em}
.bkt-f input[type="time"]{width:9.5em}
.bkt-len{align-self:center;font-size:var(--fs-sm);color:var(--muted);min-width:5em}
.bkt-said{align-self:center;font-size:var(--fs-sm);flex:1 1 14em;min-width:0}
.bkt-said.bad{color:var(--danger)}
.bkt-undo{margin-left:4px}
/* booktime — "Tell the customer it has moved", beside Save. */
.bkt-tell{display:inline-flex;align-items:center;gap:6px;align-self:center;font-size:var(--fs-sm);color:var(--ink)}
.bkt-tell[hidden]{display:none}
@media (max-width:520px){.bkt-f input[type="date"],.bkt-f input[type="time"]{width:auto}.bkt-f{flex:1 1 7em}}
/* booktime — the custom length under "Booking Duration": hours, minutes, and the length in words. */
.bs-custom{display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px 10px;margin-top:6px}
.bs-custom-f{display:flex;flex-direction:column;gap:2px;font-size:var(--fs-xs);color:var(--muted)}
.bs-custom-f input{width:5em}
.bs-custom-say{align-self:center;font-size:var(--fs-sm);color:var(--ink)}
.bs-custom-say.bad{color:var(--danger)}
.bkg-detail-recs:empty{display:none}
@media(max-width:560px){
  .bkg-detail-facts{grid-template-columns:1fr;gap:2px}
  .bkg-detail-facts dd{margin-bottom:6px}
}
/* On a calendar block of ours: its own small line, only on blocks tall enough (booksheet.js `showRef`). */
.bs-tgref{color:var(--muted);font-size:10px;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;max-width:100%}

/* ---- v3.1173.0 — A RECORDING PLAYS WHERE IT IS LISTED (14 October 2026) ------------------------------------------------
   Darren: "Can't we just link to the recording? When I click this, it brings up a JSON file." ▶ Play, Download and (when
   we know the call) Open the call on the file row; the player is the row's last line (public/filespanel.js, app.js filePlay). */
.file-row .file-play{margin-left:4px}
.file-row .file-dl{font-size:12.5px;margin-left:4px}
.file-row .file-call{font-size:12.5px;margin-left:6px}
.file-player{margin:6px 0 2px}
.file-player .file-audio{display:block;width:100%;max-width:420px;height:36px}
.enq-call-flash{outline:2px solid var(--accent);outline-offset:2px;transition:outline-color var(--dur-3) var(--ease-out)}
/* v3.1173.0 — "Booking history" on the customer record and the enquiry (public/bookinghistory.js). The chip says
   the kind of event in a word; the colour only repeats it. Theme colours only. */
.bkhist .chip.ok { border-color: var(--ok); color: var(--ok); }
.bkhist .chip.info { border-color: var(--blue); color: var(--blue-ink); }
.bkhist .chip.warn { border-color: var(--warn); color: var(--ink); }
.bkhist .chip.bad { border-color: var(--danger); color: var(--danger); }
/* The enquiry's slot it is drawn into (enqBookHistSlot) — empty until its own read answers, so it takes no room. */
.enq-bkhist:empty { display: none; }
.mrg-bookings { margin: 6px 0 0; padding-left: 18px; }
/* ---- 0354, v3.1173.0 — BRING IN A BOOKING MADE ELSEWHERE (public/bringin.js) ---------------------------------------
 * Theme colours only. The window is a modal card a little wider than a confirm, so the Outlook list fits. */
.bi-card{max-width:980px;max-height:calc(100vh - 48px);overflow:auto}
.bi-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.bi-head h3{margin:0}
/* v3.1202.0 — Bring in's "Pick the customer" window (suggests as you type): room under its heading. */
.bi-pick-card .bi-head{margin:0 0 10px}
.bi-tabs{display:flex;gap:6px;margin:8px 0 12px}
.bi-row{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:flex-end}
.bi-row .cf-lab{min-width:140px}
.bi-go{padding-bottom:10px}
.bi-list{max-height:46vh;overflow:auto;border:1px solid var(--line);border-radius:var(--r);margin:6px 0 10px}
.bin-grid td{vertical-align:top} /* v3.1198.0 — was .bi-grid, the BI cards' class (see public/bringin.js) */
.bi-ov .modal-card.bi-card{display:block} /* the window, not a BI report card (same class name, from 3.1173) */
.bi-hrs{width:5.5em}
.bi-quiet{display:flex;gap:8px;align-items:center;margin:8px 0;font-weight:600;color:var(--ink)}
.bi-set{margin:6px 0 0;padding-left:18px}
.bi-results{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:6px}
.bi-results li.good{color:var(--ok)}
.bi-results li.bad{color:var(--orange-ink)}
.bi-dates{display:grid;gap:4px;margin:4px 0 8px}
.enq-appt-outside{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:4px 0 0}
.enq-appt-arranged{background:var(--blue-lt);color:var(--blue-ink);border-color:var(--line)}
/* v3.1174.0 — "Show archived workspaces" sits above "Show test customers" (Darren: "another tick box above 'Show test
   customers'"); an archived workspace's tag is muted, its retirement note in the hover. Theme colours only. */
.adm-ticks{display:inline-flex;flex-direction:column;align-items:flex-start;gap:4px;align-self:center}
.ws-tag.ws-archived{color:var(--muted);border-style:dashed}
.ws-archtick label.lb-test{font-weight:500}
.xs-platinum{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:6px 0 10px}
.xs-platinum select{min-width:240px}
/* v3.1177.0 — EMERGENCY SUPPORT ENTRY (src/emergency.js). The banner inside a workspace entered on an emergency entry, the
   owner note in the Emergency entry window, and "Owner not emailed". Theme tokens only (the urgent set, which has a dark
   twin); the class is doubled so it outranks the dark theme's own .support-bar colours. */
.support-bar.em-bar.em-bar{background:var(--urg-bg);border-color:var(--urg-line);color:var(--urg-ink)}
.support-bar.em-bar .em-ws{font-weight:400}
.support-bar.em-bar .linkbtn{color:var(--urg-ink);text-decoration:underline}
.em-nomail{color:var(--danger);font-weight:700}
.em-owner-note{background:var(--urg-bg);border:1px solid var(--urg-line);color:var(--urg-ink);border-radius:var(--r);padding:10px 12px;margin:10px 0}
.em-nomail-note{color:var(--danger);font-weight:700}
.em-reason textarea{width:100%;box-sizing:border-box;font:inherit;padding:9px 11px;border:1px solid var(--line);border-radius:var(--r)}
.em-why{max-width:320px;white-space:normal}
.ua-reset-out{margin-left:6px}

/* ---- v3.1178.0 (Bec, 15 Oct) — THE REPLY BOX'S TO / CC LINE, "ADDED TO E-…", ONE LINE PER EMAIL CHAIN ------------------
   To: on its own line under Scripts, a small "+ CC / BCC" that opens two boxes; "Added to E-00158" beside "Add to another
   enquiry"; an enquiry's email chain folded to one line that opens into one scrolling box; the text signature in Set-up.
   Theme colours only. */
.cm-reply-addr{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:0 0 4px;font-size:12.5px}
.cm-addr-k{color:var(--muted);font-weight:600}
.cm-addr-v{min-width:0;overflow-wrap:anywhere}
/* lane bec1109mail (Bec, 9 Nov) — Reply on one email in a chain: "Replying to:" over the box. */
.cm-replying{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:0 0 4px;padding:3px 8px;border-left:3px solid var(--accent);border-radius:4px;background:var(--s-accent-soft);font-size:var(--fs-xs)}
.cm-replying b{min-width:0;overflow-wrap:anywhere}
.cm-reply1.on{border-color:var(--accent);color:var(--accent-ink)}
.cm-ccbtn{background:none;border:1px solid var(--line);border-radius:999px;padding:0 8px;font:inherit;font-size:11.5px;line-height:20px;color:var(--muted);cursor:pointer}
.cm-ccbtn:hover,.cm-ccbtn:focus-visible{color:inherit;border-color:var(--accent)}
.cm-reply-cc{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 0 4px;font-size:12.5px}
.cm-cc-l{display:flex;align-items:center;gap:4px;flex:1 1 200px;min-width:0}
.cm-cc-l input{flex:1 1 auto;min-width:0;height:26px;padding:2px 8px;font-size:12.5px}
/* lane bec1109mail (Bec, 9 Nov) — CC and BCC suggest their people and search everyone we hold. */
.cm-cc-sug{display:grid;gap:1px;margin:0 0 6px;padding:4px;max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:var(--panel);font-size:var(--fs-xs)}
.cm-cc-sug[hidden]{display:none}
.cm-cc-h{padding:4px 8px 2px;font-size:var(--fs-xs);font-weight:600;color:var(--muted)}
.cm-cc-opt{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;width:100%;padding:5px 8px;border:0;border-radius:6px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.cm-cc-opt:hover,.cm-cc-opt:focus-visible{background:var(--s-accent-soft);outline:none}
.cm-cc-opt .hint{overflow-wrap:anywhere}
.cm-cc-note{margin:4px 8px}
.cm-convbrief .cm-mailbtn{margin-top:4px}
.msg-added{font-size:var(--fs-xs);color:var(--muted);white-space:nowrap}
.msg-added .msg-added-l{font-size:var(--fs-xs);font-weight:600}
.enq-chain-list{list-style:none;margin:6px 0 0;padding:0 4px 0 0;max-height:360px;overflow:auto;border-top:1px solid var(--line)}
.enq-chain-msg{padding:6px 0;border-bottom:1px solid var(--line)}
.enq-chain-msg:last-child{border-bottom:0}
.enq-chain-meta{font-size:12.5px}
.rs-smssig{margin:10px 0;padding:8px 0;border-top:1px solid var(--line)}
.rs-smssig h3{margin:0 0 6px;font-size:14px}
.rs-smssig textarea{width:100%;box-sizing:border-box}
@media (max-width:640px){ .cm-cc-l{flex:1 1 100%} .msg-added{white-space:normal} }

/* v3.1185.0 — the one difference an imported row shows: a small "From GoHighLevel" tag (public/comms.js, public/app.js). */
.src-tag{display:inline-block;font-size:11px;font-weight:600;line-height:1.5;padding:0 6px;border-radius:999px;border:1px solid var(--line);background:var(--tint);color:var(--muted);vertical-align:middle;white-space:nowrap}
/* v3.1185.0 — "N more not dealt with in History →" in a tab's Current view. */
.cm-tohist{color:var(--blue-ink)}

/* ---- v3.1186.0 (16 October 2026) — NEWSLETTERS: THE NEAR-FULL-SCREEN WORKSPACE ---------------------------------------
   Darren: "when you're editing or looking at a newsletter, it should go almost full screen. There's no reason that it shows
   a condensed one-third size." One window for a newsletter, a template and a report (`cls:'nl-ws'` on openSheet): 16px from
   every edge, blocks and settings on the left, the live preview on the right, each scrolling on its own. Under 900px the
   two halves become two tabs (Edit / Preview); under 640px the window is the whole screen, like every other sheet.
   Theme tokens only. */
.sheet-ov:has(> .sheet-card.nl-ws){padding:16px}
.sheet-card.nl-ws{max-width:none;width:calc(100vw - 32px);height:calc(100vh - 32px);display:flex;flex-direction:column;padding:12px 18px;box-sizing:border-box}
.sheet-card.nl-ws>.sheet-head{flex:0 0 auto;gap:10px}
.sheet-card.nl-ws>.sheet-body{flex:1 1 auto;min-height:0;margin-top:8px;overflow:hidden}
.nl-ws-grid{display:grid;grid-template-columns:minmax(360px,500px) minmax(0,1fr);gap:16px;height:100%;min-height:0}
.nl-ws-left{overflow:auto;min-height:0;padding-right:6px;overscroll-behavior:contain}
.nl-ws-right{display:flex;flex-direction:column;min-height:0;background:var(--s-sunk,var(--tint));border-radius:var(--rad-in);padding:10px 12px}
.nl-ws-tabs{display:none}
.nl-ltabs{display:flex;gap:6px;flex-wrap:wrap;position:sticky;top:0;z-index:1;background:var(--panel);padding:2px 0 8px}
.nl-lpane[hidden],.nl-pv-frame[hidden],.nl-pv-text[hidden],[data-nl-rpane][hidden]{display:none}
.nl-pv-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex:0 0 auto}
.nl-pv-subj{flex:1 1 200px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nl-pv-warn{flex:0 0 auto}
.nl-pv-warn ul{margin:6px 0 0;padding-left:18px}
.nl-pv-frame{flex:1 1 auto;min-height:0;overflow:auto;display:flex;justify-content:center;align-items:flex-start;padding:12px 0;overscroll-behavior:contain}
.nl-pv-scale{position:relative;overflow:hidden;flex:0 0 auto;border-radius:var(--rad-in);box-shadow:var(--sh-1,none)}
#nl-pv-iframe{border:0;display:block;transform-origin:0 0;background:var(--panel)}
.nl-pv-text{flex:1 1 auto;min-height:0;overflow:auto;white-space:pre-wrap;background:var(--panel);padding:12px;border-radius:var(--rad-in);margin:12px 0 0;font-size:var(--fs-sm)}
/* A ROW OF BUTTONS IN PLACE OF A DROPDOWN. The editor has no native <select>: see the dropdown rule in theme.css. */
.nl-seg{display:inline-flex;flex-wrap:wrap;border:1px solid var(--line);border-radius:var(--rad-in);overflow:hidden;background:var(--panel);max-width:100%}
.nl-segb{border:0;border-right:1px solid var(--line);background:var(--panel);color:var(--ink);font:inherit;font-size:var(--fs-sm);padding:7px 12px;cursor:pointer;line-height:1.2}
.nl-segb:last-child{border-right:0}
.nl-segb:hover{background:var(--s-sunk,var(--tint))}
.nl-segb.on{background:var(--accent-soft);color:var(--accent-ink);font-weight:700}
/* The blocks: one line each until opened, so a long newsletter still fits on the screen. */
.nl-bk{border:1px solid var(--line);border-radius:var(--rad-in);background:var(--panel);margin:0 0 8px}
.nl-bk.open{border-color:var(--accent)}
.nl-bk-head{display:flex;align-items:center;gap:4px;padding:4px 6px}
.nl-bk-name{flex:1 1 auto;min-width:0;text-align:left;background:none;border:0;font:inherit;color:var(--ink);cursor:pointer;padding:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nl-bk-tools{display:flex;gap:2px;flex:0 0 auto}
.nl-bk-body{padding:4px 12px 12px;display:grid;gap:10px}
.nl-bk-body .fld{gap:4px}
.nl-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.nl-colbox{background:var(--s-sunk,var(--tint));border-radius:var(--rad-in);padding:8px;min-width:0}
.nl-colbox .nl-bk-body{padding:4px 8px 10px}
.nl-colbox .nl-bk-head{flex-wrap:wrap}
.nl-colbox .nl-bk-name{flex:1 1 100%}
.nl-colbox .nl-bk-tools{margin-left:auto}
.nl-look-grid>.fld{grid-column:1/-1}
.nl-addrow{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.nl-look>summary{cursor:pointer;font-weight:600;color:var(--muted);font-size:var(--fs-sm)}
.nl-look-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;margin-top:8px}
.nl-colour{display:grid;gap:4px;min-width:0}
.nl-colour>span:first-child{font-size:var(--fs-sm);font-weight:600;color:var(--muted)}
.nl-colour-in{display:flex;gap:6px;align-items:center}
.nl-colour-in input[type=color]{width:42px;height:36px;padding:2px;border:1px solid var(--line);border-radius:var(--rad-in);background:var(--panel);flex:0 0 auto;cursor:pointer}
.nl-colour-in .nl-hex{width:7.5em;min-width:0;min-height:36px;padding:6px 8px}
.nl-picklist{display:grid;gap:4px;max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:var(--rad-in);padding:4px;background:var(--panel)}
.nl-pick{display:grid;gap:2px;text-align:left;background:var(--panel);border:1px solid transparent;border-radius:var(--rad-in);padding:7px 9px;cursor:pointer;font:inherit;color:var(--ink)}
.nl-pick:hover{border-color:var(--line)}
.nl-pick.on{border-color:var(--accent);background:var(--accent-soft)}
.nl-pick.past{opacity:.7}
.nl-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
/* The report. */
.nl-rep{height:100%;overflow:auto;padding-right:6px;overscroll-behavior:contain}
.nl-figs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:0 0 12px}
.nl-fig{background:var(--s-sunk,var(--tint));border-radius:var(--rad-in);padding:10px 12px;min-width:0}
.nl-fig-n{font-size:1.45em;font-weight:700;line-height:1.25}
.nl-rep-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:12px}
.nl-rep .panel.sub{overflow-x:auto;margin-top:12px}
.nl-chart{width:100%;height:140px;display:block}
.nl-chart rect{fill:var(--accent)}
.nl-chart-axis{display:flex;justify-content:space-between;font-size:var(--fs-xs)}
.nl-url{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nl-rep-frame{background:var(--s-sunk,var(--tint));border-radius:var(--rad-in)}
.nl-rep-frame iframe{width:min(100%,840px);height:800px;border:0;background:var(--panel)}
@media (max-width:900px){
  .nl-ws-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:8px}
  .nl-ws-tabs{display:flex;gap:6px}
  .nl-ws-grid[data-nl-pane="edit"] .nl-ws-right,.nl-ws-grid[data-nl-pane="preview"] .nl-ws-left{display:none}
  .nl-rep-two{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  .sheet-ov:has(> .sheet-card.nl-ws){padding:0}
  .sheet-card.nl-ws{width:100%;height:100vh;height:100dvh;padding:10px 12px;border-radius:0}
  .sheet-card.nl-ws>.sheet-head{flex-wrap:wrap;row-gap:6px}
  .sheet-card.nl-ws>.sheet-head>h3{flex:1 1 0;min-width:0;order:1}
  .sheet-card.nl-ws>.sheet-head>.sheet-x{order:2}
  .sheet-card.nl-ws .sheet-headacts{order:3;flex:1 0 100%;justify-content:flex-start;margin-left:0;gap:6px}
  .sheet-card.nl-ws .sheet-headacts .btn{padding:6px 10px;font-size:var(--fs-sm)}
  .nl-cols,.nl-two{grid-template-columns:minmax(0,1fr)}
}
/* ---- v3.1189.0 (17 October 2026) — DRAFT WITH AI: THE TWO-PANE WINDOW, PICTURES, SOURCES AND THE HELPERS -----------------
   Darren: "can't we grab real data from somewhere? Go out to the web, find what I've requested, put some images in."
   public/aidraftui.js, shared by Newsletters and the page editor. The window is the near-full-screen workspace (`nl-ws`): the
   brief on the left, the live result on the right; under 900px the two become tabs (Brief / Result). Theme tokens only. */
.aid-ws .aid-left{display:flex;flex-direction:column;gap:12px;padding-bottom:0}
.aid-ws .aid-left>.fld,.aid-ws .aid-left>.nl-two{margin:0}
.aid-ws .aid-left>*{flex-shrink:0}
.aid-sec{margin:10px 0 0;font-size:var(--fs-sm);font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.aid-sec:first-of-type{margin-top:2px}
.aid-banner{display:grid;gap:4px;padding:10px 12px;border-radius:var(--rad-in);border:1px solid var(--line);background:var(--s-accent-soft);color:var(--ink);font-size:var(--fs-sm);line-height:1.5}
.aid-banner.bad{background:var(--s-bad-soft);border-color:var(--s-bad)}
.aid-banner.warn{background:var(--s-warn-soft);border-color:var(--s-warn)}
.aid-banner.ok{background:var(--s-ok-soft);border-color:var(--s-ok)}
.aid-switch{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:var(--rad-in);background:var(--panel);cursor:pointer}
.aid-switch input{position:absolute;opacity:0;width:1px;height:1px}
.aid-sw{position:relative;width:40px;height:22px;border-radius:999px;background:var(--s-line-2);flex:none}
.aid-sw::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--panel);box-shadow:var(--sh-1)}
.aid-switch input:checked+.aid-sw{background:var(--accent)}
.aid-switch input:checked+.aid-sw::after{left:21px}
.aid-switch input:focus-visible+.aid-sw{outline:2px solid var(--s-focus);outline-offset:2px}
.aid-sw-t{display:grid;gap:2px;min-width:0}
.aid-sw-t b,.aid-linkbox .fld>span{display:inline-flex;align-items:center;gap:6px}
.aid-sw-t svg,.aid-linkbox svg,.aid-foot svg,.aid-pic-ico svg,.aid-rw-k svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.aid-linkbox{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.aid-inc{display:grid;gap:6px}
.aid-inc-h{font-size:var(--fs-sm);color:var(--ink)}
.aid-inc-empty{margin:0}
.aid-chips{display:flex;flex-wrap:wrap;gap:6px}
.aid-chip{display:grid;gap:1px;text-align:left;max-width:100%;min-width:0;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:var(--rad-in);padding:7px 10px;font:inherit;cursor:pointer}
.aid-chip:hover{border-color:var(--s-line-hover)}
.aid-chip.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink)}
.aid-chip.on .aid-chip-t::before{content:"✓ "}
.aid-chip-t{font-size:var(--fs-sm);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aid-chip-s{font-size:var(--fs-xs);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:28em}
.aid-foot{position:sticky;bottom:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 0;margin-top:auto;background:var(--panel);border-top:1px solid var(--line)}
.aid-foot .btn{display:inline-flex;align-items:center;gap:6px}
.aid-right{padding:0}
.aid-out{flex:1 1 auto;min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain}
.aid-empty{display:flex;gap:16px;align-items:flex-start;max-width:640px;margin:8vh auto 0;padding:22px 24px;background:var(--panel);border:1px dashed var(--line);border-radius:var(--rad)}
.aid-empty.bad{border-style:solid;border-color:var(--s-bad);margin-top:24px}
.aid-empty .es-ico,.aid-wait-ico{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;flex:none;background:var(--accent-soft);color:var(--accent-ink)}
.aid-empty .es-ico svg,.aid-wait-ico svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linejoin:round}
.aid-empty>div{display:grid;gap:6px;min-width:0}
.aid-empty b{font-size:var(--fs-md)}
.aid-steps{margin:4px 0 0;padding-left:20px;display:grid;gap:6px;color:var(--muted);font-size:var(--fs-sm);line-height:1.5}
.aid-steps b{font-size:inherit;color:var(--ink)}
.aid-wait{display:grid;gap:8px;justify-items:start;max-width:760px;margin:6vh auto 0}
.aid-wait .skel-block{width:100%;box-sizing:border-box;margin-top:8px}
.aid-subj{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:12px;padding:12px 14px;background:var(--panel);border:1px solid var(--line);border-radius:var(--rad-in);margin-bottom:12px}
.aid-subj>div{display:grid;gap:2px;min-width:0}
.aid-k{font-size:var(--fs-xs);font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.aid-out>.aid-banner{margin-bottom:12px}
.aid-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:14px;align-items:start}
.aid-draft{background:var(--panel);border:1px solid var(--line);border-radius:var(--rad);padding:18px 22px;box-shadow:var(--sh-1);min-width:0}
.aid-draft-bar{display:flex;align-items:baseline;gap:10px;padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid var(--line)}
.aid-r-b{margin:0 0 10px}
.aid-r-h1{margin:6px 0 4px;font-size:22px;line-height:1.3}
.aid-r-h2{margin:6px 0 4px;font-size:var(--fs-lg);line-height:1.35}
.aid-r-text p{margin:0 0 10px;line-height:1.6}
.aid-r-hero{padding:16px 18px;border-radius:var(--rad-in);background:var(--accent-soft);color:var(--accent-ink)}
.aid-r-hero h3{margin:0 0 6px;font-size:22px}
.aid-r-hero p{margin:0}
.aid-r-hr{border:0;border-top:1px solid var(--line);margin:14px 0}
.aid-r-btn{margin:6px 0 12px}
.aid-btnlook{display:inline-block;padding:7px 14px;border-radius:6px;background:var(--accent);color:var(--panel);font-weight:700;font-size:var(--fs-sm)}
.aid-r-card{display:grid;gap:4px;justify-items:start;padding:12px 14px;border:1px solid var(--line);border-radius:var(--rad-in);background:var(--s-sunk)}
.aid-r-img img{display:block;max-width:100%;border-radius:var(--rad-in)}
.aid-r-img{margin:0}
.aid-tag{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.aid-cite{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;margin-left:2px;border-radius:999px;background:var(--accent-soft);color:var(--accent-ink);font-size:11px;font-weight:700;text-decoration:none;vertical-align:super;line-height:1}
.aid-cite:hover{background:var(--accent);color:var(--panel)}
.aid-side{display:grid;gap:12px;min-width:0;position:sticky;top:0}
.aid-panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--rad-in);padding:12px 14px;display:grid;gap:8px;min-width:0}
.aid-panel-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.aid-srcs{margin:0;padding-left:22px;display:grid;gap:8px}
.aid-srcs li{display:grid;gap:1px;min-width:0}
.aid-srcs a{color:var(--s-link);font-weight:600;overflow-wrap:anywhere}
.aid-side .nl-seg{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
.aid-side .nl-segb{border-right:0;border-bottom:1px solid var(--line);text-align:left}
.aid-side .nl-segb:last-child{border-bottom:0}
.aid-linkbox .btn{min-height:var(--field-h,40px)}
.aid-merge{display:inline-block;padding:0 6px;border-radius:6px;background:var(--s-sunk);border:1px solid var(--line);font-size:.9em;color:var(--muted)}
.aid-refused{margin:0;padding-left:18px;display:grid;gap:6px;font-size:var(--fs-sm);color:var(--muted)}
.aid-linkres{max-width:640px;margin:16px auto 0}
.aid-pic{margin:6px 0 16px;padding:12px 14px;border:1px dashed var(--s-line-2);border-radius:var(--rad-in);background:var(--s-sunk);display:grid;gap:10px}
.aid-pic.used{border-style:solid;border-color:var(--accent)}
.aid-pic-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.aid-pic-ico{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--panel);color:var(--accent-ink)}
.aid-badge{display:inline-block;font-size:11px;font-weight:700;line-height:1.6;padding:0 8px;border-radius:999px;background:var(--accent);color:var(--panel)}
.aid-badge.quiet{background:var(--panel);color:var(--muted);border:1px solid var(--line);font-weight:600}
.aid-pic-acts,.aid-imgacts{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.aid-pic-acts .btn.on{border-color:var(--accent);color:var(--accent-ink)}
.aid-pic-show img{display:block;width:100%;max-height:340px;object-fit:cover;border-radius:var(--rad-in)}
.aid-pick{display:grid;gap:10px}
.aid-pick-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.aid-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;max-height:360px;overflow:auto;overscroll-behavior:contain}
.aid-thumb{display:grid;gap:4px;padding:4px;border:1px solid var(--line);border-radius:var(--rad-in);background:var(--panel);cursor:pointer;font:inherit;color:var(--ink);text-align:left;min-width:0}
.aid-thumb:hover{border-color:var(--accent)}
.aid-thumb img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:6px;background:var(--s-sunk)}
.aid-thumb span{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aid-imgtags{display:flex;gap:6px;flex-wrap:wrap;margin:0}
.aid-srcline{margin:0;font-size:12.5px;color:var(--muted)}
.aid-srcline a{color:var(--s-link)}
.aid-rw{display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.aid-rw-k{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:600;color:var(--muted);margin-right:2px}
.aid-subjrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:-2px 0 2px}
.aid-subjopts{display:grid;gap:6px}
.aid-subjopts:empty{display:none}
.aid-subjopt{display:grid;gap:2px;text-align:left;padding:8px 10px;border:1px solid var(--line);border-radius:var(--rad-in);background:var(--panel);color:var(--ink);font:inherit;cursor:pointer}
.aid-subjopt span{font-size:12.5px;color:var(--muted)}
.aid-subjopt:hover{border-color:var(--s-line-hover)}
.aid-subjopt.on{border-color:var(--accent);background:var(--accent-soft)}
.aid-chk-list{margin:0;padding:0;list-style:none;display:grid;gap:6px}
.aid-chk-list li{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;padding:6px 0;border-top:1px solid var(--line)}
.aid-chk-list li:first-child{border-top:0}
.aid-chk-list li>span{min-width:0;overflow-wrap:anywhere;line-height:1.5}
.aid-chk-list .btn{flex:none}
.sheet-card.aid-checksheet .sheet-body,.sheet-card.aid-picsheet .sheet-body{display:grid;gap:12px}
.pg-block.aid-flash{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:1180px){ .aid-cols{grid-template-columns:minmax(0,1fr)} .aid-side{position:static} }
@media (max-width:640px){
  .aid-subj{grid-template-columns:minmax(0,1fr)}
  .aid-linkbox,.aid-pick-bar{grid-template-columns:minmax(0,1fr)}
  .aid-out{padding:10px 4px}
  .aid-draft{padding:14px}
  .aid-empty{margin-top:12px;padding:16px;flex-direction:column}
  .aid-chip-s{max-width:70vw}
  .aid-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* ==============================================================================================================
   v3.1186.0 (16 October 2026) — THE EVENT EDITOR (public/apps/events.js openEventWindow) AND THE EVENTS WINDOWS
   Darren, on the old New event window: "This needs a lot of work while you're at it." It used a `form-grid` class that had no
   CSS, so every label and box ran on in one line. Now: near-full-screen, the sections down the side, labels ABOVE boxes in the
   app's own .fldgrid/.fld grid (one column on a phone), a live public-page preview on the right, Save always in reach.
   Theme tokens only.
   ============================================================================================================== */
.sheet-card.sheet-evedit{width:min(97vw,1720px);max-width:none;height:calc(100vh - 36px);display:flex;flex-direction:column;padding:16px 18px 0}
.sheet-ov:has(.sheet-evedit){padding:18px 12px}
.sheet-evedit>.sheet-body{flex:1 1 auto;min-height:0;margin-top:6px;overflow:hidden}
.eved{display:grid;grid-template-columns:210px minmax(0,1fr) minmax(360px,30%);grid-template-rows:minmax(0,1fr) auto;height:100%;column-gap:18px}
.eved-nav{grid-row:1;display:flex;flex-direction:column;gap:4px;overflow:auto;padding:4px 0}
.eved-tab{display:flex;align-items:center;gap:10px;text-align:left;background:none;border:1px solid transparent;border-radius:var(--r);padding:10px 12px;font:inherit;color:var(--ink);cursor:pointer}
.eved-tab:hover{background:var(--panel-2)}
.eved-tab.on{background:var(--s-accent-soft);border-color:var(--line);color:var(--blue-ink);font-weight:600}
.eved-n{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--panel-2);border:1px solid var(--line);font-size:var(--fs-xs);flex:none}
.eved-tab.on .eved-n{background:var(--blue);border-color:var(--blue);color:var(--panel)}
.eved-narrow{display:none}
.eved-form{grid-row:1;overflow:auto;overscroll-behavior:contain;min-height:0;padding:4px 6px 24px 2px}
.eved-sec{max-width:980px}
.eved-h{margin:4px 0 4px;font-size:20px}
.eved-sec>.hint.expl{margin:0 0 12px}
.eved .fldgrid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px 16px;margin:12px 0}
.eved .fldgrid.eved-3{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.eved .fld{min-width:0;align-content:start}
.eved .fld>span{color:var(--muted)}
.eved .fld textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r,10px);font:inherit;background:var(--panel);color:var(--ink);resize:vertical;box-sizing:border-box}
.eved .fld input[type=file]{min-height:0;padding:8px;border-style:dashed}
.eved .fld small{color:var(--muted)}
.eved-wide{grid-column:1/-1}
.eved .fld.eved-wide{margin:12px 0}
.eved-check{display:inline-flex;align-items:center;gap:8px;font-weight:400;min-height:44px;cursor:pointer}
.eved-check input{width:18px;height:18px;margin:0;min-height:0}
.eved-inline{display:flex;flex-wrap:wrap;gap:4px 18px;align-items:center}
.eved-sub,.eved-subh{display:block;font-size:var(--fs-sm);font-weight:600;color:var(--muted);margin:6px 0}
.eved-subh{font-size:15px;color:var(--ink);margin-top:18px}
.eved-card{border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;margin:10px 0;background:var(--panel-2)}
.eved-card .fldgrid{margin:0}
.eved-locked{opacity:.8}
.eved-rowacts{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}
.eved-rowacts .btn:last-child{margin-left:auto}
.eved-chips{display:flex;flex-wrap:wrap;gap:6px}
.eved-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:6px 12px;background:var(--panel);cursor:pointer;font-weight:400}
.eved-chip input{width:16px;height:16px;min-height:0;margin:0}
.eved-chip:has(input:checked){border-color:var(--blue);background:var(--s-accent-soft);color:var(--blue-ink)}
.eved-fmts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.eved-fmt{display:block;cursor:pointer}
.eved-fmt input{position:absolute;opacity:0;width:1px;height:1px}
.eved-fmt-b{display:flex;flex-direction:column;gap:4px;height:100%;box-sizing:border-box;border:1.5px solid var(--line);border-radius:var(--r);padding:12px 14px;background:var(--panel)}
.eved-fmt-b small{color:var(--muted);font-weight:400;line-height:1.4}
.eved-fmt input:checked+.eved-fmt-b{border-color:var(--blue);background:var(--s-accent-soft)}
.eved-fmt input:focus-visible+.eved-fmt-b{outline:2px solid var(--blue);outline-offset:2px}
.eved-rte-bar{display:flex;flex-wrap:wrap;gap:4px;padding:6px;border:1px solid var(--line);border-bottom:0;border-radius:var(--r) var(--r) 0 0;background:var(--panel-2)}
.eved-rb{min-width:38px;height:34px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-size:var(--fs-sm);cursor:pointer}
.eved-rb:hover{border-color:var(--blue);color:var(--blue-ink)}
.eved-rte{min-height:220px;max-height:460px;overflow:auto;padding:12px 14px;border:1px solid var(--line);border-radius:0 0 var(--r) var(--r);background:var(--panel);color:var(--ink);line-height:1.6;outline:none}
.eved-rte:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--s-accent-soft)}
.eved-rte:empty::before{content:"Describe the event: what people will learn, who it is for, the agenda…";color:var(--muted)}
.eved-rte img{max-width:100%;height:auto;border-radius:8px}
.eved-rte h2{font-size:20px;margin:12px 0 6px}
.eved-rte h3{font-size:var(--fs-lg);margin:10px 0 4px}
.eved-rte blockquote{margin:8px 0;padding:6px 12px;border-left:3px solid var(--blue);background:var(--panel-2)}
.eved-cover{display:flex;align-items:center;gap:10px;min-height:44px}
.eved-cover img{width:180px;aspect-ratio:2/1;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.eved-gallery{display:flex;flex-wrap:wrap;gap:8px;min-height:44px;align-items:center}
.eved-gthumb{position:relative;display:inline-block}
.eved-gthumb img{width:96px;height:72px;object-fit:cover;border-radius:8px;border:1px solid var(--line);display:block}
.eved-gx{position:absolute;top:-8px;right:-8px;width:24px;height:24px;border-radius:50%;border:1px solid var(--line);background:var(--panel);color:var(--ink);cursor:pointer;line-height:1;padding:0}
.eved-merge{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0 4px}
.eved-merge .eved-sub{margin:0 6px 0 0}
.eved-zoom p{margin:4px 0}
.eved-prev{grid-row:1;display:flex;flex-direction:column;min-height:0;border:1px solid var(--line);border-radius:var(--r);background:var(--panel-2);overflow:hidden}
.eved-prev-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line);background:var(--panel)}
.eved-prev-sw{display:inline-flex;gap:4px}
.eved-prev-frame{flex:1 1 auto;min-height:0;display:flex;justify-content:center;overflow:hidden}
.eved-frame{width:100%;height:100%;border:0;background:var(--panel)}
.eved-prev.eved-phone .eved-frame{width:390px;max-width:100%;border-left:1px solid var(--line);border-right:1px solid var(--line)}
.eved-foot{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 0 14px;border-top:1px solid var(--line);background:var(--panel)}
.eved-foot-r{margin-left:auto}
@media (max-width:1180px){
  .eved{grid-template-columns:190px minmax(0,1fr) minmax(300px,36%)}
}
@media (max-width:900px){
  .sheet-card.sheet-evedit{width:100%;height:100vh;height:100dvh;padding:12px 12px 0;border-radius:0}
  .sheet-ov:has(.sheet-evedit){padding:0}
  .eved{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}
  .eved-nav{grid-row:1;flex-direction:row;overflow-x:auto;gap:6px;padding:2px 0 8px;border-bottom:1px solid var(--line);scrollbar-width:none}
  .eved-tab{flex:none;padding:8px 10px;white-space:nowrap}
  .eved-narrow{display:flex}
  .eved-form{grid-row:2;padding-top:8px}
  .eved-prev{display:none;grid-row:2}
  .eved.eved-showprev .eved-prev{display:flex}
  .eved.eved-showprev .eved-form{display:none}
  .eved-foot{grid-row:3}
  .eved-foot-r{display:none}
  .eved .fldgrid{grid-template-columns:minmax(0,1fr)}
}

/* ---- The other Events windows (ticket type, breakout, discount code, comps, roles, API key, webhook) used the same empty
   `form-grid` class: labels now sit above their boxes in a two-up grid that stacks on a phone. */
.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px 16px;align-items:start}
.form-grid>label,.form-grid>div>label:not(.row){display:flex;flex-direction:column;gap:5px;font-size:var(--fs-sm);font-weight:600;color:var(--muted);min-width:0}
.form-grid>label>input,.form-grid>label>select,.form-grid>label>textarea{font-size:15px;font-weight:400;color:var(--ink);width:100%;box-sizing:border-box}
.form-grid>label.row{flex-direction:row;align-items:center;gap:8px;font-weight:400;color:var(--ink);font-size:15px}
.form-grid>label.row>input{width:auto}
.form-grid>.span2,.form-grid>label.span2{grid-column:1/-1}
@media (max-width:640px){ .form-grid{grid-template-columns:minmax(0,1fr)} }

/* v3.1186.0 — Member events on the member's own screen (public/app.js edgeMemberEvents) and their booking window. */
.mev-list{display:grid;gap:12px}
.mev-card{display:grid;grid-template-columns:160px minmax(0,1fr) auto;gap:14px;align-items:center;border:1px solid var(--line);border-radius:var(--r);padding:12px;background:var(--panel)}
.mev-img{width:160px;height:96px;object-fit:cover;border-radius:8px;background:var(--panel-2);display:block}
.mev-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.mev-when{font-size:var(--fs-sm);font-weight:600;color:var(--accent-ink)}
.mev-title{font-size:var(--fs-lg)}
.mev-sum{color:var(--ink)}
.mev-meta{font-size:var(--fs-sm);color:var(--muted)}
.mev-tt{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.mev-tt .hint,.mev-price{display:block}
.mev-price{font-weight:600}
.mev-fs{border:1px solid var(--line);border-radius:var(--r);padding:10px 12px;margin:10px 0}
.mev-fs legend{font-weight:600;padding:0 4px}
.mev-check{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.mev-total{font-weight:600}
.mev-about{margin:0 0 10px}
.mev-desc img{max-width:100%;height:auto}
@media (max-width:640px){
  .mev-card{grid-template-columns:minmax(0,1fr)}
  .mev-img{width:100%;height:auto;aspect-ratio:2/1}
}
/* v3.1186.0 — a tick box inside an editor field is a tick box, not a 44px text box (the .fld rule sizes every input). */
.eved .eved-check input[type=checkbox],.eved .eved-chip input[type=checkbox],.mev-check input[type=checkbox]{width:18px;height:18px;min-height:0;padding:0;margin:0;flex:none}
.eved .fldgrid>.fld.eved-wide{margin:0}
/* v3.1186.0 — the switch-over from Squarespace (Set-up → Customers and contacts → Squarespace), the plain-HTML form code,
   and the "Draft a course with AI" window. Theme colours only. */
.dir-sqswitch-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.dir-sqswitch h4{margin:16px 0 4px}
.dir-sqsubs-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;margin:8px 0}
.dir-sqsubs-row label{display:flex;flex-direction:column;gap:4px;min-width:0;max-width:100%}
.dir-sqsubs-row select,.dir-sqsubs-row input[type=file]{max-width:100%}
.dir-sqsubs-row .save-status{flex:1 1 240px;min-width:0}
.dir-sqsubs-csv{margin-top:8px}
.dir-sqsubs-csv summary{cursor:pointer;color:var(--accent-ink)}   /* v3.1187 — the -ink token: --accent itself is 2.8:1 on the dark panel */
.wf-plain{max-height:320px;overflow:auto;white-space:pre;font-size:var(--fs-xs)}
.acad-ai-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.acad-ai-grid label{display:flex;flex-direction:column;gap:4px;min-width:0}
.acad-ai-grid .wide{grid-column:1 / -1}
.acad-ai-grid textarea,.acad-ai-grid input,.acad-ai-grid select{width:100%;box-sizing:border-box}
@media (max-width:640px){.acad-ai-grid{grid-template-columns:minmax(0,1fr)}}
/* v3.1186.0 — a form editor field sits UNDER its words, full width (it sat beside them, so a long box was cut off). */
.wf-grid > label:not(.edge-check){display:flex;flex-direction:column;gap:4px;min-width:0}
.wf-grid > label:not(.edge-check) > input,.wf-grid > label:not(.edge-check) > select,.wf-grid > label:not(.edge-check) > textarea{width:100%;max-width:100%;box-sizing:border-box}
.acad-ai-grid label.acd-chk{flex-direction:row;align-items:center;gap:8px;align-self:end;padding-bottom:10px}
.acad-ai-grid label.acd-chk input{width:auto}

/* v3.1187.0 — Marketing → Member announcements: who sees it (all members / chosen tiers), "Also email it", a row that opens. */
.edge-form .mktann-aud{flex:1 1 100%;border:1px solid var(--line);border-radius:var(--rad-sm,8px);padding:8px 12px 10px;margin:0;display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;min-width:0}
.mktann-aud legend{font-weight:600;padding:0 4px}
.edge-form .mktann-aud label,.edge-form .mktann-email{flex:none;display:inline-flex;flex-direction:row;align-items:center;gap:8px;font-weight:400}
.edge-form .mktann-email{flex:1 1 100%}
.mktann-tiers{display:inline-flex;flex-wrap:wrap;gap:6px 14px}
.mktann-aud input[type=radio],.mktann-aud input[type=checkbox],.mktann-email input[type=checkbox]{width:18px;height:18px;min-height:0;padding:0;margin:0;flex:none}
.mktann-previmg{max-width:220px;max-height:140px;border-radius:8px;border:1px solid var(--line)}
.mktann-table tr[data-edge-ann-row]{cursor:pointer}
.mktann-table tr[data-edge-ann-row]:hover,.mktann-table tr[data-edge-ann-row]:focus-visible{background:var(--tint)}
.mktann-acts{white-space:nowrap}
/* v3.1192.0 (17 October 2026) — "In the mobile app": its own boxed section like "Who sees it", a tick, then the chip and the
   pin side by side and the app's words at full width (stacking on a phone). The counts under the title and the words. */
.edge-form .mktann-app{flex:1 1 100%;border:1px solid var(--line);border-radius:var(--rad-sm,8px);padding:10px 14px 12px;margin:0;min-width:0;display:flex;flex-direction:column;gap:10px}
.mktann-app legend{font-weight:600;padding:0 4px}
.edge-form .mktann-aud{flex-direction:column;align-items:flex-start;gap:10px}
.mktann-tierrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;min-width:0}
.mktann-appgrid{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:end}
.mktann-appgrid label.wide{flex:1 1 100%}
.mktann-appgrid textarea{width:100%;box-sizing:border-box;resize:vertical}
.edge-form label.mktann-tick{flex:none;display:inline-flex;flex-direction:row;align-items:center;gap:8px;font-weight:400}
.mktann-appgrid label.mktann-tick{padding-bottom:10px}
.mktann-tick input[type=checkbox],.mktann-aud input[type=radio]{width:18px;height:18px;min-height:0;padding:0;margin:0;flex:none}
.mktann-app .hint{margin:0}
.mktann-count{font-weight:400}
.mktann-count.bad{color:var(--danger)}
/* With the "In the app" column the row no longer fits at 1440px with the sidebar open, so the title and "In the app" may wrap
   (the three presses stay on one line) rather than the presses running off the side of the table. */
.mktann-table td:first-child,.mktann-table td.mktann-appcell{white-space:normal}
.mktann-table td:first-child{min-width:150px}
.mktann-table td.mktann-appcell{min-width:110px}
.mktann-mlabel{display:none}
@media (max-width:700px){ .mktann-mlabel{display:inline;color:var(--muted)} }
/* On a phone each notice is a card: its title, who sees it and when, then its buttons — no sideways scroll. */
@media (max-width:700px){
  .mktann-table thead{display:none}
  .mktann-table,.mktann-table tbody,.mktann-table tr,.mktann-table td{display:block;width:100%}
  .mktann-table tr[data-edge-ann-row]{padding:10px 0;border-top:1px solid var(--line)}
  .mktann-table td{padding:2px 0;border:0}
  .mktann-table td:first-child{font-weight:600}
  .mktann-acts{white-space:normal;padding-top:6px}
  .mktann-acts .btn{margin:4px 4px 0 0}
}
/* v3.1189.0 — Events → an event → Waitlist: the queue number column, the presses kept together on the right (they wrap under
   each other on a phone rather than run off the table), and the entry window's history. Theme tokens only. */
.ev-wtbl .ev-wpos{width:44px;font-variant-numeric:tabular-nums}
.ev-wtbl .ev-wacts{text-align:right}
.ev-wtbl .ev-wacts .btn{margin:2px 0 2px var(--sp-1)}
.ev-whist{margin:0;padding-left:1.2em;display:grid;gap:var(--sp-2)}
.ev-whist li{line-height:1.45}
/* On a phone the waitlist and the attendee list become stacked cards (one row, one card), so nothing runs off the side. */
@media (max-width:640px){
  .ev-wtbl thead,.ev-atbl thead{display:none}
  .ev-wtbl tr,.ev-atbl tr{display:grid;grid-template-columns:36px minmax(0,1fr);gap:4px var(--sp-2);padding:var(--sp-2) var(--sp-3);border-bottom:1px solid var(--line)}
  .ev-atbl tr{grid-template-columns:minmax(0,1fr)}
  .ev-wtbl td,.ev-atbl td{display:block;padding:0;border:0;white-space:normal;overflow-wrap:anywhere}
  .ev-wtbl .ev-wpos{width:auto;grid-row:1 / span 3}
  .ev-wtbl .ev-wacts{text-align:left;display:flex;gap:var(--sp-1);flex-wrap:wrap}
  .ev-wtbl .ev-wacts .btn{margin:2px 0}
}
.ev-attform{gap:var(--sp-1);flex:1 1 240px;max-width:380px;min-width:0;flex-wrap:nowrap}
.ev-attform input{flex:1 1 auto;width:0;min-width:0}

/* ---- v3.1189.0 — "Get the code": a page, funnel or event on our own website (public/embedcode.js) ----
   Darren, 17 Oct: "…will be able to be used in a wrapper on Squarespace as well." Options and the code on the left, a live
   preview inside a mock website on the right; one column on a phone. Theme tokens only. */
.emb-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:24px;align-items:start}
.emb-left{display:grid;gap:18px;min-width:0}
.emb-sec{border:1px solid var(--line);border-radius:12px;padding:16px 18px;background:var(--panel)}
.emb-sec h4{margin:0 0 10px;font-size:15px}
.emb .emb-looks{margin:0;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.emb-code{max-height:220px;overflow:auto;white-space:pre-wrap;word-break:break-all;font-size:12.5px;margin:8px 0 0}
.emb-acts{gap:10px;align-items:center;margin-top:10px;flex-wrap:wrap}
.emb-acts .save-status{margin-top:0}
.emb-more summary{cursor:pointer;font-weight:600}
.emb-more[open] summary{margin-bottom:10px}
.emb-more .fld{margin-top:10px}
.emb-more pre{margin:0;white-space:pre-wrap;word-break:break-all;font-size:12.5px}
.emb-sites{margin:0}
.emb-right{position:sticky;top:0;min-width:0}
.emb-prevhead{display:flex;gap:10px;align-items:baseline;margin:0 0 8px}
.emb-site{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel);box-shadow:var(--sh-1)}
.emb-site-bar{display:flex;align-items:center;gap:6px;padding:8px 12px;background:var(--panel-2);border-bottom:1px solid var(--line)}
.emb-site-bar span{width:9px;height:9px;border-radius:50%;background:var(--line)}
.emb-site-bar em{font-style:normal;font-size:var(--fs-xs);color:var(--muted);margin-left:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.emb-site-nav{display:flex;gap:14px;padding:12px 18px;border-bottom:1px solid var(--line)}
.emb-site-nav i{display:block;height:8px;width:56px;border-radius:4px;background:var(--panel-2)}
.emb-site-nav i:first-child{width:90px;background:var(--line)}
.emb-site-body{padding:14px 18px;background:var(--panel-2)}
.emb-site-body iframe{display:block;width:100%;height:620px;border:0;background:transparent;color-scheme:normal}
.emb-empty{padding:24px;border:1px dashed var(--line);border-radius:12px;text-align:center}
.emb-skel{padding:24px}
@media (max-width:900px){.emb-grid{grid-template-columns:minmax(0,1fr)}.emb-right{position:static}.emb-site-body iframe{height:520px}}
/* v3.1189.0 — Pages and funnels → On your website: the list of sites, and how to put a page on Squarespace. */
.pg-site-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;align-items:start}
.pg-site-card{border:1px solid var(--line);border-radius:12px;padding:18px 20px;background:var(--panel)}
.pg-site-card h3{margin:0 0 6px;font-size:16px}
.pg-site-row{gap:10px;align-items:flex-end;flex-wrap:nowrap;margin-top:12px}
.pg-site-row .fld{flex:1 1 auto !important;min-width:0}
.pg-site-row .btn{margin-bottom:2px}
.pg-site-empty{border:1px dashed var(--line);border-radius:10px;padding:16px;margin-top:12px;text-align:center}
.pg-site-empty p{margin:6px 0 0}
.pg-site-steps{margin:8px 0 12px;padding-left:20px;display:grid;gap:6px}
@media (max-width:900px){.pg-site-grid{grid-template-columns:minmax(0,1fr)}}
/* ---- v3.1190.0 (17 October 2026) — NEWSLETTERS AS CODE, THE CODE BLOCK, AND STOCK PHOTOS FROM BOTH LIBRARIES ------------
   Darren: "code-friendly blocks", "a format so that Claude or ChatGPT can generate full code … I would still rather the
   newsletter be editable", and "search both [Pexels and Unsplash]". public/apps/newsletters.js (codeBoxHtml, openCodeBlock,
   openCodeWindow) and public/aidraftui.js (the stock picker). The windows are the near-full-screen workspace (`nl-ws`): code on
   the left, the result on the right, two tabs under 900px. Theme tokens only. */
.nlc-ws .nlc-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
.nlc-left{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding-right:0}
.nlc-left>.nlc-tabs{flex:0 0 auto;position:static;padding:2px 0 0}
.nlc-pane{display:flex;flex-direction:column;gap:12px;flex:1 1 auto;min-height:0;overflow:auto;padding:2px 4px 2px 2px;overscroll-behavior:contain}
.nlc-pane[hidden]{display:none}
.nlc-pane>*{flex-shrink:0}
.nlc-pane>.nlc-ed.grow,.nlc-left>.nlc-ed.grow{flex:1 1 auto}
.nlc-lead{display:flex;gap:12px;align-items:flex-start}
.nlc-lead>div{display:grid;gap:2px;min-width:0;flex:1 1 auto}
.nlc-ico{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-ink);flex:none}
.nlc-ico svg,.nlc-empty .es-ico svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nlc-kind{flex:none;align-self:center}
/* THE CODE BOX: line numbers in a gutter that scrolls with the words, monospace, no wrapping (so the numbers line up). */
.nlc-ed{position:relative;border:1px solid var(--line);border-radius:var(--rad-in);background:var(--panel);overflow:hidden;font:13px/20px var(--font-mono);min-height:120px}
.nlc-ed:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--s-focus)}
.nlc-gut{position:absolute;left:0;top:0;width:3.6em;margin:0;padding:10px 8px 10px 0;box-sizing:border-box;text-align:right;color:var(--muted);background:var(--s-sunk,var(--tint));border-right:1px solid var(--line);font:inherit;white-space:pre;user-select:none;pointer-events:none;min-height:100%}
.nlc-ta{display:block;box-sizing:border-box;width:calc(100% - 3.6em);margin:0 0 0 3.6em;padding:10px 12px;border:0;outline:0;resize:vertical;font:inherit;color:var(--ink);background:transparent;white-space:pre;overflow:auto;tab-size:2;min-height:120px;border-radius:0}
.nlc-ed.grow{min-height:280px}
.nlc-ed.grow .nlc-ta{position:absolute;top:0;bottom:0;left:3.6em;right:0;width:auto;height:auto;margin:0;resize:none}
.nlc-ta[readonly]{color:var(--ink);background:var(--s-sunk,var(--tint))}
.nlc-wrap>.nlc-tabsay,.nlc-foot .nlc-tabsay{font-size:var(--fs-xs)}
.nlc-opts{display:grid;gap:10px}
.nlc-foot{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding-top:2px}
.nlc-say{margin:0;min-height:1.3em}
.nlc-steps{margin:0}
/* The right-hand side: every block with its line, or the email, or the prompt. */
.nlc-right{gap:10px}
.nlc-rightin{display:flex;flex-direction:column;gap:10px;flex:1 1 auto;min-height:0}
.nlc-out{flex:1 1 auto;min-height:0;overflow:auto;padding:2px;overscroll-behavior:contain}
.nlc-out>.aid-banner,.nlc-out>.aid-subj{margin-bottom:12px}
.nlc-items{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.nlc-item{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:var(--rad-in)}
.nlc-item.bad{border-color:var(--s-bad);background:var(--s-bad-soft)}
.nlc-item>div{display:grid;gap:4px;min-width:0}
.nlc-line{font:inherit;font-size:var(--fs-xs);font-weight:700;line-height:1.4;padding:3px 9px;border-radius:999px;border:1px solid var(--line);background:var(--s-sunk,var(--tint));color:var(--ink);cursor:pointer;white-space:nowrap;font-variant-numeric:tabular-nums}
.nlc-line:hover{border-color:var(--accent);color:var(--accent-ink)}
.nlc-line.none{cursor:default;color:var(--muted)}
.nlc-type{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.nlc-sum{overflow-wrap:anywhere;line-height:1.45}
.nlc-err{color:var(--s-bad);font-size:var(--fs-sm);font-weight:600;line-height:1.45}
.nlc-note{color:var(--muted);font-size:12.5px;line-height:1.45}
.nlc-prompt{flex:1 1 auto;min-height:0;overflow:auto;margin:0;padding:14px 16px;background:var(--panel);border:1px solid var(--line);border-radius:var(--rad-in);white-space:pre-wrap;overflow-wrap:anywhere;font:12.5px/1.55 var(--font-mono);color:var(--ink)}
.nlc-pv{min-height:240px}
.nlc-ws iframe{border:0;display:block;transform-origin:0 0;background:var(--panel)}
.nlc-pv.fit{flex:0 1 auto;min-height:0;max-height:62%}
.nlc-ta:focus,.nlc-ta:focus-visible{box-shadow:none;outline:0}
.nlc-pane .fld>.nl-seg{justify-self:start}
.nlc-report{display:grid;gap:10px;flex:0 0 auto;max-height:42%;overflow:auto}
.nlc-report.small{max-height:none}
.nlc-report:empty{display:none}
.nlc-rep{display:grid;gap:6px}
.nlc-rep-h{font-size:var(--fs-xs);font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.nlc-list{margin:0;padding-left:18px;display:grid;gap:6px;font-size:var(--fs-sm);line-height:1.45}
.nlc-list li>span,.nlc-list li>b{display:block}
.nlc-list li>b{font-weight:600}
.nlc-list.quiet{color:var(--muted)}
.nlc-allgood{margin:0}
.nlc-empty{margin-top:5vh}
.nlc-skel{margin-top:10px}
/* Stock photos: both libraries together, a chip for each, and where every photo is from. */
.aid-sfil{display:flex;gap:6px;flex-wrap:wrap}
.aid-thumb .aid-thumb-pic{position:relative;display:block;overflow:hidden;border-radius:6px;white-space:normal}
.aid-thumb .aid-src{position:absolute;left:6px;top:6px;font-size:10.5px;font-weight:700;line-height:1.6;padding:0 7px;border-radius:999px;background:var(--panel);color:var(--ink);box-shadow:var(--sh-1);white-space:nowrap}
.aid-more{display:flex;justify-content:center}
.aid-snote{margin:0}
@media (max-width:900px){
  .nlc-ws .nlc-grid{grid-template-columns:minmax(0,1fr)}
  .nlc-ed.grow{min-height:320px}
}

/* ---- v3.1191.0 (17 October 2026) — Newsletters → Connect Claude, and "Made by Claude" in the list ---------------------- */
.nlx-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px;align-items:center}
.nlx-hero h3{margin:2px 0 8px;font-size:20px;line-height:1.3;color:var(--ink)}
.nlx-hero .hint{margin:0;line-height:1.55}
.nlx-kicker{margin:0;font-size:var(--fs-xs);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--blue-ink)}
.nlx-steps{margin:0;padding:14px 16px 14px 34px;display:grid;gap:8px;background:var(--s-sunk,var(--tint));border-radius:var(--rad-in);color:var(--muted);font-size:14px;line-height:1.5}
.nlx-steps b{color:var(--ink)}
.nlx-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px 20px;margin:4px 0}
.nlx-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.nlx-label{font-size:var(--fs-sm);font-weight:600;color:var(--muted)}
.nlx-val{font-size:15px;color:var(--ink)}
.nlx-copyrow{display:flex;align-items:center;gap:8px;min-width:0}
.nlx-copyrow code{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 10px;border:1px solid var(--line);border-radius:var(--rad-in);background:var(--s-sunk,var(--tint));color:var(--ink);font-size:var(--fs-sm)}
.nlx-copyrow code.nlx-secret{white-space:normal;word-break:break-all;user-select:all}
.nlx-note{margin:14px 0 0}
.nlx-empty{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:22px;margin-top:12px;border:1px dashed var(--line);border-radius:var(--rad-in)}
.nlx-empty-h{margin:0;font-size:16px;font-weight:600;color:var(--ink)}
.nlx-empty .hint{margin:0 0 6px}
.nlx-state h3{margin-top:0}
.nlx-name{font-weight:600}
/* 3.1217.0 — Newsletters > Replies (public/apps/newsletters.js repliesHtml) */
.nlr-on{display:flex;align-items:center;gap:6px;font-weight:600;color:var(--ink);padding-bottom:8px}
.nlr-fld{margin:0;min-width:180px}
.nlr-who{display:block;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.nlr-sub{display:block;font-size:var(--fs-xs);margin-top:2px;overflow-wrap:anywhere}
.nlr-undone td{opacity:.6}
.nlr-dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;margin:12px 0}
.nlr-dl dt{color:var(--muted)}
.nlr-dl dd{margin:0;overflow-wrap:anywhere}
.nlr-said{margin:12px 0;padding:10px 14px;border-left:3px solid var(--line);color:var(--ink);white-space:normal}
@media (max-width:640px){.nlr-tbl{table-layout:fixed;width:100%;min-width:0}.nlr-tbl th,.nlr-tbl td{white-space:normal;overflow-wrap:anywhere}.nlr-tbl th:nth-child(3),.nlr-tbl td:nth-child(3),.nlr-tbl th:nth-child(5),.nlr-tbl td:nth-child(5){display:none}.nlr-fld{min-width:0;flex:1 1 100%}.nlr-fld select{width:100%}.nlr-tbl .pill{white-space:normal;max-width:100%}}
.nlx-claude{margin-left:8px;vertical-align:middle}
.nlx-by{display:block;font-size:var(--fs-xs);margin-top:2px}
.nlx-form{margin-top:4px}
.nlx-scopes{display:grid;gap:8px}
.nlx-scope,.form-grid>div.nlx-scopes>label.nlx-scope{display:flex;flex-direction:row;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--rad-in);cursor:pointer;font-weight:400;color:var(--ink)}
.nlx-scope:has(input:checked){border-color:var(--blue-ink);background:var(--s-accent-soft)}
.nlx-scope input{margin-top:3px;flex:none}
.nlx-scope>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.nlx-scope b{font-size:var(--fs-md)}
.nlx-scope .hint{font-size:var(--fs-sm)}
.nlx-foot{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.nlx-once{display:grid;gap:14px;padding:16px;border:1px solid var(--line);border-radius:var(--rad-in);background:var(--s-sunk,var(--tint));margin-bottom:14px}
.nlx-once-h{margin:0;font-weight:700;color:var(--ink)}
.nlx-config{margin:0;padding:12px 14px;max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:var(--rad-in);background:var(--panel);color:var(--ink);font-size:12.5px;line-height:1.5;white-space:pre;user-select:all}
@media (max-width:900px){
  .nlx-hero{grid-template-columns:minmax(0,1fr);gap:16px}
}
@media (max-width:560px){
  .nlx-keys th:nth-child(2),.nlx-keys td:nth-child(2),.nlx-keys th:nth-child(3),.nlx-keys td:nth-child(3),.nlx-keys th:nth-child(4),.nlx-keys td:nth-child(4){display:none}
  .nlx-keys{width:100%}
  .nlx-keys th,.nlx-keys td{white-space:normal;padding-left:8px;padding-right:8px}
  .nlx-keys td:first-child{overflow-wrap:anywhere}
  .nlx-config{font-size:11.5px}
}
/* ---- v3.1192.0 (17 October 2026) — Connect Claude: Claude on the web (a custom connector, OAuth sign-in) and the connections --- */
.nlx-web-head{display:flex;align-items:flex-start;gap:var(--sp-4)}
.nlx-web-head h3{margin:2px 0 6px;font-size:18px;line-height:1.3;color:var(--ink)}
.nlx-web-head .hint{margin:0}
.nlx-howto{list-style:none;margin:var(--sp-4) 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-3)}
.nlx-howto>li{display:flex;gap:var(--sp-3);align-items:flex-start;padding:var(--sp-4);border:1px solid var(--line);border-radius:var(--rad-in);background:var(--s-raised,var(--panel));min-width:0}
.nlx-howto>li>div{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.nlx-howto b{color:var(--ink);font-size:var(--fs-md);line-height:1.4}
.nlx-howto .hint{margin:0;line-height:1.5}
.nlx-howto .nlx-copyrow{margin-top:4px}
.nlx-num{flex:none;width:28px;height:28px;border-radius:var(--rad-pill);display:inline-flex;align-items:center;justify-content:center;background:var(--s-accent-soft);color:var(--blue-ink);font-weight:700;font-size:var(--fs-sm)}
.nlx-sub{margin:6px 0 0}
@media (max-width:900px){ .nlx-howto{grid-template-columns:minmax(0,1fr)} }
@media (max-width:560px){
  .nlx-conns th:nth-child(2),.nlx-conns td:nth-child(2){display:table-cell}
  .nlx-howto>li{padding:var(--sp-3)}
}

/* v3.1191.0 (17 October 2026) — How the call went: only the stars earned, and folded to one line until Details is pressed. */
.cm-starsonly{color:var(--orange);letter-spacing:1px;font-size:15px;vertical-align:-1px}
.cm-check-more>summary{cursor:pointer;list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.cm-check-more>summary::-webkit-details-marker{display:none}
.cm-check-more>summary .cm-check-open{margin-left:auto;text-decoration:underline}
.cm-check-more[open]>summary .cm-check-open{text-decoration:none}
.cm-check-more[open]>summary{margin-bottom:6px}
.cm-check-words{margin:4px 0 6px}

/* ---- v3.1192.0 (17 October 2026, 0394) — A COURSE HAS MODULES ----------------------------------------------------------
   Darren chose "Build modules". The learner's lesson list groups lessons under a block per module (its number, its name,
   "2 of 5 done" and a thin bar); the course editor shows a heading row per module above its lessons. Theme tokens only. */
.acad-drawer-mods>summary{margin-bottom:10px}
.acad-mod{margin:0 0 10px}
.acad-mod-loose{margin-bottom:12px}
.acad-mod-h{display:grid;grid-template-columns:1fr auto;grid-template-areas:"no prog" "t t" "bar bar";gap:2px 10px;
  padding:9px 11px 8px;border:1px solid var(--line);border-radius:var(--r);background:var(--panel-2);margin:0 0 4px}
.acad-mod-no{grid-area:no;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.acad-mod-t{grid-area:t;font-weight:700;font-size:13.5px;line-height:1.3;color:var(--ink)}
.acad-mod-prog{grid-area:prog;font-size:11.5px;color:var(--muted);white-space:nowrap;justify-self:end}
.acad-mod-bar{grid-area:bar;display:block;height:4px;border-radius:999px;background:var(--line);overflow:hidden;margin-top:5px}
.acad-mod-bar>span{display:block;height:100%;background:var(--blue);border-radius:999px}
.acad-mod-here>.acad-mod-h{border-color:var(--blue)}
.acad-mod-done .acad-mod-prog{color:var(--blue-ink);font-weight:700}
.acad-mod-sum{margin:2px 2px 6px;font-size:var(--fs-xs);color:var(--muted);line-height:1.45}
.acad-mod .acad-lessons{padding-left:4px}
.acad-step-mod{color:var(--blue-ink)}

/* The editor. */
.acad-modbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin:20px 0 10px}
.acad-modbar-t{margin:0;font-size:var(--fs-md,14.5px);font-weight:800;color:var(--ink)}
.acad-modbar-txt{flex:1 1 420px;min-width:0}
.acad-modbar-txt .hint{margin:4px 0 0;max-width:64rem;line-height:1.5}
.acad-modbar-acts{flex:none}
.acad-modhint{display:flex;gap:12px 20px;align-items:center;justify-content:space-between;flex-wrap:wrap;
  padding:12px 16px;border:1px solid var(--line);border-left:3px solid var(--blue);background:var(--blue-lt);
  border-radius:var(--r);margin:0 0 12px;line-height:1.5}
.acad-modtable tr.acad-modrow>td{background:var(--panel-2);border-top:2px solid var(--line);padding:10px 12px}
.acad-modtable tr.acad-modrow:first-child>td{border-top:0}
.acad-modrow-in{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap}
.acad-modrow-no{flex:none;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--blue-ink);
  background:var(--blue-lt);border-radius:999px;padding:3px 10px}
.acad-modrow-tw{display:flex;flex-direction:column;min-width:0;flex:1 1 220px}
.acad-modrow-t{font-weight:800;font-size:var(--fs-md);color:var(--ink);line-height:1.3}
.acad-modrow-sum{line-height:1.4;margin-top:2px}
.acad-modrow-loose .acad-modrow-t{font-size:var(--fs-sm);color:var(--muted);font-weight:700}
.acad-modrow-n{flex:none}
.acad-modrow-acts{flex:none;display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-left:auto}
.acad-modrow-acts .acad-more-menu{position:absolute;right:0;z-index:5;background:var(--panel);border:1px solid var(--line);
  border-radius:var(--r);padding:6px;box-shadow:var(--sh-2,var(--shadow));flex-direction:column;align-items:stretch;min-width:220px}
.acad-modmv{min-width:32px;justify-content:center}
.acad-modadd>summary.btn{display:inline-flex;align-items:center;list-style:none}
.acad-modadd>summary.btn::-webkit-details-marker{display:none}
.acad-moddel{color:var(--danger)}
.acad-modtable tr.acad-modempty>td{padding:14px 16px;border-bottom:1px dashed var(--line)}
.acad-modempty-big{padding:22px;border:1.5px dashed var(--line);border-radius:var(--rad,14px);text-align:center;margin:8px 0;line-height:1.6}
.acad-moveto{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-xs);color:var(--muted)}
.acad-moveto select{font-size:var(--fs-xs);max-width:200px}
.acm-grid{display:grid;grid-template-columns:1fr;gap:16px}
.acm-grid label{display:flex;flex-direction:column;gap:6px;font-weight:700}
.acm-grid label .hint{display:block;font-weight:400;margin-top:-2px}
.acm-grid input,.acm-grid textarea{width:100%}
.acm-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:18px}

/* ---- v3.1210.0 (28 October 2026, 0479) — HEADINGS INSIDE A MODULE, AND THE WORD FOR A MODULE -------------------------------
   Darren: "just insert a new section heading, and then we insert more lessons underneath." In the Course builder a heading is a
   row among the lessons (drag handle, its title, Rename, Remove); on the learner's outline it is a small heading above the lessons
   it groups, never a tickable row. Theme tokens only. */
.acm-grid label.acad-check{flex-direction:row;align-items:center;gap:8px}
.acm-grid label.acad-check input{width:auto}
.acad-modword{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-xs);color:var(--muted);font-weight:700}
.acad-modword select{font-size:var(--fs-xs)}
.acad-modbar-acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
tr.acad-headrow>td{background:var(--blue-lt);border-top:1px solid var(--line)}
.acad-headrow-t{font-weight:800;color:var(--ink);font-size:var(--fs-sm)}
.acad-headrow-k{font-size:calc(var(--fs-xs) - 1px);font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--blue-ink);margin-left:6px}
.acad-lessons li.acad-sec{list-style:none;margin:10px 0 2px;padding:0 4px}
.acad-lessons li.acad-sec:first-child{margin-top:2px}
.acad-sec-t{display:block;font-size:var(--fs-xs);font-weight:800;color:var(--ink);letter-spacing:.01em;line-height:1.35;
  padding-bottom:4px;border-bottom:1px solid var(--line)}
.acad-step-sec{color:var(--muted)}
@media (max-width:640px){
  .acad-modbar-acts{width:100%}
  tr.acad-headrow>td[colspan]{min-width:0}
}
.acm-choice{border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.acm-choice legend{font-weight:700;padding:0 6px}
.acm-choice{min-width:0}
.acm-opt{display:flex;flex-direction:column;gap:8px}
.acm-opt>label{display:flex;align-items:flex-start;gap:10px;font-weight:600;cursor:pointer}
.acm-opt>label input{margin-top:3px;flex:none}
.acm-opt-t{display:flex;flex-direction:column;gap:2px}
.acm-opt-t .hint{font-weight:400}
.acm-opt>select{margin-left:26px;max-width:min(360px,calc(100% - 26px))}
.train-modnow{display:inline-block;margin-top:3px}
@media(max-width:760px){
  .acad-modrow-acts{margin-left:0;width:100%}
  .acad-modrow-tw{flex-basis:100%}
  /* On a phone the lesson table scrolls sideways (it is wide); the module heading and the empty-module line stay pinned
     to the visible width, so a module's name and its buttons are never cut off at the edge. */
  .acad-modrow-in,.acad-modtable tr.acad-modempty>td>.hint{position:sticky;left:12px;display:flex;box-sizing:border-box;
    max-width:calc(100vw - 136px);white-space:normal}
  .acad-modtable tr.acad-modempty>td>.hint{display:block}
  .acad-modrow-n{flex:1 1 100%}
}
/* ---- v3.1192.0 (17 October 2026) — PAGES AND FUNNELS: A COURSE OFFER CAN BE PAID, AND THE SALES TAB ------------------------
   Darren: "Not all courses are going to be free through the funnels. Some will require sign-up, cost, and payment." The offer
   window is near full screen: the form in sections on the left (labels above fields), the page's pay panel drawn live on the
   right, Save at the foot. One column under 900px. Theme tokens only. */
.of-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:24px;align-items:start}
.of-form{display:grid;gap:14px;min-width:0}
.of-sec{border:1px solid var(--line);border-radius:12px;padding:16px 18px;background:var(--panel);display:grid;gap:12px}
.of-sec h4{margin:0;font-size:15px}
.of-sec .fld{display:flex;flex-direction:column;gap:4px;width:100%;margin:0}
.of-sec .fld input,.of-sec .fld select,.of-sec .fld textarea{width:100%}
.of-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end}
.of-incgst{margin:0;min-height:38px;display:flex;align-items:center;font-size:20px;font-weight:700;color:var(--ink)}
.of-check{display:flex;gap:8px;align-items:center;font-size:var(--fs-md)}
.of-prev{position:sticky;top:0;display:grid;gap:8px}
.of-prev-sub{margin:0;font-size:var(--fs-xs);font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.of-prev-card{border:1px solid var(--line);border-radius:14px;padding:20px;background:var(--panel-2);display:grid;gap:8px;box-shadow:var(--sh-1)}
.of-prev-card p{margin:0}
.of-prev-h{font-size:var(--fs-lg);font-weight:700;color:var(--ink)}
.of-prev-price{display:flex;align-items:baseline;gap:8px}
.of-prev-price b{font-size:32px;line-height:1.1;color:var(--ink)}
.of-prev-price span{font-size:var(--fs-xs);font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.of-prev-gets{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 0;display:grid;gap:4px}
.of-prev-btn{display:block;text-align:center;background:var(--blue);color:var(--s-hero-ink);border-radius:10px;padding:12px 16px;font-weight:700;margin-top:6px}
.of-foot{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:var(--panel);border-top:1px solid var(--line);padding:12px 0 2px;margin-top:16px}
/* v3.1192.0 (17 October 2026) — THE OFFER WINDOW, NEAR FULL SCREEN. The card holds the viewport's height and the body scrolls
   inside it, so Save stays at the foot of the window (it was sticky inside a page-tall card, and the backdrop's padding let
   the form show through beneath it). Free / Paid are proper choices, with room under them. */
.sheet-card.sheet-offer{width:min(1400px,96vw);max-width:none;max-height:calc(100vh - 48px);display:flex;flex-direction:column}
.sheet-card.sheet-offer>.sheet-body{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1 1 auto;display:flex;flex-direction:column;padding-right:2px}
.sheet-card.sheet-offer>.sheet-body>.of-grid{flex:1 1 auto}
.sheet-card.sheet-offer>.sheet-body>.of-foot{position:sticky;bottom:0;z-index:1}
.sheet-ov:has(.sheet-offer){padding-top:24px;padding-bottom:24px}
.of-pricebox{display:grid;gap:14px}
.of-pricing{display:flex;gap:var(--sp-2);flex-wrap:wrap}
.of-pricing .chip{padding:8px 22px;font-size:var(--fs-md);font-weight:600}
.pg-sale-figs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.pg-sale-fig{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--panel);display:grid;gap:2px}
.pg-sale-fig b{font-size:22px;color:var(--ink)}
.pg-sale-fig span{font-size:var(--fs-xs);color:var(--muted)}
@media (max-width:640px){.sheet-card.sheet-offer{width:100%;max-height:100vh;min-height:100vh}.sheet-ov:has(.sheet-offer){padding:0}}
@media (max-width:900px){.of-grid{grid-template-columns:minmax(0,1fr)}.of-prev{position:static}.pg-sale-figs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.of-two{grid-template-columns:minmax(0,1fr)}}

/* ---- v3.1192.0 (17 October 2026) — SET-UP → HISTORY IMPORT (public/apps/histimport.js) ---------------------------------
   One card per source, two to a row on a desk and one on a phone. Theme tokens only, so both themes come from theme.css. */
.hi-intro{padding:var(--sp-5)}
.hi-intro-row{display:flex;flex-wrap:wrap;gap:var(--sp-5);align-items:center;justify-content:space-between}
.hi-figs{display:flex;gap:var(--sp-5);flex-wrap:wrap}
.hi-fig{display:flex;flex-direction:column;min-width:96px}
.hi-fig b{font-size:var(--fs-2xl);line-height:1.1;color:var(--s-ink);font-weight:700}
.hi-fig span{font-size:var(--fs-sm);color:var(--muted)}
.hi-rules{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-2) var(--sp-5)}
.hi-rules li{position:relative;padding-left:22px;font-size:var(--fs-sm);color:var(--s-ink-2)}
.hi-rules li::before{content:'';position:absolute;left:0;top:4px;width:12px;height:12px;border-radius:50%;background:var(--s-ok-soft);box-shadow:inset 0 0 0 3px var(--s-ok)}
.hi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4);margin-top:var(--sp-4)}
.hi-card{background:var(--s-panel);border:1px solid var(--s-line-2);border-radius:var(--rad);box-shadow:var(--sh-1);padding:var(--sp-5);display:flex;flex-direction:column;gap:var(--sp-3);min-width:0}
.hi-card-skel{min-height:220px}
.hi-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--sp-3)}
.hi-card-head h3{margin:0;font-size:var(--fs-lg)}
.hi-where{margin:2px 0 0}
.hi-what{margin:0;color:var(--s-ink-2);font-size:var(--fs-sm);line-height:1.5}
.hi-pill{display:inline-flex;align-items:center;white-space:nowrap;padding:3px 10px;border-radius:var(--rad-pill);font-size:var(--fs-xs);font-weight:600;background:var(--s-sunk);color:var(--s-muted)}
.hi-pill.ok{background:var(--s-ok-soft);color:var(--s-ok)}
.hi-pill.run{background:var(--s-accent-soft);color:var(--s-link)}
.hi-pill.warn{background:var(--s-warn-soft);color:var(--s-warn)}
.hi-pill.bad{background:var(--s-bad-soft);color:var(--s-bad)}
.hi-state{border:1px dashed var(--s-line);border-radius:var(--rad-in);padding:var(--sp-4);display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.hi-state p{margin:0}
.hi-state.bad{border-color:var(--s-bad)}
.hi-block{background:var(--s-sunk);border-radius:var(--rad-in);padding:var(--sp-3) var(--sp-4);display:flex;flex-direction:column;gap:var(--sp-2)}
.hi-block p{margin:0}
.hi-block>.btn{align-self:flex-start}
.hi-block-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--sp-2);flex-wrap:wrap}
.hi-block-head h4{margin:0;font-size:var(--fs-md)}
.hi-empty{display:flex;flex-direction:column;gap:4px}
.hi-empty p{margin:0}
.hi-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--sp-2)}
.hi-count{background:var(--s-panel);border:1px solid var(--s-line-2);border-radius:var(--rad-sm);padding:var(--sp-2) var(--sp-3);display:flex;flex-direction:column;min-width:0}
.hi-count b{font-size:var(--fs-xl);line-height:1.15;color:var(--s-ink)}
.hi-count span{font-size:var(--fs-xs);color:var(--muted);line-height:1.3}
.hi-count.warn b{color:var(--s-warn)}
.hi-block progress{width:100%;height:8px;accent-color:var(--accent)}
.hi-words{font-size:var(--fs-sm);color:var(--s-ink-2)}
.hi-mini{display:flex;flex-wrap:wrap;gap:6px var(--sp-4);font-size:var(--fs-xs);color:var(--muted)}
.hi-opts{display:flex;flex-wrap:wrap;gap:var(--sp-3) var(--sp-5);align-items:flex-end}
.hi-cap{display:flex;flex-direction:column;gap:5px}
.hi-cap>span,.hi-map-row>span{font-size:var(--fs-sm);font-weight:600;color:var(--s-ink-2)}
.hi-cap input{width:150px;height:40px;padding:0 12px;border:1px solid var(--s-line);border-radius:var(--rad-in);font:inherit;background:var(--s-panel);color:var(--s-ink)}
.hi-tick{display:inline-flex;align-items:center;gap:8px;min-height:40px;font-size:var(--fs-sm);color:var(--s-ink-2);cursor:pointer}
.hi-tick input{width:18px;height:18px;accent-color:var(--accent)}
.hi-actions{display:flex;flex-wrap:wrap;gap:var(--sp-2);align-items:center}
.hi-spacer{flex:1 1 auto}
.hi-card .save-status{margin:0;font-size:var(--fs-sm);color:var(--s-ink-2)}
.hi-card .save-status.bad,.hi-sheet .save-status.bad{color:var(--s-bad)}
.hi-file-btn{cursor:pointer}
.hi-sub{margin:var(--sp-5) 0 var(--sp-2);font-size:var(--fs-md)}
.hi-table-wrap{overflow-x:auto;border:1px solid var(--s-line-2);border-radius:var(--rad-in)}
.hi-table{width:100%;border-collapse:collapse;font-size:var(--fs-sm)}
.hi-table th{text-align:left;font-weight:600;color:var(--muted);background:var(--s-sunk);padding:8px 12px;white-space:nowrap}
.hi-table td{padding:8px 12px;border-top:1px solid var(--s-line-2);vertical-align:top}
.hi-table tr.hi-row{cursor:pointer}
.hi-table tr.hi-row:hover td,.hi-table tr.hi-row:focus-visible td{background:var(--s-accent-soft)}
.hi-nowrap{white-space:nowrap}
.hi-src{font-size:var(--fs-xs);color:var(--muted);word-break:break-all}
.hi-v{display:inline-block;padding:2px 8px;border-radius:var(--rad-pill);font-size:var(--fs-xs);font-weight:600;white-space:nowrap;background:var(--s-sunk);color:var(--s-ink-2)}
.hi-v-new{background:var(--s-accent-soft);color:var(--s-link)}
.hi-v-matched,.hi-v-update{background:var(--s-ok-soft);color:var(--s-ok)}
.hi-v-unmatched{background:var(--s-warn-soft);color:var(--s-warn)}
.hi-v-failed{background:var(--s-bad-soft);color:var(--s-bad)}
.hi-batch-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--sp-3);align-items:center;margin-bottom:var(--sp-4)}
.hi-batch-head p{margin:2px 0 0}
.hi-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-4) var(--sp-5);margin-bottom:var(--sp-5)}
.hi-map-row{display:flex;flex-direction:column;gap:5px;min-width:0}
.hi-map-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hi-map-row select{height:40px}
.hi-map-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hi-sheet .sheet-card,.sheet-card.hi-sheet{width:min(1200px,95vw);max-width:none}
@media (max-width:1100px){ .hi-grid{grid-template-columns:minmax(0,1fr)} .hi-map{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:640px){
  .hi-rules{grid-template-columns:minmax(0,1fr)}
  .hi-counts{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hi-map{grid-template-columns:minmax(0,1fr)}
  .hi-card{padding:var(--sp-4)}
  .hi-figs{gap:var(--sp-4)}
  .hi-spacer{display:none}
  .sheet-card.hi-sheet{width:100%}
}
/* ---- end of the history import ---- */

/* ==== v3.1192.0 (17 October 2026) — PLATINUM ASSIST BY VOICE, THE "IN THIS APP" CARD, RECALIBRATE (public/assistvoice.js) ====
   Darren confirmed "Assist voice + recalibration". Theme tokens only. The microphone sits in the ask box's empty bottom-left
   cell (the box is a two-column grid: the question across the top, Ask bottom-right). */
.av-ctl{grid-column:1;grid-row:2;display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.av-i{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.btn.av-mic{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 16px;border-radius:var(--rad-pill);border:1.5px solid var(--s-line);background:var(--s-panel);color:var(--s-ink);font-size:var(--fs-md)}
.btn.av-mic:hover:not(:disabled){border-color:var(--b-500);color:var(--accent-ink);background:var(--s-accent-soft)}
.btn.av-mic:disabled{opacity:.55;cursor:not-allowed}
.btn.av-mic.on{background:var(--s-bad);border-color:var(--s-bad);color:var(--s-panel);box-shadow:0 0 0 4px var(--s-bad-soft);animation:av-ring 1.6s ease-in-out infinite}
.btn.av-mic.on:hover:not(:disabled){background:var(--s-bad);color:var(--s-panel)}
.btn.av-mic.speak{background:var(--s-accent-soft);border-color:var(--b-500);color:var(--accent-ink)}
.btn.av-mic.busy{color:var(--s-muted)}
.btn.av-gear{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:0;color:var(--s-muted);font-weight:600}
.btn.av-gear:hover{color:var(--accent-ink);background:var(--s-sunk)}
.av-gear-l{font-size:var(--fs-sm)}
.btn.av-cancel{min-height:44px;border:0;color:var(--s-muted)}
@keyframes av-ring{0%,100%{box-shadow:0 0 0 3px var(--s-bad-soft)}50%{box-shadow:0 0 0 9px var(--s-bad-soft)}}
.av-status{display:none;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 2px 0;font-size:var(--fs-sm);color:var(--s-ink-2);min-height:22px}
.av-status.on{display:flex}
.av-status.bad{color:var(--s-bad)}
.av-status .hint{margin:0}
.av-dot{width:10px;height:10px;border-radius:50%;background:var(--s-bad);animation:av-blink 1s ease-in-out infinite}
@keyframes av-blink{50%{opacity:.35}}
.av-clock{font-variant-numeric:tabular-nums;color:var(--s-muted)}
.av-meter{display:inline-flex;align-items:center;gap:3px;height:20px}
.av-meter i{display:block;width:4px;height:calc(20px * var(--av-h,.2));min-height:3px;border-radius:2px;background:var(--b-500);}
.av-spin{width:16px;height:16px;border-radius:50%;border:2px solid var(--s-line);border-top-color:var(--b-500);animation:av-spin .8s linear infinite;flex:none}
@keyframes av-spin{to{transform:rotate(360deg)}}
.av-wave{display:inline-flex;align-items:flex-end;gap:3px;height:16px}
.av-wave i{display:block;width:4px;height:16px;border-radius:2px;background:var(--b-500);transform:scaleY(.375);transform-origin:bottom;animation:av-wave 1s ease-in-out infinite}
.av-wave i:nth-child(2){animation-delay:.15s}.av-wave i:nth-child(3){animation-delay:.3s}
@keyframes av-wave{50%{transform:scaleY(1)}}  /* v3.1193.0: transform, not height (design brief A1) */
.btn.av-say{display:inline-flex;align-items:center;gap:6px}
.btn.av-say .av-i{width:16px;height:16px}
.btn.av-say.on{color:var(--accent-ink);background:var(--s-accent-soft)}
/* 4 Nov 2026 (lane assistvoice) — the note beside Read aloud when the voice fell back (OpenAI's, or the browser's). */
.av-say-w{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%}
.av-say-w.has-note{flex:1 1 0;min-width:0;justify-content:flex-end}
.av-say-note{font-size:var(--fs-xs);color:var(--s-muted);line-height:1.3}
/* The help card under an answer. */
.av-help{margin:14px 0 4px;padding:16px 18px;border:1px solid var(--s-line);border-left:4px solid var(--b-500);border-radius:var(--rad);background:var(--s-raised)}
.av-help-head{display:flex;align-items:center;gap:12px}
.av-help-ico{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--s-accent-soft);color:var(--accent-ink);flex:none}
.av-help-eyebrow{margin:0;font-size:var(--fs-xs);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--s-muted)}
.av-help-title{margin:2px 0 0;font-size:var(--fs-lg);color:var(--s-ink)}
.av-help-step{margin:12px 0 2px;color:var(--s-ink)}
.av-help-text{margin:4px 0 0;color:var(--s-ink-2);line-height:1.55}
.av-help-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.av-help-acts .btn{display:inline-flex;align-items:center;gap:6px;min-height:38px}
.av-help-acts .av-i{width:16px;height:16px}
.av-help-more{margin:10px 0 0;font-size:var(--fs-sm)}
/* The settings window and the add-a-check window. */
.av-set{display:grid;gap:18px}
.av-set-sec h4{margin:0 0 8px;font-size:var(--fs-md)}
.av-set-sec .hint{margin:6px 0 0}
.av-set-staff{padding-top:16px;border-top:1px solid var(--s-line)}
.av-check{display:flex;align-items:flex-start;gap:10px;cursor:pointer;line-height:1.4}
.av-check input{margin-top:3px;flex:none}
.av-set-try .btn{display:inline-flex;align-items:center;gap:6px}
.av-set-staff .av-field{margin:16px 0 0}
.av-set-staff .bi-actions{margin:16px 0 0}
.av-form{display:grid;gap:14px}
.av-field{display:grid;gap:6px;margin:0}
.av-lab{font-weight:600;font-size:var(--fs-sm);color:var(--s-ink)}
.av-lab .hint{font-weight:400}
.av-field textarea,.av-field input,.av-field select{width:100%;box-sizing:border-box}
.av-form-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.av-form-foot{position:sticky;bottom:0;background:var(--s-panel);padding-top:10px;margin:0;border-top:1px solid var(--s-line)}
/* Recalibrate. */
.av-now{margin:4px 0 14px;padding:12px 14px;border-radius:var(--rad-in);background:var(--s-sunk)}
.av-now p{margin:0}
.av-now-l{font-size:var(--fs-xs);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--s-muted);margin-bottom:4px!important}
.av-runrow{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.av-cost{margin:10px 0 0}
.av-prog{height:10px;border-radius:var(--rad-pill);background:var(--s-sunk);overflow:hidden;margin:6px 0 10px}
.av-prog i{display:block;height:100%;background:var(--b-500);border-radius:inherit;}
.av-scores{display:grid;grid-template-columns:1fr auto 1fr;gap:14px;align-items:stretch;margin:6px 0 14px}
.av-score{padding:16px 18px;border:1px solid var(--s-line);border-radius:var(--rad);background:var(--s-raised)}
.av-score.good{border-color:var(--s-ok);background:var(--s-ok-soft)}
.av-score p{margin:0}
.av-score-l{font-size:var(--fs-sm);font-weight:600;color:var(--s-muted)}
.av-score-n{font-size:var(--fs-3xl);font-weight:800;line-height:1.1;margin:6px 0 4px!important;color:var(--s-ink);font-variant-numeric:tabular-nums}
.av-score-n small{font-size:var(--fs-md);font-weight:600;color:var(--s-muted);margin-left:4px}
.av-score-sub{font-size:var(--fs-sm);color:var(--s-ink-2)}
.av-score-lift{margin-top:6px!important;font-weight:700;color:var(--s-ok)}
.av-arrow{display:grid;place-items:center;font-size:24px;color:var(--s-muted)}
.av-summary{font-size:var(--fs-md);margin:0 0 12px}
.av-tablewrap{overflow-x:auto;max-width:100%}
.av-cmp,.av-rows{width:100%;border-collapse:collapse;font-size:var(--fs-sm)}
.av-cmp th,.av-cmp td,.av-rows th,.av-rows td{padding:9px 10px;border-bottom:1px solid var(--s-line-2);text-align:left;vertical-align:top}
.av-cmp thead th,.av-rows thead th{font-size:var(--fs-xs);text-transform:uppercase;letter-spacing:.05em;color:var(--s-muted);font-weight:700}
.av-cmp tbody th{font-weight:600}
.av-diff td,.av-diff th{background:var(--s-accent-soft)}
.av-q{min-width:220px}
.av-clickrows tbody tr{cursor:pointer}
.av-clickrows tbody tr:hover td,.av-clickrows tbody tr:focus td{background:var(--s-sunk)}
.av-det{margin:12px 0 0;border:1px solid var(--s-line);border-radius:var(--rad-in);padding:0 12px}
.av-det>summary{cursor:pointer;padding:11px 0;font-weight:600}
.av-det[open]>summary{border-bottom:1px solid var(--s-line-2);margin-bottom:6px}
.av-notes{margin:8px 0;padding-left:18px;color:var(--s-ink-2)}
.av-ans{padding-left:18px}
.av-ans li{margin:0 0 8px}
.av-empty{text-align:center;padding:26px 16px}
.av-empty .lead{margin:0 0 6px}
@media (max-width:640px){
  .av-ctl{grid-column:1 / -1;grid-row:auto}
  .av-gear-l{display:none}
  .av-scores{grid-template-columns:1fr}
  .av-arrow{transform:rotate(90deg);height:18px}
  .av-form-2{grid-template-columns:1fr}
  .av-help{padding:14px}
  .av-runrow{gap:10px}
}
@media (prefers-reduced-motion: reduce){ .btn.av-mic.on,.av-dot,.av-spin,.av-wave i{animation:none} }
/* v3.1193.0 (17 October 2026) — Events → Attendees: "31 of 40 ready" (who has the Platinum app), its bar, Remind now, and the per-person badge. */
.ev-appready{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3) var(--sp-4);flex-wrap:wrap;margin:var(--sp-3) 0;padding:var(--sp-3) var(--sp-4);border:1px solid var(--s-line);border-radius:var(--rad);background:var(--s-panel)}
.ev-appready-figs{flex:1 1 280px;min-width:0}
.ev-appready-big{margin:0;font-size:var(--fs-lg);color:var(--s-ink-2)}
.ev-appready-big strong{font-size:var(--fs-2xl);color:var(--s-ink);margin-right:2px}
.ev-appready .expl{margin:2px 0 var(--sp-2)}
.ev-appbar{height:8px;border-radius:var(--rad-pill);background:var(--s-sunk);overflow:hidden}
.ev-appbar span{display:block;height:100%;background:var(--s-ok);border-radius:inherit}
.ev-appready-act{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap}
.ev-apppill{white-space:nowrap}

/* ---- 0403, v3.1193.0 (17 October 2026) — LEARNERS (public/apps/learners.js) -------------------------------------------
   Four figures that double as filters, the reminder rule said once, then the list: one row per learner on a desk (a grid
   of five columns), a card per learner on a phone. Theme tokens only, so both themes come from theme.css. */
.ln-figs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-4);margin-bottom:var(--sp-4)}
.ln-fig{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;background:var(--s-panel);border:1px solid var(--s-line-2);border-radius:var(--rad);box-shadow:var(--sh-1);padding:var(--sp-4) var(--sp-5);cursor:pointer;font:inherit;color:var(--s-ink);min-width:0}
.ln-fig:hover{border-color:var(--s-line-hover);box-shadow:var(--sh-2)}
.ln-fig:focus-visible{outline:none;box-shadow:var(--s-focus)}
.ln-fig b{font-size:var(--fs-2xl);line-height:1.1;font-weight:700}
.ln-fig span{font-size:var(--fs-sm);color:var(--s-muted)}
.ln-fig.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.ln-fig.warn b{color:var(--s-warn)}
.ln-fig-skel{min-height:84px;cursor:default}
.ln-rule{display:flex;align-items:center;gap:var(--sp-3);background:var(--s-accent-soft);border-radius:var(--rad);padding:var(--sp-3) var(--sp-4);margin-bottom:var(--sp-4)}
.ln-rule.off{background:var(--s-warn-soft)}
.ln-rule-dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:var(--s-ok);box-shadow:0 0 0 4px var(--s-ok-soft)}
.ln-rule.off .ln-rule-dot{background:var(--s-warn);box-shadow:0 0 0 4px var(--s-panel)}
.ln-rule-txt{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}
.ln-rule-txt b{font-size:var(--fs-md);color:var(--s-ink)}
.ln-rule-txt .hint{margin:0;color:var(--s-ink-2)}
.ln-rule .btn{flex:0 0 auto}
.ln-panel{padding:var(--sp-5)}
.ln-bar{display:flex;flex-wrap:wrap;gap:var(--sp-3) var(--sp-4);align-items:flex-end}
.ln-search,.ln-ws{display:flex;flex-direction:column;gap:5px;min-width:0}
.ln-search{flex:1 1 320px}
.ln-ws{flex:0 1 260px}
.ln-search>span,.ln-ws>span{font-size:var(--fs-sm);font-weight:600;color:var(--s-ink-2)}
.ln-search input,.ln-ws select{height:42px;padding:0 12px;border:1px solid var(--s-line);border-radius:var(--rad-in);font:inherit;background:var(--s-panel);color:var(--s-ink);width:100%;box-sizing:border-box}
.ln-search input:focus,.ln-ws select:focus{outline:none;border-color:var(--accent);box-shadow:var(--s-focus)}
.ln-add{height:42px}
.ln-chips{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);margin:var(--sp-4) 0 var(--sp-3)}
.ln-chip{height:32px;padding:0 14px;border-radius:var(--rad-pill);border:1px solid var(--s-line);background:var(--s-panel);color:var(--s-ink-2);font:inherit;font-size:var(--fs-sm);font-weight:600;cursor:pointer}
.ln-chip:hover{border-color:var(--s-line-hover)}
.ln-chip.on{background:var(--accent);border-color:var(--accent);color:var(--s-hero-ink)}
.ln-chip:focus-visible{outline:none;box-shadow:var(--s-focus)}
.ln-count{margin:0 0 0 auto}
.ln-head,.ln-row{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(200px,1.5fr) 110px minmax(150px,1fr) minmax(200px,auto);gap:var(--sp-4);align-items:center}
.ln-head{padding:0 var(--sp-4) var(--sp-2);font-size:var(--fs-xs);font-weight:600;color:var(--s-muted);text-transform:uppercase;letter-spacing:.04em}
.ln-list{display:flex;flex-direction:column;border:1px solid var(--s-line-2);border-radius:var(--rad-in);overflow:hidden}
.ln-row{padding:var(--sp-3) var(--sp-4);border-top:1px solid var(--s-line-2);cursor:pointer;background:var(--s-panel)}
.ln-row:first-child{border-top:0}
.ln-row:hover{background:var(--s-accent-soft)}
.ln-row:focus-visible{outline:none;box-shadow:inset var(--s-focus)}
.ln-who{display:flex;align-items:center;gap:var(--sp-3);min-width:0}
.ln-av{flex:0 0 38px;width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--s-accent-soft);color:var(--s-link);font-weight:700;font-size:var(--fs-sm)}
.ln-who-txt{display:flex;flex-direction:column;min-width:0}
.ln-who-txt b{color:var(--s-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ln-who-txt span{font-size:var(--fs-sm);color:var(--s-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ln-who-txt .ln-ws-name{color:var(--s-ink-2);font-size:var(--fs-xs)}
.ln-course{display:flex;flex-direction:column;gap:4px;min-width:0}
.ln-course-t{font-size:var(--fs-sm);font-weight:600;color:var(--s-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ln-course .hint,.ln-stat .hint{margin:0;font-size:var(--fs-xs)}
.ln-prog{display:flex;align-items:center;gap:var(--sp-2)}
/* Lane watchgate — "Watched 92%" beside the lessons done. */
.ln-watched{font-size:var(--fs-sm);color:var(--muted);white-space:nowrap}
.ln-prog-track{flex:1 1 auto;height:6px;border-radius:var(--rad-pill);background:var(--s-sunk);overflow:hidden}
.ln-prog-track i{display:block;height:100%;border-radius:inherit;background:var(--accent)}
.ln-prog span{font-size:var(--fs-xs);color:var(--s-muted);white-space:nowrap}
.ln-seen{display:flex;flex-direction:column;font-size:var(--fs-sm);color:var(--s-ink-2)}
.ln-k{display:none;font-size:var(--fs-xs);color:var(--s-muted)}
.ln-stat{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.ln-pill{display:inline-flex;align-items:center;white-space:nowrap;padding:3px 10px;border-radius:var(--rad-pill);font-size:var(--fs-xs);font-weight:600;background:var(--s-sunk);color:var(--s-muted)}
.ln-pill.ok{background:var(--s-ok-soft);color:var(--s-ok)}
.ln-pill.run{background:var(--s-accent-soft);color:var(--s-link)}
.ln-pill.warn{background:var(--s-warn-soft);color:var(--s-warn)}
.ln-act{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:0}
.ln-act .save-status,.ln-foot .save-status{margin:0;font-size:var(--fs-xs);color:var(--s-ink-2);text-align:right}
.ln-act .save-status.bad,.ln-foot .save-status.bad,.ln-sheet .save-status.bad{color:var(--s-bad)}
.ln-state{display:flex;flex-direction:column;align-items:flex-start;gap:6px;border:1px dashed var(--s-line);border-radius:var(--rad-in);padding:var(--sp-5)}
.ln-state h3,.ln-state p{margin:0}
.ln-state-bad{border-color:var(--s-bad)}
.ln-empty{align-items:center;text-align:center;padding:var(--sp-7) var(--sp-5)}
.ln-empty .hint{max-width:520px}
.ln-empty-mark{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:var(--s-accent-soft);color:var(--s-link);margin-bottom:var(--sp-2)}
.ln-empty-mark svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ln-detail{display:flex;flex-direction:column;gap:var(--sp-5)}
.ln-sec h4{margin:0 0 var(--sp-3);font-size:var(--fs-md)}
.ln-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-3) var(--sp-5)}
.ln-fact{display:flex;flex-direction:column;gap:3px;min-width:0}
.ln-fact span{font-size:var(--fs-xs);font-weight:600;color:var(--s-muted)}
.ln-fact b{font-weight:500;color:var(--s-ink);overflow-wrap:anywhere}
.ln-courses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-3)}
.ln-crs{background:var(--s-sunk);border-radius:var(--rad-in);padding:var(--sp-3) var(--sp-4);display:flex;flex-direction:column;gap:var(--sp-2);min-width:0}
.ln-crs-head{display:flex;justify-content:space-between;align-items:baseline;gap:var(--sp-2);flex-wrap:wrap}
.ln-crs .hint{margin:0;font-size:var(--fs-xs)}
.ln-foot{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3);padding-top:var(--sp-4);border-top:1px solid var(--s-line-2)}
.ln-foot .save-status{text-align:left}
.ln-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4) var(--sp-5);margin-bottom:var(--sp-3)}
.ln-form .form-grid input{height:42px}
/* v3.1196.0 (17 October 2026) — Reminder settings: the five notes beside a live preview of each email, near full screen. */
.sheet-card.ln-set-sheet{width:min(1440px,96vw);max-width:none}
.ln-set-steps .ln-foot{position:sticky;bottom:0;z-index:2;background:var(--s-panel);padding-bottom:var(--sp-3)}
.ln-set-master .btn{white-space:nowrap}
.ln-set{display:grid;grid-template-columns:minmax(360px,5fr) minmax(0,7fr);gap:var(--sp-6);align-items:start}
.ln-set-steps{display:flex;flex-direction:column;gap:var(--sp-3);min-width:0}
.ln-set-steps h4{margin:0;font-size:var(--fs-md)}
.ln-set-steps>.hint{margin:0}
.ln-step-list{display:flex;flex-direction:column;gap:var(--sp-2)}
.ln-step{display:flex;align-items:center;gap:var(--sp-3);border:1px solid var(--s-line-2);border-radius:var(--rad-in);background:var(--s-panel);padding:var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2);transition:border-color var(--dur-1) var(--ease-out),box-shadow var(--dur-1) var(--ease-out)}
.ln-step:hover{border-color:var(--s-line-hover)}
.ln-step.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.ln-step.is-off .ln-step-txt,.ln-step.is-off .ln-step-day{opacity:.55}
.ln-step-pick{display:flex;align-items:center;gap:var(--sp-3);flex:1 1 auto;min-width:0;text-align:left;border:0;background:transparent;color:var(--s-ink);font:inherit;padding:var(--sp-2);border-radius:var(--rad-sm);cursor:pointer}
.ln-step-pick:focus-visible{outline:none;box-shadow:var(--s-focus)}
.ln-step-day{flex:0 0 58px;height:58px;border-radius:var(--rad-in);background:var(--s-accent-soft);color:var(--s-link);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.ln-step-day b{font-size:var(--fs-xl);font-weight:700}
.ln-step-day i{font-style:normal;font-size:var(--fs-xs);color:var(--s-muted);margin-top:3px}
.ln-step.on .ln-step-day{background:var(--accent);color:var(--s-hero-ink)}
.ln-step.on .ln-step-day i{color:var(--s-hero-ink)}
.ln-step-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.ln-step-txt>b{font-size:var(--fs-md);color:var(--s-ink)}
.ln-step-txt>span{font-size:var(--fs-sm);color:var(--s-muted);line-height:1.45}
.ln-step-ch{display:flex;flex-wrap:wrap;gap:6px;margin-top:3px}
.ln-step-ch em{font-style:normal;font-size:var(--fs-xs);font-weight:600;padding:2px 9px;border-radius:var(--rad-pill);background:var(--s-sunk);color:var(--s-ink-2)}
.ln-step-sw{flex:0 0 auto;display:flex;align-items:center;cursor:pointer}
.ln-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ln-set-master{display:flex;align-items:center;gap:var(--sp-3);background:var(--s-accent-soft);border-radius:var(--rad-in);padding:var(--sp-3) var(--sp-4)}
.ln-set-master.off{background:var(--s-warn-soft)}
.ln-set-master.off .ln-rule-dot{background:var(--s-warn);box-shadow:0 0 0 4px var(--s-panel)}
.ln-set-master>div{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}
.ln-set-master b{font-size:var(--fs-sm);color:var(--s-ink)}
.ln-set-master .hint{margin:0;font-size:var(--fs-xs);color:var(--s-ink-2)}
.ln-set-prev{display:flex;flex-direction:column;gap:var(--sp-3);min-width:0;position:sticky;top:0}
.ln-prev-head{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--sp-4);flex-wrap:wrap}
.ln-prev-meta{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 240px}
.ln-k2{font-size:var(--fs-xs);font-weight:600;color:var(--s-muted);text-transform:uppercase;letter-spacing:.05em}
.ln-prev-meta b{font-size:var(--fs-md);color:var(--s-ink);overflow-wrap:anywhere}
.ln-prev-meta .hint{margin:0;font-size:var(--fs-xs)}
.ln-seg{display:inline-flex;padding:3px;border-radius:var(--rad-pill);background:var(--s-sunk);gap:2px}
.ln-seg button{height:30px;padding:0 14px;border:0;border-radius:var(--rad-pill);background:transparent;color:var(--s-ink-2);font:inherit;font-size:var(--fs-sm);font-weight:600;cursor:pointer}
.ln-seg button.on{background:var(--s-panel);color:var(--s-ink);box-shadow:var(--sh-1)}
.ln-seg button:focus-visible{outline:none;box-shadow:var(--s-focus)}
.ln-prev-stage{position:relative;background:var(--s-sunk);border:1px solid var(--s-line-2);border-radius:var(--rad);padding:var(--sp-4);display:flex;justify-content:center;height:min(68vh,760px);overflow:hidden}
.ln-prev-frame{width:100%;max-width:640px;height:100%;border:0;border-radius:var(--rad-in);background:var(--s-panel);box-shadow:var(--sh-2)}
.ln-prev-stage[data-ln-stage="phone"] .ln-prev-frame{max-width:390px}
.ln-prev-load{position:absolute;inset:var(--sp-4);display:flex;justify-content:center;pointer-events:none}
.ln-prev-load[hidden]{display:none}
.ln-prev-load .skel{width:min(560px,100%);background:var(--s-panel);border-radius:var(--rad-in);padding:var(--sp-5)}
.ln-prev-note{margin:0;font-size:var(--fs-xs)}
@media (max-width:1180px){
  .ln-set{grid-template-columns:minmax(320px,1fr) minmax(0,1.2fr);gap:var(--sp-5)}
}
@media (max-width:900px){
  .ln-set{grid-template-columns:1fr}
  .ln-set-prev{position:static}
  .ln-prev-stage{height:70vh;padding:var(--sp-2)}
}
@media (max-width:640px){
  .sheet-card.ln-set-sheet{width:100%}
  .ln-step{padding:var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-1);gap:var(--sp-2)}
  .ln-step-pick{gap:var(--sp-3);padding:var(--sp-2)}
  .ln-step-day{flex-basis:46px;height:46px}
  .ln-step-day b{font-size:var(--fs-lg)}
  .ln-set-master{flex-wrap:wrap}
  .ln-set-master .btn{width:100%}
}
@media (max-width:1180px){
  .ln-head,.ln-row{grid-template-columns:minmax(200px,1.4fr) minmax(180px,1.4fr) 100px minmax(140px,1fr)}
  .ln-head span:last-child{display:none}
  .ln-act{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:flex-start}
}
@media (max-width:760px){
  .ln-figs{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-3)}
  .ln-fig{padding:var(--sp-3) var(--sp-4)}
  .ln-fig b{font-size:var(--fs-xl)}
  .ln-rule{flex-wrap:wrap}
  .ln-panel{padding:var(--sp-4)}
  .ln-ws,.ln-search{flex:1 1 100%}
  .ln-add{width:100%}
  .ln-count{flex:1 1 100%;margin:var(--sp-1) 0 0}
  .ln-head{display:none}
  .ln-list{border:0;gap:var(--sp-3);overflow:visible}
  .ln-row{grid-template-columns:1fr auto;gap:var(--sp-3);border:1px solid var(--s-line-2);border-radius:var(--rad-in)}
  .ln-row:first-child{border-top:1px solid var(--s-line-2)}
  .ln-who{grid-column:1/-1}
  .ln-course{grid-column:1/-1}
  .ln-k{display:block}
  .ln-stat{align-items:flex-end}
  .ln-act{grid-column:1/-1;flex-direction:column;align-items:stretch}
  .ln-act .btn{width:100%}
  .ln-act .save-status{text-align:left}
  .ln-facts,.ln-courses,.ln-form .form-grid{grid-template-columns:1fr}
}

/* ---- v3.1193.0 (17 October 2026) — MESSAGES, STAFF MESSAGING (public/smsg.js) ---------------------------------------------
   Darren: "very similar to the way Teams works". Two panes on a desktop (conversations | the open one), one at a time on a
   phone. Theme colours only. */
#sb-messages .sm-badge{margin-left:auto;min-width:18px;padding:0 5px;border-radius:999px;background:var(--orange);color:var(--s-hero-ink);
  font-size:var(--fs-xs);font-weight:700;line-height:18px;text-align:center}
#view-messages .view-head{margin-bottom:var(--sp-4)}
.sm-shell{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);height:calc(100vh - 210px);min-height:520px;
  background:var(--panel);border:1px solid var(--line);border-radius:var(--rad);box-shadow:var(--sh-2);overflow:hidden}
.sm-list{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line);background:var(--panel-2)}
.sm-list-head{padding:var(--sp-4);display:grid;gap:var(--sp-3);border-bottom:1px solid var(--line)}
.sm-list-acts{display:flex;gap:var(--sp-2)}
.sm-list-acts .btn{flex:1}
.sm-filter input{width:100%;box-sizing:border-box}
.sm-threads{overflow:auto;flex:1 1 auto;min-height:0;padding:var(--sp-2)}
.sm-row{display:flex;gap:var(--sp-3);align-items:center;width:100%;text-align:left;padding:10px 12px;border:0;border-radius:var(--rad-in);
  background:transparent;color:var(--ink);cursor:pointer;font:inherit}
.sm-row+.sm-row{margin-top:2px}
.sm-row:hover{background:var(--tint)}
.sm-row.on{background:var(--accent-soft)}
.sm-row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.sm-row-main{display:grid;gap:3px;min-width:0;flex:1}
.sm-row-top,.sm-row-bottom{display:flex;gap:var(--sp-2);align-items:center;min-width:0}
.sm-row-title{font-weight:600;font-size:var(--fs-md);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
.sm-row.unread .sm-row-title{font-weight:800}
.sm-row-when{font-size:var(--fs-xs);color:var(--muted);flex:0 0 auto}
.sm-row-prev{font-size:var(--fs-sm);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
.sm-row.unread .sm-row-prev{color:var(--ink)}
.sm-row-n{min-width:20px;padding:0 6px;border-radius:999px;background:var(--accent);color:var(--s-hero-ink);font-size:var(--fs-xs);font-weight:700;line-height:20px;text-align:center}
.sm-row-at{min-width:20px;border-radius:999px;background:var(--orange);color:var(--s-hero-ink);font-size:var(--fs-xs);font-weight:800;line-height:20px;text-align:center}
.sm-av{flex:0 0 auto;width:38px;height:38px;border-radius:50%;display:inline-grid;place-items:center;font-size:var(--fs-sm);font-weight:700;
  background:var(--fd1-bg);color:var(--fd1-ink);letter-spacing:.02em}
.sm-av.sm{width:28px;height:28px;font-size:var(--fs-xs)}
.sm-av1{background:var(--fd2-bg);color:var(--fd2-ink)}
.sm-av2{background:var(--fd3-bg);color:var(--fd3-ink)}
.sm-av3{background:var(--fd4-bg);color:var(--fd4-ink)}
.sm-av4{background:var(--fd5-bg);color:var(--fd5-ink)}
.sm-av5{background:var(--fd6-bg);color:var(--fd6-ink)}
.sm-avg{border-radius:12px;background:var(--accent);color:var(--s-hero-ink)}
.sm-skel .sm-av{background:var(--tint)}
.sm-bar{display:block;height:10px;border-radius:6px;background:var(--tint)}
.sm-bar.w60{width:60%}.sm-bar.w90{width:90%}
.sm-pane{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}
.sm-pane-head{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-3) var(--sp-5);border-bottom:1px solid var(--line);flex-wrap:wrap}
.sm-pane-title{flex:1;min-width:0}
.sm-pane-title h2{margin:0;font-size:var(--fs-lg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-pane-title p{margin:2px 0 0;font-size:var(--fs-sm);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-pane-acts{display:flex;gap:var(--sp-2)}
.sm-back{display:none;border:0;background:transparent;color:var(--blue-ink);font-size:var(--fs-2xl);line-height:1;padding:0 6px;cursor:pointer}
.sm-said{font-size:var(--fs-sm);color:var(--ok);flex-basis:100%;min-height:0}
.sm-said:empty{display:none}
.sm-said.bad{color:var(--danger)}
.sm-msgs{flex:1 1 auto;overflow:auto;min-height:0;padding:var(--sp-4) var(--sp-5);background:var(--bg)}
.sm-day,.sm-new{display:flex;align-items:center;gap:var(--sp-3);margin:var(--sp-4) 0 var(--sp-3);font-size:var(--fs-xs);font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.sm-day::before,.sm-day::after,.sm-new::before,.sm-new::after{content:"";flex:1;height:1px;background:var(--line)}
.sm-new{color:var(--orange-ink)}
.sm-new::before,.sm-new::after{background:var(--orange)}
.sm-msg{display:flex;gap:var(--sp-3);align-items:flex-start;margin-top:var(--sp-3);max-width:760px}
.sm-msg.join{margin-top:3px}
.sm-av-gap{flex:0 0 38px}
.sm-msg.mine{margin-left:auto;flex-direction:row-reverse}
.sm-bubble{background:var(--panel);border:1px solid var(--line);border-radius:4px var(--rad) var(--rad) var(--rad);padding:9px 13px;min-width:0;box-shadow:var(--sh-1)}
.sm-msg.mine .sm-bubble{background:var(--accent-soft);border-color:var(--b-200);border-radius:var(--rad) 4px var(--rad) var(--rad)}
.sm-msg.tagged .sm-bubble{border-left:3px solid var(--orange)}
.sm-meta{display:flex;gap:var(--sp-2);align-items:baseline;margin-bottom:3px;font-size:var(--fs-sm)}
.sm-meta time{font-size:var(--fs-xs);color:var(--muted)}
.sm-text-body{font-size:var(--fs-md);line-height:1.55;overflow-wrap:anywhere;color:var(--ink)}
.sm-at{color:var(--blue-ink);font-weight:700}
.sm-at.me{background:var(--o-soft);color:var(--orange-ink);border-radius:4px;padding:0 3px}
.sm-chiprow{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.sm-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;vertical-align:baseline;margin:1px 2px;padding:2px 10px 2px 6px;border-radius:999px;
  border:1px solid var(--b-200);background:var(--panel);color:var(--ink);font:inherit;font-size:var(--fs-sm);cursor:pointer;line-height:1.6}
.sm-chip:hover{border-color:var(--blue);background:var(--accent-soft)}
.sm-chip:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.sm-chip-k{flex:0 0 auto;white-space:nowrap;font-size:var(--fs-xs);font-weight:700;color:var(--blue-ink);text-transform:uppercase;letter-spacing:.04em}
.sm-chip-l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sm-older{text-align:center;margin-bottom:var(--sp-3)}
.sm-compose{position:relative;border-top:1px solid var(--line);padding:var(--sp-3) var(--sp-5) var(--sp-3);background:var(--panel)}
.sm-compose-row{display:flex;gap:var(--sp-2);align-items:flex-end}
.sm-text{flex:1;min-width:0}
.sm-text textarea{width:100%;box-sizing:border-box;resize:none;min-height:44px;max-height:220px;padding:11px 14px;border-radius:var(--rad-in);
  border:1px solid var(--line);background:var(--panel-2);color:var(--ink);font:inherit;font-size:var(--fs-md);line-height:1.45}
.sm-text textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px var(--accent-soft)}
.sm-text textarea::placeholder{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-compose-tools{display:flex;gap:6px;align-items:center}
.sm-tool{width:40px;height:44px;border-radius:var(--rad-in);border:1px solid var(--line);background:var(--panel);color:var(--blue-ink);font-weight:800;font-size:var(--fs-lg);cursor:pointer}
.sm-tool:hover{border-color:var(--blue);background:var(--accent-soft)}
.sm-compose-tools .btn.primary{height:44px;padding:0 20px}
.sm-compose-hint{margin:6px 0 0;font-size:var(--fs-xs);color:var(--muted)}
.sm-picks{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:8px}
.sm-picks:empty{display:none}
.sm-picks-lab{font-size:var(--fs-xs);color:var(--muted);font-weight:600}
.sm-pick{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;background:var(--accent-soft);color:var(--ink);font-size:var(--fs-sm)}
.sm-pick-note{font-size:var(--fs-xs);color:var(--orange-ink);font-weight:700}
.sm-pick-x{border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:var(--fs-md);line-height:1;padding:0 0 0 2px}
.sm-pop{position:absolute;left:var(--sp-5);right:var(--sp-5);bottom:calc(100% - 6px);max-height:320px;overflow:auto;background:var(--panel);
  border:1px solid var(--line);border-radius:var(--rad);box-shadow:var(--sh-3);padding:6px;z-index:5}
.sm-pop-head{padding:6px 10px 8px;font-size:var(--fs-xs);font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.sm-pop-row{display:flex;gap:var(--sp-3);align-items:center;width:100%;text-align:left;padding:8px 10px;border:0;border-radius:var(--rad-sm);background:transparent;color:var(--ink);cursor:pointer;font:inherit}
.sm-pop-row.on,.sm-pop-row:hover{background:var(--accent-soft)}
.sm-pop-ico{width:28px;text-align:center;font-size:var(--fs-lg)}
.sm-pop-main{display:grid;min-width:0}
.sm-pop-l{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-pop-s{font-size:var(--fs-xs);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-pop-note{padding:8px 10px;font-size:var(--fs-sm);color:var(--muted)}
.sm-state{display:grid;justify-items:center;text-align:center;gap:6px;padding:var(--sp-6) var(--sp-4);color:var(--muted)}
.sm-state b{color:var(--ink);font-size:var(--fs-md)}
.sm-state p{margin:0;font-size:var(--fs-sm);max-width:340px}
.sm-state-bad b{color:var(--danger)}
.sm-state-ico{font-size:var(--fs-2xl)}
.sm-pane-empty{margin:auto;max-width:460px;padding:var(--sp-6);text-align:center;color:var(--muted)}
.sm-pane-empty h2{margin:var(--sp-2) 0 var(--sp-2);color:var(--ink);font-size:var(--fs-xl)}
.sm-pane-empty .sm-state-ico{font-size:var(--fs-3xl)}
.sm-tips{list-style:none;padding:0;margin:var(--sp-5) 0 0;display:grid;gap:var(--sp-3);text-align:left}
.sm-tips li{background:var(--panel-2);border:1px solid var(--line);border-radius:var(--rad-in);padding:12px 14px;font-size:var(--fs-sm);color:var(--ink)}
.sm-tips b{color:var(--blue-ink)}
.sm-ico{width:16px;height:16px;flex:0 0 auto;vertical-align:-3px;fill:none;stroke:currentColor;stroke-width:1.8}
.sm-ico.big{width:40px;height:40px;stroke-width:1.4;color:var(--blue-ink)}
.sm-chip .sm-ico{width:14px;height:14px;color:var(--blue-ink)}
.sm-pop-ico .sm-ico{width:18px;height:18px;color:var(--blue-ink)}
.sm-pick .sm-ico{width:13px;height:13px}
/* 3.1220 (lane chatlabels) — a record picked with / sits in the message box as its name, one piece (public/smsg.js refChipHtml). */
.sm-tok{display:inline-flex;align-items:center;gap:4px;max-width:100%;vertical-align:baseline;margin:0 1px;padding:0 8px 0 5px;border-radius:999px;
  border:1px solid var(--b-200);background:var(--accent-soft);color:var(--ink);font-size:var(--fs-sm);line-height:1.5;user-select:all;cursor:default}
.sm-tok .sm-ico{width:13px;height:13px;color:var(--blue-ink)}
.sm-tok-l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sm-row-muted{display:inline-flex;color:var(--muted)}
[data-sm-mute],[data-sm-people]{display:inline-flex;align-items:center;gap:6px}
.sm-compose-hint b{color:var(--blue-ink)}
.sm-spin{width:22px;height:22px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--blue);animation:sm-spin .9s linear infinite}
@keyframes sm-spin{to{transform:rotate(360deg)}}
/* the windows: New chat, New group, People */
.sheet-card.sm-sheet{max-width:620px;width:calc(100vw - 32px)}
.sm-form{display:grid;gap:var(--sp-4)}
.sm-field{max-width:none}
.sm-field input{width:100%;box-sizing:border-box}
.sm-inline{display:flex;gap:var(--sp-2)}
.sm-inline input{flex:1;min-width:0}
.sm-chosen{display:flex;flex-wrap:wrap;gap:6px;min-height:30px;align-items:center}
.sm-people{display:grid;gap:2px;max-height:min(46vh,420px);overflow:auto;border:1px solid var(--line);border-radius:var(--rad-in);padding:4px;background:var(--panel-2)}
.sm-people:empty{display:none}
.sm-person{display:flex;gap:var(--sp-3);align-items:center;width:100%;padding:8px 10px;border:0;border-radius:var(--rad-sm);background:transparent;color:var(--ink);text-align:left;cursor:pointer;font:inherit}
.sm-person.static{cursor:default}
.sm-person:not(.static):hover,.sm-person.on{background:var(--accent-soft)}
.sm-person-main{display:grid;flex:1;min-width:0}
.sm-person-main span{font-size:var(--fs-xs);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-tick{width:22px;height:22px;border-radius:6px;border:2px solid var(--grey-mid);display:grid;place-items:center;color:var(--s-hero-ink);font-size:var(--fs-sm);font-weight:800}
.sm-person.on .sm-tick{background:var(--blue);border-color:var(--blue)}
.sm-go{color:var(--blue-ink);font-weight:700}
.sm-sec h4{margin:0 0 var(--sp-2);font-size:var(--fs-sm);color:var(--muted)}
.sm-form-foot{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap;padding-top:var(--sp-2);border-top:1px solid var(--line)}
.sm-form-foot .sm-said{flex-basis:auto}
@media (max-width:900px){
  .sm-shell{grid-template-columns:1fr;height:calc(100vh - 170px);min-height:460px}
  .sm-shell[data-pane="list"] .sm-pane{display:none}
  .sm-shell[data-pane="thread"] .sm-list{display:none}
  .sm-back{display:inline-block}
  .sm-pane-head{padding:var(--sp-2) var(--sp-3)}
  .sm-msgs{padding:var(--sp-3)}
  .sm-compose{padding:var(--sp-2) var(--sp-3)}
  .sm-compose-hint{display:none}
  .sm-msg{max-width:100%}
  .sm-pop{left:var(--sp-2);right:var(--sp-2)}
}
@media (max-width:480px){
  .sm-tool{width:36px}
  .sm-compose-tools .btn.primary{padding:0 14px}
  .sm-pane-acts .btn{padding:7px 9px}
  .sm-btn-lab{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .sm-chip{max-width:calc(100% - 4px)}
}
@media (prefers-reduced-motion: reduce){ .sm-spin{animation:none} }
/* ==== v3.1209.0 (27 October 2026, lane msgemoji) — MESSAGES: REACTIONS AND EMOJI (public/smsg.js, public/smsg-emoji.js) ====
   Darren: "enable emojis as well so that we can acknowledge messages that have been received and also enable them as an icon
   to send just a message with an emoji". The emoji are drawn in the system's emoji font: nothing to host. */
.sm-stack{display:flex;flex-direction:column;min-width:0;max-width:100%}
.sm-msg.mine .sm-stack{align-items:flex-end}
.sm-bubble{position:relative}
.sm-emoji-font,.sm-react-e,.sm-qe,.sm-ec,.sm-jumbo{font-family:var(--font-emoji)}
.sm-text-body.sm-jumbo{font-size:var(--fs-3xl);line-height:1.2;letter-spacing:.04em}
.sm-bubble.jumbo{background:transparent;border-color:transparent;box-shadow:none;padding:2px 4px}
.sm-msg.mine .sm-bubble.jumbo{background:transparent;border-color:transparent}
.sm-react-add{position:absolute;top:-12px;right:-10px;width:30px;height:30px;display:grid;place-items:center;border-radius:999px;
  border:1px solid var(--line);background:var(--panel);color:var(--muted);box-shadow:var(--sh-1);cursor:pointer;padding:0;
  opacity:0;transform:scale(.9);transition:opacity var(--dur-2) ease,transform var(--dur-2) ease}
.sm-msg.mine .sm-react-add{right:auto;left:-10px}
.sm-react-add .sm-ico{width:18px;height:18px}
.sm-msg:hover .sm-react-add,.sm-bubble:focus-within .sm-react-add,.sm-react-add:focus-visible{opacity:1;transform:none}
.sm-react-add:hover{color:var(--blue-ink);border-color:var(--blue)}
.sm-react-add:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.sm-reacts{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}
.sm-react{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 9px;border-radius:999px;border:1px solid var(--line);
  background:var(--panel);color:var(--ink);font:inherit;font-size:var(--fs-sm);cursor:pointer;line-height:1}
.sm-react:hover{border-color:var(--blue);background:var(--accent-soft)}
.sm-react:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.sm-react.mine{border-color:var(--blue);background:var(--accent-soft)}
.sm-react.mine .sm-react-n{color:var(--blue-ink)}
.sm-react-e{font-size:var(--fs-md);line-height:1}
.sm-react-n{font-weight:700;font-size:var(--fs-xs);color:var(--muted);font-variant-numeric:tabular-nums}
.sm-react-more{padding:0 7px;color:var(--muted)}
.sm-react-said{margin-top:3px;font-size:var(--fs-xs);font-weight:600;color:var(--ok)}
.sm-react-said.bad{color:var(--danger)}
.sm-react-more .sm-ico{width:16px;height:16px}
.sm-tool-emo{display:inline-grid;place-items:center}
.sm-tool-emo .sm-ico{width:20px;height:20px}
.sm-tool-emo[aria-expanded="true"]{border-color:var(--blue);background:var(--accent-soft)}
/* the picker: a short row for a reaction, or the full grid with a search */
.sm-emo{position:absolute;z-index:6;background:var(--panel);border:1px solid var(--line);border-radius:var(--rad);box-shadow:var(--sh-3);color:var(--ink)}
.sm-emo.hidden{display:none}
.sm-emo-quick{padding:6px}
.sm-quick{display:flex;gap:2px;align-items:center}
.sm-qe{width:40px;height:40px;border:0;border-radius:var(--rad-sm);background:transparent;font-size:var(--fs-xl);line-height:1;cursor:pointer;padding:0}
.sm-qe:hover,.sm-qe:focus-visible{background:var(--accent-soft);outline:none}
.sm-qe.mine{background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--blue)}
.sm-qmore{height:40px;padding:0 12px;margin-left:4px;border:1px solid var(--line);border-radius:var(--rad-sm);background:var(--panel-2);color:var(--blue-ink);
  font:inherit;font-size:var(--fs-sm);font-weight:700;cursor:pointer}
.sm-qmore:hover,.sm-qmore:focus-visible{border-color:var(--blue);outline:none}
.sm-emo-full{width:356px;display:flex;flex-direction:column;max-height:380px}
.sm-emo-head{display:flex;gap:6px;align-items:center;padding:8px;border-bottom:1px solid var(--line)}
.sm-emo-search{flex:1;min-width:0}
.sm-emo-search input{width:100%;box-sizing:border-box;height:36px;padding:0 12px;border-radius:var(--rad-in);border:1px solid var(--line);background:var(--panel-2);color:var(--ink);font:inherit;font-size:var(--fs-sm)}
.sm-emo-search input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px var(--accent-soft)}
.sm-emo-x{width:36px;height:36px;border:0;border-radius:var(--rad-sm);background:transparent;color:var(--muted);font-size:var(--fs-xl);line-height:1;cursor:pointer}
.sm-emo-x:hover{background:var(--tint);color:var(--ink)}
.sm-emo-grid{overflow:auto;padding:4px 8px 10px;flex:1 1 auto;min-height:0}
.sm-eg-h{position:sticky;top:0;background:var(--panel);padding:8px 2px 4px;font-size:var(--fs-xs);font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.sm-eg{display:grid;grid-template-columns:repeat(auto-fill,minmax(36px,1fr));gap:2px}
.sm-ec{height:38px;border:0;border-radius:var(--rad-sm);background:transparent;font-size:var(--fs-xl);line-height:1;cursor:pointer;padding:0}
.sm-ec:hover,.sm-ec:focus-visible{background:var(--accent-soft);outline:none}
.sm-ec:focus-visible{box-shadow:inset 0 0 0 2px var(--accent)}
.sm-emo-none{padding:var(--sp-4) var(--sp-2);font-size:var(--fs-sm);color:var(--muted);text-align:center}
@media (hover:none){ .sm-react-add{display:none} }
@media (max-width:700px){
  .sm-emo{position:fixed;left:8px;right:8px;bottom:8px;top:auto}
  .sm-emo-quick{display:flex;justify-content:center}
  .sm-quick{flex-wrap:wrap;justify-content:center}
  .sm-emo-full{width:auto;max-height:min(60vh,420px)}
  .sm-qe{width:44px;height:44px}
  .sm-ec{height:42px}
}
@media (max-width:480px){
  /* four tools and Send beside the box: narrower tools keep the box readable at 390px */
  .sm-compose-tools{gap:4px}
  .sm-compose-tools .sm-tool{width:32px}
  .sm-compose-tools .btn.primary{padding:0 12px}
  .sm-tool-emo .sm-ico{width:18px;height:18px}
}
@media (prefers-reduced-motion: reduce){ .sm-react-add{transition:none} }
/* ==== v3.1212.0 (28 October 2026, lane chatdock) — PLATINUM CHAT ALONG THE BOTTOM: TABS AND A SMALL WINDOW (public/smsg-dock.js) ====
   Darren: "a bit like the way LinkedIn works, where if there's a message, it pops up as a little tab from the bottom". One tab
   per conversation with unread messages, docked to the bottom edge on the right; the open conversation is a window beside
   them. Theme tokens only. It sits above a bar pinned to the bottom (--pcd-lift) and under every window and pop-up (z-index 70,
   below .modal-overlay's 80); --pcd-h and --pcd-pad tell the page how much room it takes. */
.pcd{position:fixed;right:16px;bottom:var(--pcd-lift,0px);z-index:70;display:flex;flex-direction:row-reverse;align-items:flex-end;gap:8px;
  max-width:calc(100vw - 32px);pointer-events:none}
.pcd.hidden{display:none}
.pcd > *{pointer-events:auto}
.pcd-winslot{display:flex;flex-direction:row-reverse;align-items:flex-end;gap:8px}
.pcd-winslot:empty{display:none}
.pcd-bar{position:relative;display:flex;flex-direction:row-reverse;align-items:flex-end;gap:8px;min-width:0}
/* v3.1216.0 — SCOPED TO THE DOCK. smsg-dock.js also puts `pcd-tabs` on <html> as a flag (a tab is docked), and the bare
   `.pcd-tabs{display:flex;flex-direction:row-reverse}` matched <html> too: the whole page became a reversed flex row, so on a
   narrow screen (the Team screen at 1440) the app slid right with an empty strip down the left, whenever a chat tab was docked
   (a waiting web chat docks one for every member of staff). Found by the suite (v312020beccomms leaves a chat waiting). */
.pcd-bar > .pcd-tabs{display:flex;flex-direction:row-reverse;align-items:flex-end;gap:8px}
.pcd-bar > .pcd-tabs:empty{display:none}
.pcd-said{align-self:center;font-size:var(--fs-sm);color:var(--ok);white-space:nowrap;padding:0 4px;
  background:var(--panel);border-radius:var(--rad-sm)}
.pcd-said:empty{display:none}
.pcd-said.bad{color:var(--danger);white-space:normal;max-width:260px}
.pcd-tab{position:relative;display:flex;align-items:stretch;width:248px;min-height:58px;background:var(--panel);color:var(--ink);
  border:1px solid var(--line);border-bottom:0;border-radius:var(--rad) var(--rad) 0 0;box-shadow:var(--sh-3)}
.pcd-tab.pcd-at{border-top:3px solid var(--orange)}
.pcd-tab-open,.pcd-row-open{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:8px 4px 8px 12px;border:0;background:transparent;
  color:inherit;font:inherit;text-align:left;cursor:pointer;border-radius:var(--rad) 0 0 0}
.pcd-tab-open:hover,.pcd-row-open:hover{background:var(--accent-soft)}
.pcd-tab-open:focus-visible,.pcd-row-open:focus-visible,.pcd-x:focus-visible,.pcd-more:focus-visible,.pcd-ico:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.pcd-tab .sm-av,.pcd-row .sm-av{width:34px;height:34px;font-size:var(--fs-xs)}
.pcd-tab-main{display:grid;min-width:0;flex:1;gap:1px}
.pcd-tab-top{display:flex;align-items:center;gap:6px;min-width:0}
.pcd-tab-name{flex:1;min-width:0;font-size:var(--fs-sm);font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcd-tab-line{font-size:var(--fs-xs);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcd-n{flex:0 0 auto;min-width:20px;padding:0 6px;border-radius:var(--rad-pill);background:var(--accent);color:var(--s-hero-ink);
  font-size:var(--fs-xs);font-weight:700;line-height:20px;text-align:center}
.pcd-tab-at{flex:0 0 auto;min-width:20px;border-radius:var(--rad-pill);background:var(--orange);color:var(--s-hero-ink);font-size:var(--fs-xs);
  font-weight:800;line-height:20px;text-align:center}
.pcd-x,.pcd-ico{flex:0 0 auto;width:32px;border:0;background:transparent;color:var(--muted);font-size:var(--fs-lg);line-height:1;cursor:pointer;
  display:grid;place-items:center;padding:0;border-radius:var(--rad-sm)}
.pcd-x{align-self:flex-start;height:32px;margin:4px 4px 0 0}
.pcd-x:hover,.pcd-ico:hover{background:var(--tint);color:var(--ink)}
.pcd-ico{height:32px}
.pcd-ico .sm-ico{width:18px;height:18px}
.pcd-moretab{width:auto}
.pcd-more{min-height:58px;padding:0 16px;border:0;background:transparent;color:var(--blue-ink);font:inherit;font-weight:800;font-size:var(--fs-sm);
  cursor:pointer;border-radius:var(--rad) var(--rad) 0 0;white-space:nowrap}
.pcd-more:hover,.pcd-more[aria-expanded="true"]{background:var(--accent-soft)}
.pcd-compact{width:auto;min-height:48px}
.pcd-compact .pcd-tab-open{gap:8px;padding:8px 6px 8px 14px}
.pcd-compact .sm-ico{width:20px;height:20px;color:var(--blue-ink)}
.pcd-compact .pcd-tab-name{flex:0 1 auto}
.pcd-compact .pcd-x{align-self:center;margin:0 4px 0 0}
/* "+N more": the rest, in a list above the tabs */
.pcd-list{position:absolute;left:0;bottom:calc(100% + 8px);width:300px;max-height:min(60vh,420px);overflow:auto;background:var(--panel);
  border:1px solid var(--line);border-radius:var(--rad);box-shadow:var(--sh-3);padding:4px}
.pcd-list.hidden{display:none}
.pcd-list-head{padding:8px 10px 6px;font-size:var(--fs-xs);font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.pcd-row{display:flex;align-items:center;border-radius:var(--rad-sm)}
.pcd-row .pcd-row-open{border-radius:var(--rad-sm);padding:8px 4px 8px 8px}
.pcd-row .pcd-x{align-self:center;margin:0}
/* The pop: a new message brings its tab up from the bottom edge. */
@keyframes pcd-rise{from{transform:translateY(100%);opacity:.2}to{transform:none;opacity:1}}
@keyframes pcd-nudge{0%,100%{transform:none}40%{transform:translateY(-6px)}}
.pcd-pop{animation:pcd-rise var(--dur-3) var(--ease-out),pcd-nudge .5s var(--ease-out) var(--dur-3)}
/* The window: the conversation, read and answered without leaving the screen. */
.pcd-win{position:relative;display:flex;flex-direction:column;width:340px;height:min(480px,calc(100vh - 96px - var(--pcd-lift,0px)));background:var(--panel);
  color:var(--ink);border:1px solid var(--line);border-bottom:0;border-radius:var(--rad) var(--rad) 0 0;box-shadow:var(--sh-3);overflow:hidden}
.pcd-win-head{display:flex;align-items:center;gap:10px;padding:8px 6px 8px 12px;border-bottom:1px solid var(--line);background:var(--panel-2)}
.pcd-win-head .sm-av{width:32px;height:32px;font-size:var(--fs-xs)}
.pcd-win-title{display:grid;flex:1;min-width:0}
.pcd-win-title b{font-size:var(--fs-sm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcd-win-title span{font-size:var(--fs-xs);color:var(--muted)}
.pcd-msgs{flex:1 1 auto;min-height:0;overflow:auto;padding:4px 12px 10px;background:var(--bg)}
.pcd-msgs .sm-day{margin:10px 0 6px}
.pcd-msgs .sm-state{padding:var(--sp-4) var(--sp-2)}
.pcd-msg{margin-top:8px;max-width:88%}
.pcd-msg.join{margin-top:2px}
.pcd-msg.mine{margin-left:auto}
.pcd-meta{display:flex;gap:6px;align-items:baseline;font-size:var(--fs-xs);margin-bottom:2px}
.pcd-msg.mine .pcd-meta{justify-content:flex-end}
.pcd-meta time{color:var(--muted)}
.pcd-bubble{background:var(--panel);border:1px solid var(--line);border-radius:4px var(--rad) var(--rad) var(--rad);padding:6px 10px;box-shadow:var(--sh-1)}
.pcd-msg.mine .pcd-bubble{background:var(--accent-soft);border-color:var(--b-200);border-radius:var(--rad) 4px var(--rad) var(--rad)}
.pcd-msg.tagged .pcd-bubble{border-left:3px solid var(--orange)}
.pcd-bubble.jumbo{background:transparent;border-color:transparent;box-shadow:none;padding:0 2px}
.pcd-bubble .sm-text-body{font-size:var(--fs-sm)}
.pcd-bubble .sm-text-body.sm-jumbo{font-size:var(--fs-2xl)}
/* The same composer as the Messages screen, folded for a narrow window: the box on its own line, the tools under it. */
.pcd-win .sm-compose{padding:8px 10px}
.pcd-win .sm-compose-row{flex-wrap:wrap;gap:6px}
.pcd-win .sm-text{flex:1 1 100%}
.pcd-win .sm-text textarea{min-height:40px;max-height:120px;padding:9px 12px}
.pcd-win .sm-compose-tools{margin-left:auto;gap:4px}
.pcd-win .sm-compose-tools .sm-tool{width:34px;height:36px;font-size:var(--fs-md)}
.pcd-win .sm-compose-tools .btn.primary{height:36px;padding:0 16px}
.pcd-win .sm-compose-hint{display:none}
.pcd-win .sm-pop{left:6px;right:6px;max-height:240px}
.pcd-win .pcd-winsaid{padding:0 12px 6px;background:var(--panel)}
.pcd-win .sm-emo.sm-emo-full{position:absolute;left:6px;right:6px;bottom:96px;top:auto;width:auto;max-height:300px}
/* lane chatfix — the reactions in a chat window: the screen's chips and Add a reaction button, sized for the window. */
.pcd-bubble{position:relative}
.pcd-msg:hover .sm-react-add,.pcd-bubble:focus-within .sm-react-add{opacity:1;transform:none}
.pcd-msg.mine .sm-react-add{right:auto;left:-10px}
.pcd-msg .sm-react-add{top:-10px;width:28px;height:28px}
.pcd-msg .sm-reacts{gap:4px;margin-top:4px}
.pcd-msg.mine .sm-reacts{justify-content:flex-end}
.pcd-msg .sm-react{height:26px;padding:0 7px}
.pcd-msg.mine .sm-react-said{display:block;text-align:right}
.pcd-win .sm-emo.sm-emo-quick{max-width:calc(100% - 12px);box-sizing:border-box}
.pcd-win .sm-emo-quick .sm-quick{flex-wrap:wrap;justify-content:center}
/* A website chat: urgent, first, and outside the three-tab limit (Darren: "that is an urgent one too"). Red along the top
   from the first second; it pulses once it has waited two minutes (the bar's own rule); calm once the visitor has gone. */
.pcd-web{border-top:3px solid var(--danger)}
.pcd-web .pcd-web-av,.pcd-webwin .pcd-web-av{background:var(--s-bad-soft);color:var(--danger)}
.pcd-web-av .sm-ico{width:18px;height:18px}
.pcd-web-when{flex:0 0 auto;font-size:var(--fs-xs);font-weight:700;color:var(--danger);white-space:nowrap}
.pcd-web-k{font-weight:700;color:var(--danger)}
.pcd-web.pcd-calm{border-top-color:var(--muted)}
.pcd-web.pcd-calm .pcd-web-when,.pcd-web.pcd-calm .pcd-web-k{color:var(--muted)}
@keyframes pcd-urge{0%,100%{box-shadow:var(--sh-3)}50%{box-shadow:var(--sh-3),0 0 0 4px var(--s-bad-soft)}}
.pcd-urgent{animation:pcd-urge 1.6s var(--ease-out) 3}
.pcd-compact.pcd-web{border-color:var(--danger)}
.pcd-compact.pcd-web .sm-ico{color:var(--danger)}
.pcd-compact.pcd-web .pcd-n{background:var(--danger)}
.pcd-webwin .pcd-win-head{border-top:3px solid var(--danger)}
.pcd-webform .sm-compose-tools{margin-left:auto}
@media (prefers-reduced-motion: reduce){ .pcd-urgent{animation:none} }
/* Room for it: the page's last line, the link toast and the Messages screen end above the tabs. */
html.pcd-tabs main#app{padding-bottom:calc(20px + var(--pcd-pad,0px))}
html.pcd-on .link-toast{bottom:calc(16px + var(--pcd-h,0px))}
@media (max-width:700px){
  .pcd{right:12px;bottom:calc(12px + var(--pcd-lift,0px))}
  .pcd-compact{border-bottom:1px solid var(--line);border-radius:var(--rad-pill)}
  .pcd-compact .pcd-tab-open{border-radius:var(--rad-pill) 0 0 var(--rad-pill)}
  html.pcd-tabs main#app{padding-bottom:calc(16px + var(--pcd-pad,0px))}
  html.pcd-on .sm-emo{bottom:calc(8px + var(--pcd-h,0px))}
}
@media (prefers-reduced-motion: reduce){ .pcd-pop{animation:none} }
@media print{ .pcd{display:none} }
/* ==== v3.1215.0 (29 October 2026, lane chatquote) — PLATINUM CHAT: QUOTE REPLIES (public/smsg.js, public/smsg-dock.js) ====
   Darren: "in Platinum chat ... be able to select some text and reply to it". A quote sits above a reply's words; the
   composer shows the one about to be sent with an x; a small Reply button floats by selected words. Theme tokens only. */
.sm-quote{display:grid;gap:1px;width:100%;box-sizing:border-box;margin:2px 0 6px;padding:5px 10px 6px;text-align:left;cursor:pointer;
  border:0;border-left:3px solid var(--blue);border-radius:var(--rad-sm);background:var(--panel-2);color:var(--ink);font:inherit}
.sm-msg.mine .sm-quote,.pcd-msg.mine .sm-quote{background:var(--panel)}
.sm-quote:hover{background:var(--tint)}
.sm-quote.sm-quote-gone{cursor:default;border-left-color:var(--line)}
.sm-quote.sm-quote-gone:hover{background:var(--panel-2)}
.sm-quote:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.sm-quote-who{display:inline-flex;align-items:center;gap:5px;font-size:var(--fs-xs);font-weight:700;color:var(--blue-ink)}
.sm-quote-who .sm-ico{width:13px;height:13px}
.sm-quote-text{font-size:var(--fs-sm);color:var(--muted);line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;
  overflow-wrap:anywhere}
.pcd-bubble .sm-quote{padding:4px 8px;margin-bottom:4px}
.pcd-bubble .sm-quote-text{-webkit-line-clamp:2;font-size:var(--fs-xs)}
.sm-reply-btn{position:absolute;top:-12px;right:24px;width:30px;height:30px;display:grid;place-items:center;border-radius:999px;
  border:1px solid var(--line);background:var(--panel);color:var(--muted);box-shadow:var(--sh-1);cursor:pointer;padding:0;
  opacity:0;transform:scale(.9);transition:opacity var(--dur-2) ease,transform var(--dur-2) ease}
.sm-reply-btn .sm-ico{width:17px;height:17px}
.sm-msg.mine .sm-reply-btn{right:auto;left:24px}
.sm-msg:hover .sm-reply-btn,.sm-bubble:focus-within .sm-reply-btn,.sm-reply-btn:focus-visible{opacity:1;transform:none}
.sm-reply-btn:hover{color:var(--blue-ink);border-color:var(--blue)}
.sm-reply-btn:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.pcd-bubble{position:relative}
.pcd-bubble .sm-reply-btn{top:-10px;right:-8px;width:26px;height:26px}
.pcd-msg.mine .pcd-bubble .sm-reply-btn{right:auto;left:-8px}
.pcd-msg:hover .sm-reply-btn,.pcd-bubble:focus-within .sm-reply-btn{opacity:1;transform:none}
/* Add a reaction beside Reply in a chat window (the two share the corner on the screen too). */
.pcd-bubble .sm-react-add{right:22px}
.pcd-msg.mine .pcd-bubble .sm-react-add{right:auto;left:22px}
@media (hover:none){ .sm-reply-btn{display:none} }
.sm-qreply{display:inline-flex;align-items:center;gap:5px}
.sm-qreply .sm-ico{width:15px;height:15px}
/* v3.1215.0 (lane chatphotos) — photos and files, Edit Message and Delete Message, and the window's header buttons. */
.sm-acts-btn{position:absolute;top:-12px;left:58px;width:30px;height:30px;display:grid;place-items:center;border-radius:999px;
  border:1px solid var(--line);background:var(--panel);color:var(--muted);box-shadow:var(--sh-1);cursor:pointer;padding:0;
  opacity:0;transform:scale(.9);transition:opacity var(--dur-2) ease,transform var(--dur-2) ease}
.sm-acts-btn .sm-ico{width:17px;height:17px}
.sm-msg:hover .sm-acts-btn,.sm-bubble:focus-within .sm-acts-btn,.sm-acts-btn:focus-visible,.pcd-msg:hover .sm-acts-btn,.pcd-bubble:focus-within .sm-acts-btn{opacity:1;transform:none}
.sm-acts-btn:hover{color:var(--blue-ink);border-color:var(--blue)}
.sm-acts-btn:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.pcd-bubble .sm-acts-btn{top:-10px;left:52px;width:26px;height:26px}
@media (hover:none){ .sm-acts-btn{display:none} }
.sm-qdel{color:var(--danger)}
.sm-tool-clip{display:grid;place-items:center;color:var(--blue-ink)}
.sm-tool-clip .sm-ico{width:20px;height:20px}
.sm-tool-clip[aria-disabled="true"]{color:var(--muted);opacity:.6;cursor:not-allowed}
.pcd-win .sm-tool-clip .sm-ico{width:18px;height:18px}
.sm-pending{display:none;gap:8px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:thin}
.sm-pending.on{display:flex}
.sm-pend{position:relative;flex:0 0 auto;width:96px;border:1px solid var(--line);border-radius:var(--rad-sm);background:var(--panel-2);padding:4px;
  display:flex;flex-direction:column;gap:2px;font-size:var(--fs-xs)}
.sm-pend.bad{border-color:var(--danger)}
.sm-pend img{width:100%;height:64px;object-fit:cover;border-radius:var(--rad-sm);display:block}
.sm-pend-file{height:64px;display:grid;place-items:center;color:var(--muted)}
.sm-pend-file .sm-ico{width:26px;height:26px}
.sm-pend-n{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink);font-weight:600}
.sm-pend-s{color:var(--muted)}
.sm-pend.bad .sm-pend-s{color:var(--danger)}
.sm-pend-bar{position:absolute;left:4px;right:4px;top:62px;height:3px;border-radius:2px;background:var(--line);overflow:hidden}
.sm-pend-bar::after{content:"";position:absolute;inset:0 auto 0 0;width:var(--p,0%);background:var(--blue)}
.sm-pend-x{position:absolute;top:-8px;right:-8px;width:24px;height:24px;border-radius:999px;border:1px solid var(--line);background:var(--panel);
  color:var(--ink);font-size:var(--fs-md);line-height:1;cursor:pointer;padding:0;box-shadow:var(--sh-1)}
.sm-pend-x:hover{border-color:var(--danger);color:var(--danger)}
.sm-attach-said{display:block;font-size:var(--fs-xs);font-weight:600;color:var(--ok);margin:0 0 6px}
.sm-attach-said:empty{display:none}
.sm-attach-said.bad{color:var(--danger)}
.sm-files{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px;margin-top:6px}
.sm-photo{padding:0;border:1px solid var(--line);border-radius:var(--rad-sm);background:var(--tint);cursor:zoom-in;overflow:hidden;
  width:120px;height:120px;display:block}
.sm-files.one .sm-photo{width:auto;height:auto;min-width:120px;min-height:90px;max-width:min(320px,100%)}
.sm-photo img{display:block;width:100%;height:100%;object-fit:cover}
.sm-files.one .sm-photo img{width:auto;height:auto;max-width:100%;max-height:240px;object-fit:contain}
.sm-photo img.broken{visibility:hidden}
.sm-photo:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.pcd-bubble .sm-photo{width:88px;height:88px}
.pcd-bubble .sm-files.one .sm-photo{width:auto;height:auto;max-width:100%}
.pcd-bubble .sm-files.one .sm-photo img{max-height:180px}
.sm-file{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:6px 10px;border:1px solid var(--line);border-radius:var(--rad-sm);
  background:var(--panel);color:var(--ink);cursor:pointer;font:inherit;font-size:var(--fs-sm)}
.sm-file:hover{border-color:var(--blue)}
.sm-file .sm-ico{width:18px;height:18px;color:var(--blue-ink);flex:0 0 auto}
.sm-file-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.sm-file-s{color:var(--muted);font-size:var(--fs-xs);flex:0 0 auto}
.sm-edited{display:inline-block;margin-top:2px;font-size:var(--fs-xs);color:var(--muted)}
.sm-deleted{font-style:italic;color:var(--muted)}
.sm-bubble.gone,.pcd-bubble.gone{background:transparent;box-shadow:none;border-style:dashed}
.sm-edit textarea{width:100%;box-sizing:border-box;min-height:60px;max-height:220px;resize:vertical;padding:8px 10px;border:1px solid var(--blue);
  border-radius:var(--rad-in);background:var(--panel);color:var(--ink);font:inherit;font-size:var(--fs-sm)}
.sm-edit textarea:focus{outline:none;box-shadow:0 0 0 3px var(--accent-soft)}
.sm-edit-acts{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px}
.sm-edit-hint{font-size:var(--fs-xs);color:var(--muted);margin-right:auto}
.sm-edit-said{flex-basis:100%;font-size:var(--fs-xs);font-weight:600;color:var(--ok)}
.sm-edit-said:empty{display:none}
.sm-edit-said.bad{color:var(--danger)}
/* 3.1219.3 hotfix (lane bec1111bugs, Bec item 13) — Edit Message has the composer's @ and / list, opening above the box. */
.sm-edit{position:relative;min-width:min(320px,70vw)}
.sm-edit .sm-picks{margin-bottom:6px}
.sm-edit .sm-pop{left:0;right:0;bottom:calc(100% + 4px);max-height:240px;z-index:8}
.sm-drop{outline:2px dashed var(--blue);outline-offset:-4px}
.sm-photo-full{display:grid;place-items:center;background:var(--tint);border-radius:var(--rad-sm);min-height:200px}
.sm-photo-full img{max-width:100%;max-height:70vh;display:block}
/* 3.1218.0 hotfix (lane chatrich) — formatted messages. Darren, 1 Nov 2026: "copy and paste tables, dot points, images, and rich
   text/HTML in there". The box is editable HTML (public/smsg.js richBox); a message's formatting is drawn in its bubble, and a
   table scrolls sideways inside its own box, never the page. Theme tokens only. */
.sm-box{width:100%;box-sizing:border-box;min-height:44px;max-height:220px;overflow:auto;padding:11px 14px;border-radius:var(--rad-in);
  border:1px solid var(--line);background:var(--panel-2);color:var(--ink);font-size:var(--fs-md);line-height:1.45;overflow-wrap:anywhere;cursor:text}
.sm-box:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px var(--accent-soft)}
.sm-box.empty::before{content:attr(data-placeholder);color:var(--muted);pointer-events:none;display:block;height:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcd-win .sm-box{min-height:40px;max-height:140px;padding:9px 12px}
.sm-edit-box{min-height:60px;border-color:var(--blue);background:var(--panel);font-size:var(--fs-sm)}
.sm-box img{max-width:min(240px,100%);max-height:180px;vertical-align:bottom;border-radius:var(--rad-sm);border:1px solid var(--line)}
.sm-box table,.sm-rich table{border-collapse:collapse;font-size:var(--fs-sm);line-height:1.4}
.sm-box th,.sm-box td,.sm-rich th,.sm-rich td{border:1px solid var(--line);padding:4px 8px;text-align:left;vertical-align:top}
.sm-box th,.sm-rich th,.sm-rich thead td{background:var(--tint);font-weight:700}
.sm-box ul,.sm-box ol,.sm-rich ul,.sm-rich ol{margin:.2em 0;padding-left:1.4em}
.sm-box p,.sm-rich p{margin:0 0 .35em}
.sm-rich p:last-child,.sm-rich li>p{margin-bottom:0}
.sm-box h1,.sm-box h2,.sm-box h3,.sm-rich h3{font-size:var(--fs-lg);margin:.3em 0 .2em;line-height:1.3}
.sm-box h4,.sm-box h5,.sm-box h6,.sm-rich h4{font-size:var(--fs-md);margin:.3em 0 .2em}
.sm-box blockquote,.sm-rich blockquote{margin:.3em 0;padding:2px 0 2px 10px;border-left:3px solid var(--line);color:var(--muted)}
.sm-box pre,.sm-rich pre{margin:.3em 0;padding:6px 8px;border-radius:var(--rad-sm);background:var(--tint);overflow-x:auto;white-space:pre;font-family:var(--font-mono);font-size:var(--fs-sm)}
.sm-box code,.sm-rich code{font-family:var(--font-mono);font-size:var(--fs-sm);background:var(--tint);border-radius:4px;padding:0 3px}
.sm-rich pre code{background:transparent;padding:0}
.sm-rich hr{border:0;border-top:1px solid var(--line);margin:.5em 0}
.sm-rich a{color:var(--blue-ink);text-decoration:underline}
.sm-rich caption{font-weight:700;text-align:left;padding-bottom:4px}
.sm-tw{max-width:100%;overflow-x:auto;margin:.3em 0;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
/* A table's words cannot break, so its bubble would grow past the screen: the bubble stops at its column, and the table scrolls. */
.sm-stack>.sm-bubble{max-width:100%;box-sizing:border-box}
.sm-tw:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.sm-inline-photo{display:inline-block;width:auto;height:auto;max-width:min(320px,100%);vertical-align:bottom;margin:2px 0}
.sm-inline-photo img{width:auto;height:auto;max-width:100%;max-height:240px;object-fit:contain}
.pcd-bubble .sm-inline-photo{width:auto;height:auto;max-width:100%}
.pcd-bubble .sm-inline-photo img{max-height:160px}
.sm-pend.inline.ready{display:none}
.sm-fmt{display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin-bottom:6px}
.sm-fmt[hidden]{display:none}
.sm-fb{min-width:32px;height:30px;padding:0 6px;border:1px solid transparent;border-radius:var(--rad-sm);background:transparent;color:var(--ink);font:inherit;font-size:var(--fs-md);cursor:pointer;display:inline-grid;place-items:center}
.sm-fb:hover{border-color:var(--line);background:var(--accent-soft)}
.sm-fb:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.sm-fb .sm-ico{width:18px;height:18px}
.sm-fb-gap{width:1px;height:18px;background:var(--line);margin:0 4px}
.sm-aa{font-size:var(--fs-md);font-weight:800;letter-spacing:-.02em}
.sm-tool-fmt[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--blue)}
.pcd-win .sm-fmt{margin-bottom:4px}
.pcd-win .sm-fb{min-width:28px;height:26px}
/* A phone: the box on its own line (six tools beside it left it a finger wide), the tools under it on the right. */
@media (max-width:700px){
  .sm-compose-row{flex-wrap:wrap}
  .sm-compose-row .sm-text{flex:1 1 100%}
  .sm-compose-tools{margin-left:auto}
  .sm-box{max-height:160px}
}
.pcd-ico[data-sm-mute] .pcd-bell-off{display:none}
.pcd-ico[data-sm-mute][aria-pressed="true"]{color:var(--orange)}
.pcd-ico[data-sm-mute][aria-pressed="true"] .pcd-bell-off{display:inline}
.pcd-msgs .sm-older{text-align:center;margin:6px 0}
/* Darren, 30 Oct 2026: "Known file types should display icons or previews … copy the functionality of Teams or WhatsApp." */
.sm-grid{display:grid;grid-template-columns:repeat(2,120px);gap:4px;margin-top:6px}
.sm-grid .sm-photo{width:120px;height:120px}
.sm-grid.n3 .sm-photo:first-child{grid-row:span 2;height:244px}
.pcd-bubble .sm-grid{grid-template-columns:repeat(2,96px)}
.pcd-bubble .sm-grid .sm-photo{width:96px;height:96px}
.pcd-bubble .sm-grid.n3 .sm-photo:first-child{height:196px}
.sm-photo{position:relative}
.sm-photo-more{position:absolute;inset:0;display:grid;place-items:center;background:var(--s-scrim,var(--ink));opacity:.72;color:var(--panel);
  font-size:var(--fs-2xl);font-weight:800}
.sm-media{display:flex;flex-direction:column;gap:4px;margin-top:6px;max-width:min(360px,100%)}
.sm-media video{width:100%;max-height:260px;border-radius:var(--rad-sm);background:var(--tint);display:block}
.sm-media audio{width:100%;min-width:220px}
.pcd-bubble .sm-media video{max-height:180px}
.sm-file-t{display:flex;flex-direction:column;align-items:flex-start;min-width:0;line-height:1.25}
.sm-fi{position:relative;flex:0 0 auto;width:30px;height:34px;display:grid;place-items:center;color:var(--muted)}
.sm-fi .sm-ico{width:26px;height:26px}
.sm-fi b{position:absolute;left:-2px;bottom:1px;padding:0 3px;border-radius:3px;font-size:9px;line-height:13px;font-weight:800;letter-spacing:.02em;
  color:var(--panel);background:var(--muted)}
.sm-fi-pdf{color:var(--danger)} .sm-fi-pdf b{background:var(--danger)}
.sm-fi-word{color:var(--blue)} .sm-fi-word b{background:var(--blue)}
.sm-fi-excel{color:var(--ok)} .sm-fi-excel b{background:var(--ok)}
.sm-fi-ppt{color:var(--orange)} .sm-fi-ppt b{background:var(--orange)}
.sm-fi-zip{color:var(--blue-ink)} .sm-fi-zip b{background:var(--blue-ink)}
.sm-fi-image{color:var(--accent)} .sm-fi-image b{background:var(--accent)}
.sm-fi-audio,.sm-fi-video{color:var(--blue-ink)}
.sm-fi-audio b,.sm-fi-video b{display:none}
.sm-pend-file .sm-fi{width:34px;height:40px}
.sm-viewer-foot{align-items:center;flex-wrap:wrap}
.sm-viewer-n{font-size:var(--fs-sm);color:var(--muted);font-variant-numeric:tabular-nums}
.sm-viewer-gap{flex:1 1 auto}
.pcd-msgs .sm-new{margin:8px 0}
/* the quote about to be sent, above the box */
.sm-quoting:empty{display:none}
.sm-quoting-in{display:flex;gap:8px;align-items:flex-start;margin-bottom:8px;padding:6px 6px 6px 10px;border-left:3px solid var(--blue);
  border-radius:var(--rad-sm);background:var(--panel-2)}
.sm-quoting-ico{color:var(--blue-ink);padding-top:2px}
.sm-quoting-main{display:grid;flex:1;min-width:0;gap:1px}
.sm-quoting-main b{font-size:var(--fs-xs);color:var(--blue-ink)}
.sm-quoting-main span{font-size:var(--fs-sm);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-quoting-x{flex:0 0 auto;width:30px;height:30px;border:0;border-radius:var(--rad-sm);background:transparent;color:var(--muted);
  font-size:var(--fs-xl);line-height:1;cursor:pointer}
.sm-quoting-x:hover{background:var(--tint);color:var(--ink)}
.sm-quoting-x:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.pcd-win .sm-quoting-in{margin-bottom:6px}
/* the floating Reply by selected words */
.sm-selreply{position:fixed;z-index:75;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px 0 11px;border-radius:999px;
  border:1px solid var(--blue);background:var(--panel);color:var(--blue-ink);font:inherit;font-size:var(--fs-sm);font-weight:700;
  box-shadow:var(--sh-3);cursor:pointer}
.sm-selreply.hidden{display:none}
.sm-selreply:hover{background:var(--accent-soft)}
.sm-selreply:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* the original, lit up when its quote is pressed */
.sm-msg.sm-flash .sm-bubble,.pcd-msg.sm-flash .pcd-bubble{animation:sm-flash 2s ease}
@keyframes sm-flash{0%,35%{box-shadow:0 0 0 3px var(--accent);background:var(--accent-soft)}100%{box-shadow:var(--sh-1)}}
@media (prefers-reduced-motion: reduce){
  .sm-reply-btn{transition:none}
  .sm-msg.sm-flash .sm-bubble,.pcd-msg.sm-flash .pcd-bubble{animation:none;box-shadow:0 0 0 3px var(--accent)}
}
@media print{ .sm-selreply,.sm-reply-btn{display:none} }
/* ==== v3.1196.0 (18 October 2026) — PLATINUM ASSIST: TOPIC CHIPS, SEARCH EVERYWHERE, GAPS, TAGGING, COST & MODELS ====
   (public/assistmore.js). Darren: "choose a topic… a slower, deeper search… make it obvious to Platinum staff". Theme tokens
   only. The chip row wraps on a phone rather than scrolling sideways; tables scroll inside their own box. */
.am-topics{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0 2px}
.am-topics-l{font-size:var(--fs-xs);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--s-muted);margin-right:4px;cursor:help}
.chip.am-topic{font-size:var(--fs-sm);padding:5px 11px;min-height:32px;background:var(--s-panel);color:var(--s-ink-2);border-color:var(--s-line)}
.chip.am-topic:hover:not(:disabled){border-color:var(--b-500);color:var(--accent-ink)}
.chip.am-topic.on{background:var(--s-accent-soft);border-color:var(--b-500);color:var(--accent-ink)}
.chip.am-topic.am-guess.on{border-style:dashed}
.chip.am-topic:disabled{opacity:.55;cursor:default}
.btn.am-everywhere{margin-left:auto;min-height:32px}
.am-extras{display:grid;gap:4px;margin:8px 0 2px}
.am-extras .hint{margin:0}
.am-offer{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:6px 0;padding:10px 12px;border-radius:var(--rad);background:var(--s-accent-soft);color:var(--s-ink)}
.am-offer-w{flex:1 1 240px;font-size:var(--fs-sm)}
.am-budget{color:var(--s-warn)}
.am-extras .am-cost{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.am-notices{display:grid;gap:12px;border-left:4px solid var(--s-ok)}
.am-notice-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0}
.am-notice .assist-atext{margin-top:6px}
/* The Gaps screen. */
.am-gapbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0 12px}
.am-gapbar .chip{font-size:var(--fs-sm);padding:5px 11px}
.am-n{font-variant-numeric:tabular-nums;opacity:.8}
/* v3.1197.0 (19 October 2026) — on the chosen (blue) chip the count is full strength: at .8 it read 4.32:1 (v31111a11y). */
.am-gapbar .chip.on .am-n{opacity:1}
.am-gaplist{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.am-gap{padding:12px 14px;border:1px solid var(--s-line);border-left:4px solid var(--s-line-2);border-radius:var(--rad);background:var(--s-raised)}
.am-gap.am-sla-orange{border-left-color:var(--o-500)}
.am-gap.am-sla-red{border-left-color:var(--s-bad)}
.am-gap-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.linkbtn.am-gap-q{font-weight:600;text-align:left;font-size:var(--fs-md);color:var(--s-ink);flex:1 1 260px;min-width:0;overflow-wrap:anywhere}
.am-gap-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.am-sla-tag{font-size:var(--fs-xs);font-weight:700;padding:2px 8px;border-radius:var(--rad-pill);background:var(--s-warn-soft);color:var(--s-warn)}
.am-sla-red .am-sla-tag{background:var(--s-bad-soft);color:var(--s-bad)}
.am-gap-sub{margin:4px 0 0}
.am-missing{margin:8px 0 0;font-size:var(--fs-sm)}
.am-look{margin:6px 0 0;font-size:var(--fs-sm)}
.am-look ul{margin:4px 0 0;padding-left:18px}
.am-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0 0}
.am-ans{white-space:pre-wrap;font-size:var(--fs-sm);padding:8px 10px;border-radius:var(--rad-in);background:var(--s-sunk);color:var(--s-ink);max-height:260px;overflow:auto}
.am-gap-acts{margin:10px 0 0}
.am-props{margin:0 0 12px;padding:10px 12px;border-radius:var(--rad);background:var(--s-sunk)}
.am-props ul{margin:4px 0 0;padding-left:18px}
.am-byarea{margin-top:8px}
.am-paste,.am-notours{display:grid;gap:12px}
.am-paste textarea,.am-paste input,.am-paste select,.am-notours select,.am-notours input{width:100%;box-sizing:border-box}
/* Tables, figures and the meter. */
.am-tablewrap{overflow-x:auto;max-width:100%}
.am-table{width:100%;border-collapse:collapse;font-size:var(--fs-sm)}
.am-table th,.am-table td{padding:6px 10px;border-bottom:1px solid var(--s-line);text-align:left;white-space:nowrap}
.am-table th{font-weight:600;color:var(--s-muted)}
.am-table td:first-child{white-space:normal}
.am-table tr.am-best td{background:var(--s-ok-soft)}
.am-figs{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:4px 0 12px}
.am-fig{display:grid;gap:2px;padding:10px 12px;border-radius:var(--rad);background:var(--s-sunk);cursor:help}
.am-fig b{font-size:var(--fs-lg);font-variant-numeric:tabular-nums;color:var(--s-ink)}
.am-fig span{font-size:var(--fs-xs);color:var(--s-muted)}
.am-inline{display:inline-flex;align-items:center;gap:6px}
.am-inline input{width:90px}
.am-check{display:flex;align-items:center;gap:8px}
.am-h3{margin:18px 0 8px;font-size:var(--fs-md)}
.am-meter{height:8px;border-radius:var(--rad-pill);background:var(--s-sunk);overflow:hidden;margin:4px 0 8px}
.am-meter i{display:block;height:100%;background:var(--b-500);border-radius:inherit}
.am-proplist{list-style:none;margin:8px 0;padding:0;display:grid;gap:8px}
.am-proplist li{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.am-propq{flex:1 1 280px;min-width:0}
.am-ci.bad{color:var(--s-bad)}
@media (max-width:640px){ .am-compare{grid-template-columns:1fr} .btn.am-everywhere{margin-left:0} }

/* ---- v3.1196.0 (18 October 2026) — Pages and funnels: a block's background, a form's questions and "Give them", Connect Claude ----
   Darren, 18 Oct: "full access to do everything on a site: backgrounds, images, buttons, calls to action, embedding videos" and
   "provide them with access to a 3-month trial period". Theme colours only. */
.pg-bgbox{margin-top:var(--sp-2);border-top:1px dashed var(--line);padding-top:var(--sp-2)}
.pg-bgbox>summary{cursor:pointer;font-weight:600;font-size:var(--fs-sm);color:var(--muted)}
.pg-qbox,.pg-givebox{margin-top:var(--sp-2)}
.pg-give{background:var(--panel)}
.pg-upbtn{cursor:pointer}
.pg-k-scopes{border:1px solid var(--line);border-radius:var(--radius,8px);padding:var(--sp-2) var(--sp-3);display:grid;gap:4px;margin:var(--sp-2) 0}
.pg-mcpurl{display:inline-block;max-width:100%;overflow-wrap:anywhere;background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:2px 6px;font-size:var(--fs-sm)}

/* ---- v3.1196.0 (18 October 2026) — VISIT RECORDINGS ON AN ENQUIRY (public/rec.js enquiryListHtml) ------------------
   One row per recording the phone filed against the enquiry: when and how long, who recorded it, where it is up to, and
   the whole row opens it (Enter too, the record's .enq-rowgo rule). Theme tokens only. Wraps at phone width. `enq-vrec`, not `enq-rec`: that is the enquiry record's own class. */
.enq-vrecs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.enq-vrec{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 10px;border-radius:var(--r);
  background:var(--panel);border:1px solid var(--line);cursor:pointer}
.enq-vrec:hover,.enq-vrec:focus-visible{border-color:var(--blue)}
.enq-vrec-ico svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
  vertical-align:middle;color:var(--blue-ink,var(--blue))}
.enq-vrec-main{display:flex;flex-direction:column;flex:1 1 180px;min-width:0}
.enq-vrec-main .hint{overflow-wrap:anywhere}
.enq-vrec-go{margin-left:auto}

/* ---- v3.1196.0 (18 October 2026) — "PAST DATES STILL OPEN" ON OFFICE → BOOKINGS (public/pastdates.js) ---------------
   Only drawn when there is one. Each row: when, which booking, who, where it is up to, then Open and Close with the answer
   beside them. The row wraps at phone width. Theme tokens only. */
.pd-panel{border:1px solid var(--line);border-left:4px solid var(--orange);border-radius:var(--r);padding:0;margin:0 0 12px;
  overflow:hidden}
/* v3.1203.1 (24 October 2026) — Darren: "the past dates still open should start minimised, but maybe with an orange bar to
   expand it if you're wanting it. It gets in the way a lot." The heading IS the bar: one slim orange line, a real button.
   Folded, the panel is only the bar; unfolded, the rows sit under it as before. Office orange tokens only. */
.pd-h{margin:0;font-size:inherit}
.pd-bar{display:flex;align-items:center;gap:0;width:100%;min-height:34px;margin:0;padding:6px 12px;border:0;border-radius:0;
  background:var(--orange-soft);color:var(--orange-ink);font:inherit;font-weight:700;text-align:left;cursor:pointer}
.pd-bar:hover .pd-bar-t{text-decoration:underline}
.pd-bar:focus-visible{outline:2px solid var(--orange);outline-offset:-2px}
.pd-bar .pd-bar-t{min-width:0;overflow-wrap:anywhere}
.pd-bar .pd-dot{white-space:pre}
.pd-bar .pd-n{font-variant-numeric:tabular-nums}
.pd-bar .pd-chev{margin-left:auto;padding-left:10px;font-size:1.2em;line-height:1}
.pd-body{padding:10px 12px}
.pd-body[hidden]{display:none}
.pd-row.pd-done{opacity:.6}
.pd-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.pd-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 10px;border-radius:var(--r);
  background:var(--panel);border:1px solid var(--line)}
.pd-go{cursor:pointer}
.pd-go:hover,.pd-go:focus-visible{border-color:var(--blue)}
.pd-main{display:flex;flex-direction:column;flex:1 1 220px;min-width:0}
.pd-main .hint{overflow-wrap:anywhere}
.pd-who{flex:0 1 160px;min-width:0;overflow-wrap:anywhere}
.pd-acts{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;margin-left:auto}
/* Wide enough for columns: who and where-it-is-up-to line up down the band. */
@media (min-width:760px){
  .pd-row{display:grid;grid-template-columns:minmax(0,1fr) 170px 240px auto}
  .pd-st{justify-self:start}
}
/* ---- lane outlooksync (3.1207.0) — "CANCELLED, STILL IN OUTLOOK" (public/keptmeetings.js) -------------------------------
   The same shape as Past dates still open, always open (rare, and each row is something to answer). The bar is a heading,
   not a button. What Outlook says sits under the booking's name, in the Office orange. Theme tokens only. */
/* The words beside Close / Reopen / Remove the meeting can be a sentence now ("Closed. Outlook sent its cancellation; ours
   sent too"): they wrap under the buttons instead of widening the row until its first column is squeezed to nothing. */
.pd-acts,.km-acts{max-width:360px}
.pd-acts .save-status,.km-acts .save-status{flex:1 1 100%;white-space:normal;overflow-wrap:anywhere;text-align:right}
.km-panel .km-bar{cursor:default}
.km-panel .km-bar:hover .pd-bar-t{text-decoration:none}
.km-main{display:flex;flex-direction:column;flex:1 1 240px;min-width:0}
.km-main .hint,.km-words{overflow-wrap:anywhere}
.km-words{color:var(--orange-ink);font-size:var(--fs-sm);font-weight:600}
.km-who{flex:0 1 160px;min-width:0;overflow-wrap:anywhere}
.km-acts{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;margin-left:auto}
@media (min-width:760px){ .km-row{display:grid;grid-template-columns:minmax(0,1fr) 170px auto} }
/* The booking window's date line: what Outlook said about it, on its own line under the date. */
.bkt-outlook,.bkt-kept{display:block;margin-top:2px;overflow-wrap:anywhere}
.bkt-kept{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bkt-kept-w{color:var(--orange-ink);font-weight:600;font-size:var(--fs-sm)}
/* My day: the same two lines on a booking's card, and a cancelled date's tag. */
.myd-st-cancelled{background:var(--panel);color:var(--muted);border-color:var(--line)}
.myd-outlook{margin:4px 0 0}
.myd-kept{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 0}
.myd-kept-w{color:var(--orange-ink);font-weight:600}

/* ---- lane zoomstatus (3.1207.0, 26 October 2026) — WHAT ZOOM SAYS, AND "TO CHECK" ON OFFICE → BOOKINGS ---------------
   `zl-line` is the one Zoom line ("In Zoom since 1:02pm · Recording") on the booking window, the enquiry and My day.
   `tc-` is the To check band (public/tocheck.js): each row says the booked time, Zoom's open and close, the recording and
   the percentage, with Fine and We owe time and the answer beside them. Wraps at phone width. Theme tokens only. */
.zl-line{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;background:var(--ok-soft);color:var(--ok);
  font-size:.92em;font-weight:600;overflow-wrap:anywhere}
.myd-tag.zl-line{margin-left:0}
.enq-date .zl-line{margin-left:0}
.tc-panel{border:1px solid var(--line);border-left:4px solid var(--danger);border-radius:var(--r);margin:0 0 12px;overflow:hidden;
  background:var(--panel)}
.tc-h{margin:0;padding:8px 12px;font-size:inherit;font-weight:700;border-bottom:1px solid var(--line)}
.tc-h .tc-dot{white-space:pre}
.tc-h .tc-n{font-variant-numeric:tabular-nums}
.tc-body{padding:10px 12px}
.tc-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.tc-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 10px;border-radius:var(--r);
  background:var(--panel);border:1px solid var(--line)}
.tc-row.tc-done{opacity:.6}
.tc-go{cursor:pointer}
.tc-go:hover,.tc-go:focus-visible{border-color:var(--blue)}
.tc-main{display:flex;flex-direction:column;flex:1 1 220px;min-width:0}
.tc-main .hint{overflow-wrap:anywhere}
.tc-facts{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;flex:2 1 320px;min-width:0}
.tc-fact{overflow-wrap:anywhere}
.tc-acts{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;margin-left:auto}
.tc-owe-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;margin:0 0 12px}
.tc-owe-facts dt{color:var(--muted)}
.tc-owe-facts dd{margin:0;overflow-wrap:anywhere}
.tc-owe-acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
/* v3.1198.0 — "Remind every (minutes)" on Website chat settings: a small number box, not a full-width line. */
.wc-remind{margin-top:8px}
#wc-panel label.wide.wc-remind:not(.edge-check)>input{max-width:120px}

/* ---- v3.1198.0 (19 October 2026) — JARRYD'S CRM UPDATES (dir lane): notes, old invoices, the merge words ---------------- */
/* Notes on the customer (dirNotesHtml). */
.dir-notes .dnote-new textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:52px}
.dir-notes .dnote-new .bi-actions{margin:6px 0 0}
.dnote-list{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.dnote{padding:10px 12px;border:1px solid var(--s-line,var(--line));border-radius:9px;background:var(--panel)}
.dnote-meta{font-size:var(--fs-sm);color:var(--muted);display:flex;flex-wrap:wrap;gap:2px 6px;align-items:baseline}
.dnote-meta b{color:var(--ink)}
.dnote-body{margin:6px 0 0;white-space:normal;word-break:break-word}
.dnote-edit{width:100%;box-sizing:border-box;margin:6px 0 0;resize:vertical}
.dnote-acts{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.dnote .save-status:empty{display:none}
/* Old invoices (dirOldInvoicesHtml). The actions wrap rather than push the table sideways on a phone. */
.oldinv-list{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.oldinv-card{padding:10px 12px;border:1px solid var(--s-line,var(--line));border-radius:9px;background:var(--panel)}
.oldinv-head{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;justify-content:space-between}
.oldinv-facts{font-size:var(--fs-sm);margin:3px 0 0;word-break:break-word}
.dir-oldinv .oldinv-acts{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.dir-oldinv .oldinv-st{font-weight:600}
.dir-oldinv .oldinv-owed{color:var(--orange-ink,var(--ink))}
.dir-oldinv #oldinv-msg:empty{display:none}
#oinv .oinv-paidon[hidden]{display:none}
/* The merge chooser's words come from one helper (mergeChooserLabels) and its legend is styled once, with .mg-legend
   above (enq lane) — the dir lane's second heading row was dropped when the two lanes were merged. */
/* Merge duplicates, by hand (dirMergePickHtml). */
.mdp .mdp-kind{margin:0 0 10px}
.mdp .mdp-q input{width:100%;box-sizing:border-box}
.mdp-hits{display:flex;flex-direction:column;gap:6px;margin:10px 0;max-height:40vh;overflow-y:auto}
.mdp-th{margin:12px 0 4px}
.mdp-ticked{margin:0;padding-left:18px}
.mdp-ticked li{margin:3px 0;word-break:break-word}
/* A person's company, on their own form (edctCoHtml). */
.edct-co{margin:12px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:9px}
.edct-co h4{margin:0 0 4px}
.edct-co .edct-co-now{margin:0}
.edct-co .edct-co-acts{margin:8px 0 0;display:flex;flex-wrap:wrap;gap:6px}
.edct-co .edct-co-hits{display:flex;flex-direction:column;gap:4px;margin:6px 0 0}
.edct-co .save-status:empty{display:none}
/* 3.1221 (lane bec1111people) — the contact's Notes (Bec, 11 Nov, item 4): the whole width of the window. */
#edct > h4{margin:14px 0 4px}
.edct-notes{max-width:none;display:block}
.edct-notes textarea{width:100%;box-sizing:border-box;min-height:84px;resize:vertical;font:inherit}
/* The company's own details at the top of the record (dsumCompanyLineHtml). */
.dsum-coline{margin:8px 0 0}
/* v3.1198.0 — the record's top on a phone: the heading keeps its line and the three buttons wrap under it (the heading was
   squeezed to nothing and "Bring in a booking" ran off the edge), and a long email address wraps inside its pill. */
@media (max-width:560px){
  .dsum-head{flex-wrap:wrap}
  .dsum-head h3{flex:1 1 100%}
  .dsum-acts{flex:1 1 100%;min-width:0;flex-wrap:wrap;white-space:normal}
}
.dsum .dsum-who .calls{max-width:100%;min-width:0;overflow-wrap:anywhere}
/* v3.1200.0 — a picture in a lesson (public/lessontext.js `![caption](name.png)`), served by /api/academy/img/<name>. */
.lesson-fig{margin:14px 0;padding:0}
.lesson-fig img{display:block;max-width:100%;height:auto;border:1px solid var(--line);border-radius:10px}
.lesson-fig figcaption{margin-top:6px;font-size:.88em;color:var(--muted)}

/* v3.1201.0 — an Account section filled by its panel (accPlace); empty until the panel arrives. */
.acc-mount:empty{display:none}
/* v3.1202.0 — Pages and funnels → Sites and QR codes (public/sitesqr.js). Theme tokens only. */
.sq-tools{gap:var(--sp-1);flex-wrap:wrap;align-items:center;margin-bottom:var(--sp-3)}
.sq-tools .chip{cursor:pointer}
.sq-count{opacity:.7;font-variant-numeric:tabular-nums}
/* 3.1202.0 release — full strength on a chosen (blue) chip: faded white on blue failed the contrast check (test/v31111a11y). */
.sq-tools .chip.on .sq-count,.sq-tools .chip[aria-pressed="true"] .sq-count{opacity:1}
.sq-grow{flex:1}
.sq-tbl .sq-row{cursor:pointer}
.sq-tbl .sq-row:hover td,.sq-tbl .sq-row:focus-visible td{background:var(--s-sunk)}
.sq-tbl .sq-url{max-width:340px;overflow-wrap:anywhere}
.sq-tbl .sq-act{text-align:right;white-space:nowrap}
.sq-allow{margin-top:var(--sp-3)}
.sq-win{display:grid;gap:var(--sp-3)}
.sq-serve{gap:var(--sp-1);flex-wrap:wrap}
.sq-serve .chip{cursor:pointer}
.sq-serve input{position:absolute;opacity:0;pointer-events:none}
.sq-serve .chip:focus-within{outline:2px solid var(--b-500);outline-offset:2px}
.sq-addr{overflow-wrap:anywhere}
.sq-code{max-height:180px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.sq-acts{gap:var(--sp-2);flex-wrap:wrap;align-items:center}
.sq-qsec+.sq-qsec{margin-top:var(--sp-4)}
.sq-qsec h3{margin:0 0 var(--sp-2)}
.sq-qwin{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:var(--sp-4);align-items:start}
.sq-qform{display:grid;gap:var(--sp-3)}
.sq-qurl{display:block;overflow-wrap:anywhere;font-size:var(--fs-sm);background:var(--s-sunk);border-radius:var(--rad);padding:var(--sp-2)}
.sq-qpic{background:var(--s-panel);border:1px solid var(--s-line);border-radius:var(--rad);padding:var(--sp-3);text-align:center}
.sq-qpic svg{display:block;width:100%;max-width:240px;height:auto;margin:0 auto}
.sq-on{display:flex;flex-direction:row;align-items:center;gap:var(--sp-3)}
.sq-on input.sq-switch{appearance:none;-webkit-appearance:none;flex:0 0 auto;width:40px;height:22px;min-height:0;padding:0;margin:0;border:0;
  border-radius:999px;background:var(--line);position:relative;cursor:pointer;transition:background var(--dur-2) var(--ease-out)}
.sq-on input.sq-switch::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--panel);
  transition:transform var(--dur-2) var(--ease-move)}
.sq-on input.sq-switch:checked{background:var(--blue)}
.sq-on input.sq-switch:checked::after{transform:translateX(18px)}
.sq-on input.sq-switch:focus-visible{outline:2px solid var(--b-500);outline-offset:2px}
@media (max-width:700px){.sq-qwin{grid-template-columns:minmax(0,1fr)}.sq-qpic{order:-1}.sq-tbl .sq-wide{display:none}.sq-sites .sq-act,.sq-sites .sq-tbl th:last-child{display:none}}

/* 0424 (21 October 2026) — DOCUMENTS (public/apps/files.js, public/docsection.js). Theme tokens only. */
.wsd{display:flex;flex-direction:column;gap:var(--sp-4)}
.wsd-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-3)}
.wsd-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1);min-width:0}
.wsd-crumb{background:none;border:0;padding:4px 6px;border-radius:var(--rad-in);font:inherit;font-weight:600;color:var(--s-link);cursor:pointer}
.wsd-crumb:last-of-type{color:var(--s-ink)}
.wsd-crumb:hover{background:var(--s-accent-soft)}
.wsd-crumb:focus-visible{outline:none;box-shadow:var(--s-focus)}
.wsd-crumb-here{font-weight:600;color:var(--s-ink);padding:4px 6px}
.wsd-sep{color:var(--s-muted)}
.wsd-acts{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--sp-2)}
.wsd-act{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px}
.wsd-act .save-status{margin:0;font-size:var(--fs-xs);color:var(--s-ink-2);max-width:280px}
.wsd-act .save-status.bad{color:var(--s-bad)}
.wsd-limit{margin:0;font-size:var(--fs-xs);color:var(--s-muted)}
.wsd-notice{border:1px solid var(--s-warn);background:var(--s-warn-soft);color:var(--s-ink);border-radius:var(--rad-in);padding:var(--sp-3) var(--sp-4);font-size:var(--fs-sm)}
.wsd-head,.wsd-row{display:grid;grid-template-columns:minmax(220px,2fr) 110px minmax(150px,1fr) minmax(140px,1fr);gap:var(--sp-4);align-items:center}
.wsd-head{padding:0 var(--sp-4) var(--sp-2);font-size:var(--fs-xs);font-weight:600;color:var(--s-muted);text-transform:uppercase;letter-spacing:.04em}
.wsd-list{display:flex;flex-direction:column;border:1px solid var(--s-line-2);border-radius:var(--rad-in);overflow:hidden}
.wsd-row{padding:var(--sp-3) var(--sp-4);border-top:1px solid var(--s-line-2);background:var(--s-panel);color:var(--s-ink-2);font-size:var(--fs-sm)}
.wsd-row[role="button"]{cursor:pointer}
.wsd-row:first-child{border-top:0}
.wsd-row[role="button"]:hover{background:var(--s-accent-soft)}
.wsd-row:focus-visible{outline:none;box-shadow:inset var(--s-focus)}
.wsd-name{display:flex;align-items:center;gap:var(--sp-2);min-width:0}
.wsd-name b{color:var(--s-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wsd-ic{flex:0 0 22px;width:22px;height:22px;color:var(--s-muted)}
.wsd-ic svg{width:22px;height:22px;display:block}
.wsd-ic-folder{color:var(--s-link)}
.wsd-kind{font-size:var(--fs-xs);color:var(--s-muted)}
.wsd-by{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--s-muted)}
.wsd-pill{display:inline-flex;align-items:center;white-space:nowrap;padding:2px 8px;border-radius:var(--rad-pill);font-size:var(--fs-xs);font-weight:600;background:var(--s-warn-soft);color:var(--s-warn)}
.wsd-empty,.wsd-state{border:1px dashed var(--s-line);border-radius:var(--rad-in);padding:var(--sp-5);background:var(--s-panel)}
.wsd-empty p,.wsd-state h3,.wsd-state p{margin:0 0 var(--sp-2)}
.wsd-state-bad{border-color:var(--s-bad)}
.wsd-sheet{display:flex;flex-direction:column;gap:var(--sp-4)}
.wsd-preview{display:flex;justify-content:center;align-items:center;min-height:120px;background:var(--s-sunk);border-radius:var(--rad-in);padding:var(--sp-3)}
.wsd-preview img,.wsd-preview video{max-width:100%;max-height:60vh;border-radius:var(--rad-in)}
.wsd-preview audio{width:100%}
.wsd-preview iframe{width:100%;height:60vh;border:0;border-radius:var(--rad-in);background:var(--s-panel)}
.wsd-sheet-acts{display:flex;flex-wrap:wrap;gap:var(--sp-3)}
.wsd-inline{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--sp-3)}
.wsd-inline label{display:flex;flex-direction:column;gap:4px;flex:1 1 240px;font-size:var(--fs-sm);color:var(--s-ink-2)}
.wsd-inline input,.wsd-inline select,.wsd-form input[name="name"]{font:inherit;padding:8px 10px;border:1px solid var(--s-line);border-radius:var(--rad-in);background:var(--s-panel);color:var(--s-ink)}
.wsd-form{display:flex;flex-direction:column;gap:var(--sp-3)}
.wsd-form label{display:flex;flex-direction:column;gap:4px;font-size:var(--fs-sm);color:var(--s-ink-2)}
.wsd-form .wsd-check,.wsd-inline .wsd-check{flex-direction:row;align-items:center;gap:var(--sp-2)}
.wsd-foot{display:flex;flex-direction:row;align-items:center;gap:var(--sp-3)}
.wsd-vh{margin:0}
.wsd-vers{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border:1px solid var(--s-line-2);border-radius:var(--rad-in)}
.wsd-ver{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border-top:1px solid var(--s-line-2);font-size:var(--fs-sm);color:var(--s-ink-2)}
.wsd-ver:first-child{border-top:0}
@media (max-width:760px){
  .wsd-head{display:none}
  .wsd-row{grid-template-columns:1fr auto;gap:var(--sp-1) var(--sp-3)}
  .wsd-row .wsd-when,.wsd-row .wsd-by{grid-column:1 / -1;font-size:var(--fs-xs)}
  .wsd-acts{width:100%}
}
.wsd-pill-ro{background:var(--s-sunk);color:var(--s-ink-2)}
.wsd-pill-cust{background:var(--s-accent-soft);color:var(--s-link)}
.wsd-reclink{color:var(--s-link);font-weight:600}
.ds-slot:empty{display:none}
.ds{margin-top:var(--sp-3)}
.ds h3{margin:0 0 var(--sp-2)}
.ds-list{list-style:none;margin:0 0 var(--sp-2);padding:0;display:flex;flex-direction:column;border:1px solid var(--s-line-2);border-radius:var(--rad-in)}
.ds-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);border-top:1px solid var(--s-line-2);font-size:var(--fs-sm)}
.ds-row:first-child{border-top:0}
.ds-row .wsd-act{margin-left:auto}
.ds-name{background:none;border:0;padding:0;font:inherit;font-weight:600;color:var(--s-link);cursor:pointer;text-align:left;min-width:0;overflow-wrap:anywhere}
.ds-name:focus-visible{outline:none;box-shadow:var(--s-focus)}
.ds-name-plain{font-weight:600;color:var(--s-ink);overflow-wrap:anywhere}
.ds-acts{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin:0}
.ds-place{border:1px solid var(--s-line-2);border-radius:var(--rad-in);padding:var(--sp-2) var(--sp-3);display:flex;flex-direction:column;gap:var(--sp-1)}
.ds-place legend{font-size:var(--fs-sm);color:var(--s-ink-2)}

/* 3.1209 (27 October 2026) — ONE UPLOADER (public/dropzone.js) AND A CUSTOMER'S DOCUMENTS (public/custdocs.js). Theme tokens only. */
.dz{display:flex;flex-direction:column;gap:var(--sp-2);border:1px dashed var(--s-line);border-radius:var(--rad-in);padding:var(--sp-3);background:var(--s-sunk);transition:background var(--dur-2) var(--ease-out),border-color var(--dur-2) var(--ease-out)}
.dz.dz-over{border-color:var(--s-link);background:var(--s-accent-soft)}
.dz.dz-off{opacity:.75}
.dz-bar{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--sp-2) var(--sp-3)}
.dz-act{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px}
.dz-act .save-status{margin:0;font-size:var(--fs-xs);color:var(--s-ink-2);max-width:280px}
.dz-act .save-status.bad{color:var(--s-bad)}
.dz-hint{font-size:var(--fs-sm);color:var(--s-muted);padding-top:6px}
.dz-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-1)}
.dz-list:empty{display:none}
.dz-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(80px,140px) auto;align-items:center;gap:var(--sp-2);font-size:var(--fs-sm)}
.dz-name{font-weight:600;color:var(--s-ink);overflow-wrap:anywhere;min-width:0}
.dz-size{color:var(--s-muted);font-size:var(--fs-xs);white-space:nowrap}
.dz-row progress{width:100%;height:6px;accent-color:var(--s-link)}
.dz-state{font-size:var(--fs-xs);color:var(--s-ink-2);white-space:nowrap}
.dz-row.dz-ok .dz-state{color:var(--s-ok)}
.dz-row.dz-bad .dz-state{color:var(--s-bad);white-space:normal}
.dz-row.dz-bad{grid-template-columns:minmax(0,1fr) auto}
.dz-row.dz-bad progress{display:none}
.dz.dz-form{padding:var(--sp-2) var(--sp-3)}
.dz.dz-page{border:0;padding:0;background:none;display:block}
.dz.dz-page.dz-over{outline:2px dashed var(--s-link);outline-offset:4px;background:var(--s-accent-soft);border-radius:var(--rad-in)}
.dz.dz-page.dz-off{opacity:1}
/* 3.1215 (29 October 2026) — DOCUMENTS: TICK BOXES, THE "N SELECTED" BAR, AND DROPPING ON THE LIST OR ON A FOLDER
   (public/apps/files.js). Darren: "need to have multi select and drag and drop uploads". The 3.1209 outline above is written
   for `.dz.dz-page` and this screen's zone is `.wsd.dz-page`, so it never lit; these rules are this screen's own. Theme tokens only. */
.wsd.dz-page{position:relative}
.wsd.dz-page.dz-over{outline:2px dashed var(--s-link);outline-offset:6px;border-radius:var(--rad-in)}
.wsd.dz-page.dz-over .wsd-list,.wsd.dz-page.dz-over .wsd-empty{background:var(--s-accent-soft)}
.wsd.dz-page.dz-over .wsd-row{background:transparent}
.wsd.dz-page.dz-over::after{content:attr(data-drop-words);position:absolute;left:50%;top:calc(-1 * var(--sp-2));transform:translate(-50%,-50%);z-index:3;
  padding:6px 14px;border-radius:var(--rad-pill);background:var(--s-hero);color:var(--s-hero-ink);font-weight:600;font-size:var(--fs-sm);
  pointer-events:none;white-space:nowrap;max-width:92%;overflow:hidden;text-overflow:ellipsis}
.wsd-head:not(.wsd-binhead),.wsd-row:not(.wsd-binrow){grid-template-columns:28px minmax(220px,2fr) 110px minmax(150px,1fr) minmax(140px,1fr)}
.wsd-tick{display:flex;align-items:center;justify-content:center;align-self:stretch;min-height:24px;cursor:pointer}
.wsd-cb{width:18px;height:18px;margin:0;accent-color:var(--s-link);cursor:pointer}
.wsd-cb:focus-visible{outline:none;box-shadow:var(--s-focus)}
.wsd-row.wsd-picked,.wsd-row.wsd-picked:hover{background:var(--s-select)}
.wsd-row.wsd-dropin,.wsd.dz-page.dz-over .wsd-row.wsd-dropin{background:var(--s-select);box-shadow:inset 0 0 0 2px var(--s-link)}
.wsd-crumb.wsd-dropin{background:var(--s-accent-soft);box-shadow:inset 0 0 0 2px var(--s-link)}
.wsd-row[draggable="true"]{-webkit-user-drag:element}
.wsd-drophint{margin:0;font-size:var(--fs-xs);color:var(--s-muted)}
.wsd-selbar{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--sp-2) var(--sp-3);padding:var(--sp-2) var(--sp-3);
  border:1px solid var(--s-line-2);border-radius:var(--rad-in);background:var(--s-sunk)}
.wsd-selbar[hidden]{display:none}
.wsd-selcount{font-weight:600;color:var(--s-ink);padding-top:7px;min-width:96px}
.wsd-undoline{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--sp-2)}
.wsd-undo{background:none;border:0;padding:0;font:inherit;font-size:var(--fs-xs);font-weight:600;color:var(--s-link);text-decoration:underline;cursor:pointer}
.wsd-undo:focus-visible{outline:none;box-shadow:var(--s-focus);border-radius:var(--rad-in)}
.wsd-rowsay{margin:0 0 0 var(--sp-2);font-size:var(--fs-xs);white-space:nowrap}
.wsd-menu{position:fixed;z-index:1000;min-width:180px;display:flex;flex-direction:column;padding:var(--sp-1);border:1px solid var(--s-line);
  border-radius:var(--rad-in);background:var(--s-raised);box-shadow:0 8px 28px color-mix(in srgb,var(--s-ink) 22%,transparent)}
.wsd-mi{display:block;width:100%;text-align:left;background:none;border:0;border-radius:var(--rad-in);padding:8px 12px;font:inherit;font-size:var(--fs-sm);color:var(--s-ink);cursor:pointer}
.wsd-mi:hover:not([disabled]),.wsd-mi:focus-visible{background:var(--s-accent-soft);outline:none}
.wsd-mi[disabled]{color:var(--s-muted);cursor:default}
.wsd-row[role="button"]:focus-visible{box-shadow:inset 0 0 0 2px var(--s-link)}
@media (max-width:760px){
  .wsd-head:not(.wsd-binhead){display:grid;grid-template-columns:32px 1fr;padding-left:var(--sp-4)}
  .wsd-head:not(.wsd-binhead) span:nth-child(n+3){display:none}
  .wsd-row:not(.wsd-binrow){grid-template-columns:32px minmax(0,1fr) auto}
  .wsd-row:not(.wsd-binrow) .wsd-tick{grid-row:span 3;align-self:start;padding-top:2px}
  .wsd-row:not(.wsd-binrow) .wsd-when,.wsd-row:not(.wsd-binrow) .wsd-by{grid-column:2 / -1}
  .wsd-cb{width:22px;height:22px}
  .wsd-selbar .wsd-act .save-status{max-width:100%}
}
.dz.dz-page>.dz-list{margin:var(--sp-2) 0}
.file-add .dz{margin-top:var(--sp-2)}
.ma-bar.dz-over{outline:2px dashed var(--s-link);outline-offset:2px;background:var(--s-accent-soft)}
/* lane bec1109mail — the whole email takes a dropped file (public/mailattach.js dropAttrs). */
[data-ma-drop].dz-over{outline:2px dashed var(--s-link);outline-offset:2px;background:var(--s-accent-soft)}
[data-ma-drop].dz-over .rt-box{background:var(--s-accent-soft)}
[data-ma-drop].dz-over{position:relative}
[data-ma-drop].dz-over::after{content:attr(data-drop-words);position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;
  padding:6px 14px;border-radius:var(--rad-pill);background:var(--s-hero);color:var(--s-hero-ink);font-weight:600;font-size:var(--fs-sm);
  pointer-events:none;white-space:nowrap}
.ss-drop.dz-over{outline:2px dashed var(--s-link);outline-offset:2px}
.cd-slot:empty{display:none}
.ds-others{margin:var(--sp-2) 0 0}
.ds-others>summary{cursor:pointer;font-weight:600;font-size:var(--fs-sm);padding:var(--sp-1) 0}
.ds-others .ds-list{margin-top:var(--sp-2)}
.ds-oname{background:none;border:0;padding:0;font:inherit;font-weight:600;color:var(--s-link);cursor:pointer;text-align:left;min-width:0;overflow-wrap:anywhere;text-decoration:none}
.ds-oname:focus-visible{outline:none;box-shadow:var(--s-focus)}
.ds-row .file-player{flex-basis:100%}
.cd .enq-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-2)}
.cd-add{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--sp-2) var(--sp-3);margin:0 0 var(--sp-3)}
.cd-add .dz{flex:1 1 320px}
.cd-place{display:flex;flex-direction:column;gap:2px;font-size:var(--fs-sm);color:var(--s-ink-2)}
.cd-part{margin:0 0 var(--sp-3)}
.cd-part h4{margin:0 0 var(--sp-2);display:flex;align-items:baseline;gap:var(--sp-2)}
.cd-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1) var(--sp-2);padding:var(--sp-2) var(--sp-3);border-top:1px solid var(--s-line-2);font-size:var(--fs-sm);cursor:pointer}
.cd-row:first-child{border-top:0}
.cd-row:hover{background:var(--s-wash)}
.cd-name{font-weight:600;color:var(--s-link);overflow-wrap:anywhere;min-width:0;text-decoration:none}
.cd-chips{display:flex;flex-wrap:wrap;gap:var(--sp-1);margin-left:auto}
.cd-on{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cd-row .save-status{flex-basis:100%;margin:0;font-size:var(--fs-xs);color:var(--s-bad)}
.cd-row .save-status:empty{display:none}
@media (max-width:560px){
  .dz-row{grid-template-columns:minmax(0,1fr) auto}
  .dz-row progress{grid-column:1 / -1}
  .cd-chips{margin-left:0}
}

/* v3.1202.0 — an invoice Status on the customer record: the hover says when it was due; overdue is marked, not a fifth word. */
.inv-status[title]:not([title=""]){cursor:help;text-decoration:underline dotted;text-underline-offset:3px}
.inv-status-overdue{color:var(--warn);font-weight:600}
/* 3.1202.0 (Bec, 20 Oct 2026) — an email we sent, drawn as it went on an enquiry; the conversation's select; a draft says so */
.enq-comm-body.tl-html,.enq-comm-full.tl-html{white-space:normal}
.enq-comm-earlier{margin:4px 0 0}
.enq-comm>details>.enq-comm-body{max-height:none}
.cm-pickbar{flex:1 0 100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 0 0;border-top:1px solid var(--line)}
.cm-pickbar-n{font-weight:600;margin-right:4px}
.cm-row.cm-has-pick{position:relative;padding-left:34px}
.cm-pickone{position:absolute;left:8px;top:10px;display:flex;align-items:center;cursor:pointer}
.cm-pickone input{width:18px;height:18px;margin:0;cursor:pointer}
.cm-row.cm-has-pick.is-picked{outline:2px solid var(--blue);outline-offset:-2px}
.cm-draft-badge{display:inline-block;margin-left:6px;padding:0 6px;border-radius:999px;border:1px solid var(--orange);color:var(--orange);font-size:11px;font-weight:600;white-space:nowrap}
.rs-new-card{max-width:560px}
.rs-new-card .na-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.sib-opt.on{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
/* v3.1202.0 (20 October 2026) — the booking window's "before you go" sections (public/bookbrief.js, Darren's ruling 13). */
.bkg-detail-brief{margin:0 0 14px}
.bkb-list,.bkb-files{margin:4px 0 12px;padding-left:20px}
.bkb-list li,.bkb-files li{margin:2px 0;overflow-wrap:anywhere}
.bkb-done{color:var(--muted);text-decoration:line-through}
.am-recip-list{list-style:none;margin:8px 0 14px;padding:0}
.am-recip-list li{padding:6px 0;border-bottom:1px solid var(--line)}
.am-recip-list .hint{display:block;margin-left:24px;overflow-wrap:anywhere}

/* ---- v3.1202.0 (22 October 2026) — FINDING A COURSE, AND HR & LEARNING → COURSES ---------------------------------------
   Darren: "Now we're gonna be creating lots of courses… It'll be nice to have basic chips or ways of finding courses a bit
   easier." The search box and the sort share a row; every chip carries how many it would leave; the grid fills (auto-fill,
   so three results are three card-widths, not three stretched cards). HR & Learning's three tabs, and My training as a
   numbered list of steps: done, current, next, locked. Theme tokens only. */
.acad-findrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.acad-findrow .acad-search{flex:1 1 260px}
.acad-sort select{min-height:36px;font:inherit}
.acad-chips .acad-chipset{align-items:center}
.acad-chip-n{font-size:11px;opacity:.72;margin-left:3px;font-variant-numeric:tabular-nums}
.hrl-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 14px}
.hrl-tabn{font-size:11px;opacity:.8;margin-left:4px;font-variant-numeric:tabular-nums}
/* 3.1202.0 release — full strength on the chosen (blue) tab, for contrast (test/v31111a11y). */
.btn.primary .hrl-tabn{opacity:1}
.hrl-count{margin:10px 0 0;font-size:var(--fs-sm,13px);color:var(--muted);font-weight:600}
.hrl-steps{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.hrl-step{display:flex;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.hrl-step[data-rowopen]{cursor:pointer}
.hrl-step[data-rowopen]:hover{border-color:var(--blue)}
.hrl-pos{flex:0 0 30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;
  border:2px solid var(--line);color:var(--muted);font-variant-numeric:tabular-nums}
.hrl-st-current{border-color:var(--blue)}
.hrl-st-current .hrl-pos{border-color:var(--blue);color:var(--blue)}
.hrl-st-done .hrl-pos{border-color:var(--ok);color:var(--ok)}
.hrl-st-locked{opacity:.72}
.hrl-step-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px}
.hrl-step-top{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.hrl-step-meta{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}
.hrl-step-meta .acad-bar{width:120px;margin:0}
.hrl-step-act{flex:0 0 auto}
.hrl-state{font-weight:700}
.hrl-st-current .hrl-state{border-color:var(--blue);color:var(--blue)}
.hrl-st-done .hrl-state{border-color:var(--ok);color:var(--ok)}
@media (max-width:600px){
  .hrl-step{flex-wrap:wrap}
  .hrl-step-act{flex:1 1 100%;display:flex;justify-content:flex-end}
  .acad-findrow .acad-sort{flex:1 1 100%}
  .acad-sort select{width:100%}
}
/* v3.1205.0 (lane/hrlearn2) — HR & Learning → Policies and procedures (public/apps/policies.js). Theme tokens only. */
.pol-list{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.pol-row{display:flex;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.pol-row[data-rowopen]{cursor:pointer}
.pol-row[data-rowopen]:hover{border-color:var(--blue)}
.pol-st-unread{border-left:4px solid var(--orange)}
.pol-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px}
.pol-title{overflow-wrap:anywhere}
.pol-sum{color:var(--muted);font-size:var(--fs-sm,13px);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pol-side{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
.pol-state{font-weight:700}
.pol-st-unread .pol-state{color:var(--orange)}
.pol-st-read .pol-state{color:var(--ok)}
.pol-readn{font-size:var(--fs-sm,13px);color:var(--muted);font-variant-numeric:tabular-nums}
.pol-unread{margin:8px 0 0;font-weight:700;color:var(--orange)}
.pol-create{display:inline-flex;gap:8px;align-items:center}
.pol-storage{margin:0 0 10px}
.pol-h{margin:10px 0 6px;overflow-wrap:anywhere}
.pol-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px 16px;margin:6px 0 10px}
.pol-facts dt{font-size:var(--fs-xs,12px);color:var(--muted)}
.pol-facts dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.pol-summary{white-space:pre-wrap;overflow-wrap:anywhere}
.pol-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.pol-actions h4{margin:0 8px 0 0}
.pol-done{font-weight:700;color:var(--ok)}
.pol-admin{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.pol-admin h3{margin:0 0 6px}
.pol-file{display:inline-flex;gap:6px;align-items:center;font-size:var(--fs-sm,13px);max-width:100%}
.pol-file input{max-width:220px}
.pol-readers .tbl,.pol-reading{width:100%}
.pol-reading .acad-bar{max-width:160px}
.pol-act{white-space:nowrap}
.pol-versions{margin-top:10px}
@media (max-width:600px){
  .pol-row{flex-wrap:wrap}
  .pol-side{flex:1 1 100%;justify-content:space-between}
  .pol-reading thead{display:none}
  .pol-reading tr{display:grid;grid-template-columns:1fr auto;gap:4px 8px;padding:8px 0;border-bottom:1px solid var(--line)}
  .pol-reading td{border:0;padding:0}
  .pol-reading td:first-child,.pol-reading td.pol-act{grid-column:1/-1}
  .pol-act{white-space:normal}
  .pol-readers table{display:block;overflow-x:auto}
}
/* v3.1205.0 (lane/hrlearn2) — HR & Learning → My development (public/apps/mydev.js). Theme tokens only. */
.mdv-period{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin:0 0 12px}
.mdv-nav{display:inline-flex;gap:8px;align-items:center}
.mdv-plabel{min-width:0}
.mdv-head{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin:0 0 6px}
.mdv-who{display:inline-flex;gap:6px;align-items:center}
.mdv-who select{max-width:220px;font:inherit;min-height:34px}
.mdv-summary{font-weight:700;flex:1 1 200px}
.mdv-bar-row{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:center}
.mdv-h{margin:14px 0 6px;font-size:var(--fs-md,15px)}
.mdv-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.mdv-card{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);min-width:0}
.mdv-card.mdv-met{border-color:var(--ok)}
.mdv-notarget{background:var(--panel-2)}
.mdv-label{font-size:var(--fs-sm,13px);color:var(--muted);font-weight:600}
.mdv-val{font-size:var(--fs-lg,20px);font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink)}
.mdv-of{font-size:var(--fs-sm,13px);color:var(--muted)}
.mdv-bar{height:8px}
.mdv-bar.mdv-met>span{background:var(--ok)}
.mdv-words{font-size:var(--fs-sm,13px)}
.mdv-words.good{color:var(--ok);font-weight:700}
.mdv-trend{font-size:var(--fs-xs,12px);color:var(--muted)}
.mdv-trend.mdv-good{color:var(--ok)}
.mdv-note{font-size:var(--fs-xs,12px);overflow-wrap:anywhere}
.mdv-acts{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:4px}
.mdv-missing{margin:4px 0 8px}
.mdv-tablewrap{overflow-x:auto;max-width:100%}
.mdv-team td.num{text-align:right;font-variant-numeric:tabular-nums}
.mdv-team .acad-bar{max-width:100px}
.mdv-team tr[data-rowopen]{cursor:pointer}
@media (max-width:600px){
  .mdv-grid{grid-template-columns:1fr 1fr}
  .mdv-who select{max-width:100%}
}
/* lane/onboarding (3.1222) — HR & Learning → Onboarding and reviews (public/apps/onboarding.js). Theme tokens only. */
.obd-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px}
.obd-list,.obd-items{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.obd-row,.obd-rev{display:flex;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.obd-row[data-rowopen],.obd-rev[data-rowopen]{cursor:pointer}
.obd-row[data-rowopen]:hover,.obd-rev[data-rowopen]:hover{border-color:var(--blue)}
.obd-closed{background:var(--panel-2)}
.obd-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}
.obd-side{flex:0 1 auto;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;justify-content:flex-end}
.obd-prog{display:inline-flex;flex-direction:column;gap:3px;min-width:120px}
.obd-progw{font-size:var(--fs-sm,13px);font-variant-numeric:tabular-nums}
.obd-next,.obd-due,.obd-stage{font-size:var(--fs-sm,13px)}
.obd-late{font-size:var(--fs-sm,13px);font-weight:700;color:var(--danger)}
.obd-rev.obd-overdue,.obd-item.obd-overdue{border-left:4px solid var(--danger)}
.obd-rev.obd-soon{border-left:4px solid var(--orange)}
.obd-rev.obd-signed{border-left:4px solid var(--ok)}
.obd-next.obd-overdue,.obd-stage.obd-overdue,.obd-overdue .obd-due{color:var(--danger);font-weight:700}
.obd-next.obd-soon,.obd-stage.obd-soon,.obd-soon .obd-due{color:var(--orange);font-weight:700}
.obd-stage.obd-signed{color:var(--ok);font-weight:700}
.obd-sum{margin:4px 0 8px;font-weight:700}
.obd-head{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:0 0 6px}
.obd-name{margin:0;flex:1 1 200px;overflow-wrap:anywhere}
.obd-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px 16px;margin:6px 0 10px}
.obd-facts dt{font-size:var(--fs-xs,12px);color:var(--muted)}
.obd-facts dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.obd-cols{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px;align-items:start}
.obd-h{margin:12px 0 6px;font-size:var(--fs-md,15px)}
.obd-gh{margin:10px 0 4px;font-size:var(--fs-sm,13px);color:var(--muted);font-weight:700}
.obd-item{display:flex;gap:10px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.obd-check{flex:0 0 auto;width:18px;height:18px;border:2px solid var(--line);border-radius:5px;position:relative}
.obd-isdone .obd-check{background:var(--ok);border-color:var(--ok)}
.obd-isdone .obd-check::after{content:'';position:absolute;left:4px;top:0;width:5px;height:10px;border:solid var(--panel);border-width:0 2px 2px 0;transform:rotate(45deg)}
.obd-imain{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere}
.obd-isdone .obd-ilabel{color:var(--muted)}
.obd-acts{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end}
.obd-qs{display:flex;flex-direction:column;gap:10px;margin:4px 0 8px}
.obd-q{display:flex;flex-direction:column;gap:4px}
.obd-q textarea,.obd-q select{width:100%;max-width:720px;font:inherit;box-sizing:border-box}
.obd-a{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.obd-figs{list-style:none;margin:4px 0 8px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.obd-figs li{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2)}
.obd-fl{font-size:var(--fs-xs,12px);color:var(--muted);font-weight:600}
.obd-fv{font-size:var(--fs-md,15px);font-variant-numeric:tabular-nums;color:var(--ink)}
.obd-switch{margin-top:14px}
@media (max-width:900px){ .obd-cols{grid-template-columns:minmax(0,1fr)} }
@media (max-width:600px){
  .obd-row,.obd-rev{flex-wrap:wrap}
  .obd-side{flex:1 1 100%;justify-content:space-between}
  .obd-item{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 10px}
  .obd-acts{grid-column:2;justify-content:flex-start}
  .obd-titem{grid-template-columns:minmax(0,1fr)}
  .obd-titem .obd-acts{grid-column:1}
}
/* The Order tab of Internal training: one person's list, ↑ / ↓, wait, due — the answer beside the buttons. */
.train-order{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.train-step{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px}
.train-step .train-pos{flex:0 0 26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-weight:700;border:2px solid var(--line);color:var(--muted)}
.train-st-current{border-color:var(--blue)}
.train-st-done .train-pos{border-color:var(--ok);color:var(--ok)}
.train-step-main{flex:1 1 220px;min-width:0}
.train-step-acts{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.train-step-acts .train-due input{max-width:160px}
.train-order-pick{margin:4px 0 0}
/* v3.1203.0 — a locked step says what to finish first; a role step sits after the person's own and says "From role"; the
   course page's note about its place in My training. */
.train-st-locked .train-pos{border-style:dashed}
.train-fromrole{border-style:dashed}
.train-fromrole-chip{border-color:var(--muted)}
.train-wait,.train-early{display:block}
.train-coursenote{margin:var(--sp-2,8px) 0 0}
.train-order-pick label{display:flex;flex-wrap:wrap;gap:6px;align-items:center;max-width:100%}
.train-order-pick select,.train-assign select,.train-filters select{max-width:100%;min-width:0}
/* v3.1202.0 — on a phone each set of chips is ONE row that scrolls sideways inside itself, so six sets are six lines rather
   than a wall above the first course (the page itself never scrolls sideways). */
@media (max-width:600px){
  .acad-filters,.acad-chips{min-width:0;max-width:100%}
  .acad-chips{gap:8px;flex-direction:column;flex-wrap:nowrap}
  .acad-chips .acad-chipset{flex-wrap:nowrap;overflow-x:auto;max-width:100%;min-width:0;overscroll-behavior-x:contain;scrollbar-width:none;padding-bottom:2px}
  .acad-chips .acad-chipset::-webkit-scrollbar{display:none}
  .acad-chips .acad-chip{flex:0 0 auto;white-space:nowrap}
}

/* ---- lane/seen v3.1202.0 (22 October 2026) — unseen messages for you, and the "Seen" line (public/msgseen.js) ----------
   The "for you" count is the same pill as the team's not-dealt-with count, outlined rather than filled, so the two read as
   two numbers. Theme tokens only. */
/* v3.1202.1 (23 October 2026) — the outlined pill is `.cm-pill.cm-mine-badge`, never `.cm-badge` (that is the team's, drawn by
   comms.js; sharing the class let comms.js write 270 into this one). BOTH PILLS CENTRED: in the sidebar the two pills and
   "Communications" did not fit, the pills shrank below their digits ("270" needs 31px, it got 27.5px) and the number spilled
   to the right (Darren: "the numbers aren't centred"). They never shrink now, the digits sit in the middle of a flex box,
   and the label gives way instead. */
.cm-badge,.cm-pill.cm-mine-badge{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
  flex:0 0 auto;height:18px;white-space:nowrap;font-variant-numeric:tabular-nums}
.cm-pill.cm-mine-badge{margin-left:auto;min-width:18px;padding:0 5px;border-radius:999px;font-size:11px;font-weight:700;line-height:1;
  background:transparent;color:var(--orange-ink);box-shadow:inset 0 0 0 1.5px var(--orange);cursor:pointer}
.cm-mine-badge + .cm-badge{margin-left:4px}
.ph-btn .cm-mine-badge{margin-left:2px}
#sb-comms .lab{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The sidebar row has an 11px gap between everything: the two pills sit 5px apart instead, so two two-figure counts fit
   beside the whole word "Communications" (its full name is on the item's hover when three figures push it short). */
#sb-comms .cm-mine-badge + .cm-badge{margin-left:-6px}
#sb-comms .cm-badge,#sb-comms .cm-pill.cm-mine-badge{padding:0 4px}
.cm-foryou .cm-mine-main{cursor:pointer}
.cm-receipt{font-size:var(--fs-xs);line-height:1.35;color:var(--muted);text-align:right;margin-top:4px}
.cm-receipt:empty{display:none}
.cm-row.cm-in .cm-receipt{text-align:left}
.cm-rc-seen{color:var(--ok);font-weight:600}
.cm-rc-undelivered{color:var(--danger)}
.cm-seen-all{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:6px 12px 0}
.cm-seen-all:empty{display:none}
.cm-seen-said{font-size:var(--fs-xs);color:var(--muted)}
.sm-receipt{font-size:var(--fs-xs);color:var(--muted);text-align:right;margin-top:4px}
.sm-rc-seen{color:var(--ok)}
/* 3.1221 (lane bec1111people; Bec, 11 Nov, item 12) — a tick on every one of my messages: ✓ delivered, ✓✓ seen (by everybody: ok colour). */
.sm-receipt.sm-receipt-mini{margin-top:2px;line-height:1}
.sm-rc-mini{font-size:var(--fs-xs);letter-spacing:-2px;color:var(--muted);cursor:default}
.sm-rc-mini.sm-rc-some{color:var(--muted)}
.sm-rc-mini.sm-rc-all{color:var(--ok)}
.sm-rc-notyet{color:var(--muted)}

/* ---- lane/commsprefs 3.1203 (23 October 2026) — the small menu beside the Communications pills (public/comms.js) -------
   Darren: "I think there should be a per user option for that." One tick, "Saved" beside it, the phone's quiet hours under it.
   Theme tokens only. */
.cm-pillmenu{position:fixed;z-index:1200;box-sizing:border-box;max-width:calc(100vw - 32px);padding:10px 12px;
  background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:var(--rad-in,10px);box-shadow:var(--sh-2,none);
  font-size:var(--fs-sm)}
.cm-pillmenu[hidden]{display:none}
.cm-pm-row{display:inline-flex;align-items:flex-start;gap:8px;cursor:pointer;line-height:1.35}
.cm-pm-row input{margin-top:2px}
.cm-pm-said{font-size:var(--fs-xs);color:var(--muted)}
.cm-pm-reset{margin-top:6px}
.cm-pm-quiet{margin:8px 0 0;font-size:var(--fs-xs);color:var(--muted)}
/* My details → Communications (public/app.js myCommsPrefHtml) */
.md-pref-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}

/* ---- lane/commsprefs 3.1203 — MESSAGES: a customer's own history with Platinum (public/apps/mycomms.js) --------------- */
.myc-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 10px}
.myc-search{flex:1 1 220px;min-width:0;max-width:420px}
.myc-chips{display:flex;flex-wrap:wrap;gap:6px}
.myc-chip{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:999px;padding:4px 10px;
  font-size:var(--fs-xs);cursor:pointer}
.myc-chip.on{background:var(--blue-lt);border-color:var(--blue);color:var(--blue-ink);font-weight:700}
.myc-list{display:flex;flex-direction:column;gap:6px}
.myc-row{display:grid;grid-template-columns:auto 1fr auto;gap:4px 10px;align-items:start;width:100%;text-align:left;box-sizing:border-box;
  padding:10px 12px;border:1px solid var(--line);border-radius:var(--rad-in,10px);background:var(--panel);color:var(--ink);cursor:pointer;
  font:inherit}
.myc-row:hover{border-color:var(--blue)}
.myc-ico{display:inline-flex;align-items:center;justify-content:center;min-width:56px;padding:2px 6px;border-radius:999px;
  font-size:var(--fs-xs);font-weight:700;background:var(--grey-light);color:var(--muted)}
.myc-row.myc-out .myc-ico{background:var(--blue-lt);color:var(--blue-ink)}
.myc-main{min-width:0}
.myc-title{display:block;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.myc-prev{display:block;color:var(--muted);font-size:var(--fs-sm);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.myc-when{font-size:var(--fs-xs);color:var(--muted);white-space:nowrap;text-align:right}
.myc-who{display:block;font-size:var(--fs-xs);color:var(--muted)}
.myc-more{margin-top:10px}
.myc-read{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;margin:8px 0 0}
.myc-meta{color:var(--muted);font-size:var(--fs-xs);margin:0}
.myc-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
@media (max-width:600px){
  .myc-row{grid-template-columns:1fr auto}
  .myc-ico{grid-column:1;justify-self:start}
  .myc-main{grid-column:1 / -1}
}

/* v3.1203.0 (Bec, 22 Oct) — Attach on the emails we write (public/mailattach.js). Theme tokens only. */
.ma-bar{display:grid;gap:6px;margin:6px 0}
.ma-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.ma-acts{display:inline-flex;flex-wrap:wrap;gap:6px}
.ma-limit{font-size:var(--fs-xs)}
.ma-chips{display:flex;flex-wrap:wrap;gap:6px}
.ma-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:2px 4px 2px 10px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--ink);font-size:var(--fs-sm);overflow-wrap:anywhere}
.ma-x{border:0;background:none;color:var(--muted);cursor:pointer;font:inherit;line-height:1;padding:2px 6px;border-radius:999px}
.ma-x:hover,.ma-x:focus-visible{color:var(--danger);background:var(--tint)}
.ma-pick{border:1px solid var(--line);border-radius:var(--r);background:var(--panel);padding:8px 10px}
.ma-docs{display:grid;gap:4px;max-height:220px;overflow:auto}
.ma-doc{display:flex;align-items:baseline;gap:6px;font-size:var(--fs-sm);color:var(--ink);cursor:pointer;overflow-wrap:anywhere}
.ma-doc-n{min-width:0}
/* ---- v3.1204.0 (24 October 2026) — Platinum Assist word by word (public/assiststream.js) and the Quality panel ---------- */
#assist-waiting.as-has-words .asn-searching,#assist-waiting.as-has-words .assist-thinking-row{display:none}
.as-live{margin-top:10px}
.as-live .as-stage{margin:6px 0 0}
.as-live-text{white-space:normal}
.as-caret{display:inline-block;width:.5em;height:1em;margin-left:2px;vertical-align:text-bottom;background:var(--blue);animation:as-blink 1s steps(2,start) infinite}
@keyframes as-blink{to{visibility:hidden}}
@media (prefers-reduced-motion:reduce){.as-caret{animation:none}}
.as-writing{background:var(--tint);color:var(--muted)}
.as-after{margin:8px 0 0}
.am-draft{margin:10px 0 0;padding:10px 12px;border:1px dashed var(--line);border-radius:var(--r);background:var(--panel-2)}
.am-draft-h{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;margin:0 0 6px}
.am-draft-text{white-space:pre-wrap;font-size:var(--fs-sm);color:var(--ink);max-height:280px;overflow:auto}
.am-draft-src{margin:6px 0 0;font-size:var(--fs-xs);color:var(--muted);overflow-wrap:anywhere}
.aq-panel .aq-head{display:flex;flex-wrap:wrap;gap:12px;align-items:baseline}
.aq-score{font-size:var(--fs-lg);font-weight:700;color:var(--ink)}
.aq-change.up{color:var(--ok)}
.aq-change.down{color:var(--danger)}
.aq-dims{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin:10px 0}
.aq-dim{padding:8px 10px;border:1px solid var(--line);border-radius:var(--r);background:var(--panel)}
.aq-dim b{display:block;font-size:var(--fs-md);color:var(--ink)}
.aq-trend{width:100%;max-width:560px;height:120px;display:block}
.aq-trend .aq-line{fill:none;stroke:var(--blue);stroke-width:2}
.aq-trend .aq-dot{fill:var(--blue)}
.aq-trend .aq-axis{stroke:var(--line);stroke-width:1}
.aq-trend text{fill:var(--muted);font-size:10px}
.aq-worst{margin:8px 0 0;padding-left:18px;font-size:var(--fs-sm)}
/* ==== v3.1205.0 (25 October 2026) — PLATINUM ASSIST ROUND 2: SCREENSHOTS, "CHECKED IN YOUR SIMPRO" AND THE SWITCH ==========
   (public/assist2.js). Darren: "Do all your suggestions." Theme tokens only. Everything wraps on a phone; the screenshot is
   held to the column's width so it never pushes the page sideways. */
.a2-compose{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;flex-basis:100%}
.btn.a2-attach{min-height:36px}
.a2-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:4px 6px 4px 4px;border:1px solid var(--s-line);border-radius:var(--rad-sm);background:var(--s-panel)}
.a2-chip-t{font-size:var(--fs-sm);color:var(--s-ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}
.a2-thumb{width:44px;height:32px;object-fit:cover;border-radius:var(--rad-sm);border:1px solid var(--s-line)}
.a2-msg.a2-bad,.a2-perm-msg.a2-bad{color:var(--s-bad)}
.a2-looked{margin:10px 0 4px;padding:10px 12px;border-radius:var(--rad);background:var(--s-sunk);border:1px solid var(--s-line);cursor:help}
.a2-looked-h{display:block;font-size:var(--fs-xs);letter-spacing:.06em;text-transform:uppercase;color:var(--s-muted);margin-bottom:4px}
.a2-looked-l{margin:0;padding-left:18px;color:var(--s-ink)}
.a2-looked-l li{margin:2px 0}
/* lane plusfix — Needs your approval: a held Simpro change under an Assist answer */
.a2-hold{margin:10px 0 4px;padding:10px 12px;border-radius:var(--rad);background:var(--s-accent-soft);border:1px solid var(--s-line);color:var(--s-ink)}
.a2-hold-l{margin:0;padding:0;list-style:none}
.a2-hold-i{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:4px 0}
.a2-hold-what{font-weight:600}
.a2-hold-on{font-size:var(--fs-sm)}
.a2-hold-acts{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px}
.a2-hold-msg.a2-bad{color:var(--s-bad)}
.a2-open{color:var(--s-link);font-weight:600;margin-left:6px}
.a2-offer{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:8px 0;padding:10px 12px;border-radius:var(--rad);background:var(--s-accent-soft);color:var(--s-ink);font-size:var(--fs-sm)}
.a2-shot{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:8px 0}
.a2-shot-img{max-width:min(320px,100%);max-height:200px;border-radius:var(--rad-sm);border:1px solid var(--s-line);object-fit:contain;background:var(--s-sunk)}
.a2-switch-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.a2-switch{display:inline-flex;align-items:center;gap:10px;cursor:help;color:var(--s-ink);font-weight:600}
.a2-switch input{width:20px;height:20px;accent-color:var(--s-focus)}
.a2-switch input:disabled + .a2-switch-t{color:var(--s-muted)}
.a2-perm-who{margin:8px 0 0}

/* ---- v3.1206.0 (25 October 2026) — PLATINUM ASSIST'S TOPIC SWITCH: SIMPRO | APP SUITE (public/assistswitch.js) ------------
   Darren: "some key filter at the top". At the very top of the panel, the chosen side filled in the brand blue so the topic
   cannot be missed; the start card under the box while the conversation is empty. Theme tokens only. */
.ats-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 14px}
.ats-switch{display:inline-flex;padding:3px;gap:3px;border:1px solid var(--s-line);border-radius:var(--rad-pill);background:var(--s-sunk);cursor:help}
.ats-opt{font:inherit;font-weight:600;font-size:var(--fs-sm);line-height:1.2;min-height:36px;padding:8px 18px;border:0;border-radius:var(--rad-pill);
  background:transparent;color:var(--s-ink-2);cursor:pointer;transition:background var(--dur-2) var(--ease-out),color var(--dur-2) var(--ease-out)}
.ats-opt:hover:not(:disabled):not(.on){background:var(--s-raised,var(--panel));color:var(--s-ink)}
.ats-opt.on{background:var(--b-500);color:var(--b-25);box-shadow:var(--sh-1,none)}
.ats-opt:focus-visible{outline:none;box-shadow:var(--s-focus)}
.ats-opt:disabled{cursor:default}
.ats-opt:disabled:not(.on){opacity:.6}
.ats-msg.ats-bad{color:var(--s-bad)}
/* lane assistproducts — the Product list beside the switch (Simpro topic only). */
.ats-prod{display:inline-flex;align-items:center;gap:8px;font-size:var(--fs-sm);font-weight:600;color:var(--s-ink);cursor:help}
.ats-prod select{font:inherit;font-weight:500;min-height:36px;padding:6px 10px;border:1px solid var(--s-line);border-radius:var(--r);
  background:var(--s-raised,var(--panel));color:var(--s-ink);cursor:pointer}
.ats-prod select:focus-visible{outline:none;box-shadow:var(--s-focus)}
.ats-start{margin:14px 0 0;padding:14px 16px;border:1px solid var(--s-line);border-radius:var(--rad-lg);background:var(--s-wash)}
.ats-start-h{margin:0 0 6px;font-weight:700;color:var(--s-ink)}
.ats-lines{margin:0 0 12px;padding-left:18px;color:var(--s-ink-2)}
.ats-lines li{margin:2px 0}
.ats-ex{display:flex;flex-wrap:wrap;gap:8px}
.ats-offer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 0;color:var(--s-ink-2)}
.ats-docs{margin:8px 0 0}
.ats-one{grid-template-columns:1fr}
@media (max-width:560px){ .ats-switch{display:flex;width:100%} .ats-opt{flex:1 1 0} .ats-prod{width:100%} .ats-prod select{flex:1 1 auto;min-width:0} }
/* lane simproapilib — four options (staff and Platinum Plus get Simpro API) still fit one line on a phone: tighter padding. */
@media (max-width:560px){ .ats-switch .ats-opt{flex:1 1 auto;padding:8px 5px;min-width:0;white-space:nowrap;font-size:var(--fs-xs)} .ats-switch .said-on{margin:0 2px} }
/* lane simproapilib — the library's Simpro API panel: Read now, its status word and the "Words only" pill on one line. */
.al-api-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0 0}
.al-api-problems{margin:10px 0 0}
.al-api-problems ul{margin:6px 0 0;padding-left:18px}
@media (prefers-reduced-motion: reduce){ .ats-opt{transition:none} }

/* ---- v3.1206.0 — A PLATINUM ASSIST ANSWER, DRAWN PROPERLY (public/assistformat.js) ---------------------------------------
   Darren: "We need to display better results. Even in voice." Headings, numbered steps, bold button names and short
   paragraphs; the part Read aloud is saying is marked. Theme tokens only. */
.asf{display:flex;flex-direction:column;gap:8px;line-height:1.55}
.asf > *{margin:0}
.asf-h{font-weight:700;color:var(--s-ink);margin-top:6px}
.asf-steps,.asf-list{padding-left:22px;display:flex;flex-direction:column;gap:6px}
.asf-steps li::marker{font-weight:700;color:var(--blue-ink)}
.asf b{font-weight:700;color:var(--s-ink)}
.asf-read-on > :not(.asf-reading){opacity:.55;transition:opacity var(--dur-2) var(--ease-out)}
.asf-reading{border-left:3px solid var(--b-500);padding-left:10px;margin-left:-13px}
.asf-steps.asf-reading,.asf-list.asf-reading{padding-left:32px}
@media (prefers-reduced-motion: reduce){ .asf-read-on > *{transition:none} }
/* The house "Saved." pill (public/ui.js saidOn) lands beside the pressed option, inside the switch's track. */
.ats-switch .said-on{align-self:center;margin:0 6px 0 2px}

/* ---- v3.1206.0 (lane assistmember) — Platinum Assist questions a month, the at-limit message, Learn more, the staff panel
   (public/assistmember.js). Theme tokens only. ---------------------------------------------------------------------------- */
.aml-usage{margin:6px 0 0;font-size:var(--fs-xs);color:var(--s-muted)}
.aml-usage.aml-warn,.aml-staff .aml-warn{color:var(--s-warn);font-weight:600}
.aml-limit{margin:10px 0 0;padding:12px 14px;border:1px solid var(--s-warn);border-radius:10px;background:var(--s-warn-soft);color:var(--s-ink)}
.aml-limit-words{margin:0 0 10px}
.aml-limit-acts{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.aml-learn{margin:12px 0 0;padding:10px 12px;border:1px solid var(--s-line);border-radius:10px;background:var(--s-sunk)}
.aml-learn-h{margin:0 0 6px;font-size:var(--fs-sm)}
.aml-learn-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.aml-learn-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:8px;background:var(--s-panel);border:1px solid var(--s-line)}
.aml-learn-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.aml-learn-course{font-size:var(--fs-xs);color:var(--s-muted)}
.aml-learn-title{color:var(--s-ink);overflow-wrap:anywhere}
.aml-learn-why{font-size:var(--fs-xs);color:var(--s-ink-2)}
.aml-learn-access{align-self:flex-start;margin-top:2px;background:var(--s-ok-soft);color:var(--s-ink)}
.aml-learn-item.aml-locked .aml-learn-access{background:var(--s-sunk)}
.aml-staff-ups{margin:4px 0 8px;padding-left:18px;color:var(--s-ink-2)}
@media (max-width:560px){ .aml-learn-item{flex-direction:column;align-items:stretch} .aml-learn-item .btn{width:100%} }
/* lane billedto (v3.1207.0) — "Working with someone else" on a booking (public/workingwith.js). Theme tokens only. */
.ww-panel{border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:10px 12px;margin:0 0 12px}
.ww-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.ww-tick{display:inline-flex;align-items:center;gap:8px;font-weight:600;cursor:pointer}
.ww-billed{color:var(--muted);font-size:var(--fs-xs)}
.ww-body{margin-top:10px}
.ww-body[hidden]{display:none}
.ww-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.ww-acts .save-status.bad{color:var(--danger)}
.ww-pick .cp-lab{display:block;margin:6px 0}
.ww-pick select,.ww-pick input{max-width:100%}
.bkg-detail-with{margin:0 0 14px}
.bs-with:empty{display:none}

/* ---- v3.1207.0 (lane/securereq) — Secure requests on an enquiry, their window, the video links, the Archived window -------
   Theme tokens only. A value is drawn only after Reveal (.secq-shown); everything else is a mask. */
.secq-slot:empty{display:none}
.secq{margin-top:var(--sp-3)}
.secq h3{margin:0 0 var(--sp-2)}
.secq-list{list-style:none;margin:0 0 var(--sp-2);padding:0;display:flex;flex-direction:column;border:1px solid var(--s-line-2);border-radius:var(--rad-in)}
.secq-req,.secq-archrow{padding:var(--sp-2) var(--sp-3);border-top:1px solid var(--s-line-2);font-size:var(--fs-sm);min-width:0}
.secq-req:first-child,.secq-archrow:first-child{border-top:0}
.secq-archrow{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);cursor:pointer}
.secq-archrow:hover{background:var(--s-sunk)}
.secq-archrow .secq-act{margin-left:auto}
.secq-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
.secq-head .secq-act{margin-left:auto}
.secq-asked{overflow-wrap:anywhere;min-width:0}
.secq-pill{display:inline-flex;align-items:center;white-space:nowrap;padding:2px 8px;border-radius:var(--rad-pill);font-size:var(--fs-xs);font-weight:600;background:var(--s-sunk);color:var(--s-ink-2)}
.secq-st-sent{background:var(--s-accent-soft);color:var(--s-link)}
.secq-st-received{background:var(--s-ok-soft);color:var(--s-ok)}
.secq-st-expired,.secq-st-withdrawn{background:var(--s-warn-soft);color:var(--s-warn)}
.secq-line{margin:var(--sp-1) 0 0}
.secq-items{list-style:none;margin:var(--sp-2) 0 0;padding:0;display:flex;flex-direction:column;gap:var(--sp-1)}
.secq-item{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);padding:var(--sp-1) var(--sp-2);border-radius:var(--rad-sm);background:var(--s-sunk);min-width:0}
.secq-item .secq-act{margin-left:auto}
.secq-k{font-weight:600;color:var(--s-ink);white-space:nowrap}
.secq-v{color:var(--s-ink-2);overflow-wrap:anywhere;min-width:0}
.secq-mask{letter-spacing:.1em}
.secq-mask.secq-shown{letter-spacing:normal;font-family:var(--font-mono);color:var(--s-ink);overflow-wrap:anywhere}
.secq-notes{margin:var(--sp-2) 0 0;overflow-wrap:anywhere}
.secq-remind{margin:var(--sp-2) 0 0;color:var(--s-warn);font-size:var(--fs-xs)}
.secq-acts{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin:0}
.secq-act{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
.secq-act .save-status.bad{color:var(--danger)}
.secq-form{display:flex;flex-direction:column;gap:var(--sp-3)}
.secq-form label{display:flex;flex-direction:column;gap:4px;font-size:var(--fs-sm);color:var(--s-ink-2)}
.secq-form input,.secq-form select,.secq-form textarea{font:inherit;padding:8px 10px;border:1px solid var(--s-line);border-radius:var(--rad-in);background:var(--s-panel);color:var(--s-ink);max-width:100%}
.secq-asks{border:1px solid var(--s-line-2);border-radius:var(--rad-in);padding:var(--sp-2) var(--sp-3);display:flex;flex-direction:column;gap:var(--sp-2);margin:0;min-width:0}
.secq-asks legend{font-size:var(--fs-sm);color:var(--s-ink-2);padding:0 4px}
.secq-askrow{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
.secq-form .secq-check{flex-direction:row;align-items:center;gap:var(--sp-2);color:var(--s-ink);font-size:var(--fs-md, 15px)}
.secq-check input{width:18px;height:18px}
.secq-sub{margin-left:26px}
.secq-vid{font-size:var(--fs-xs)}
.secq-two{display:grid;grid-template-columns:2fr 1fr;gap:var(--sp-3)}
.secq-foot{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3)}
.secq-to{margin:0 0 var(--sp-2);overflow-wrap:anywhere}
.secq-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--s-sunk);border-radius:var(--rad-in);padding:var(--sp-3);font-size:var(--fs-sm);margin:0 0 var(--sp-3);max-height:40vh;overflow:auto}
.secq-settings form{max-width:640px}
/* 3.1211.0 (ON-3) — Settings › Enquiries & mail rules › Close reasons (public/closereasons.js). */
.crs-list{list-style:none;margin:0 0 var(--sp-2);padding:0;max-width:640px;display:flex;flex-direction:column;gap:var(--sp-2)}
.crs-row{display:flex;align-items:center;gap:var(--sp-2)}
.crs-row input{flex:1;min-width:0;font:inherit;padding:8px 10px;border:1px solid var(--s-line);border-radius:var(--rad-in);background:var(--s-panel);color:var(--s-ink)}
.crs-other{margin:0 0 var(--sp-3)}
.crs-foot{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3)}
.enq-archived-tag{display:inline-flex;align-items:center;padding:2px 8px;border-radius:var(--rad-pill);font-size:var(--fs-xs);font-weight:600;background:var(--s-warn-soft);color:var(--s-warn)}
.tl-step.tl-lost{margin-left:var(--sp-2)}
@media (max-width:600px){
  .secq-two{grid-template-columns:1fr}
  .secq-sub{margin-left:0}
  .secq-item .secq-act,.secq-head .secq-act{margin-left:0}
  .secq-form input,.secq-form select,.secq-form textarea{font-size:16px}
  .crs-row input{font-size:16px}
}

/* ---- v3.1207.0 — the customer's secure page (public/sendsecure.html), built on the cleanse review page's shape ---------- */
.ss-page .ss-card{border:1px solid var(--line);border-radius:var(--rad-in);padding:12px 14px;margin:12px 0;background:var(--panel)}
.ss-page h1{font-size:1.5rem;margin:8px 0 4px}
.ss-page h2{font-size:1.1rem;margin:0 0 6px}
.ss-page label{display:flex;flex-direction:column;gap:4px;margin:8px 0;font-size:var(--fs-sm);color:var(--muted)}
.ss-page input,.ss-page textarea{font:inherit;font-size:16px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--rad-in);background:var(--panel-2);color:var(--ink);max-width:100%}
.ss-page .ss-two{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.ss-page .ss-files{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.ss-page .ss-files li{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 10px;border-radius:var(--rad-sm);background:var(--panel-2);overflow-wrap:anywhere}
.ss-page .ss-files li button{margin-left:auto}
.ss-page .ss-drop{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:6px}
.ss-page .ss-video{display:inline-block;margin:2px 0 6px;color:var(--blue);font-weight:600}
.ss-page .ss-lock{color:var(--muted);font-size:var(--fs-sm)}
.ss-page .ss-send{position:sticky;bottom:0;background:var(--bg);padding:10px 0;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ss-page .ss-bad{color:var(--danger)}
.ss-page .ss-ok{color:var(--ok)}
@media (max-width:600px){ .ss-page .ss-two{grid-template-columns:1fr} }
/* lane/loginrequest (2 Nov 2026) — any number of logins, the steps beside the video, the best-practice line. Theme tokens only. */
.ss-page .ss-best{margin:0 0 8px;padding:8px 10px;border-left:3px solid var(--blue);background:var(--panel-2);border-radius:var(--rad-sm);font-size:var(--fs-sm)}
.ss-page .ss-how{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start;margin:6px 0 10px}
.ss-page .ss-howvid{margin:0}
.ss-page .ss-player{display:block;width:100%;height:auto;aspect-ratio:16/9;border:1px solid var(--line);border-radius:var(--rad-in);background:var(--line)}
.ss-page .ss-novid{padding:14px;border:1px dashed var(--line);border-radius:var(--rad-in);color:var(--muted);font-size:var(--fs-sm);text-align:center}
.ss-page .ss-steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px;font-size:var(--fs-sm)}
.ss-page .ss-rows{display:flex;flex-direction:column;gap:10px}
.ss-page .ss-row{border:1px solid var(--line);border-radius:var(--rad-in);padding:6px 12px 10px;margin:0;min-width:0}
.ss-page .ss-row legend{font-weight:600;padding:0 4px;color:var(--ink)}
.ss-page .ss-row label,.ss-page .ss-two>label{min-width:0}
.ss-page .ss-row input{width:100%;min-width:0;box-sizing:border-box}
.ss-page .ss-pw{display:flex;gap:6px;align-items:center;min-width:0}
.ss-page .ss-pw input{flex:1;width:auto;min-width:0}
.ss-page .ss-pw .btn{flex:none}
.ss-page [data-ss-addrow]{margin-top:10px}
@media (max-width:600px){ .ss-page .ss-how{grid-template-columns:1fr} }
/* v3.1208 (Bec, 26 Oct) — the enquiry Invoices block's "Add Invoice" picker: the customer's other invoices and Add. */
.enq-inv-pick{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin:0 0 10px;padding:8px 10px;
  border:1px solid var(--line);border-radius:8px;background:var(--panel)}
.enq-inv-pick[hidden]{display:none}
.enq-inv-pick label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:var(--fs-sm);flex:1 1 260px;min-width:0}
.enq-inv-pick select{width:100%;min-width:0;font-weight:400}

/* ---- 3.1209.0 (lane t2cdash) — THE TECH TO CEO DASHBOARD (public/apps/t2c.js). Theme tokens only: green, amber and red are
   --ok, --warn and --danger, which carry their own dark-theme values (public/theme.css). ---------------------------------- */
.t2c-tabbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
/* 3.1212.0 (lane t2ctidy): the chips are the dashboard's sections now, so they read bigger than a filter chip. */
.t2c-tabs{display:flex;gap:6px;min-width:0}
.t2c-tabs .chip{font-size:var(--fs-sm);padding:6px 14px;white-space:nowrap}
.t2c-show{flex:none}
.t2c-run{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px;color:var(--muted);font-size:var(--fs-sm)}
/* 3.1213.0 (lane t2ccc): the read's progress bar. Theme tokens only. */
.t2c-prog{flex-direction:column;align-items:stretch;gap:6px}
.t2c-prog-bar{position:relative;height:8px;border-radius:4px;background:var(--line);overflow:hidden}
.t2c-prog-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:var(--accent-ink)}   /* 3.1213.0 — no width transition: the house motion rules allow none on a layout property; the bar is redrawn on every poll */
.t2c-prog.stuck .t2c-prog-bar i{background:var(--warn)}
.t2c-prog-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.t2c-prog-words{color:var(--ink)}
.t2c-prog.stuck .t2c-prog-words{color:var(--warn)}
@media (prefers-reduced-motion:reduce){.t2c-prog-bar i{transition:none}}
.t2c-morning{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px;align-items:stretch;margin:0 0 6px}
.t2c-morning .t2c-h{grid-column:1/-1;margin:0}
.t2c-check{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--r);background:var(--panel-2);
  display:flex;flex-direction:column;justify-content:center}
.t2c-check li{border-top:1px solid var(--line)}
.t2c-check li:first-child{border-top:0}
.t2c-li{display:flex;justify-content:space-between;gap:10px;width:100%;padding:10px 14px;font:inherit;color:var(--ink);background:none;border:0;text-align:left}
button.t2c-li{cursor:pointer}
.t2c-check b.st-red{color:var(--danger)} .t2c-check b.st-amber{color:var(--warn)}
button.t2c-li:hover,button.t2c-li:focus-visible{color:var(--accent-ink)}
.t2c-h{margin:22px 0 10px;font-size:var(--fs-lg)}
.t2c-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.t2c-five{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.t2c-tile{display:flex;flex-direction:column;gap:6px;text-align:left;padding:14px 16px;border:1px solid var(--line);border-left:4px solid var(--line);
  border-radius:var(--r);background:var(--panel);color:var(--ink);font:inherit;cursor:pointer;min-width:0}
.t2c-tile:hover,.t2c-tile:focus-visible{border-color:var(--accent-ink)}
.t2c-tile.st-green{border-left-color:var(--ok)}
.t2c-tile.st-amber{border-left-color:var(--warn)}
.t2c-tile.st-red{border-left-color:var(--danger)}
.t2c-tile.dim .t2c-val{color:var(--muted);font-size:var(--fs-lg)}
.t2c-tile.big .t2c-val{font-size:calc(var(--fs-3xl) * .8)}
.t2c-morning .t2c-tile.big .t2c-val{font-size:var(--fs-3xl)}
.t2c-name{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-weight:600;font-size:var(--fs-sm);color:var(--muted)}
.t2c-from{font-weight:400;font-size:var(--fs-xs);color:var(--muted);border:1px solid var(--line);border-radius:var(--rad-pill,999px);padding:0 7px;flex:none}
.t2c-val{font-size:var(--fs-2xl);font-weight:700;line-height:1.1;overflow-wrap:anywhere}
.t2c-sub{color:var(--muted);font-size:var(--fs-sm)}
.t2c-foot{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:var(--fs-sm);margin-top:auto}
.t2c-st{font-weight:600;white-space:nowrap}
.st-green .t2c-st{color:var(--ok)} .st-amber .t2c-st{color:var(--warn)} .st-red .t2c-st{color:var(--danger)}
.t2c-bar{position:relative;display:block;height:6px;border-radius:3px;background:var(--line);margin:2px 0}
.t2c-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:3px;background:var(--muted)}
.st-green .t2c-bar i{background:var(--ok)} .st-amber .t2c-bar i{background:var(--warn)} .st-red .t2c-bar i{background:var(--danger)}
.t2c-bar b{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;background:var(--ink)}
.t2c-spark{width:100%;height:24px}
.t2c-spark polyline{fill:none;stroke:var(--accent-ink);stroke-width:1.5;vector-effect:non-scaling-stroke}
.t2c-list{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:3px;font-size:var(--fs-sm)}
.t2c-list li{display:flex;justify-content:space-between;gap:10px;min-width:0}
.t2c-list li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.t2c-list li b{font-weight:700;white-space:nowrap}
.t2c-list li.st-green b{color:var(--ok)} .t2c-list li.st-amber b{color:var(--warn)} .t2c-list li.st-red b{color:var(--danger)}
.t2c-list-n{counter-reset:t2cn}
.t2c-list-n li span::before{counter-increment:t2cn;content:counter(t2cn) ". ";color:var(--muted)}
.t2c-tile.has-list[data-t2c-tile="top_customers"]{grid-row:span 2}
.t2c-quiet{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:14px 0 0;padding-top:10px;border-top:1px dashed var(--line);font-size:var(--fs-sm);color:var(--muted)}
.t2c-quiet-h{margin-right:4px}
.t2c-q{font:inherit;font-size:var(--fs-sm);color:var(--muted);background:none;border:1px solid var(--line);border-radius:var(--rad-pill,999px);padding:2px 10px;cursor:pointer}
.t2c-q:hover,.t2c-q:focus-visible{color:var(--ink);border-color:var(--accent-ink)}
.t2c-gone{margin:10px 0 0}
.t2c-calm{margin:0}
.t2c-tvbar{display:flex;align-items:center;gap:12px;margin:0 0 18px}
.t2c-tvbar h2{margin:0;font-size:var(--fs-2xl);flex:1}
.t2c-dots{display:flex;gap:6px}
.t2c-dots i{width:10px;height:10px;border-radius:50%;background:var(--line)}
.t2c-dots i.on{background:var(--accent-ink)}
.t2c-att{grid-template-columns:repeat(3,minmax(0,1fr))}
.t2c-tv.t2c-dash{font-size:var(--fs-md)}
.t2c-tv.t2c-dash .t2c-five{grid-template-columns:repeat(5,minmax(0,1fr))}
.t2c-tv.t2c-dash .t2c-name{font-size:var(--fs-md)}
.t2c-tv.t2c-dash .t2c-val{font-size:var(--fs-3xl)}
.t2c-huddle .t2c-hhead{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}
.t2c-hgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:14px}
.t2c-hnum{display:flex;flex-direction:column;gap:4px;padding:16px;border:1px solid var(--line);border-top:5px solid var(--line);border-radius:var(--r);background:var(--panel)}
.t2c-hnum.st-green{border-top-color:var(--ok)} .t2c-hnum.st-amber{border-top-color:var(--warn)} .t2c-hnum.st-red{border-top-color:var(--danger)}
.t2c-hnum .t2c-val{font-size:calc(var(--fs-3xl) * .8)}
.t2c-win{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.t2c-win textarea{width:100%;max-width:640px}
.t2c-tv{position:fixed;inset:0;z-index:9999;overflow:auto;background:var(--bg);padding:4vh 4vw;font-size:calc(var(--fs-xl) * 1.07)}
.t2c-tv .t2c-hnum .t2c-val{font-size:calc(var(--fs-3xl) * 1.6)}
.t2c-tv [data-t2c-tv]{display:none}
.t2c-settings h3{margin:18px 0 8px}
.t2c-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.t2c-field{display:flex;flex-direction:column;gap:4px}
.t2c-picks{border:1px solid var(--line);border-radius:var(--r);padding:8px 12px;margin:0 0 10px;max-height:240px;overflow:auto;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:4px 12px}
.t2c-picks legend{font-weight:600;padding:0 4px}
.t2c-picks small{color:var(--muted)}
.t2c-ending p{margin:0}
/* 3.1214.0 (lane t2cpolish) — SETTINGS, MADE CALMER. Darren, 29 October 2026: "This is not very elegant." Short sections, each a
   card with its own Save and the answer beside it; a section index across the top; the targets grouped by chip with their
   units in the box; the long lists in the two-column picker (public/duallist.js, built on the archivers' .pick-grid). Theme
   tokens only. */
.t2c-settings{display:flex;flex-direction:column;gap:var(--sp-4)}
.t2c-secnav{display:flex;flex-wrap:wrap;gap:var(--sp-2);position:sticky;top:0;z-index:2;padding:var(--sp-2) 0;background:var(--panel)}
.t2c-secs{display:flex;flex-direction:column;gap:var(--sp-4)}
.t2c-sec{border:1px solid var(--line);border-radius:var(--rad);background:var(--panel);padding:var(--sp-4) var(--sp-5);scroll-margin-top:64px}
.t2c-sec-head{display:flex;align-items:center;gap:var(--sp-2);margin:0 0 var(--sp-3)}
.t2c-settings .t2c-sec-head h3{margin:0;font-size:var(--fs-md);cursor:help}
.t2c-sec-q{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:var(--rad-pill);
  border:1px solid var(--line);color:var(--muted);font-size:var(--fs-xs);font-weight:700;cursor:help}
.t2c-sec-body{display:flex;flex-direction:column;gap:var(--sp-3)}
.t2c-sec-foot{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2);margin-top:var(--sp-4);padding-top:var(--sp-3);border-top:1px solid var(--line)}
.t2c-frow{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:var(--sp-3) var(--sp-4);align-items:end}
.t2c-f{display:flex;flex-direction:column;gap:var(--sp-1);min-width:0}
.t2c-f-l{font-size:var(--fs-sm);font-weight:600;color:var(--ink)}
.t2c-f-in{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:var(--rad-in);background:var(--panel);overflow:hidden}
.t2c-f-in:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.t2c-f-in input,.t2c-f-in select{flex:1 1 auto;min-width:0;border:0;background:transparent;color:var(--ink);padding:8px 10px;font:inherit;outline:none}
.t2c-f-in select.lb{border:0;border-radius:0}
.t2c-unit{display:flex;align-items:center;padding:0 10px;background:var(--panel-2);color:var(--muted);font-size:var(--fs-xs);white-space:nowrap}
.t2c-unit.pre{border-right:1px solid var(--line)}
.t2c-unit:not(.pre){border-left:1px solid var(--line)}
.t2c-tgroup h4,.t2c-subh{margin:var(--sp-2) 0 var(--sp-2);font-size:var(--fs-sm);color:var(--muted);text-transform:none;font-weight:700}
.t2c-tgroup + .t2c-tgroup{margin-top:var(--sp-2);padding-top:var(--sp-3);border-top:1px dashed var(--line)}
.t2c-shownbox{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:var(--sp-3)}
.t2c-shows{border:1px solid var(--line);border-radius:var(--rad-in);padding:var(--sp-2) var(--sp-3);margin:0;display:flex;flex-direction:column;gap:2px}
.t2c-shows legend{font-weight:700;font-size:var(--fs-sm);padding:0 4px}
.t2c-shows .chk{font-size:var(--fs-sm)}
.t2c-rulefacts{margin:0;align-self:center}
.t2c-cbnow{margin:0}
.t2c-qwrap{display:inline-flex;gap:var(--sp-1);align-items:center}
.t2c-q.t2c-q-go{color:var(--accent);border-color:var(--accent)}
/* The read's progress: lane t2ccc's bar (.t2c-prog, above) is kept at the 3.1214.0 merge; the lane's interim bar went. */
/* THE TWO-COLUMN PICKER (public/duallist.js): the archivers' .pick-grid with rows that move across on a click. */
.dual .pick-main{display:flex;flex-direction:column;gap:var(--sp-2)}
.dual-head{display:flex;align-items:baseline;gap:var(--sp-2);font-size:var(--fs-sm)}
.dual-search{width:100%;padding:7px 9px;border:1px solid var(--line);border-radius:var(--r);background:var(--panel);color:var(--ink);font:inherit}
.dual-az{display:flex;flex-wrap:wrap;gap:2px}
.dual-az button{min-width:22px;height:22px;padding:0 4px;border:1px solid var(--line);border-radius:var(--rad-sm);background:var(--panel);color:var(--ink);
  font:inherit;font-size:var(--fs-xs);cursor:pointer}
.dual-az button:hover:not([disabled]){border-color:var(--accent);color:var(--accent)}
.dual-az button[disabled]{opacity:.35;cursor:default}
.dual-list{max-height:300px;overflow:auto;border:1px solid var(--line);border-radius:var(--r);padding:4px;position:relative}
.dual-item{display:flex;align-items:center;gap:var(--sp-2);width:100%;text-align:left;border:0;background:transparent;color:var(--ink);
  font:inherit;font-size:var(--fs-sm);padding:6px 8px;border-radius:var(--rad-sm);cursor:pointer}
.dual-item:hover,.dual-item:focus-visible{background:var(--accent-soft)}
.dual-item .dual-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dual-sub{color:var(--muted);font-size:var(--fs-xs);white-space:nowrap}
.dual-badge{font-size:var(--fs-xs);font-weight:700;color:var(--accent);border:1px solid var(--accent);border-radius:var(--rad-pill);padding:0 6px;white-space:nowrap}
.dual-picked .picked-head{justify-content:space-between}
@media (min-width:781px){.dual .picked-box.dual-picked{flex:0 0 380px;max-height:none}}
@media (max-width:780px){.dual .picked-box.dual-picked{flex:0 0 auto;max-height:none}}
.dual-picked .picked-chips{max-height:360px;overflow:auto}
.dual-chip>.dual-label{display:flex;align-items:center;gap:6px;min-width:0}
.dual-chip>.dual-label .dual-sub{margin-left:auto}
@media (max-width:640px){
  .t2c-sec{padding:var(--sp-3)}
  .t2c-secnav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .t2c-secnav::-webkit-scrollbar{display:none}
  .t2c-secnav .chip{flex:0 0 auto}
  .t2c-frow{grid-template-columns:1fr}
  .t2c-prog-bar{flex-basis:90px}
}
/* 3.1214.0 (lane t2ccompany) — SEVERAL SIMPRO COMPANIES: the Company selector at the top of the number chips, and the revenue
   target row for each company in Settings. Theme tokens only. */
.t2c-cobar{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2);margin:0 0 10px}
.t2c-cobar label{font-weight:700;font-size:var(--fs-sm);color:var(--muted)}
.t2c-cobar select.lb{min-width:220px;max-width:100%}
.t2c-cos{max-width:520px}
.t2c-cogrid{margin:0 0 var(--sp-2)}
.t2c-cogrid table{width:100%}
.t2c-cogrid th[scope="row"]{font-weight:600;text-align:left;white-space:nowrap}
.t2c-cogrid td{min-width:150px}
.t2c-cocap{display:none}
@media (max-width:640px){
  .t2c-cobar select.lb{flex:1 1 auto;min-width:0}
  .t2c-cogrid table,.t2c-cogrid tbody,.t2c-cogrid tr,.t2c-cogrid th[scope="row"],.t2c-cogrid td{display:block;width:100%;min-width:0}
  .t2c-cogrid thead{display:none}
  .t2c-cogrid tr{padding:var(--sp-2) 0;border-bottom:1px solid var(--line)}
  .t2c-cogrid th[scope="row"],.t2c-cogrid td{border:0;padding:4px 0}
  .t2c-cocap{display:block;font-size:var(--fs-xs);color:var(--muted);margin:0 0 2px}
}
.t2c-facts{width:100%;table-layout:fixed}
.t2c-facts td,.t2c-facts th{overflow-wrap:anywhere;white-space:normal}
@media (max-width:640px){
  .t2c-tabbar{flex-wrap:wrap}
  .t2c-tabs{flex:1 1 100%;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .t2c-tabs::-webkit-scrollbar{display:none}
  .t2c-morning,.t2c-grid,.t2c-five,.t2c-att{grid-template-columns:1fr}
  .t2c-show{display:none}
  .t2c-val{font-size:var(--fs-xl)}
  .t2c-tile.big .t2c-val,.t2c-morning .t2c-tile.big .t2c-val{font-size:var(--fs-2xl)}
}

/* ---- v3.1211.0 — JOB ALERTS REWORK (OTH-4): the opening explainer, the step-by-step rule window, the pickers and
   Easy start. Theme tokens only. ---- */
.jr-head{gap:var(--sp-2);align-items:center;flex-wrap:wrap}
.jr-grow{flex:1}
.jr-tabs{gap:var(--sp-1);flex-wrap:wrap;margin-bottom:var(--sp-2)}
.jr-explain{margin-top:var(--sp-2)}
.jr-explain summary{cursor:pointer;font-weight:600;padding:4px 0}
.jr-kgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:var(--sp-2);margin:var(--sp-2) 0}
.jr-kcard{display:flex;flex-direction:column;gap:4px;text-align:left;font:inherit;color:var(--ink);background:var(--panel);
  border:1px solid var(--line);border-radius:var(--rad-sm,8px);padding:10px 12px;min-width:0}
button.jr-kcard{cursor:pointer}
button.jr-kcard:hover:not(:disabled){border-color:var(--blue)}
button.jr-kcard:disabled{cursor:default;opacity:.7}
.jr-kcard.on{border-color:var(--blue);background:var(--s-accent-soft,var(--blue-lt));box-shadow:inset 0 0 0 1px var(--blue)}
.jr-kcard.on:disabled{opacity:1}
.jr-steps{display:flex;flex-wrap:wrap;gap:var(--sp-1);list-style:none;margin:0 0 var(--sp-2);padding:0}
.jr-steps .chip{font-size:var(--fs-sm,13px);padding:5px 12px;cursor:pointer}
.jr-pane{min-height:12em}
.jr-lead{font-weight:600;margin:0 0 var(--sp-2)}
.jr-form label,.jr-form .jr-pick{min-width:0}
.jr-pane label:not(.jr-tick):not([data-jr-opt]),.jr-pane>div>label:not(.jr-tick):not([data-jr-opt]){display:flex;flex-direction:column;gap:5px;font-size:var(--fs-sm);font-weight:600;color:var(--muted);margin:0 0 var(--sp-2);min-width:0}
.jr-pane label:not(.jr-tick)>input:not([type=checkbox]),.jr-pane label:not(.jr-tick)>select,.jr-pane label:not(.jr-tick)>textarea{font-size:15px;font-weight:400;color:var(--ink);width:100%;max-width:640px;box-sizing:border-box}
.jr-pane input[type=number]{max-width:140px}
.jr-form [hidden],.jr-easy [hidden]{display:none!important}
.jr-tick{display:inline-flex;align-items:center;gap:6px;margin:0 var(--sp-2) var(--sp-1) 0;font-weight:400;color:var(--ink)}
.jr-pick{border:1px solid var(--line);border-radius:var(--rad-sm,8px);padding:var(--sp-1);margin:4px 0 var(--sp-2)}
.jr-chips{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:4px;min-height:24px;align-items:center}
.jr-chips .chip{cursor:pointer}
.jr-find{width:100%;box-sizing:border-box;margin-bottom:4px}
.jr-opts{max-height:10em;overflow:auto}
.jr-opts label{display:block}
.jr-opts label[hidden]{display:none}
.jr-foot{gap:var(--sp-2);align-items:center;flex-wrap:wrap;margin-top:var(--sp-2)}
.jr-preview-head{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap;margin-top:var(--sp-2)}
.jr-preview{border:1px solid var(--line);border-radius:var(--rad-sm,8px);padding:10px 12px;margin-top:6px;background:var(--s-sunk,var(--bg))}
.jr-mail{white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--fs-sm,13px)}
.jr-probs{margin:4px 0 0 18px;padding:0;font-size:var(--fs-sm,13px)}
.jr-q{border:0;padding:0;margin:0 0 var(--sp-3,16px);min-width:0}
.jr-q legend{font-weight:600;margin-bottom:var(--sp-1);padding:0}
.jr-bigs{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:var(--sp-2)}
.jr-big{display:flex;flex-direction:column;gap:4px;text-align:left;font:inherit;font-size:var(--fs-md,15px);color:var(--ink);background:var(--panel);
  border:1px solid var(--line);border-radius:var(--rad,14px);padding:12px 14px;cursor:pointer;min-height:48px;min-width:0}
.jr-big:hover:not(:disabled){border-color:var(--blue)}
.jr-big.on{border-color:var(--blue);background:var(--s-accent-soft,var(--blue-lt));box-shadow:inset 0 0 0 1px var(--blue)}
.jr-big:disabled{cursor:not-allowed;opacity:.55}
.jr-done{border:1px solid var(--line);border-radius:var(--rad-sm,8px);padding:10px 12px;margin-top:var(--sp-2)}
@media(max-width:640px){.jr-kgrid,.jr-bigs{grid-template-columns:1fr}.jr-steps .chip{padding:4px 9px}}

/* ---- bec1028 (3.1212.0) — Bec's invoice builder list ----------------------------------------------------------------
   19: the totals never scroll sideways — the words wrap, the money stays on one line at the right. The global
   `th,td{white-space:nowrap}` is what made the table wider than the window. */
table.q-totals{width:100%;table-layout:fixed}
table.q-totals td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}
table.q-totals td.num{width:8.5em;white-space:nowrap;text-align:right}
@media (max-width:480px){ table.q-totals td.num{width:6.8em} }
.q-tot-qty{color:var(--muted);font-weight:600;white-space:nowrap}
/* 10 and 18: the Qty box, and the sentence beside the On site tick. */
/* Four fields on a session (Hours, Qty, On site, Price each) share the middle on one row at 1440 instead of wrapping. */
.qline-mid{grid-template-columns:repeat(auto-fit,minmax(104px,1fr))}
.qline .qline-onsite{display:flex;flex-direction:column;justify-content:flex-end;gap:2px;min-width:0}
.qline .qline-onsite label.chk{padding-bottom:2px}
.qline .qline-onsite-say{font-size:var(--fs-xs);font-weight:600;color:var(--ok);white-space:normal;min-height:1em}
.qline .qline-onsite-say:empty{display:none}
/* 6 and 15: the simple Travel choice, and Visits. */
.q-tvq{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:4px 0 10px}
.q-tvq-opt{display:inline-flex;align-items:center;gap:6px;font-weight:600;cursor:pointer;white-space:nowrap}
.q-tvq-opt input{margin:0;width:auto}
.q-tvq-visits{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.q-tvq-visits[hidden]{display:none}
.q-tvq-visits input{width:5em;margin:0}
#q-tvq-say{flex:1 1 100%}
#q-tvq-say:empty{display:none}
#qtv-detail[hidden]{display:none}
/* 5: CC and BCC from their people. */
.q-copycol{display:grid;gap:4px;min-width:0;align-content:start}
.q-copycol>label{display:grid;gap:4px;font-weight:600;font-size:var(--fs-sm);min-width:0}
.q-copycol>label>input{width:100%;min-width:0;font-weight:400}
.q-copypick{display:grid;gap:4px;justify-items:start;min-width:0}
.q-copylist{display:grid;gap:6px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);
  width:100%;box-sizing:border-box;min-width:0}
.q-copylist[hidden]{display:none}
.q-copyrows{display:grid;gap:2px;max-height:200px;overflow:auto;min-width:0}
.q-copylist>.btn{justify-self:start}
.q-copyrow{display:flex;align-items:flex-start;gap:6px;font-weight:400;min-width:0}
.q-copyrow>span{min-width:0;overflow-wrap:anywhere}
.q-copyrow input{margin-top:3px;width:auto}
/* bec1028 (3.1212.0) — the customer's document, in the preview and on their page: a long line description wraps (and keeps
   its line breaks, as Jarryd asked in 3.1170) instead of pushing Qty and the amount off the side. Found by the 16 screenshot. */
.qp-tbl td{white-space:normal;overflow-wrap:anywhere}
.qp-tbl td.n,.qp-tbl th.n{white-space:nowrap;padding-left:12px}
.qp-tbl .qp-desc{white-space:pre-line}
/* ---- 3.1212.0 — JOB TO KIT (public/apps/jobkit.js) ---------------------------------------------------------------- */
#view-jobkit .jk-chips{display:flex;gap:var(--sp-2);flex-wrap:wrap}
#view-jobkit .jk-find,#view-jobkit .jk-opts{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap;margin:var(--sp-3) 0}
#view-jobkit .jk-find input{flex:1 1 220px;min-width:0}
#view-jobkit .jk-lab{font-size:var(--fs-sm);color:var(--muted)}
#view-jobkit .jk-field{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap;font-size:var(--fs-sm)}
#view-jobkit .jk-field select{max-width:100%}
#view-jobkit .jk-scroll{overflow-x:auto;max-width:100%}
#view-jobkit .jk-tbl{width:100%}
#view-jobkit .jk-tbl td{vertical-align:middle}
#view-jobkit .jk-pick{cursor:pointer}
#view-jobkit .jk-pick:hover,#view-jobkit .jk-pick:focus{background:var(--tint)}
#view-jobkit .jk-qty{width:6.5em;text-align:right}
#view-jobkit .jk-off td{color:var(--muted)}
#view-jobkit .jk-link{display:flex;gap:var(--sp-2);flex-wrap:wrap;margin-top:var(--sp-2)}
#view-jobkit .jk-link input{flex:1 1 140px;min-width:0}
#view-jobkit .jk-hits{list-style:none;margin:0;padding:0;flex-basis:100%}
#view-jobkit .jk-hits button{background:none;border:0;padding:var(--sp-2) 0;color:var(--blue-ink);cursor:pointer;text-align:left;font:inherit}
#view-jobkit .jk-hits button:hover{text-decoration:underline}
#view-jobkit .jk-skipped{margin:var(--sp-3) 0;font-size:var(--fs-sm)}
#view-jobkit .jk-prog{width:100%}
@media (max-width:640px){
  #view-jobkit .jk-hide-sm{display:none}
  #view-jobkit .jk-qty{width:5em}
  /* A phone stacks each row: the line on top, its quantity and choice under it, so nothing hides off to the right. */
  #view-jobkit .jk-tbl thead{display:none}
  #view-jobkit .jk-tbl tr{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);padding:var(--sp-2) 0;border-bottom:1px solid var(--line)}
  #view-jobkit .jk-tbl td{border:0;padding:0}
  #view-jobkit .jk-tbl td.jk-hide-sm{display:none}
  #view-jobkit .jk-lines td:nth-child(2){flex:1 1 70%}
  #view-jobkit .jk-lines td:nth-child(4){margin-left:calc(var(--sp-2) * 4)}
}
#view-jobkit .jk-tbl td,#view-jobkit .jk-tbl th{overflow-wrap:anywhere}
/* lane feedback (3.1212.0, 28 October 2026) — the customer's rating page (public/feedback.html) and the Customer feedback
   screen (public/apps/feedback.js). Theme tokens only. The five faces are the same size: no thumb on the scale. */
.fb-page{max-width:640px}
.fb-brand{gap:var(--sp-3)}
.fb-logo{height:44px;width:auto;max-width:160px;object-fit:contain}
.fb-name{font-size:var(--fs-lg);color:var(--ink)}
.fb-h{font-size:var(--fs-2xl);margin:0 0 var(--sp-2)}
.fb-lead{font-size:var(--fs-md);color:var(--ink);margin:0 0 var(--sp-4)}
.fb-faces{display:grid;grid-template-columns:repeat(5,1fr);gap:var(--sp-2);margin:0 0 var(--sp-3)}
.fb-face{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-1);min-height:84px;padding:var(--sp-2);
  border:1px solid var(--line);border-radius:var(--rad-in);background:var(--panel);color:var(--ink);font:inherit;cursor:pointer;text-align:center}
.fb-face b{font-size:var(--fs-md)}
.fb-face span{font-size:var(--fs-xs);color:var(--muted)}
.fb-face:hover,.fb-face:focus-visible{border-color:var(--blue)}
.fb-face.on{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue);background:var(--s-accent-soft,var(--blue-lt))}
.fb-box textarea{width:100%;margin-top:var(--sp-1)}
.fb-card{border:1px solid var(--line);border-radius:var(--rad-in);background:var(--panel);padding:var(--sp-3) var(--sp-4);margin:var(--sp-4) 0}
.fb-card input{width:100%;max-width:360px}
@media(max-width:640px){.fb-faces{grid-template-columns:1fr}.fb-face{flex-direction:row;justify-content:space-between;min-height:52px;padding:var(--sp-2) var(--sp-3)}
  .fb-face span{text-align:right}}
/* the staff screen */
.fbs-tabs{display:flex;flex-wrap:wrap;gap:var(--sp-1);margin:0 0 var(--sp-3)}
.fbs-funnel{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:var(--sp-2);margin:0 0 var(--sp-3)}
.fbs-step{border:1px solid var(--line);border-radius:var(--rad-in);background:var(--panel);padding:var(--sp-2) var(--sp-3)}
.fbs-step b{display:block;font-size:var(--fs-xl);color:var(--ink)}
.fbs-step span{font-size:var(--fs-xs);color:var(--muted)}
.fbs-table{width:100%;border-collapse:collapse}
.fbs-table th,.fbs-table td{text-align:left;padding:var(--sp-2);border-bottom:1px solid var(--line);font-size:var(--fs-sm);vertical-align:top}
.fbs-table th{color:var(--muted);font-weight:600}
.fbs-table tr[data-open]{cursor:pointer}
.fbs-table tr[data-open]:hover td{background:var(--panel-2)}
.fbs-tag{display:inline-block;border:1px solid var(--line);border-radius:999px;padding:0 var(--sp-2);margin:0 var(--sp-1) var(--sp-1) 0;font-size:var(--fs-xs);color:var(--muted)}
.fbs-tag.on{border-color:var(--blue);color:var(--blue-ink)}
.fbs-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-2) var(--sp-3)}
.fbs-form label{display:flex;flex-direction:column;gap:var(--sp-1);font-size:var(--fs-sm)}
.fbs-form .wide{grid-column:1/-1}
.fbs-trail{list-style:none;padding:0;margin:0}
.fbs-trail li{border-left:2px solid var(--line);padding:var(--sp-1) var(--sp-3);margin:0 0 var(--sp-1);font-size:var(--fs-sm)}
.fbs-qr svg{max-width:180px;height:auto;background:var(--panel)}
@media(max-width:900px){.fbs-funnel{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:640px){.fbs-funnel{grid-template-columns:repeat(2,minmax(0,1fr))}.fbs-form{grid-template-columns:1fr}
  .fbs-table thead{display:none}.fbs-table tr{display:block;border-bottom:1px solid var(--line);padding:var(--sp-2) 0}
  .fbs-table td{display:block;border:0;padding:var(--sp-1) var(--sp-2)}}
/* 3.1214.0 (lane feedbacklayout, 29 October 2026) — Darren: the main screen was "cramped" and Settings "long, messy and
   confusing". A head panel (pills, the two actions, four numbers that open their tab) over a panel of tabs; Settings in short
   sections, a heading on the left and the fields on the right, and one Save at the bottom. Theme tokens only. */
.fbs-head{display:flex;flex-direction:column;gap:var(--sp-3)}
.fbs-bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
.fbs-grow{flex:1 1 auto}
.fbs-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-2)}
.fbs-stat{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;font:inherit;cursor:pointer;color:var(--ink);
  background:var(--s-sunk,var(--panel-2));border:1px solid transparent;border-radius:var(--rad-in);padding:var(--sp-2) var(--sp-3)}
.fbs-stat b{font-size:var(--fs-xl);line-height:1.2}
.fbs-stat span{font-size:var(--fs-xs);color:var(--muted)}
.fbs-stat:hover,.fbs-stat:focus-visible{border-color:var(--blue)}
.fbs-main .fbs-tabs{border-bottom:1px solid var(--line);padding-bottom:var(--sp-2)}
.fbs-settings{display:flex;flex-direction:column}
.fbs-sec{display:grid;grid-template-columns:minmax(160px,220px) minmax(0,1fr);gap:var(--sp-2) var(--sp-5);padding:var(--sp-4) 0;border-bottom:1px solid var(--line)}
.fbs-sec:first-child{padding-top:var(--sp-1)}
.fbs-sec-head{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-1)}
.fbs-sec-head h3{margin:0;font-size:var(--fs-lg);cursor:help}
.fbs-sec .fbs-form{max-width:760px}
.fbs-form .fbs-sub{margin:var(--sp-2) 0 0;font-size:var(--fs-sm);color:var(--muted);font-weight:600;cursor:help}
.fbs-form label.fbs-check{flex-direction:row;align-items:center;gap:var(--sp-2);align-self:center;min-height:34px}
.fbs-form label.fbs-inline{display:inline-flex;flex-direction:row;align-items:center;gap:var(--sp-2)}
.fbs-form label.fbs-inline input{width:7em}
.fbs-logo{display:flex;flex-direction:column;gap:var(--sp-1);font-size:var(--fs-sm)}
.fbs-logo-head{cursor:help;align-self:flex-start}
.fbs-logo-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3)}
.fbs-logo-box{display:flex;align-items:center;justify-content:center;width:180px;height:72px;padding:var(--sp-2);box-sizing:border-box;
  border:1px dashed var(--line);border-radius:var(--rad-in);background:var(--panel)}
.fbs-logo-box img{max-width:100%;max-height:100%;object-fit:contain}
.fbs-savebar{display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-3) 0;border-bottom:1px solid var(--line)}
.fbs-staff{margin-top:var(--sp-3)}
@media(max-width:900px){.fbs-sec{grid-template-columns:1fr}}
@media(max-width:640px){.fbs-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.fbs-bar .btn{flex:1 1 auto}}

/* ---- 3.1212.0 (lane liveboard) — THE LIVE BOARD (public/liveboardui.js; the TV page public/live.html, the app and the Tech to
   CEO Dashboard's Live view). Theme tokens only. On the TV it is the dark theme and the type is sized to the screen (vw), to be
   read across a room; inside the app the same pieces sit at the app's own size. ---------------------------------------- */
.lb{display:flex;flex-direction:column;gap:var(--sp-3);color:var(--s-ink);background:var(--s-bg);border-radius:var(--rad);padding:var(--sp-4)}
.lb-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--sp-3) var(--sp-5)}
.lb-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--sp-3);flex:1 1 auto;min-width:0}
.lb-title h1{margin:0;font-size:var(--fs-2xl);line-height:1.1;overflow-wrap:anywhere}
.lb-date{color:var(--s-muted)}
.lb-clock{font-size:var(--fs-2xl);font-weight:700;font-variant-numeric:tabular-nums}
.lb-read{color:var(--s-muted);font-size:var(--fs-sm)}
.lb-read.bad{color:var(--s-bad)}
.lb-progress{display:flex;flex-direction:column;gap:var(--sp-2)}
.lb-pwords{font-size:var(--fs-xl)}
.lb-pwords b{font-variant-numeric:tabular-nums}
.lb-bar{height:12px;border-radius:var(--rad-pill);background:var(--s-sunk);overflow:hidden;border:1px solid var(--s-line)}
/* 3.1212.0 — no width transition: the house motion rules allow no transition on a layout property, and the board redraws
   the bar on every read anyway (public/liveboardui.js), so it never animated. */
.lb-bar i{display:block;height:100%;background:var(--b-500);border-radius:var(--rad-pill)}
.lb-bar.lb-big{height:22px}
.lb-main{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:var(--sp-4);align-items:start}
.lb-panel{min-width:0}
.lb-ph{margin:0 0 var(--sp-2);font-size:var(--fs-lg);color:var(--s-muted);font-weight:600}
.lb-groups{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--sp-3) var(--sp-4)}
.lb-group[data-g="jobs"],.lb-group[data-g="money"]{grid-column:1/-1}
.lb-group h3{margin:0 0 var(--sp-1);font-size:var(--fs-sm);color:var(--s-muted);font-weight:600;text-transform:none}
.lb-nums{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:var(--sp-2)}
.lb-n,.lb-h{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:var(--sp-3);border:1px solid var(--s-line);
  border-radius:var(--rad);background:var(--s-panel);color:var(--s-ink);font:inherit;cursor:pointer;min-width:0}
.lb-n:hover,.lb-n:focus-visible{border-color:var(--s-line-hover);background:var(--s-raised)}
.lb-v{font-size:var(--fs-2xl);font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.lb-v.lb-v-l{font-size:var(--fs-xl)}
.lb-v.lb-v-xl{font-size:var(--fs-lg)}
.lb-l{color:var(--s-muted);font-size:var(--fs-sm)}
.lb-sub{color:var(--s-ink-2);font-size:var(--fs-sm)}
.lb-n.lb-warn{border-color:var(--s-warn);background:var(--s-warn-soft)}
.lb-n.lb-warn .lb-v{color:var(--s-warn)}
.lb-feeds{display:flex;flex-direction:column;gap:var(--sp-3);min-width:0}
.lb-feed h2{margin:0 0 var(--sp-2);font-size:var(--fs-lg)}
.lb-feed ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-2)}
.lb-card{display:flex;gap:var(--sp-2);align-items:stretch;padding:var(--sp-2) var(--sp-3);border:1px solid var(--s-line);border-left:4px solid var(--s-line-2);
  border-radius:var(--rad-in);background:var(--s-panel);min-width:0}
.lb-card.k-payment,.lb-card.k-quote,.lb-card.k-completed{border-left-color:var(--s-ok)}
.lb-card.k-invoice,.lb-card.k-travel{border-left-color:var(--b-400)}
.lb-card.k-onsite,.lb-card.k-started{border-left-color:var(--b-500)}
.lb-card.k-rating,.lb-card.k-alert_ready{border-left-color:var(--o-500)}
.lb-card.k-alert_late{border-left-color:var(--s-warn)}
.lb-cbody{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.lb-cw{display:flex;justify-content:space-between;gap:var(--sp-2);font-weight:600}
.lb-cw time{color:var(--s-muted);font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}
.lb-cs{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* A long job name gets two lines before it is cut. */
.lb-ct{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:break-word}
.lb-cs{color:var(--s-muted);font-size:var(--fs-sm)}
.lb-cx{display:flex;flex-wrap:wrap;gap:var(--sp-2);justify-content:space-between;font-size:var(--fs-sm)}
.lb-rate{color:var(--o-ink)}
.lb-cx span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Today's jobs: one dot per booked job at its suburb, coloured by where it is up to; no map tiles. */
.lb-mappanel{display:flex;flex-direction:column;gap:var(--sp-2)}
.lb-bigmap{width:100%;height:auto;display:block}
.lb-mapbg{fill:var(--s-sunk);stroke:var(--s-line)}
.lb-pin{stroke:var(--s-bg);stroke-width:3}
.lb-pin.st-done,.lb-key.st-done{fill:var(--s-ok);background:var(--s-ok)}
.lb-pin.st-progress,.lb-key.st-progress{fill:var(--b-500);background:var(--b-500)}
.lb-pin.st-togo,.lb-key.st-togo{fill:var(--s-muted);background:var(--s-muted)}
.lb-pin.st-late,.lb-key.st-late{fill:var(--s-warn);background:var(--s-warn)}
.lb-pin.st-hold,.lb-key.st-hold{fill:var(--s-ink-2);background:var(--s-ink-2)}
.lb-pin.st-missed,.lb-key.st-missed{fill:var(--s-bad);background:var(--s-bad)}
.lb-pinl{fill:var(--s-ink);font-size:24px;font-weight:600}
.lb-legend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-4)}
.lb-legend li{display:flex;align-items:center;gap:6px}
.lb-key{display:inline-block;width:14px;height:14px;border-radius:50%}
.lb-empty{color:var(--s-muted);margin:0}
.lb-week{display:flex;flex-direction:column;gap:var(--sp-4)}
.lb-target .lb-tw{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--sp-2);margin:0 0 var(--sp-1)}
.lb-target b{font-size:var(--fs-2xl)}
.lb-of{color:var(--s-muted)}
.lb-target .lb-bar{height:22px}
.lb-huddle{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--sp-2)}
.lb-h{cursor:default}
.lb-h.st-green{border-color:var(--s-ok)}.lb-h.st-amber{border-color:var(--s-warn)}.lb-h.st-red{border-color:var(--s-bad)}
.lb-top{display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-5);border:1px solid var(--s-line);border-radius:var(--rad);background:var(--s-panel)}
.lb-tname{font-size:var(--fs-3xl);font-weight:700;overflow-wrap:anywhere}
.lb-stars{color:var(--o-ink);font-size:var(--fs-lg)}
.lb-foot{display:flex;flex-wrap:wrap;gap:var(--sp-2);align-items:center}
.lb-dotbtn,.lb-pause{font:inherit;font-size:var(--fs-sm);padding:4px 12px;border-radius:var(--rad-pill);border:1px solid var(--s-line);background:var(--s-panel);color:var(--s-muted);cursor:pointer}
.lb-dotbtn.on{background:var(--s-accent-soft);color:var(--s-ink);border-color:var(--b-400)}
.lb-pause{margin-left:auto}
.lb-cele{animation:lb-cele 1.6s ease 2}
@keyframes lb-cele{0%{transform:scale(1);box-shadow:none}35%{transform:scale(1.03);box-shadow:0 0 0 4px var(--s-ok-soft)}100%{transform:scale(1);box-shadow:none}}
.lb-banner{position:fixed;left:50%;top:12%;transform:translateX(-50%);z-index:60;display:flex;flex-wrap:wrap;gap:var(--sp-3);align-items:baseline;justify-content:center;
  padding:var(--sp-4) var(--sp-6);border-radius:var(--rad-lg);background:var(--s-ok);color:var(--s-hero-ink);box-shadow:var(--sh-3);font-size:var(--fs-2xl);
  animation:lb-in .4s ease,lb-out .6s ease 5.4s forwards;max-width:90vw}
.lb-banner b{font-size:var(--fs-3xl)}
.lb-banner em{font-style:normal;opacity:.9}
@keyframes lb-in{from{opacity:0;transform:translate(-50%,-20px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes lb-out{to{opacity:0}}
@media (prefers-reduced-motion: reduce){.lb-cele,.lb-banner{animation:none}.lb-bar i{transition:none}}
.lb-detail{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;background:var(--s-glass);backdrop-filter:blur(8px);padding:var(--sp-4)}
body.lb-page.lb-tvshape .lb-dcard{font-size:1.1vw}body.lb-page.lb-tvshape .lb-dtable,body.lb-page.lb-tvshape .lb-dtable th,body.lb-page.lb-tvshape .lb-dtable td{font-size:1.05vw}body.lb-page.lb-tvshape .lb-dhead h2{font-size:1.8vw}body.lb-page.lb-tvshape .lb-dcard .hint{font-size:1vw}
.lb-dcard{width:min(1700px,100%);max-height:86vh;overflow:auto;background:var(--s-panel);border:1px solid var(--s-line);border-radius:var(--rad-lg);padding:var(--sp-5);box-shadow:var(--sh-3)}
.lb-dhead{display:flex;justify-content:space-between;gap:var(--sp-3);align-items:center}
.lb-dhead h2{margin:0}
.lb-dtable{width:100%}
.lb-msg{min-height:100vh;align-items:center;justify-content:center;border-radius:0}
.lb-msgbox{max-width:760px;text-align:center}
.lb-msgbox h1{font-size:var(--fs-3xl)}
.lb-msgbox p{font-size:var(--fs-lg);color:var(--s-muted)}
.lb-fs{position:fixed;left:50%;transform:translateX(-50%);bottom:var(--sp-3);z-index:40;font:inherit;padding:6px 14px;border-radius:var(--rad-pill);border:1px solid var(--s-line);background:var(--s-panel);color:var(--s-ink);cursor:pointer}
body.lb-page{margin:0;background:var(--s-bg)}
body.lb-page #lb-root{padding:0;margin:0}
body.lb-nocursor,body.lb-nocursor *{cursor:none}
/* THE TV: the type scales with the screen, so a 1080p TV across a room reads the counters, the progress and the feeds. */
.lb.lb-tv{min-height:100vh;box-sizing:border-box;border-radius:0;padding:1.2vw 2vw;gap:.8vw;font-size:1.05vw}
.lb-tv .lb-title h1{font-size:2.4vw}.lb-tv .lb-date{font-size:1.3vw}
.lb-tv .lb-clock{font-size:2.6vw}.lb-tv .lb-read{font-size:1vw}
.lb-tv .lb-pwords{font-size:2vw}.lb-tv .lb-bar.lb-big{height:1.7vw}
.lb-tv .lb-ph{font-size:1.3vw}.lb-tv .lb-group h3{font-size:1.05vw}
.lb-tv .lb-main{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.lb-tv .lb-feeds{flex-direction:row;align-items:flex-start}
.lb-tv .lb-feed{flex:1 1 0;min-width:0}
.lb-tv .lb-nums{grid-template-columns:repeat(auto-fit,minmax(0,1fr));grid-auto-flow:column;gap:.6vw}
.lb-tv .lb-group[data-g="money"] .lb-nums{grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr))}
.lb-tv .lb-n,.lb-tv .lb-h{padding:.8vw 1vw}
.lb-tv .lb-v{font-size:2.7vw}.lb-tv .lb-money .lb-v{font-size:2.1vw;white-space:nowrap}.lb-tv .lb-v.lb-v-l{font-size:2.1vw}.lb-tv .lb-v.lb-v-xl{font-size:1.7vw}.lb-tv .lb-l,.lb-tv .lb-sub{font-size:1vw}
.lb-tv .lb-feed h2{font-size:1.5vw}
.lb-tv .lb-card{padding:.55vw .8vw}
.lb-tv .lb-cw{font-size:1vw}.lb-tv .lb-ct{font-size:1.05vw}.lb-tv .lb-cs,.lb-tv .lb-cx{font-size:.85vw}
.lb-tv .lb-feed ul{gap:.45vw}
.lb-tv .lb-legend{font-size:1.1vw}.lb-tv .lb-key{width:1vw;height:1vw}
.lb-tv .lb-target b{font-size:3vw}.lb-tv .lb-target .lb-bar{height:2vw}
.lb-tv .lb-tname{font-size:4.5vw}.lb-tv .lb-stars{font-size:1.8vw}
.lb-tv .lb-dotbtn,.lb-tv .lb-pause{font-size:.95vw}
.lb-tv .lb-groups{gap:.9vw}
@media (max-width:900px){.lb-main,.lb-groups{grid-template-columns:minmax(0,1fr)}.lb-nums{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}}
@media (max-width:520px){.lb{padding:var(--sp-3)}.lb-title h1,.lb-clock{font-size:var(--fs-xl)}.lb-v{font-size:var(--fs-xl)}.lb-nums{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* ---- 3.1214.0 (lane liveboard2) — THE BOARD REDRAWN. Darren, 29 Oct 2026: "there's no map", "it's really boring", "various
   colours or sizes or types of graphs". Three columns of different things: the ring and the tiles; the map and the day's
   money (or the day so far); the Office and Field feeds, as many items as fit. On the TV the board fills the screen exactly. */
.lb2 .lb-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr) minmax(0,1fr);gap:var(--sp-4);align-items:start;min-width:0}
.lb2 .lb-colA,.lb2 .lb-colB,.lb2 .lb-feeds{display:flex;flex-direction:column;align-items:stretch;gap:var(--sp-3);min-width:0;min-height:0}
/* The ring: done of scheduled, sliced by where each job is up to. */
.lb-hero{display:flex;flex-direction:column;align-items:stretch;gap:var(--sp-3);padding:var(--sp-3) var(--sp-4);border:1px solid var(--s-line);border-radius:var(--rad-lg);background:var(--s-panel);min-width:0}
.lb-ringwrap{position:relative;align-self:center;width:min(220px,70%);aspect-ratio:1/1}
.lb-ring{display:block;width:100%;height:100%;transform:rotate(-90deg)}
.lb-ringbg{fill:none;stroke:var(--s-sunk);stroke-width:24}
.lb-seg{fill:none;stroke-width:24}
.lb-seg.st-done,.lb-cseg.st-done{stroke:var(--s-ok)}
.lb-seg.st-progress,.lb-cseg.st-progress{stroke:var(--b-500)}
.lb-seg.st-late,.lb-cseg.st-late{stroke:var(--s-warn)}
.lb-seg.st-missed,.lb-cseg.st-missed{stroke:var(--s-bad)}
.lb-seg.st-hold,.lb-cseg.st-hold{stroke:var(--s-ink-2)}
.lb-seg.st-togo,.lb-cseg.st-togo{stroke:var(--s-muted)}
.lb-ringc{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}
.lb-pct{font-size:var(--fs-3xl);font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.lb-pctl{color:var(--s-muted);font-size:var(--fs-sm)}
.lb-herotext{display:flex;flex-direction:column;gap:var(--sp-2);min-width:0}
.lb-pwords{font:inherit;font-size:var(--fs-xl);text-align:center;background:none;border:0;padding:0;color:var(--s-ink);cursor:pointer}
.lb-pwords b{font-variant-numeric:tabular-nums}
.lb-rlegend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px}
.lb-rlegend button{font:inherit;font-size:var(--fs-sm);background:none;border:0;padding:0;color:var(--s-ink-2);cursor:pointer;display:flex;align-items:center;gap:6px}
.lb-rlegend b{color:var(--s-ink);font-variant-numeric:tabular-nums}
.lb-key.st-done{background:var(--s-ok)}.lb-key.st-progress{background:var(--b-500)}.lb-key.st-late{background:var(--s-warn)}
.lb-key.st-missed{background:var(--s-bad)}.lb-key.st-hold{background:var(--s-ink-2)}.lb-key.st-togo{background:var(--s-muted)}
/* The sparkline: the day so far, hour by hour. */
.lb-spark{margin:0;display:flex;flex-direction:column;gap:2px;min-width:0}
.lb-spark figcaption{display:flex;justify-content:space-between;gap:var(--sp-2);font-size:var(--fs-sm);color:var(--s-muted)}
.lb-spark figcaption b{color:var(--s-ink);font-variant-numeric:tabular-nums}
.lb-spark svg{display:block;width:100%;height:44px}
.lb-spark .ln{fill:none;stroke:var(--b-500);stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
.lb-spark .ar{fill:var(--s-accent-soft)}
.lb-spark-money .ln{stroke:var(--s-ok)}.lb-spark-money .ar{fill:var(--s-ok-soft)}
.lb-spark-big svg{height:110px}
.lb-sparkx{display:flex;justify-content:space-between;font-size:var(--fs-xs);color:var(--s-muted)}
/* Tiles of three sizes, coloured by meaning. */
.lb-attn{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);gap:var(--sp-2)}
.lb-jobs,.lb-fieldrow,.lb-mtiles{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:var(--sp-2)}
.lb-fieldrow{margin:0 0 var(--sp-2)}
/* In the app the first column is narrow: the job tiles go two by two, so "Completed" is never cut. */
.lb2:not(.lb-tv) .lb-jobs{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(2,minmax(0,1fr))}
.lb2 .lb-n{justify-content:space-between}
.lb-sz-l .lb-v{font-size:var(--fs-3xl)}
.lb-sz-s .lb-v{font-size:var(--fs-xl)}
.lb-sz-s .lb-v.lb-v-l,.lb-sz-s .lb-v.lb-v-xl{font-size:var(--fs-lg)}
.lb-n.lb-tone-late{border-color:var(--s-warn);background:var(--s-warn-soft)}.lb-n.lb-tone-late .lb-v{color:var(--s-warn)}
.lb-n.lb-tone-bad{border-color:var(--s-bad);background:var(--s-bad-soft)}.lb-n.lb-tone-bad .lb-v{color:var(--s-bad)}
.lb-n.lb-tone-hold{border-color:var(--s-ink-2)}
.lb-n.lb-tone-ok .lb-v{color:var(--s-ok)}
.lb-n.lb-tone-blue .lb-v{color:var(--b-500)}
.lb-n.lb-tone-warn .lb-v{color:var(--s-warn)}
/* The map: Leaflet under the suburb circles. */
.lb-mapbox{position:relative;isolation:isolate;height:400px;flex:0 0 auto;border:1px solid var(--s-line);border-radius:var(--rad-lg);overflow:hidden;background:var(--s-sunk)}
.lb-mapslot{position:absolute;inset:0}
.lb-mapslot>.lb-bigmap{width:100%;height:100%}
.lb-mapslot>.lb-empty{padding:var(--sp-4)}
.lb-regions{position:absolute;inset:0;display:grid;gap:2px;background:var(--s-line)}
.lb-regions[data-n="2"]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.lb-regions[data-n="3"],.lb-regions[data-n="4"]{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1fr)}
.lb-regions[data-n="3"] .lb-region:first-child{grid-row:1/3}
.lb-region{position:relative;min-width:0;min-height:0;background:var(--s-sunk)}
/* 3.1215.0 — z-index:0 makes the map its own stacking context, so Leaflet's panes (z-index 400) stay inside it and never draw
   over a window (.sheet-ov is 95). Found by the staff training session: the suburb circles sat on top of the Running late list.
   .lb-mapbox is isolated too, for the region names (.lb-rname, z-index 500) that sit beside the maps. */
.lb-mapel,.lb-mapel.leaflet-container{position:absolute;inset:0;z-index:0;background:var(--s-sunk);font:inherit}
.lb-rname{position:absolute;z-index:500;top:8px;left:8px;margin:0;padding:2px 10px;border-radius:var(--rad-pill);background:var(--s-panel);color:var(--s-ink);font-size:var(--fs-sm);box-shadow:var(--sh-1)}
.lb-mapel.leaflet-container .leaflet-control-attribution{background:var(--s-panel);color:var(--s-muted);font-size:var(--fs-xs)}
.lb-mapel.leaflet-container .leaflet-control-attribution a{color:var(--s-ink-2)}
.lb-mapel .lb-clu{display:flex;align-items:center;justify-content:center}
/* Leaflet lifts every svg in its map to z-index 200 (.leaflet-map-pane svg); the circle's count sits above its ring. */
.lb-mapel .lb-clu svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible;z-index:0}
.lb-cfill{fill:var(--s-panel);stroke:var(--s-bg);stroke-width:1}
.lb-cseg{fill:none;stroke-width:7}
.lb-mapel .lb-clu b{position:relative;z-index:1;color:var(--s-ink);font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.lb-mlab{pointer-events:none}
.lb-mlab span{display:inline-block;white-space:nowrap;padding:0 7px;border-radius:var(--rad-pill);background:var(--s-panel);color:var(--s-ink);font-weight:600;line-height:1.55;box-shadow:var(--sh-1)}
/* The picture of the dots, before the map loads or when it cannot. */
.lb-pin circle{fill:var(--s-panel);stroke:var(--s-muted);stroke-width:5}
.lb-pin.st-done circle{stroke:var(--s-ok)}.lb-pin.st-progress circle{stroke:var(--b-500)}.lb-pin.st-late circle{stroke:var(--s-warn)}
.lb-pin.st-missed circle{stroke:var(--s-bad)}.lb-pin.st-hold circle{stroke:var(--s-ink-2)}
.lb-pin text{fill:var(--s-ink);font-weight:800}
/* Map squares in the dark theme: the same map, turned dark, so a TV in a dim office is not one bright rectangle. */
html[data-theme="dark"] .lb-mapel .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.9) contrast(.85) saturate(.5)}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]) .lb-mapel .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.9) contrast(.85) saturate(.5)}}
/* The card under the map: the day's money as bars, or the day so far; the rotating panels take their turn here. */
.lb2 .lb-panel{display:flex;flex-direction:column;min-height:0;padding:var(--sp-3) var(--sp-4);border:1px solid var(--s-line);border-radius:var(--rad-lg);background:var(--s-panel);container-type:inline-size}
.lb-moneycard{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);grid-template-areas:"bars spark" "tiles tiles";gap:var(--sp-3) var(--sp-4);min-height:0}
.lb-mbars{grid-area:bars;display:flex;flex-direction:column;justify-content:space-around;gap:var(--sp-2);min-width:0}
.lb-mside{display:contents}
.lb-mside>.lb-spark{grid-area:spark;align-self:center}
.lb-mside>.lb-mtiles{grid-area:tiles}
.lb-mrow{display:grid;grid-template-columns:10em minmax(0,1fr) auto;align-items:center;gap:var(--sp-2);font:inherit;background:none;border:0;padding:0;color:var(--s-ink);text-align:left;cursor:pointer;min-width:0}
div.lb-mrow{cursor:default}
.lb-ml{color:var(--s-muted);font-size:var(--fs-sm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lb-mt{display:block;height:16px;border-radius:var(--rad-pill);background:var(--s-sunk);overflow:hidden}
.lb-mt i{display:block;height:100%;border-radius:var(--rad-pill)}
.lb-mt .m-valueCompleted{background:var(--b-500)}.lb-mt .m-invoiced{background:var(--s-ok)}.lb-mt .m-paymentsAmt{background:var(--o-500)}.lb-mt .m-awaitingInvoice{background:var(--s-warn)}
.lb-mv{font-size:var(--fs-xl);font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;min-width:4.6em}
.lb-daycard{display:flex;flex-direction:column;gap:var(--sp-3)}
@container (max-width:520px){.lb-moneycard{grid-template-columns:minmax(0,1fr);grid-template-areas:"bars" "spark" "tiles"}
  .lb-moneycard .lb-mtiles{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}}
/* The feeds: two lines an item, as many as fit. */
.lb2 .lb-feed{display:flex;flex-direction:column;min-height:0;min-width:0}
.lb2 .lb-feed ul{max-height:460px;overflow:hidden}
.lb2 .lb-card{flex-direction:column;align-items:stretch;gap:2px;padding:var(--sp-2) var(--sp-3)}
.lb-card[hidden]{display:none}
.lb-c1{display:flex;gap:6px;align-items:baseline;white-space:nowrap;overflow:hidden;font-size:var(--fs-sm);color:var(--s-muted)}
.lb-c1 time{color:var(--s-ink-2);font-variant-numeric:tabular-nums}
.lb-c1 .lb-w{color:var(--s-ink);font-weight:600;overflow:hidden;text-overflow:ellipsis}
.lb-c2{display:flex;align-items:baseline;gap:var(--sp-2);min-width:0;container-type:inline-size}
.lb2 .lb-c2 .lb-ct{display:block;flex:0 1 auto;min-width:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lb-who{flex:1 1 0;min-width:3em;color:var(--s-muted);font-size:var(--fs-sm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lb-amt{--ch:6;flex:0 0 auto;font-weight:800;line-height:1.05;font-variant-numeric:tabular-nums;color:var(--s-ink);font-size:min(calc(105cqi / var(--ch)), 2.4em)}
.lb-card.k-payment .lb-amt,.lb-card.k-quote .lb-amt,.lb-card.k-completed .lb-amt{color:var(--s-ok)}
.lb-card.k-rating .lb-amt{color:var(--o-ink)}
/* THE TV: the board fills the screen exactly, every column to the bottom, sized to be read across a room. */
.lb2.lb-tv{height:100vh;min-height:0;overflow:hidden;font-size:1vw;padding:1vw 1.4vw;gap:.8vw}
.lb2.lb-tv .lb-grid{flex:1 1 auto;min-height:0;align-items:stretch;gap:1vw}
.lb2.lb-tv .lb-colA,.lb2.lb-tv .lb-colB,.lb2.lb-tv .lb-feeds{gap:.8vw}
.lb2.lb-tv .lb-hero{flex:1 1 auto;justify-content:center;padding:.8vw 1vw;gap:.6vw}
.lb2.lb-tv .lb-ringwrap{width:min(15vw,70%)}
.lb2.lb-tv .lb-hero.lb-hero-big .lb-ringwrap{width:min(19vw,80%)}
.lb2.lb-tv .lb-pct{font-size:3.6vw}.lb2.lb-tv .lb-pctl{font-size:1.1vw}
.lb2.lb-tv .lb-pwords{font-size:1.55vw}
.lb2.lb-tv .lb-rlegend button{font-size:.95vw}.lb2.lb-tv .lb-key{width:.9vw;height:.9vw}
.lb2.lb-tv .lb-spark figcaption{font-size:.95vw}.lb2.lb-tv .lb-sparkx{font-size:.8vw}.lb2.lb-tv .lb-spark svg{height:3vw}
.lb2.lb-tv .lb-spark-big svg{height:7vw}
.lb2.lb-tv .lb-n{padding:.5vw .8vw}
.lb2.lb-tv .lb-l{font-size:.95vw}
.lb2.lb-tv .lb-sz-l .lb-v{font-size:4.2vw}.lb2.lb-tv .lb-sz-l .lb-v.lb-v-l{font-size:3.2vw}.lb2.lb-tv .lb-sz-l .lb-v.lb-v-xl{font-size:2.5vw}
.lb2.lb-tv .lb-sz-m .lb-v{font-size:2.9vw}.lb2.lb-tv .lb-sz-m .lb-v.lb-v-l{font-size:2.2vw}.lb2.lb-tv .lb-sz-m .lb-v.lb-v-xl{font-size:1.8vw}
.lb2.lb-tv .lb-sz-s .lb-v{font-size:2.1vw}.lb2.lb-tv .lb-sz-s .lb-v.lb-v-l{font-size:1.7vw}.lb2.lb-tv .lb-sz-s .lb-v.lb-v-xl{font-size:1.35vw}
.lb2.lb-tv .lb-mapbox{height:auto;flex:1.6 1 0;min-height:0}
.lb2.lb-tv .lb-panel{flex:1 1 0;min-height:0;overflow:hidden;padding:.7vw 1vw}
.lb2.lb-tv .lb-ph{font-size:1.15vw;margin:0 0 .4vw}
.lb2.lb-tv .lb-legend{font-size:.95vw}.lb2.lb-tv .lb-rname{font-size:1vw}
.lb2.lb-tv .lb-mapel .leaflet-control-attribution{font-size:.65vw}
.lb2.lb-tv .lb-ml{font-size:1vw}.lb2.lb-tv .lb-mv{font-size:1.7vw}.lb2.lb-tv .lb-mt{height:1.2vw}
.lb2.lb-tv .lb-feed{flex:1 1 0}
.lb2.lb-tv .lb-feed h2{font-size:1.35vw;margin:0 0 .4vw}
.lb2.lb-tv .lb-feed ul{flex:1 1 auto;max-height:none;gap:.4vw}
.lb2.lb-tv .lb-card{padding:.35vw .7vw}
.lb2.lb-tv .lb-c1{font-size:.95vw}.lb2.lb-tv .lb-c2 .lb-ct{font-size:1.25vw}.lb2.lb-tv .lb-who{font-size:.95vw}
.lb2.lb-tv .lb-amt{font-size:min(calc(105cqi / var(--ch)), 2.3vw)}
.lb2.lb-tv .lb-foot{flex:0 0 auto}
.lb2.lb-tv .lb-target b{font-size:2.4vw}.lb2.lb-tv .lb-tname{font-size:3.4vw}
/* Narrower screens: two columns, then one. */
@media (max-width:1250px){.lb2:not(.lb-tv) .lb-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}.lb2:not(.lb-tv) .lb-feeds{grid-column:1/-1;flex-direction:row;align-items:flex-start}.lb2:not(.lb-tv) .lb-feeds .lb-feed{flex:1 1 0}}
@media (max-width:760px){.lb2 .lb-grid,.lb2:not(.lb-tv) .lb-grid{grid-template-columns:minmax(0,1fr)}.lb2:not(.lb-tv) .lb-feeds{flex-direction:column;align-items:stretch}.lb2 .lb-mapbox{height:320px}
  .lb2 .lb-feed ul{max-height:none}.lb2 .lb-feed li:nth-child(n+6){display:none}.lb2 .lb-attn{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lb2:not(.lb-tv) .lb-feeds .lb-feed{flex:none}
  .lb2:not(.lb-tv) .lb-mapbox{height:auto}.lb2:not(.lb-tv) .lb-mapslot{position:relative;min-height:300px}
  .lb2:not(.lb-tv) .lb-regions{position:relative;grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-rows:240px}
  .lb2:not(.lb-tv) .lb-regions:not([data-n="1"]) .lb-region:first-child{grid-row:auto}
  .lb2:not(.lb-tv) .lb-regions[data-n="1"]{grid-auto-rows:300px}
  .lb2 .lb-mtiles,.lb2 .lb-jobs{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}.lb-mrow{grid-template-columns:7.5em minmax(0,1fr) auto}}
/* 3.1218.0 hotfix — THE TV PAGE ON A SCREEN THAT IS NOT TV-SHAPED (a phone, a tablet on its side, a small window): public/live.js draws
   the app's layout, which scrolls; the page keeps an edge, and room at the bottom so Full Screen never sits on a tile. */
body.lb-page:not(.lb-tvshape) #lb-root{padding:var(--sp-3) var(--sp-3) calc(var(--sp-6) + 40px)}
body.lb-page:not(.lb-tvshape) .lb2{border:0;padding:0;background:none}
@media (max-width:520px){.lb2 .lb-head{gap:var(--sp-1) var(--sp-3);align-items:center}.lb2 .lb-logo{order:0}.lb2 .lb-mark{order:1;margin-left:auto}
  .lb2 .lb-title{order:2;flex-basis:100%}.lb2 .lb-clock{order:3;font-size:var(--fs-xl)}.lb2 .lb-read{order:4;flex:1 1 auto;text-align:right}
  .lb2 .lb-attn{grid-template-columns:repeat(3,minmax(0,1fr))}.lb2 .lb-attn .lb-v{font-size:var(--fs-2xl)}
  .lb2 .lb-n{padding:var(--sp-2) var(--sp-3)}.lb2 .lb-l{white-space:normal;line-height:1.25}
  .lb-mrow{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"l v" "t t";row-gap:4px}.lb-mrow .lb-ml{grid-area:l}.lb-mrow .lb-mt{grid-area:t}.lb-mrow .lb-mv{grid-area:v;font-size:var(--fs-lg)}
  .lb2 .lb-foot{gap:var(--sp-2)}}
/* 3.1218.0 hotfix — THE BOARD, AT LEAST AS GOOD AS THE OTHER ONE (Darren, 1 Nov 2026). Cards: a coloured label for what happened, the
   Simpro number, a sentence, the customer or suburb and how long ago; the newest card of each feed large, the rest compact. */
.lb-card{--k:var(--s-line-2)}
.lb-card.k-quote,.lb-card.k-variation,.lb-card.k-payment,.lb-card.k-invoicepaid,.lb-card.k-deposit,.lb-card.k-completed{--k:var(--s-ok)}
.lb-card.k-onsite,.lb-card.k-started{--k:var(--b-500)}
.lb-card.k-travel{--k:var(--b-400)}
.lb-card.k-invoice{--k:var(--s-ink-2)}
.lb-card.k-rating,.lb-card.k-alert_ready{--k:var(--o-500)}
.lb-card.k-alert_late{--k:var(--s-warn)}
.lb2 .lb-card{border-left-color:var(--k);gap:4px}
.lb2 .lb-card .lb-c1{display:flex;justify-content:space-between;align-items:center;gap:var(--sp-2);color:var(--s-muted)}
.lb2 .lb-card .lb-c1 .lb-w{display:inline-block;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;padding:1px 8px;border-radius:var(--rad-sm);
  border:1px solid var(--k);background:color-mix(in srgb,var(--k) 16%,var(--s-panel));color:var(--s-ink);font-weight:700;letter-spacing:.02em}
.lb2 .lb-card .lb-ref{flex:none;color:var(--s-ink-2);font-weight:600;font-variant-numeric:tabular-nums}
.lb2 .lb-card .lb-c2{display:flex;align-items:baseline;justify-content:space-between;gap:var(--sp-2);min-width:0}
.lb2 .lb-card .lb-ct{font-weight:700;color:var(--s-ink)}
.lb2 .lb-card .lb-c3{display:flex;align-items:baseline;gap:6px;min-width:0;color:var(--s-muted);font-size:var(--fs-sm);white-space:nowrap;overflow:hidden}
.lb2 .lb-card .lb-c3 .lb-who{flex:0 1 auto}
.lb2 .lb-card .lb-c3 time{flex:none;color:var(--s-ink-2)}
.lb2 .lb-card .lb-c4{container-type:inline-size}
.lb2 .lb-card.lb-lead{padding:var(--sp-3) var(--sp-4);background:var(--s-raised);border-color:color-mix(in srgb,var(--k) 45%,var(--s-line));border-left-color:var(--k);border-left-width:6px}
.lb2 .lb-card.lb-lead .lb-ct{font-size:var(--fs-xl);line-height:1.15;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lb2 .lb-card.lb-lead .lb-amt{font-size:min(calc(105cqi / var(--ch)), 3em)}
.lb-card.k-variation .lb-amt,.lb-card.k-invoicepaid .lb-amt,.lb-card.k-deposit .lb-amt{color:var(--s-ok)}
.lb2.lb-tv .lb-card .lb-c1{font-size:.9vw}
.lb2.lb-tv .lb-card .lb-c3{font-size:.9vw}
.lb2.lb-tv .lb-card.lb-lead{padding:.7vw 1vw}
.lb2.lb-tv .lb-card.lb-lead .lb-ct{font-size:1.9vw}
.lb2.lb-tv .lb-card.lb-lead .lb-c3{font-size:1.05vw}
.lb2.lb-tv .lb-card.lb-lead .lb-amt{font-size:min(calc(105cqi / var(--ch)), 2.8vw)}
/* The newest card: on the whole board its dollars sit beside the sentence, so the feed still fits three or more; on a focus screen
   they take a line of their own, very large. */
.lb2 .lb-card.lb-lead{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,40%);grid-template-areas:"c1 c1" "c2 c4" "c3 c4";column-gap:var(--sp-3);row-gap:4px}
.lb2 .lb-card.lb-lead .lb-c1{grid-area:c1}.lb2 .lb-card.lb-lead .lb-c2{grid-area:c2}.lb2 .lb-card.lb-lead .lb-c3{grid-area:c3}
.lb2 .lb-card.lb-lead .lb-c4{grid-area:c4;align-self:center;text-align:right}
.lb2 .lb-card.lb-lead:not(:has(.lb-c4)){grid-template-areas:"c1 c1" "c2 c2" "c3 c3"}
.lb-focus .lb-card.lb-lead,.lb2 .lb-focus .lb-card.lb-lead{grid-template-columns:minmax(0,1fr);grid-template-areas:"c1" "c2" "c3" "c4"}
.lb-focus .lb-card.lb-lead .lb-c4{text-align:left}
/* On the whole board the cards stay compact, so each feed shows three or more: the newest one line larger, not taller. */
.lb2.lb-tv:not(.lb-focus) .lb-card{gap:1px;padding:.3vw .7vw}
.lb2.lb-tv:not(.lb-focus) .lb-card .lb-c1 .lb-w{padding:0 .4vw}
.lb2.lb-tv:not(.lb-focus) .lb-card.lb-lead{padding:.4vw .8vw}
.lb2.lb-tv:not(.lb-focus) .lb-card.lb-lead .lb-ct{font-size:1.55vw;display:block;white-space:nowrap;text-overflow:ellipsis}
.lb2.lb-tv:not(.lb-focus) .lb-card.lb-lead .lb-c3{font-size:.95vw}
/* A card that has just happened slides into its feed. */
.lb-card.lb-arrive{animation:lb-arrive .8s cubic-bezier(.2,.8,.2,1)}
@keyframes lb-arrive{from{opacity:0;transform:translateX(30%)}to{opacity:1;transform:none}}
/* Every number in one grid, one shape, coloured by meaning; Running late and Missed the biggest. */
.lb2 .lb-attn{grid-template-columns:minmax(0,1.2fr) minmax(0,1.2fr) minmax(0,1fr)}
.lb2 .lb-jobs{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(4,minmax(0,1fr))}
.lb2 .lb-n .lb-l{white-space:normal;line-height:1.2}
/* The live dot beside Office and Field, and the day in words beside the name. */
.lb-feed h2{display:flex;align-items:center;gap:var(--sp-2)}
.lb-dot{display:inline-block;width:.55em;height:.55em;border-radius:50%;background:var(--s-muted);flex:none}
.lb-dot.lb-dot-on{background:var(--s-ok);animation:lb-pulse 2.4s ease-out infinite}
.lb-dot.lb-dot-bad{background:var(--s-bad)}
@keyframes lb-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--s-ok) 60%,transparent)}70%{box-shadow:0 0 0 .5em transparent}100%{box-shadow:0 0 0 0 transparent}}
.lb-hprog{color:var(--s-ink-2);font-size:var(--fs-lg);font-variant-numeric:tabular-nums;white-space:nowrap}
.lb-hprog b{color:var(--s-ink)}
.lb-tv .lb-hprog{font-size:1.3vw}
/* No job placed on the map: the map gives its room to the cards under it. */
.lb2 .lb-mapbox.lb-mapbox-empty,.lb2.lb-tv .lb-mapbox.lb-mapbox-empty{height:auto;flex:0 0 auto;min-height:0}
.lb2 .lb-mapbox.lb-mapbox-empty .lb-mapslot{position:static;min-height:0}
/* THE FOCUS SCREENS: one thing at a time, large, sliding across. */
.lb-focus .lb-fbody{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.lb-focus .lb-fpanel{flex:1 1 auto}
.lb-focus .lb-fmap{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1fr);gap:var(--sp-4)}
.lb-focus .lb-fmap .lb-mapbox{height:auto;min-height:320px}
.lb-focus .lb-ffeed{flex:1 1 auto;min-height:0;display:flex}
.lb-focus .lb-ffeed .lb-feed{flex:1 1 auto}
.lb-focus .lb-ffeed .lb-feed ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;max-height:none}
.lb-focus .lb-ffeed .lb-card.lb-lead{grid-column:1/-1}
.lb-focus .lb-fieldrow{margin:0 0 var(--sp-3)}
.lb2.lb-tv.lb-focus .lb-fmap{gap:1vw}
.lb2.lb-tv.lb-focus .lb-fmap .lb-mapbox{min-height:0}
.lb2.lb-tv.lb-focus .lb-fpanel{padding:1.4vw 2vw}
.lb2.lb-tv.lb-focus .lb-fpanel .lb-ph{font-size:2vw;margin:0 0 1vw}
.lb2.lb-tv.lb-focus .lb-ml{font-size:1.6vw}.lb2.lb-tv.lb-focus .lb-mv{font-size:3.2vw}.lb2.lb-tv.lb-focus .lb-mt{height:2.2vw}
.lb2.lb-tv.lb-focus .lb-mrow{grid-template-columns:16vw minmax(0,1fr) auto;gap:1.2vw}
.lb2.lb-tv.lb-focus .lb-mbars{gap:1.4vw}
.lb2.lb-tv.lb-focus .lb-spark svg{height:9vw}.lb2.lb-tv.lb-focus .lb-spark figcaption{font-size:1.3vw}
.lb2.lb-tv.lb-focus .lb-mtiles .lb-v{font-size:3vw}.lb2.lb-tv.lb-focus .lb-mtiles .lb-l{font-size:1.2vw}
.lb2.lb-tv.lb-focus .lb-ffeed .lb-feed h2{font-size:2vw}
.lb2.lb-tv.lb-focus .lb-ffeed .lb-feed ul{gap:.8vw}
.lb2.lb-tv.lb-focus .lb-ffeed .lb-card .lb-c1,.lb2.lb-tv.lb-focus .lb-ffeed .lb-card .lb-c3{font-size:1.15vw}
.lb2.lb-tv.lb-focus .lb-ffeed .lb-card .lb-ct{font-size:1.6vw}
.lb2.lb-tv.lb-focus .lb-ffeed .lb-card.lb-lead .lb-ct{font-size:2.6vw}
.lb2.lb-tv.lb-focus .lb-ffeed .lb-card.lb-lead .lb-c3{font-size:1.4vw}
.lb2.lb-tv.lb-focus .lb-ffeed .lb-card.lb-lead .lb-amt{font-size:min(calc(105cqi / var(--ch)), 5vw)}
.lb2.lb-tv.lb-focus .lb-ffeed .lb-amt{font-size:min(calc(105cqi / var(--ch)), 2.8vw)}
.lb2.lb-tv.lb-focus .lb-fieldrow{gap:1vw;margin:0 0 1vw}
.lb2.lb-tv.lb-focus .lb-fieldrow .lb-v{font-size:3.4vw}.lb2.lb-tv.lb-focus .lb-fieldrow .lb-l{font-size:1.2vw}
.lb2.lb-tv.lb-focus .lb-target b{font-size:4vw}.lb2.lb-tv.lb-focus .lb-target .lb-bar{height:3vw}.lb2.lb-tv.lb-focus .lb-target{font-size:1.6vw}
.lb2.lb-tv.lb-focus .lb-huddle{grid-template-columns:repeat(4,minmax(0,1fr));gap:1vw}.lb2.lb-tv.lb-focus .lb-huddle .lb-h{padding:1.4vw 1.6vw}.lb2.lb-tv.lb-focus .lb-huddle .lb-v{font-size:4.4vw}.lb2.lb-tv.lb-focus .lb-huddle .lb-l{font-size:1.4vw}
.lb2.lb-tv.lb-focus .lb-tname{font-size:6vw}.lb2.lb-tv.lb-focus .lb-stars{font-size:2.4vw}
.lb2.lb-tv.lb-focus .lb-fmap .lb-pct{font-size:5vw}.lb2.lb-tv.lb-focus .lb-fmap .lb-ringwrap{width:min(22vw,90%)}
.lb2.lb-tv.lb-focus .lb-fmap .lb-pwords{font-size:1.8vw}.lb2.lb-tv.lb-focus .lb-fmap .lb-rlegend button{font-size:1.2vw}
.lb2 .lb-card .lb-c3 .lb-who{font-size:inherit;min-width:0;overflow:hidden;text-overflow:ellipsis}
/* On the TV the one grid of numbers sits under a smaller ring, so the column ends above the screen buttons. */
.lb2.lb-tv:not(.lb-focus) .lb-ringwrap{width:min(11vw,60%)}
.lb2.lb-tv:not(.lb-focus) .lb-hero{gap:.4vw;padding:.6vw .9vw}
.lb2.lb-tv:not(.lb-focus) .lb-pct{font-size:2.8vw}
.lb2.lb-tv:not(.lb-focus) .lb-pwords{font-size:1.3vw}
.lb2.lb-tv:not(.lb-focus) .lb-spark svg{height:2.2vw}
.lb2.lb-tv:not(.lb-focus) .lb-attn .lb-n{padding:.4vw .7vw}
.lb2.lb-tv:not(.lb-focus) .lb-sz-l .lb-v{font-size:3.4vw}.lb2.lb-tv:not(.lb-focus) .lb-sz-m .lb-v{font-size:2.6vw}
.lb2.lb-tv:not(.lb-focus) .lb-jobs{gap:.4vw}
.lb2.lb-tv:not(.lb-focus) .lb-jobs .lb-n{padding:.35vw .6vw;gap:0}
.lb2.lb-tv:not(.lb-focus) .lb-jobs .lb-v{font-size:1.8vw}
.lb2.lb-tv:not(.lb-focus) .lb-jobs .lb-l{font-size:.8vw}
/* The money screen fills the TV: the bars spread down it, the line beside them tall. */
.lb-focus .lb-fpanel .lb-moneycard{flex:1 1 auto;height:100%;grid-template-rows:minmax(0,1fr) auto}
.lb-focus .lb-fpanel{display:flex;flex-direction:column}
.lb-focus .lb-fpanel .lb-mbars{justify-content:space-evenly}
.lb2.lb-tv.lb-focus .lb-fpanel .lb-mside>.lb-spark{align-self:stretch;justify-content:center}
.lb2.lb-tv.lb-focus .lb-fpanel .lb-spark svg{height:16vw}
/* With the screen buttons along the bottom, Full Screen sits beside Pause instead of over them. */
body.lb-tvshape .lb-fs{left:auto;right:calc(1.4vw + 7em);transform:none;bottom:1vw}
/* The slide: the screen that was showing goes off to the left as the new one comes in from the right. */
body.lb-page #lb-root{position:relative;overflow:hidden}
#lb-root>.lb.lb-leave{position:absolute;inset:0;z-index:1;pointer-events:none;animation:lb-slide-out .7s cubic-bezier(.65,0,.35,1) forwards}
#lb-root>.lb.lb-enter{animation:lb-slide-in .7s cubic-bezier(.65,0,.35,1)}
@keyframes lb-slide-out{from{transform:none}to{transform:translateX(-100%)}}
@keyframes lb-slide-in{from{transform:translateX(100%)}to{transform:none}}
@media (prefers-reduced-motion: reduce){.lb-card.lb-arrive,#lb-root>.lb.lb-enter,#lb-root>.lb.lb-leave,.lb-dot.lb-dot-on{animation:none}}
/* The app screen around the board. */
.lbs-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.lbs-screens{width:100%}
.lbs-link{display:flex;flex-wrap:wrap;gap:var(--sp-4);align-items:flex-start}
.lbs-link input{width:100%;font-family:var(--font-mono)}
.lbs-link .lbs-qr svg{width:180px;height:180px;background:var(--s-panel);border-radius:var(--rad-sm)}
.lbs-form{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:var(--sp-3) var(--sp-5)}
.lbs-form fieldset{border:1px solid var(--s-line);border-radius:var(--rad);padding:var(--sp-3);margin:0;min-width:0}
.lbs-form legend{font-weight:600;padding:0 4px}
.lbs-form label{display:flex;gap:8px;align-items:center;margin:4px 0}
.lbs-form label>input[type="checkbox"]{flex:0 0 auto}
.lbs-days{display:flex;flex-wrap:wrap;gap:4px 10px}
.lbs-save{margin-top:var(--sp-3);display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap}
/* ---- 3.1212.0 — PREBUILD HEALTH CHECK (public/apps/pbaudit.js): its report, and its fixes inside the Prebuild Cleanup Tool --- */
.pbh-app .pbh-row{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap;margin:var(--sp-2) 0}
.pbh-app .pbh-check,.pbh-app .pbh-field{display:inline-flex;gap:var(--sp-2);align-items:center;font-size:var(--fs-sm);flex-wrap:wrap}
.pbh-app .pbh-field select{max-width:100%;min-width:0}
.pbh-app .pbh-prog{width:100%}
.pbh-app .pbh-head{display:flex;gap:var(--sp-4);align-items:center;flex-wrap:wrap}
.pbh-app .pbh-head h3{margin:0}
.pbh-app .pbh-score{display:flex;flex-direction:column;align-items:center;justify-content:center;width:96px;height:96px;border-radius:50%;border:4px solid var(--blue);flex:none}
.pbh-app .pbh-score b{font-size:var(--fs-xl);line-height:1}
.pbh-app .pbh-score span{font-size:var(--fs-sm);color:var(--muted)}
.pbh-app .pbh-gD,.pbh-app .pbh-gE{border-color:var(--orange)}
.pbh-app .pbh-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:var(--sp-2);margin-top:var(--sp-3)}
.pbh-app .pbh-tile{border:1px solid var(--line);border-radius:var(--rad-sm,8px);padding:var(--sp-2) var(--sp-3);display:flex;flex-direction:column;gap:2px;min-width:0}
.pbh-app .pbh-tile b{font-size:var(--fs-lg)}
.pbh-app .pbh-tile span{font-size:var(--fs-sm);color:var(--muted)}
.pbh-app .pbh-scroll{overflow-x:auto;max-width:100%}
.pbh-app .pbh-tbl{width:100%}
.pbh-app .pbh-tbl td,.pbh-app .pbh-tbl th{overflow-wrap:anywhere;vertical-align:middle}
.pbh-app .pbh-tbl select{max-width:100%;min-width:0}
.pbh-app .pbh-pick{cursor:pointer}
.pbh-app .pbh-pick:hover,.pbh-app .pbh-pick:focus,.pbh-app .pbh-pick.on{background:var(--tint)}
.pbh-app .pbh-zero td{color:var(--muted)}
.pbh-app .pbh-open>td{background:var(--tint)}
.pbh-app .pbh-sub{font-size:var(--fs-sm);table-layout:fixed}
.pbh-app .pbh-sub td,.pbh-app .pbh-sub th{white-space:normal;overflow-wrap:anywhere;overflow:hidden}
.pbh-app .pbh-sub th:nth-child(1){width:5.5em}
.pbh-app .pbh-sub th:nth-child(2){width:9em}
.pbh-app .pbh-sub th:nth-child(4){width:32%}
.pbh-app .pbh-subg th:nth-child(1){width:auto}
.pbh-app .pbh-subg th:nth-child(2){width:6em}
.pbh-app .pbh-list{margin:var(--sp-2) 0;padding-left:var(--sp-4)}
.pbh-app .pbh-lock{border-left:3px solid var(--orange)}
.pbh-app .pbh-warn{color:var(--orange);font-weight:600}
@media (max-width:640px){
  .pbh-app .pbh-hide-sm{display:none}
  .pbh-app .pbh-tiles{grid-template-columns:1fr 1fr}
  .pbh-app .pbh-score{width:76px;height:76px}
  /* A phone stacks each row, so a long name or a group picker never pushes the page sideways. */
  .pbh-app .pbh-tbl,.pbh-app .pbh-tbl tbody{display:block;width:100%}
  .pbh-app .pbh-field{display:flex;width:100%}
  .pbh-app .pbh-field select{flex:1 1 100%;width:100%}
  .pbh-app .pbh-tbl thead{display:none}
  .pbh-app .pbh-tbl tr{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);padding:var(--sp-2) 0;border-bottom:1px solid var(--line)}
  .pbh-app .pbh-tbl td{border:0;padding:0;min-width:0;max-width:100%;flex:0 1 auto;white-space:normal}
  .pbh-app .pbh-tbl td:not(.num):not(:first-child){flex:1 1 60%}
  .pbh-app .pbh-sub th:first-child,.pbh-app .pbh-sub td:first-child{width:auto}
  .pbh-app .pbh-tbl td.pbh-hide-sm{display:none}
  .pbh-app .pbh-tbl tr.pbh-open>td{flex:1 1 100%}
  .pbh-app .pbh-tbl select{width:100%}
}
.pbh-app .panel,.pbh-app .pbh-scroll{min-width:0}
/* ---- 3.1213.0 (lane custcourses) — YOUR COURSES: a customer's own courses. Theme tokens only. ---- */
.cc-head{gap:var(--sp-2);align-items:center;flex-wrap:wrap}
.cc-grow{flex:1;min-width:0}
.cc-tabs{gap:var(--sp-1);flex-wrap:wrap;margin:var(--sp-2) 0}
.cc-meter{gap:var(--sp-1);flex-wrap:wrap;margin:var(--sp-1) 0}
.cc-row{cursor:pointer}
.cc-tbl td{overflow-wrap:anywhere}
.cc-form label:not(.cc-tick){display:flex;flex-direction:column;gap:5px;font-size:var(--fs-sm);font-weight:600;color:var(--muted);margin:0 0 var(--sp-2);min-width:0}
.cc-form label:not(.cc-tick)>input,.cc-form label:not(.cc-tick)>textarea,.cc-form label:not(.cc-tick)>select{font-size:var(--fs-md);font-weight:400;color:var(--ink);width:100%;max-width:640px;box-sizing:border-box}
.cc-tick{display:flex;align-items:center;gap:6px;margin:0 0 var(--sp-1);color:var(--ink)}
.cc-status{gap:var(--sp-1);flex-wrap:wrap;align-items:center}
.cc-ol{padding-left:1.4em;margin:var(--sp-1) 0}
.cc-ol li{gap:var(--sp-1);align-items:center;flex-wrap:wrap;padding:4px 0;border-bottom:1px solid var(--line)}
.cc-foot{margin-top:var(--sp-3,16px)}
.acad-mycourses{gap:var(--sp-2);align-items:center;margin:0 0 var(--sp-2)}
/* ---- 0489, v3.1213.0 (lane cowork) — SIMPRO GUIDES (public/apps/guides.js). Theme tokens only. ----------------------------- */
.gd-row{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--sp-3);flex-wrap:wrap}
.gd-acts{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap;margin-top:var(--sp-2)}
.gd-pill{display:inline-flex;align-items:center;white-space:nowrap;padding:3px 10px;border-radius:var(--rad-pill);font-size:var(--fs-xs);font-weight:600;background:var(--s-sunk);color:var(--s-muted)}
.gd-pill.gd-ok{background:var(--s-ok-soft);color:var(--s-ok)}
.gd-pill.gd-run{background:var(--s-accent-soft);color:var(--s-link)}
.gd-pill.gd-warn{background:var(--s-warn-soft);color:var(--s-warn)}
.gd-pill.gd-bad{background:var(--s-bad-soft);color:var(--s-bad)}
.gd-points{margin:var(--sp-2) 0 var(--sp-3);padding-left:1.4em;display:grid;gap:var(--sp-2);color:var(--s-ink);max-width:78ch}
.gd-permform{align-items:end}
.gd-permform{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px 16px}
.gd-permform>label{display:flex;flex-direction:column;gap:5px;font-size:var(--fs-sm);font-weight:600;color:var(--muted);min-width:0}
.gd-permform>label>select{width:100%}
.gd-permform>.gd-agree{display:flex;flex-direction:row;align-items:center;align-self:end;gap:var(--sp-2);min-height:42px}
.gd-permform>.gd-agree>input{width:auto;flex:0 0 auto;margin:0}
.gd-permform>.gd-agree>label{display:inline;font-size:var(--fs-md);font-weight:600;color:var(--s-ink);cursor:pointer}
.gd-read summary{cursor:pointer;color:var(--s-link);font-size:var(--fs-sm)}
.gd-runrow{cursor:pointer}
.gd-runrow:hover td,.gd-runrow:focus-visible td{background:var(--s-wash)}
.gd-when{border:0;padding:0;margin:0;display:flex;gap:var(--sp-3);align-items:center;flex-wrap:wrap}
.gd-when legend{font-weight:600;margin-bottom:var(--sp-1)}
.gd-runhead{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap}
.gd-report{font-size:var(--fs-sm);color:var(--s-muted);display:grid;gap:4px}
.gd-win{display:grid;gap:var(--sp-2)}
.gd-winstate{display:flex;justify-content:space-between;gap:var(--sp-2);align-items:center;flex-wrap:wrap}
.gd-screen{border:1px solid var(--s-line);border-radius:var(--r);background:var(--s-sunk);aspect-ratio:1280/800;overflow:hidden;width:100%}
.gd-screen img{display:block;width:100%;height:100%;object-fit:contain;cursor:pointer}
.gd-screen img:not([src]){visibility:hidden}
.gd-type{display:flex;gap:var(--sp-2);align-items:end;flex-wrap:wrap}
.gd-type label{display:grid;gap:4px;flex:1 1 180px}
.gd-role{border:1px solid var(--s-line);border-left:3px solid var(--s-warn);border-radius:var(--r);padding:var(--sp-2) var(--sp-3);background:var(--s-warn-soft);margin:var(--sp-2) 0}
/* v3.1216.0 (lane installforyou) — Install It for Me: the audit editor and the run picture (public/apps/installs.js). Theme tokens only. */
.ie-ed{display:grid;gap:var(--sp-3)}
.ie-top{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px 16px;align-items:end}
.ie-top>label{display:flex;flex-direction:column;gap:5px;font-size:var(--fs-sm);font-weight:600;color:var(--muted);min-width:0}
.ie-secs{display:grid;gap:var(--sp-3)}
/* lane cloudqueue — Settings › Membership › BI installs (public/apps/installs.js openBiSpec) */
.bix-ed{display:grid;gap:var(--sp-3)}
.bix-state{display:flex;gap:var(--sp-2);align-items:center;margin:0}
.bix-vars{display:grid;gap:var(--sp-2)}
.bix-var{border:1px solid var(--s-line);border-radius:var(--r);padding:var(--sp-2) var(--sp-3);margin:0;background:var(--s-panel)}
.bix-var legend{padding:0 var(--sp-1)}
.bix-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:var(--sp-2)}
.bix-grid label{display:grid;gap:4px;font-size:var(--fs-xs);color:var(--s-muted)}
.bix-grid label[hidden]{display:none}
.bix-grid input,.bix-grid select{min-width:0;width:100%}
.bix-grid label.bix-wide{grid-column:span 2}
@media (max-width:560px){.bix-list th:nth-child(2),.bix-list td:nth-child(2),.bix-list th:nth-child(3),.bix-list td:nth-child(3){display:none}}
.bix-sql pre{max-height:240px;overflow:auto;white-space:pre-wrap;font-size:var(--fs-xs);background:var(--s-sunk);padding:var(--sp-2);border-radius:var(--r)}
.ie-sec{border:1px solid var(--s-line);border-radius:var(--r);padding:var(--sp-2) var(--sp-3);margin:0;display:grid;gap:var(--sp-2);background:var(--s-panel)}
.ie-sechead{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap}
.ie-sectitle{flex:1 1 220px;font-weight:600}
.ie-items{display:grid;gap:var(--sp-2)}
.ie-item{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap;padding:var(--sp-1) 0;border-top:1px solid var(--s-line)}
.ie-item:first-child{border-top:0}
.ie-text{flex:3 1 260px;min-width:0}
.ie-type{flex:1 1 150px}
.ie-opts{flex:2 1 180px;min-width:0}
.ie-req{display:inline-flex;gap:6px;align-items:center;font-size:var(--fs-sm);white-space:nowrap}
.ie-req>input{width:auto;margin:0}
.ir-shot{margin:var(--sp-3) 0 0;display:grid;gap:var(--sp-1)}
.ir-shot img{width:100%;height:auto;border:1px solid var(--s-line);border-radius:var(--r);background:var(--s-sunk)}
.ir-sheet .gd-report{margin-top:var(--sp-2)}
@media (max-width:560px){.ie-text{flex-basis:100%}.ie-item{gap:6px}.ie-type{flex:1 1 0;min-width:0}.ie-req{font-size:var(--fs-xs)}.ie-item .btn.sm{padding:4px 6px;min-width:0}}
.gd-role ul{margin:4px 0 0;padding-left:1.2em}
.gd-steps{padding-left:1.4em;display:grid;gap:var(--sp-4)}
.gd-steps h4{margin:0 0 4px}
.gd-steps img{display:block;max-width:100%;border:1px solid var(--s-line);border-radius:var(--r);margin-top:var(--sp-2)}
.gd-rolenote{font-size:var(--fs-sm);color:var(--s-warn)}
.gd-warnline{color:var(--s-warn);font-weight:600;margin:4px 0 0}
.gd-name{font-variant-ligatures:none;font-feature-settings:"calt" 0,"liga" 0}
@media (max-width:600px){.gd-acts .btn{flex:1 1 auto}.gd-runs th:nth-child(3),.gd-runs td:nth-child(3),.gd-drafts th:nth-child(3),.gd-drafts td:nth-child(3),.gd-ledger th:nth-child(3),.gd-ledger td:nth-child(3),.gd-ledger th:nth-child(5),.gd-ledger td:nth-child(5){display:none}.gd-ledger td{white-space:normal}.gd-ledger td.gd-name{overflow-wrap:anywhere}}

/* ==== v3.1213.0 (lane coursebuilder, 28 October 2026) — THE COURSE BUILDER (public/coursebuilder.js) ====================
   Darren: "very intuitive, very easy, not too clunky, not too many different screens … What you see is what you get … it should
   show on the other side a bit like we do the newsletter." One full-screen place: the outline on the left, the lesson as blocks in
   the middle (drawn with the learner's own text styles, .acad-body), the learner's page on the right. Theme tokens only. */
.cb-ov{position:fixed;inset:0;z-index:90;background:var(--bg);color:var(--ink);display:flex;flex-direction:column;min-height:0;overscroll-behavior:contain}
/* v3.1216.0 — BELOW THE LIVE-CHAT BAR. The bar (0602) pushes the page and the sticky tops down by --cm-bar-h, but this window is
   fixed to the whole screen, so a waiting web chat sat on its toolbar and Undo, Course settings and Preview could not be pressed
   (found by the suite: v312020beccomms left a chat waiting, and the builder's Undo was under the bar). */
body.cm-bar-on .cb-ov{top:var(--cm-bar-h,0px)}
.cb-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 16px;border-bottom:1px solid var(--line);background:var(--panel)}
.cb-head-t{flex:1 1 260px;min-width:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cb-ctitle{font-size:var(--fs-lg);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(60ch,100%)}
.cb-head-acts{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.cb-auto{font-size:var(--fs-sm);color:var(--muted);white-space:nowrap}
.cb-auto.error{color:var(--danger)}
.cb-more{position:relative}
.cb-more>summary{list-style:none;cursor:pointer}
.cb-more>summary::-webkit-details-marker{display:none}
.cb-more-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:5;display:grid;gap:4px;min-width:230px;padding:8px;background:var(--panel);
  border:1px solid var(--line);border-radius:var(--rad);box-shadow:var(--sh-2)}
.cb-more-menu .btn{justify-content:flex-start;text-align:left;width:100%}
.cb-scope{margin:0;padding:8px 16px;border-bottom:1px solid var(--line)}
.cb-readonly .cb-ed,.cb-readonly .cb-ol{pointer-events:none;opacity:.85}
.cb-tabs{display:none}
.cb-grid{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(250px,310px) minmax(0,1fr) minmax(330px,40%)}
.cb-col{min-height:0;min-width:0;overflow:auto;padding:14px 16px;overscroll-behavior:contain}
.cb-outline{border-right:1px solid var(--line);background:var(--panel)}
.cb-edit{background:var(--bg)}
.cb-pv{border-left:1px solid var(--line);background:var(--s-sunk,var(--tint));display:flex;flex-direction:column;gap:8px}

/* The outline. */
.cb-ol-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 10px}
.cb-ol-head h3{margin:0;font-size:var(--fs-md)}
.cb-ol{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.cb-mod{border:1px solid var(--line);border-radius:var(--rad);background:var(--bg);padding:6px}
.cb-mod.cb-loose{border-style:dashed}
.cb-mod-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:2px 2px 6px;border-bottom:1px solid var(--line);margin-bottom:4px}
.cb-mod-no{font-size:var(--fs-xs);font-weight:700;color:var(--accent-ink,var(--accent));text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.cb-mod-t{font-weight:700;min-width:0;flex:1 1 120px;overflow-wrap:anywhere;line-height:1.3}
.cb-rows{list-style:none;margin:0;padding:0;display:grid;gap:2px;min-height:30px}
.cb-row{position:relative;display:flex;align-items:center;gap:2px;border-radius:var(--rad-sm);padding:1px 2px}
.cb-row:hover{background:var(--tint)}
.cb-row.on{background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--accent)}
.cb-row.on .cb-name{color:var(--accent-ink,var(--ink));font-weight:600}
.cb-headrow .cb-name{font-weight:700;color:var(--muted);font-size:var(--fs-sm);text-transform:uppercase;letter-spacing:.03em}
.cb-row-open{flex:1 1 auto;min-width:0;display:flex;align-items:flex-start;gap:6px;flex-wrap:nowrap;border:0;background:none;color:var(--ink);font:inherit;
  font-size:var(--fs-sm);text-align:left;padding:5px 2px;cursor:pointer;border-radius:var(--rad-sm)}
.cb-row-open:focus-visible{outline:2px solid var(--s-focus,var(--accent));outline-offset:1px}
.cb-n{flex:0 0 auto;font-size:var(--fs-xs);color:var(--muted);min-width:1.5em;text-align:right;font-variant-numeric:tabular-nums;line-height:1.9}
.cb-name-w{min-width:0;flex:1 1 auto;line-height:1.35;overflow-wrap:anywhere}
.cb-name{overflow-wrap:anywhere}
.cb-chips{display:inline-flex;gap:3px;flex-wrap:wrap;vertical-align:1px}
.cb-k-draft{border:1px dashed var(--line);background:var(--panel)}
.cb-k{font-size:var(--fs-xs);padding:0 6px;border-radius:var(--rad-pill);background:var(--tint);color:var(--muted);white-space:nowrap;line-height:1.6}
.cb-k.bad{background:var(--s-bad-soft,var(--tint));color:var(--danger)}
.cb-row-acts{display:flex;gap:2px;align-items:center;flex-wrap:wrap}
/* On a computer a row's ↑ ↓ Rename (and a module's) sit over its right end while it is pointed at or focused, so names keep the
   whole width the rest of the time. */
.cb-mod-head>.cb-row-acts{flex:1 1 100%;justify-content:flex-end}
@media (hover:hover) and (min-width:901px){
  .cb-row>.cb-row-acts{position:absolute;right:2px;top:50%;transform:translateY(-50%);padding:2px;
    background:var(--panel);border:1px solid var(--line);border-radius:var(--rad-sm);box-shadow:var(--sh-1);display:none}
  .cb-row:hover>.cb-row-acts,.cb-row:focus-within>.cb-row-acts{display:flex}
  .cb-mod-head>.cb-row-acts{display:none}
  .cb-mod-head:hover>.cb-row-acts,.cb-mod-head:focus-within>.cb-row-acts{display:flex}
}
.cb-grip{cursor:grab;border:0;background:none;color:var(--muted);font:inherit;font-size:var(--fs-lg);line-height:1;padding:4px 3px;touch-action:none;border-radius:var(--rad-sm)}
.cb-grip:hover{color:var(--ink);background:var(--tint)}
.cb-grip:focus-visible{outline:2px solid var(--s-focus,var(--accent))}
.cb-mini{border:1px solid var(--line);background:var(--panel);color:var(--ink);font:inherit;font-size:var(--fs-xs);padding:2px 7px;
  border-radius:var(--rad-sm);cursor:pointer;line-height:1.5;white-space:nowrap}
.cb-mini:hover{background:var(--tint)}
.cb-mini:disabled{opacity:.4;cursor:default}
.cb-live{border:1px dashed var(--line);background:var(--panel);color:var(--muted);font:inherit;font-size:var(--fs-xs);padding:0 8px;
  border-radius:var(--rad-pill);cursor:pointer;line-height:1.7;white-space:nowrap}
.cb-live.on{border-style:solid;border-color:var(--ok);color:var(--ok);background:var(--ok-soft,var(--panel))}
.cb-dragging{opacity:.6;outline:2px dashed var(--accent);outline-offset:1px;background:var(--panel)}
.cb-empty{padding:8px 6px;font-size:var(--fs-sm)}
.cb-addrow{display:flex;gap:4px;flex-wrap:wrap;padding:6px 2px 2px}
.cb-addrow .btn{font-size:var(--fs-xs)}
.cb-ol-foot{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:12px}
.cb-rename-in{width:100%;box-sizing:border-box;font:inherit;padding:2px 6px;border:1px solid var(--accent);border-radius:var(--rad-sm);
  background:var(--panel);color:var(--ink)}

/* The lesson, as blocks. */
.cb-ed{max-width:820px;margin:0 auto;position:relative;display:grid;gap:12px;padding-bottom:40px}
.cb-ed-head{display:grid;gap:6px}
.cb-kind{margin:0}
.cb-ed-title{width:100%;box-sizing:border-box;font:inherit;font-size:var(--fs-2xl);font-weight:700;line-height:1.2;border:1px solid transparent;
  background:transparent;color:var(--ink);padding:4px 6px;border-radius:var(--rad-sm);resize:none;overflow:hidden;field-sizing:content;min-height:1.6em}
.cb-ed-blurb{width:100%;box-sizing:border-box;font:inherit;font-size:var(--fs-md);color:var(--muted);border:1px solid transparent;
  background:transparent;padding:4px 6px;border-radius:var(--rad-sm);resize:vertical;line-height:1.45}
.cb-ed-title:hover,.cb-ed-title:focus,.cb-ed-blurb:hover,.cb-ed-blurb:focus{border-color:var(--line);background:var(--panel);outline:none}
.cb-ed-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:2px 0}
.cb-shared,.cb-problem{margin:0}
.cb-ai{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:8px;border:1px solid var(--line);border-radius:var(--rad);background:var(--panel)}
.cb-lmore{position:relative}
.cb-lmore>summary{list-style:none;cursor:pointer}
.cb-lmore>summary::-webkit-details-marker{display:none}
.cb-lmore-menu{position:absolute;left:0;top:calc(100% + 4px);z-index:4;display:grid;gap:4px;min-width:200px;padding:8px;background:var(--panel);
  border:1px solid var(--line);border-radius:var(--rad);box-shadow:var(--sh-2)}
.cb-lmore-menu .btn{justify-content:flex-start;text-align:left;width:100%}
.cb-blocks{display:grid;gap:8px;margin:0}
.cb-blk{position:relative;border:1px solid transparent;border-radius:var(--rad);padding:6px 10px 8px;background:var(--panel);min-width:0}
.cb-blk:hover,.cb-blk:focus-within{border-color:var(--line)}
.cb-blk-empty{border-style:dashed;border-color:var(--line)}
.cb-blk-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:4px;font-size:var(--fs-xs);color:var(--muted);min-height:26px}
.cb-blk-k{font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:var(--fs-xs)}
.cb-blk-acts{margin-left:auto;display:flex;gap:3px;flex-wrap:wrap;align-items:center}
@media (hover:hover) and (min-width:901px){
  .cb-blk .cb-blk-acts .cb-mini,.cb-blk .cb-rt{opacity:0;transition:opacity var(--dur-1,.12s)}
  .cb-blk:hover .cb-blk-acts .cb-mini,.cb-blk:focus-within .cb-blk-acts .cb-mini,.cb-blk:hover .cb-rt,.cb-blk:focus-within .cb-rt{opacity:1}
}
.cb-rt{display:flex;gap:3px;flex-wrap:wrap}
.cb-ce{outline:none;min-height:1.5em;padding:2px 4px;border-radius:var(--rad-sm);overflow-wrap:anywhere}
.cb-ce:focus{box-shadow:0 0 0 2px var(--accent-soft)}
.cb-hd,.cb-callout{margin:0}
.cb-blk-picture figure{margin:0}
.cb-blk-picture img{max-width:100%;height:auto;display:block;border-radius:var(--rad-sm)}
.cb-blk-divider hr{border:0;border-top:1px solid var(--line);margin:10px 0}
.cb-act{width:100%;box-sizing:border-box;font-family:var(--font-mono);font-size:var(--fs-sm);line-height:1.5;resize:vertical}
.cb-pic-empty,.cb-vid-empty{border:2px dashed var(--line);border-radius:var(--rad);padding:18px;text-align:center;cursor:pointer;color:var(--muted)}
.cb-vid-player .acad-video{margin:0}
.cb-vid-link{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:8px}
.cb-vid-link input{flex:1 1 240px;min-width:0}
.cb-vid-link progress{flex:1 1 100%}
.cb-lab{font-size:var(--fs-sm);font-weight:600}
.cb-chk{display:inline-flex;gap:6px;align-items:center;font-size:var(--fs-sm);margin:0}
.cb-addbar{display:flex;gap:4px;flex-wrap:wrap;align-items:center;padding:8px;border:1px dashed var(--line);border-radius:var(--rad)}
.cb-add-k{font-weight:700;font-size:var(--fs-sm);margin-right:4px}
.cb-noblocks{margin:6px 0}
.cb-sec{border-top:1px solid var(--line);padding-top:10px;display:grid;gap:8px}
.cb-sec-t{margin:0;font-size:var(--fs-md)}
.cb-dl-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.cb-blk-download{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-color:var(--line)}
.cb-dl-label{flex:1 1 200px;min-width:0}
.cb-dl-add,.cb-q-add,.cb-quiz-pm{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:0}
.cb-dl-link{flex:1 1 220px;min-width:0}
.cb-quiz-pm input{width:7em}
.cb-qs{display:grid;gap:8px}
.cb-blk-quiz{border-color:var(--line);display:grid;gap:6px}
.cb-q-prompt{width:100%;box-sizing:border-box;font-weight:600}
.cb-q-opts{display:grid;gap:4px}
.cb-q-opt{display:flex;gap:6px;align-items:center}
.cb-q-opt input:not([type=checkbox]){flex:1 1 auto;min-width:0}
.cb-q-foot{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:0}
.cb-q-explain{flex:1 1 220px;min-width:0}
.cb-dropnote{display:none}
.cb-ed.cb-dropping{outline:3px dashed var(--accent);outline-offset:6px;border-radius:var(--rad)}
.cb-ed.cb-dropping .cb-dropnote{display:block;position:sticky;bottom:12px;justify-self:center;padding:8px 14px;border-radius:var(--rad-pill);
  background:var(--accent);color:var(--panel);font-weight:700}
.cb-none{padding:40px 16px;text-align:center}

/* The learner's page, live. */
.cb-pv-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cb-pv-frame{flex:1 1 auto;min-height:0;overflow:auto;display:flex;justify-content:center;align-items:flex-start}
.cb-pv-ifr{border:1px solid var(--line);border-radius:var(--rad);background:var(--bg);width:100%;display:block;min-height:420px}
.cb-pv-phone .cb-pv-ifr{border:8px solid var(--ink-2,var(--ink));border-radius:26px;max-width:none;flex:0 0 auto}

/* Darren, 29 Oct 2026 (K3, K4) — videos, downloads and questions as blocks among the text, and the line for the whole lesson. */
.cb-lw{border-top:1px solid var(--line);padding-top:10px}
.cb-lw .cb-quiz-pm{gap:8px}
.cb-dl-one{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cb-blk-download,.cb-blk-quiz,.cb-blk-video{border-color:var(--line)}
.cb-q{display:grid;gap:6px}
/* The learner's page: the same things where the author put them. */
.acad-body .acad-xvideo,.acad-body .acad-stage{margin:14px 0}
.acad-body .acad-res-placed{margin:12px 0}
.acad-body .acad-placedq{margin:14px 0}
.acad-body .acad-placedq .acad-q{margin:0}
.acad-lquiz-placed{margin:4px 0 8px}

/* Course settings (K5, v3.1214.0): a side panel in the preview's place, its parts listed down its side, one part at a time. */
.cb-setopen .cb-grid{grid-template-columns:minmax(250px,310px) minmax(0,1fr) minmax(380px,46%)}
.cb-setopen .cb-pv{display:none}
.cb-setp{min-height:0;min-width:0;display:flex;flex-direction:column;border-left:1px solid var(--line);background:var(--panel)}
.cb-setp-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-bottom:1px solid var(--line)}
.cb-setp-top h2{margin:0;font-size:var(--fs-md)}
.cb-setp-in{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:150px minmax(0,1fr)}
.cb-setp-nav{display:flex;flex-direction:column;gap:2px;padding:10px 6px;border-right:1px solid var(--line);overflow:auto}
.cb-setp-tab{all:unset;box-sizing:border-box;cursor:pointer;padding:7px 10px;border-radius:var(--rad-sm);font-size:var(--fs-sm);color:var(--muted);white-space:nowrap}
.cb-setp-tab:hover{background:var(--tint);color:var(--ink)}
.cb-setp-tab:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.cb-setp-tab.on{background:var(--tint);color:var(--ink);font-weight:700;box-shadow:inset 3px 0 0 var(--accent)}
.cb-setp-body{min-height:0;overflow:auto;padding:12px 16px 18px;overscroll-behavior:contain}
.cb-setp-part{border:0;margin:0;padding:0;min-width:0;display:grid;gap:12px}
.cb-setp-part .panel{margin:0;padding:0;border:0;box-shadow:none;background:none}
.cb-sf{display:grid;gap:4px;min-width:0;margin:0;align-content:start}
.cb-setp-part label{margin:0}
.cb-sf-t{font-size:var(--fs-sm);font-weight:600;color:var(--ink);display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.cb-sf-t .save-status,.cb-sf-chk .save-status,.cb-sf-rev .save-status{font-weight:400;margin:0;min-height:0}
.cb-sf input:not([type=checkbox]):not([type=radio]),.cb-sf textarea,.cb-sf select{width:100%;box-sizing:border-box}
.cb-sf2{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;align-items:end}
.cb-sf-pre{border:0;padding:0}
.cb-sf-pre .check{display:flex;gap:6px;align-items:baseline;margin:2px 0}
.cb-sf-chk{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}
.cb-sf-status{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap}
.cb-sf-status>.cb-sf-t{flex:1 0 100%}
.cb-sf-status .acd-status{border:0;margin:0;padding:0;display:flex;gap:12px;flex-wrap:wrap}
.cb-sf-rev{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
/* 3.1219.0.1 (lane whocantake) — Who can take it: the five options, the box an option needs, and More (the ticks it sets). */
.cb-sf-who{border:0;padding:0}
.cb-sf-who .check{display:flex;gap:6px;align-items:baseline;margin:2px 0}
.cb-sf-whobox{min-width:0;display:grid}
.cb-sf-whobox[hidden]{display:none}
.cb-sf-more{border-top:1px solid var(--line);padding-top:8px;min-width:0}
.cb-sf-more>summary{cursor:pointer;font-size:var(--fs-sm);color:var(--muted);font-weight:600}
.cb-sf-more[open]>summary{margin-bottom:6px}
.cb-sf-more .cb-sf-chk{margin:4px 0}
.cb-setp-foot{margin:0;padding:10px 14px;border-top:1px solid var(--line)}

/* A phone: the three columns are three tabs (Outline, Edit, Preview). */
@media (max-width:900px){
  .cb-head{padding:8px 12px;gap:6px 8px}
  .cb-head-t{flex:1 1 200px}
  .cb-ctitle{font-size:var(--fs-md);white-space:normal;max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .cb-head-t .acad-trybtn,.cb-head-t [data-acad-try]{display:none}
  .cb-head-t{flex:1 1 calc(100% - 130px)}
  .cb-auto{order:2}
  .cb-head-acts{order:3;flex:1 1 auto;justify-content:flex-start}
  /* Only the lesson that is open shows its ↑ ↓ Rename; dragging the ⠿ handle works with a finger. */
  .cb-row:not(.on)>.cb-row-acts{display:none}
  .cb-tabs{display:flex;gap:6px;padding:8px 12px;border-bottom:1px solid var(--line);background:var(--panel)}
  .cb-grid{grid-template-columns:minmax(0,1fr)}
  .cb-grid[data-cb-pane="edit"] :is(.cb-outline,.cb-pv),.cb-grid[data-cb-pane="outline"] :is(.cb-edit,.cb-pv),
  .cb-grid[data-cb-pane="preview"] :is(.cb-outline,.cb-edit){display:none}
  .cb-outline,.cb-pv{border:0}
  .cb-col{padding:12px}
  .cb-ed-title{font-size:var(--fs-xl)}
  .cb-more-menu{right:auto;left:0}
  .cb-pv-phone .cb-pv-ifr{border-width:0;border-radius:var(--rad);max-width:100%}
  .cb-pv-bar .nl-seg{display:none}   /* on a phone the preview is already a phone wide */
  /* Course settings takes the whole screen below the bar; its parts are a row of tabs that scrolls sideways. */
  .cb-setopen .cb-tabs{display:none}
  .cb-setopen .cb-grid{grid-template-columns:minmax(0,1fr)}
  .cb-setopen .cb-grid>:is(.cb-outline,.cb-edit,.cb-pv){display:none}
  .cb-setp{border:0}
  .cb-setp-in{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  .cb-setp-nav{flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line);padding:6px 8px}
  .cb-setp-tab.on{box-shadow:inset 0 -3px 0 var(--accent)}
  .cb-setp-body{padding:12px}
}

/* lane crmbook (3.1215.0) — Bec, item 10: "a banner that says 'Platinum member'" on the customer record. The tier's own
   colour (the --tier-* tokens, light and dark) as the edge and the words, on the panel. */
.dir-member-banner{--tier-c:var(--blue);margin:0 0 var(--sp-2);padding:6px 12px;border:1px solid var(--line);
  border-left:5px solid var(--tier-c);border-radius:8px;background:var(--panel);color:var(--tier-c);font-weight:800;font-size:var(--fs-md)}
.dir-member-banner.tier-bronze{--tier-c:var(--tier-bronze)}
.dir-member-banner.tier-silver{--tier-c:var(--tier-silver)}
.dir-member-banner.tier-gold{--tier-c:var(--tier-gold)}
.dir-member-banner.tier-platinum{--tier-c:var(--tier-platinum)}
.dir-member-banner.tier-black{--tier-c:var(--tier-black)}
/* lane crmbook — the next bookings at the top of an enquiry (item 40), and a membership booking's "what for" (item 3). */
.enq-next{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline;margin:6px 0 0;font-size:var(--fs-sm)}
.enq-next-h{font-weight:700;color:var(--ink-2)}
.enq-next-one{flex:1 1 100%;min-width:0;overflow-wrap:anywhere}
.enq-next-one .hint{margin-left:4px}
.enq-appt-memberfor{display:block;margin-top:2px}
.mbk-claims{list-style:none;margin:0;padding:0}
.mbk-claims li{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--line)}
.mbk-claims li:last-child{border-bottom:0}
.mbk-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px 14px}
.mbk-form label{display:flex;flex-direction:column;gap:4px;font-weight:600}
.mbk-form .wide{grid-column:1/-1}
/* lane crmbook — the booking number, quieter (Darren keeps it, 3.1197; Bec, item 4: it "doesn't mean anything" on its own). */
.bk-num.bk-num-quiet{background:none;border:0;padding:0;margin-left:6px;color:var(--muted);font-weight:400;font-size:11px}

/* ---- 3.1215.0 (lane crminvoice) — THE TAX INVOICE IN ITS WINDOW (Bec, items 24 and 37: one layout) ------------------
   The page the server paints from the PDF's own model (src/invoicedoc.js), in an iframe at A4 width, scaled to the window
   by invDocFit. The paper keeps its own colours whatever the app's theme: it is the document the customer gets. */
.invdoc-wrap{position:relative;overflow:hidden;margin:14px 0 4px;border:1px solid var(--line);border-radius:var(--rad);min-height:60px}
.invdoc-frame{display:block;border:0;transform-origin:0 0;background:transparent}
.invdoc-wait{padding:14px}
/* 3.1215.0 — a customer's name that opens their record (Bec, item 39). */
.linkbtn.cust-link{font:inherit;text-align:left}
.edge-sub-inline{color:var(--muted);font-size:var(--fs-xs)}
/* 3.1215.0 — the ex-GST figure sits on its own line under the total inc GST, in every invoice list. */
.inv-exline{display:block}
/* 3.1217.0 — the Office Field Quoting panel’s fee row (its own prefix, not app.js’s bi-) */
.fqa-actions{display:flex;flex-wrap:wrap;gap:var(--sp-2);align-items:center;margin:var(--sp-2) 0 0}

/* 3.1218.0 (lane fqv3) — FIELD QUOTING'S SETTINGS IN THE APP SUITE (public/apps/fqsettings.js, Account › Field Quoting). Theme tokens only. */
.fqs-sec h2{margin:0 0 10px;font-size:var(--fs-lg)}
/* 3.1223 (Technician Rates): the picker's hidden native select is position:absolute; held inside the table's own scrolling box so the page never scrolls sideways at 390 px. */
.fqs-cr td{position:relative}
.fqs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px 16px;align-items:end}
/* 3.1219.0 (the App Suite redesign, phase 3): Admin › Scorecard & motivation's badge and people tables, and its two buttons. */
.fqs-badges{width:100%;border-collapse:collapse;margin:8px 0 16px}.fqs-badges th,.fqs-badges td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line)}.fqs-badges .fqs-num{width:9em;max-width:100%}.fqs-acts{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
@media (max-width:700px){.fqs-badges,.fqs-badges tbody{display:block}.fqs-badges thead{display:none}.fqs-badges tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}.fqs-badges th,.fqs-badges td{border:0;padding:0;min-width:0}.fqs-badges td:last-child{grid-column:1/-1}.fqs-badges .fqs-num,.fqs-badges select{width:100%}}
/* 3.1219.0.x (lane fqbadges2) — Field Quoting settings › Badges: one row per badge (its look, its name, the tick, the amount it is earned
   at, and the word beside them). A badge ticked off is greyed. On a phone the amount drops under the name. Theme tokens only. */
.fqs-bdglist{display:grid;gap:0;margin:8px 0 12px}
.fqs-bdggroup{margin:14px 0 4px}
.fqs-bdghead{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:6px}
.fqs-bdghead h3{margin:0}
.fqs-bdgacts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fqs-bdgrow{display:grid;grid-template-columns:44px minmax(0,1fr) auto minmax(0,13em) minmax(4.5em,auto);align-items:center;gap:6px 12px;padding:8px 4px;border-bottom:1px solid var(--line)}
.fqs-bdglook{display:grid;place-items:center;width:44px;height:44px}
.fqs-bdgname{min-width:0}.fqs-bdgname b{display:block;overflow-wrap:anywhere}
.fqs-bdgon{margin:0}
.fqs-bdgth{display:flex;align-items:center;gap:8px;min-width:0}.fqs-bdgth span{white-space:nowrap;color:var(--muted);font-size:var(--fs-sm)}.fqs-bdgth .fqs-num{width:8em;min-width:0;max-width:100%}
.fqs-bdgrow.is-off .fqs-bdglook,.fqs-bdgrow.is-off .fqs-bdgname{opacity:.45}
.fqs-bdgrow.is-off .fqs-bdglook .bdg{filter:grayscale(1)}
@media (max-width:700px){.fqs-bdgrow{grid-template-columns:44px minmax(0,1fr) auto}.fqs-bdgth{grid-column:2/-1}.fqs-bdgrow .fqs-said{grid-column:2/-1}.fqs-bdgrow .fqs-said:empty{display:none}}
.fqs-field{max-width:none}
.fqs-field>span{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fqs-tick{align-self:end;min-height:44px}
.fqs-said{font-size:var(--fs-xs);font-weight:700;color:var(--s-ok)}
.fqs-said.bad{color:var(--s-bad)}
/* hotfix 3.1220.5: what Stripe still needs, beside Finish Stripe Setup */
.fqs-needs{font-size:var(--fs-xs);font-weight:700;color:var(--s-warn)}
.fqs-said:empty{display:none}
.fqs-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.fqs-tabs{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin:0 0 12px}
.fqs-tabs>div{background:var(--s-sunk);border-radius:var(--rad,14px);padding:10px 12px}
.fqs-tabs dt{font-weight:700}
.fqs-tabs dd{margin:2px 0 0;color:var(--s-muted);font-size:var(--fs-sm)}
.fqs-eq>summary{list-style:none;display:inline-flex;cursor:pointer}
.fqs-eq>summary::-webkit-details-marker{display:none}
.fqs-eqlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin:12px 0}
.fqs-mini{border:0;background:transparent;padding:0}
/* 3.1218.0 hotfix (lane fqpricebook): Price book › Show in Add Items: the group drill-down with a Show tick on each row */
.fqs-h3{margin:18px 0 8px;font-size:var(--fs-md,16px)}
.fqs-showrow{flex-direction:column;align-items:flex-start}
.fqs-show[open]{align-self:stretch}
.fqs-tree{display:grid;grid-template-columns:1fr;gap:0;margin:10px 0}
.fqs-trow{display:flex;align-items:center;gap:12px;min-height:48px;border-top:1px solid var(--s-line);padding:4px 0}
.fqs-trow:first-of-type{border-top:0}
.fqs-trow .toggle{flex:none;margin:0}
.fqs-tname{border:0;background:transparent;font:inherit;font-weight:600;color:var(--s-ink);text-align:left;padding:6px 0;min-height:40px;cursor:default}
button.fqs-tname{cursor:pointer;color:var(--s-link,var(--s-ink))}
button.fqs-tname:hover{text-decoration:underline}
.fqs-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 6px;color:var(--s-muted)}
/* 3.1218.0.9 (lane fq09ui): Price book: four tabs, then Choose From (left) and Shown in Add Items (right). Darren, 1 Nov 2026: "Why
   can't we have, on the left side, what we can select from, and on the right side, what's selected?" Theme tokens only. */
.fqs-pbtabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 14px}
.fqs-pbtab{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:56px;padding:10px 12px;border:1.5px solid var(--s-line);border-radius:var(--rad,14px);background:var(--s-sunk);color:var(--s-ink);font:inherit;text-align:left;cursor:pointer}
.fqs-pbtab b{font-size:var(--fs-md,16px)}
.fqs-pbtab span{font-size:var(--fs-sm);color:var(--s-muted)}
.fqs-pbtab:hover{border-color:var(--s-line-hover,var(--s-line))}
.fqs-pbtab.on{border-color:var(--accent);background:var(--s-accent-soft);box-shadow:inset 0 -3px 0 var(--accent)}
.fqs-pbtab:focus-visible{outline:2px solid var(--s-focus,var(--accent));outline-offset:2px}
.fqs-pbtick{margin:0 0 12px}
.fqs-pb2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.fqs-pbpane{border:1px solid var(--s-line);border-radius:var(--rad,14px);background:var(--s-panel);padding:12px;min-width:0}
.fqs-pbright{background:var(--s-sunk)}
.fqs-pbh{display:flex;align-items:center;gap:8px;min-height:32px;margin:0 0 8px}
.fqs-pbh h3{margin:0;font-size:var(--fs-md,16px)}
.fqs-pbsearch{display:block;margin:0 0 8px}
.fqs-pbsearch input{width:100%;min-height:44px}
.fqs-pblist{max-height:520px;overflow:auto;overscroll-behavior:contain}
.fqs-pbrow{display:flex;align-items:center;gap:8px;min-height:48px;border-top:1px solid var(--s-line);padding:4px 0}
.fqs-pblist>.fqs-pbrow:first-child,.fqs-crumbs+.fqs-pbrow,.fqs-pbsub+.fqs-pbrow{border-top:0}
.fqs-pbname{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;border:0;background:transparent;font:inherit;color:var(--s-ink);text-align:left;padding:6px 0;overflow-wrap:anywhere}
button.fqs-pbname{cursor:pointer}
button.fqs-pbname:hover b{text-decoration:underline}
.fqs-pbname span{font-size:var(--fs-xs);color:var(--s-muted)}
.fqs-pbchev{font-style:normal;font-weight:400;color:var(--s-muted);font-size:var(--fs-lg);line-height:1}
.fqs-pbctl{flex:none;display:flex;align-items:center}
.fqs-pbctl .hint{margin:0;font-size:var(--fs-xs)}
.fqs-pbrow .fqs-said{flex:none}
.fqs-pbsub{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0 2px;font-size:var(--fs-xs);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--s-muted)}
.fqs-pblist>.fqs-pbsub:first-child{margin-top:0}
.fqs-pbsub .btn{text-transform:none;letter-spacing:0}
.fqs-pball b{font-size:var(--fs-md,16px)}
.fqs-pbx{min-width:40px;min-height:40px;font-size:var(--fs-xl);line-height:1}
.fqs-pbold{margin-top:16px}
@media (max-width:760px){
  .fqs-pbtabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fqs-pb2{grid-template-columns:minmax(0,1fr)}
  .fqs-pblist{max-height:420px}
}
.fqs-tpl td{vertical-align:middle}
/* 3.1218.0 hotfix (lane fqlogins): Field Quoting › Logins */
.fqs-lg td{vertical-align:middle}
.fqs-lgemail{display:block}
.fqs-lgacts{white-space:nowrap}
.fqs-lgacts .fqs-said{margin-left:6px}
.fqs-lgk{display:none}
/* lane sepeople: Standard Hours, Leave Requests and Suppliers' Hours (public/apps/fqpeople.js). The buttons stay on one line; on a phone each
   row is a card, as the Logins table is, so nothing hides off the side. */
.fqs-pp td{vertical-align:top}
.fqs-ppacts{white-space:nowrap}
.fqs-ppacts .fqs-said{margin-left:6px}
@media (max-width:640px){
  .fqs-pp thead{display:none}
  .fqs-pp,.fqs-pp tbody,.fqs-pp tr,.fqs-pp td{display:block;width:auto}
  .fqs-pp tr{padding:10px 12px;border-bottom:1px solid var(--s-line)}
  .fqs-pp td{border:0;box-shadow:none;padding:2px 0;white-space:normal}
  .fqs-ppacts{padding-top:8px}
}
/* A phone: each login is a card (who, Simpro, status and last used, then its buttons), so nothing hides off the side. */
@media (max-width:640px){
  .fqs-lg thead{display:none}
  .fqs-lg,.fqs-lg tbody,.fqs-lg tr,.fqs-lg td{display:block;width:auto}
  .fqs-lg tr{padding:10px 12px;border-bottom:1px solid var(--s-line)}
  #fqs-logins .fqs-lg td{border:0;box-shadow:none;padding:2px 0;white-space:normal}
  .fqs-lg td.fqs-lgst{display:inline-block;margin-right:10px}
  .fqs-lg td.fqs-lgwhen{display:inline-block}
  .fqs-lgk{display:inline;color:var(--s-muted)}
  .fqs-lgacts{white-space:normal;padding-top:8px!important}
}
.fqs-modal{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:16px}
.fqs-scrim{position:absolute;inset:0;background:color-mix(in srgb,var(--ink-brand) 45%,transparent)}
.fqs-win{position:relative;width:min(480px,100%);display:grid;gap:10px}
.fqs-win .field{max-width:none}
/* lane fqeight-d — House rules for the AI (Price Book tab) and Site survey checklists (Templates tab), with the checklist window. */
#fqs-houserules,#fqs-checklists{margin-top:16px}
.fqs-rules{display:grid;gap:8px;margin:8px 0}
.fqs-rule{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fqs-ruleno{flex:none;min-width:24px;text-align:right;color:var(--s-muted);font-variant-numeric:tabular-nums}
.fqs-rulein{flex:1 1 260px;min-width:0;min-height:40px}
.fqs-clrow{cursor:pointer}
.fqs-clrow:hover td{background:var(--s-sunk)}
.fqs-winwide{width:min(760px,100%);max-height:calc(100vh - 32px);overflow:auto}
.fqs-qs{display:grid;gap:10px}
.fqs-q{border:1px solid var(--s-line);border-radius:10px;padding:8px 12px 4px;margin:0;display:grid;gap:6px}
.fqs-q legend{color:var(--s-muted);padding:0 4px}
.fqs-qgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}
.fqs-grow{flex:1}
/* lane surveylogic (13 Nov 2026) — sections, a rule per answer, follow-ups and the loop warnings in the checklist window. Tokens only. */
.fqs-secs{border:1px solid var(--s-line);border-radius:10px;padding:8px 12px;margin:10px 0;display:grid;gap:6px}
.fqs-secs h3{margin:0;font-size:var(--fs-md)}
.fqs-secrow{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.fqs-qthen{border-top:1px dashed var(--s-line);padding-top:6px}
.fqs-qfollow{margin-left:24px;border-style:dashed}
/* fix 31222-colour: result chips in the App Suite (Pass bright green, Fail bright red, N/A the quiet grey), theme tokens --pass / --fail. */
.res-chip{display:inline-flex;align-items:center;min-height:24px;padding:2px 10px;border-radius:var(--rad-pill);font-size:var(--fs-xs);font-weight:800;white-space:nowrap}
.res-chip.res-pass{background:var(--pass);color:var(--on-pass)}
.res-chip.res-fail{background:var(--fail);color:var(--on-fail)}
.res-chip.res-na{background:var(--s-sunk);color:var(--s-ink);box-shadow:inset 0 0 0 1px var(--s-line)}
.fqs-anspv{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 6px}
.fqs-warn{border:1px solid var(--s-warn);background:var(--s-warn-soft);border-radius:10px;padding:6px 12px;margin:10px 0}
.fqs-warn p{margin:4px 0}
.fqs-q .fqs-qgrid{grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr))}
/* fix 31222-colour: the Answer choice shows its whole name ("Pass or Fail, with Recommendation" was cut off): two columns wide where there is room. */
@media (min-width:600px){.fqs-q .fqs-qgrid:not(.fqs-qthen) > .field:first-child{grid-column:span 2}}
.fqs-q .field,.fqs-q select{min-width:0;max-width:100%}
/* the listbox sizes itself to its longest option (a long Go To); in a question row it fills its field instead */
.fqs-q .lbx-trigger{width:100% !important;min-width:0 !important;max-width:100%}
.fqs-q .lbx-val{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:560px){.fqs-qfollow{margin-left:10px}}
/* 3.1219.0.x (lane pbaiprep) — AI Notes under the Price book: Check Items, the two switches, the chips and the notes; the item window scrolls on a phone. */
#fqs-ainotes{margin-top:16px}
.fqs-airow{display:flex;flex-wrap:wrap;gap:4px 20px;margin:4px 0 10px}
.fqs-ailast{margin:-4px 0 8px}
.fqs-aichips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.fqs-ain{font-weight:400;color:var(--s-muted);margin-left:2px}
.fqs-aitools{margin:0 0 6px}
.fqs-aisearch{flex:1 1 220px;margin:0}
.fqs-aiwin{max-height:calc(100vh - 32px);overflow:auto}
.fqs-aisug{border:1px solid var(--s-line);border-radius:var(--rad,14px);background:var(--s-sunk);padding:10px 12px}
.fqs-aisug p{margin:4px 0 0}

/* 3.1218.0 hotfix (lane custchat) — Chat with Platinum. Darren, 1 Nov 2026: "We apply all the features from our own internal chat to
 * the customer chat too please." Platinum Chat's own window (public/memberchat.js), sitting in the Contact Platinum panel and in
 * Communications rather than along the bottom: the same messages, composer, photos, reactions and quotes. */
.mc-win{width:auto;height:auto;margin:8px 0 0;border:1px solid var(--line);border-radius:var(--rad);box-shadow:none}
.mc-win .mc-msgs{flex:0 1 auto;min-height:96px;max-height:300px}
.mc-office{margin:0}
.mc-office .mc-msgs{max-height:min(300px,36vh)}
.mc-readonly .sm-compose{display:none}
.mk-mchat .mc-win{margin-top:6px}
.cm-mchat{margin:0 0 6px}
.cm-mchat-head{display:flex;align-items:baseline;gap:8px;margin:0 0 4px;font-size:var(--fs-sm)}
.cm-mchat-head .hint{font-size:var(--fs-xs)}
.pcd-mcslot{flex:1 1 auto;min-height:0;display:flex}
.pcd-mcslot .mc-win{flex:1 1 auto;margin:0;border:0;border-radius:0}
.pcd-mcslot .mc-msgs{flex:1 1 auto;max-height:none}
/* lane/loginrequest (2 Nov 2026) — Logins received (public/apps/loginsin.js) and the Request buttons (public/loginreq.js).
   Theme tokens only. A value is never drawn: Copy puts it on the clipboard. */
.lrq .secq-acts{margin-top:var(--sp-2)}
.lrq-open{margin-left:var(--sp-2)}
.li-how{margin:0 0 var(--sp-3)}
.li-group{margin-bottom:var(--sp-3)}
.li-group.li-soon{border-left:4px solid var(--s-warn)}
.li-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--sp-2) var(--sp-3);margin-bottom:var(--sp-2)}
.li-head h3{margin:0}
.li-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-2)}
.li-login{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-3);padding:var(--sp-2) var(--sp-3);border-radius:var(--rad-in);background:var(--s-sunk);min-width:0}
.li-what{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--sp-1) var(--sp-2);min-width:0;flex:1 1 260px}
.li-url{overflow-wrap:anywhere;color:var(--s-ink-2)}
.li-note{flex-basis:100%}
.li-warn{flex-basis:100%;color:var(--s-warn);font-size:var(--fs-xs);font-weight:600}
.li-act{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
.li-act .save-status.bad{color:var(--danger)}
/* 3.1219.0.x — FIELD QUOTING, ITS OWN APP: the home's two choices, its About card, and the settings' tabs. */
.fqh-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:var(--sp-3);max-width:1180px}
.fqh-card{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-4);border-radius:var(--rad,14px);border:1px solid var(--line);background:var(--panel);color:var(--ink);text-align:left;font:inherit;cursor:pointer;text-decoration:none;min-height:96px}
.fqh-card:hover,.fqh-card:focus-visible{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-lt)}
.fqh-card.primary{border-color:var(--blue)}
.fqh-ico{flex:none;display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:var(--blue);color:var(--s-hero-ink)}
.fqh-words{flex:1;min-width:0;display:grid;gap:4px}
.fqh-words b{font-size:var(--fs-lg)}
.fqh-words span{color:var(--muted);font-size:var(--fs-sm)}
.fqh-chev{flex:none;font-size:var(--fs-2xl);color:var(--muted)}
.fqh-card.off{cursor:not-allowed;background:transparent;border-style:dashed;flex-wrap:wrap}
.fqh-card.off .fqh-ico{background:var(--line);color:var(--muted)}
.fqh-card.off .fqh-words b,.fqh-card.off .fqh-words>span:not(.fqh-state){color:var(--muted)}
.fqh-state{justify-self:start;margin-top:4px;padding:2px 10px;border-radius:var(--rad-pill,999px);background:var(--orange-soft);color:var(--ink);font-size:var(--fs-xs);font-weight:700}
.fqh-fix{flex-basis:100%;display:flex;justify-content:flex-end}
.fqh-fix .btn{cursor:pointer}
.fqh-list{list-style:none;margin:var(--sp-2) 0;padding:0;display:grid;gap:var(--sp-2)}
.fqh-list li{display:grid;gap:2px}
.fqh-list li span{color:var(--muted)}
.fqh-price{margin:var(--sp-3) 0 var(--sp-2);display:grid;gap:2px}
.fqh-price b{font-size:var(--fs-lg)}
.fqh-price span{color:var(--muted)}
/* 3.1219.0.2 (lane fqstripe): Admin Settings › People › Licences */
.fqs-price{margin:0 0 var(--sp-2)}
.fqs-price b{font-size:var(--fs-lg)}
.fqs-lcn{max-width:8em;margin:0}
.fqs-lcn input{width:100%}
.fqh-aboutmore{margin-top:var(--sp-4);max-width:980px}
.fqh-aboutmore summary{cursor:pointer;font-weight:700}
.fqs-tabs{display:flex;gap:6px;margin:var(--sp-2) 0 var(--sp-3);flex-wrap:wrap}
.fqs-tabs .chip{font-size:var(--fs-sm);padding:6px 14px}

/* 3.1219.0.x (lane fqaicost) — Field Quoting › AI: the AI used this month as rings (Darren, 4 Nov 2026: "Just a circle-type graph with a
   percentage"), the business's and each person's, here and beside each login. Theme tokens only; calm at 80% and at 100%. */
.fqs-airing{position:relative;flex:none;width:64px;height:64px;display:inline-grid;place-items:center}
.fqs-airing.sm{width:40px;height:40px}
.fqs-airing svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.fqs-airing circle{fill:none;stroke-width:4}
.fqs-airing .trk{stroke:var(--s-line)}
.fqs-airing .val{stroke:var(--s-ok);stroke-linecap:round;transition:stroke-dashoffset var(--dur-lift) var(--ease-out)}
.fqs-airing.warn .val{stroke:var(--s-warn)}
.fqs-airing.out .val{stroke:var(--s-bad)}
.fqs-airing b{position:relative;font-size:var(--fs-sm);font-weight:800;font-variant-numeric:tabular-nums;text-align:center;line-height:1.1}
.fqs-airing.sm b{font-size:calc(var(--fs-xs) - 2px)}
/* 3.1219.0.x (lane fqbadges): "100%" fits the small ring (it ran over the track): a touch larger ring, a tighter three-digit label. */
.fqs-airing.sm.d3{width:44px;height:44px}
.fqs-airing.d3 b{font-size:var(--fs-xs);letter-spacing:-.04em}
.fqs-airing.sm.d3 b{font-size:calc(var(--fs-xs) - 3px)}
.fqs-aihero{display:flex;gap:16px;align-items:center;margin:4px 0 12px}
.fqs-aihero>div{display:grid;gap:2px;min-width:0}
.fqs-aiwarn{font-size:var(--fs-sm);font-weight:700;color:var(--s-warn)}
.fqs-aiwarn.out{color:var(--s-bad)}
.fqs-aippl td{width:1%;white-space:nowrap}
.fqs-lgai{white-space:nowrap}
@media (max-width:640px){.fqs-lgai{display:flex!important;align-items:center;gap:8px}.fqs-aippl tr{grid-template-columns:minmax(0,1fr) auto}}

/* 3.1219.0.x (lane fqbadges) — FIELD QUOTING'S DASHBOARD (public/apps/fqdash.js). Theme tokens only; the badges' own rules and colours are
   in public/theme.css. A desktop screen first; on a phone the tiles stack and the people table scrolls inside itself. */
.fqd-filters{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-3);margin-bottom:var(--sp-2)}
.fqd-custom{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
.fqd-custom label{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-sm)}
.fqd-range{margin:0 0 var(--sp-3)}
.fqd-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:var(--sp-3);margin-bottom:var(--sp-4)}
.fqd-tile{display:grid;gap:4px;align-content:start;min-width:0}
.fqd-tile small{font-size:var(--fs-xs);color:var(--muted)}
.fqd-ch{font-weight:700;font-variant-numeric:tabular-nums}
.fqd-ch.up{color:var(--s-ok)} .fqd-ch.down{color:var(--s-bad)} .fqd-ch.flat{color:var(--muted)}
.fqd-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:var(--sp-4);margin-bottom:var(--sp-4)}
.fqd-two .panel,.fqd-person .panel{min-width:0;margin:0}
.fqd-person > .panel.wide,.fqd-person > .fqd-badges{margin-bottom:var(--sp-4)}
.fqd-two h3,.fqd-person h3,#fqdash-body .panel.wide > h3{margin:0 0 var(--sp-3);font-size:var(--fs-md)}
.fqd-bars{display:flex;align-items:flex-end;gap:8px;height:180px;padding-top:18px;overflow-x:auto}
.fqd-bar{flex:1 1 0;min-width:34px;height:100%;display:grid;grid-template-rows:auto 1fr auto;justify-items:center;gap:4px}
.fqd-bar b{font-size:var(--fs-xs);font-weight:700;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.fqd-bar i{align-self:end;width:100%;max-width:46px;height:calc(var(--h, 0) * 100%);border-radius:6px 6px 2px 2px;background:var(--ch2);opacity:.55}
.fqd-bar.now i{background:var(--ch1);opacity:1}
.fqd-bar.future i{background:none;border:1.5px dashed var(--line);opacity:1;height:30%}
.fqd-bar span{font-size:var(--fs-xs);color:var(--muted);white-space:nowrap}
.fqd-shares{display:grid;gap:8px}
.fqd-share{display:grid;grid-template-columns:minmax(0,9rem) 1fr auto;align-items:center;gap:var(--sp-2);padding:6px 8px;border:0;border-radius:var(--rad-sm,8px);background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.fqd-share:hover,.fqd-share:focus-visible{background:var(--s-sunk)}
.fqd-share span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.fqd-share i{display:block;height:10px;border-radius:5px;background:var(--ch1);transform-origin:left;transform:scaleX(var(--w, 0))}
.fqd-share b{font-variant-numeric:tabular-nums}
.fqd-tablewrap{overflow-x:auto;max-width:100%}
.fqd-table{min-width:980px}
.fqd-table td,.fqd-table th{vertical-align:middle}
.fqd-row{cursor:pointer}
.fqd-row:hover th,.fqd-row:hover td,.fqd-row:focus-visible th,.fqd-row:focus-visible td{background:var(--s-accent-soft)}
.fqd-row:focus-visible{outline:2px solid var(--b-500);outline-offset:-2px}
.fqd-who{display:grid;gap:2px;min-width:0}
.fqd-who small{font-size:var(--fs-xs);color:var(--muted);font-weight:400}
.fqd-spark{width:84px;height:26px;display:block;overflow:visible}
.fqd-spark polyline{fill:none;stroke:var(--ch1);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.fqd-spark circle{fill:var(--ch1)}
.fqd-phead{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3);margin-bottom:var(--sp-3)}
.fqd-phead h2{margin:0;font-size:var(--fs-xl);flex:1;min-width:0}
.fqd-badges .bdg-cap{color:var(--muted)}
.fqd-table .bdg-mini{flex-wrap:nowrap}

/* 0525 (lane paytax) — payroll tax settings on What you pay for, and its read-out there and on Your rate. Theme tokens
   only; the cards are the ordinary .cards/.card. */
#pt-settings .pt-row{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end}
#pt-settings .pt-row .field{flex:1 1 200px;max-width:280px;min-width:0}
#pt-settings .pt-row .field select,#pt-settings .pt-row .field input{width:100%}
#pt-settings .pt-regional{align-self:center}
.pt-cards{margin:12px 0 4px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.pt-cards .card{padding:10px 12px;min-width:0}
.pt-cards .card .v{font-size:var(--fs-lg,18px);white-space:nowrap}
@media (max-width:600px){.pt-cards .card .k{letter-spacing:.04em}}
.pt-foot{margin-top:4px}

/* lane beccrm (Bec, item 12) — the message a to-do or an alert opened, marked for a few seconds. */
.cm-row.cm-target{outline:2px solid var(--blue-ink);outline-offset:2px;border-radius:var(--r)}

/* ---- lane/learndash (5 November 2026) — THE LEARNING DASHBOARD (Reports › Course stats, public/apps/learndash.js). Tokens only. ---- */
#learndash-body{display:flex;flex-direction:column;gap:var(--sp-4)}
.ld-bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3) var(--sp-4)}
.ld-chips{display:flex;flex-wrap:wrap;gap:var(--sp-2)}
.ld-chip{height:32px;padding:0 14px;border-radius:var(--rad-pill);border:1px solid var(--s-line);background:var(--s-panel);color:var(--s-ink-2);font:inherit;font-size:var(--fs-sm);font-weight:600;cursor:pointer}
.ld-chip.small{height:28px;padding:0 12px;font-size:var(--fs-xs)}
.ld-chip:hover{border-color:var(--s-line-hover)}
.ld-chip.on{background:var(--accent);border-color:var(--accent);color:var(--s-hero-ink)}
.ld-chip:focus-visible{outline:none;box-shadow:var(--s-focus)}
.ld-staff{display:inline-flex;align-items:center;gap:var(--sp-2);font-size:var(--fs-sm);font-weight:600;color:var(--s-ink-2);cursor:pointer}
.ld-range{margin:0 0 0 auto}
.ld-say:empty{display:none}
.ld-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-4)}
.ld-tile{display:flex;flex-direction:column;gap:4px;background:var(--s-panel);border:1px solid var(--s-line-2);border-radius:var(--rad);box-shadow:var(--sh-1);padding:var(--sp-4) var(--sp-5);min-width:0}
.ld-tile-l{font-size:var(--fs-sm);font-weight:600;color:var(--s-muted)}
.ld-est{font-style:normal;font-weight:500;font-size:var(--fs-xs);color:var(--s-muted);border:1px solid var(--s-line);border-radius:var(--rad-pill);padding:0 6px;margin-left:4px}
.ld-tile b{font-size:var(--fs-2xl);line-height:1.1;font-weight:700;color:var(--s-ink)}
.ld-ch{font-size:var(--fs-xs);font-weight:600;color:var(--s-muted)}
.ld-ch.ld-up{color:var(--s-ok)}
.ld-ch.ld-down{color:var(--s-warn)}
.ld-skel{min-height:96px}
.ld-panel{padding:var(--sp-5);margin:0}
.ld-ph{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3);margin-bottom:var(--sp-3)}
.ld-ph h3{margin:0;font-size:var(--fs-lg);flex:1 1 auto;min-width:0}
.ld-n{display:inline-block;min-width:24px;padding:0 8px;margin-left:6px;border-radius:var(--rad-pill);background:var(--s-accent-soft);color:var(--s-link);font-size:var(--fs-xs);font-weight:700;text-align:center;vertical-align:middle}
.ld-chart{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:var(--sp-2);height:220px;padding-top:var(--sp-2);border-bottom:1px solid var(--s-line-2)}
.ld-col{display:flex;flex-direction:column;align-items:stretch;min-width:0;cursor:default}
.ld-v{flex:0 0 auto;height:18px;font-size:var(--fs-xs);font-weight:600;color:var(--s-ink-2);text-align:center;white-space:nowrap;overflow:hidden}
.ld-bar-in{flex:1 1 auto;display:flex;align-items:flex-end;justify-content:center;min-height:0}
.ld-bar-in i{display:block;width:min(100%,56px);min-height:2px;border-radius:4px 4px 0 0;background:var(--ch1)}
.ld-col.part .ld-bar-in i{opacity:.6}
.ld-col.early .ld-bar-in i{opacity:.4}
.ld-col:hover .ld-bar-in i{opacity:1;background:var(--accent)}
.ld-x{flex:0 0 auto;height:22px;padding-top:4px;font-size:var(--fs-xs);color:var(--s-muted);text-align:center;white-space:nowrap}
.ld-note{margin:var(--sp-2) 0 0}
.ld-table{display:flex;flex-direction:column;border:1px solid var(--s-line-2);border-radius:var(--rad-in);overflow:hidden}
.ld-ch-row{display:grid;grid-template-columns:minmax(220px,2.2fr) repeat(3,minmax(70px,.7fr)) minmax(120px,1fr) minmax(70px,.7fr);gap:var(--sp-3);align-items:center;padding:var(--sp-3) var(--sp-4);border-top:1px solid var(--s-line-2);background:var(--s-panel);cursor:pointer;color:var(--s-ink)}
.ld-ch-row:first-child{border-top:0}
.ld-ch-row:hover{background:var(--s-accent-soft)}
.ld-ch-row:focus-visible{outline:none;box-shadow:inset var(--s-focus)}
.ld-th{cursor:default;background:var(--s-sunk);font-size:var(--fs-xs);font-weight:600;color:var(--s-muted);text-transform:uppercase;letter-spacing:.04em;padding-top:var(--sp-2);padding-bottom:var(--sp-2)}
.ld-th:hover{background:var(--s-sunk)}
.ld-ct{display:flex;flex-direction:column;min-width:0}
.ld-ct b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ld-ct i,.ld-pw i,.ld-pc i{font-style:normal;font-size:var(--fs-xs);margin:0}
.ld-rate{display:inline-block;width:56px;height:6px;border-radius:var(--rad-pill);background:var(--s-sunk);overflow:hidden;vertical-align:middle;margin-right:8px}
.ld-rate i{display:block;height:100%;background:var(--s-ok)}
.ld-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4)}
.ld-people{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border:1px solid var(--s-line-2);border-radius:var(--rad-in);overflow:hidden}
.ld-person{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:var(--sp-3);align-items:center;padding:var(--sp-3) var(--sp-4);border-top:1px solid var(--s-line-2);background:var(--s-panel);cursor:pointer}
.ld-person:first-child{border-top:0}
.ld-person:hover{background:var(--s-accent-soft)}
.ld-person.ld-static{cursor:default}
.ld-person.ld-static:hover{background:var(--s-panel)}
.ld-person:focus-visible{outline:none;box-shadow:inset var(--s-focus)}
.ld-pw,.ld-pc{display:flex;flex-direction:column;min-width:0}
.ld-pw b,.ld-pc b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--s-ink);font-size:var(--fs-sm)}
.ld-pw i,.ld-pc i{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ld-pt{grid-column:1/-1;margin:-4px 0 0;font-size:var(--fs-xs)}
.ld-state{padding:var(--sp-5)}
.ld-sum{display:flex;flex-wrap:wrap;gap:var(--sp-4);margin-bottom:var(--sp-4)}
.ld-sum span{font-size:var(--fs-sm);color:var(--s-muted)}
.ld-sum b{font-size:var(--fs-xl);color:var(--s-ink);margin-right:4px}
.ld-sheet h4{margin:var(--sp-4) 0 var(--sp-2);font-size:var(--fs-md)}
.ld-lessons{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-2)}
.ld-lr{display:grid;grid-template-columns:28px minmax(0,1.5fr) minmax(80px,1fr) 64px;gap:var(--sp-3);align-items:center;font-size:var(--fs-sm)}
.ld-ln{color:var(--s-muted);font-weight:600;text-align:right}
.ld-lt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--s-ink)}
.ld-lbar{position:relative;height:10px;border-radius:var(--rad-pill);background:var(--s-sunk);overflow:hidden}
.ld-lbar i{position:absolute;left:0;top:0;bottom:0;border-radius:inherit}
.ld-lbar i.r{background:var(--ch1);opacity:.28}
.ld-lbar i.f{background:var(--ch1)}
.ld-lnum{text-align:right;color:var(--s-ink-2);font-variant-numeric:tabular-nums}
@media (max-width:1100px){.ld-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.ld-two{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){
  .ld-tile{padding:var(--sp-3) var(--sp-4)}
  .ld-tile b{font-size:var(--fs-xl)}
  .ld-range{margin:0;width:100%}
  .ld-panel{padding:var(--sp-4)}
  .ld-chart{height:180px;gap:3px}
  .ld-v,.ld-x{font-size:10px}
  .ld-th{display:none}
  .ld-ch-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-2) var(--sp-3)}
  .ld-ch-row .ld-ct{grid-column:1/-1}
  .ld-ch-row [data-l]::before{content:attr(data-l);display:block;font-size:var(--fs-xs);color:var(--s-muted);font-weight:600}
  .ld-lr{grid-template-columns:22px minmax(0,1fr) 56px}
  .ld-lbar{grid-column:2/-1;grid-row:2}
}

/* ---- lane dbtidy (6 November 2026) — SETTINGS › DATA & SYSTEMS › TIDY OLD DATA (public/apps/dbtidy.js) ---------------------
   The total and Tidy Now on one row (wrapping on a phone), the categories table below. Theme tokens only. */
.dt-panel{display:flex;flex-direction:column;gap:var(--sp-4)}
.dt-head{display:flex;flex-wrap:wrap;gap:var(--sp-4);align-items:center;justify-content:space-between}
.dt-total{display:flex;flex-direction:column-reverse}
.dt-total b{font-size:var(--fs-2xl);line-height:1.1;color:var(--s-ink);font-weight:700}
.dt-total span{font-size:var(--fs-sm);color:var(--muted)}
.dt-act{display:flex;flex-wrap:wrap;gap:var(--sp-2);align-items:center}
.dt-table td.num,.dt-table th.num{text-align:right;white-space:nowrap}
.dt-table th[scope=row]{font-weight:600;text-align:left}
.dt-keep{margin:0}
.dt-table{width:100%}
.dt-table th[scope=row]{white-space:normal}
.dt-name{display:block}
.dt-sub{display:block;font-weight:400;font-size:var(--fs-sm);color:var(--muted)}
.dt-past{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-3)}
.dt-past li{border-top:1px solid var(--s-line-2);padding-top:var(--sp-3)}
.dt-past-head{display:flex;flex-wrap:wrap;gap:var(--sp-2);align-items:baseline}

/* lane quizlock (3.1219.0.x) — the course quiz as the last step of the outline: locked until every lesson is finished
   (Darren, 6 Nov 2026: "Locked and off to the side until the rest of the course was finished"). Theme tokens only. */
.acad-cqstep{display:flex;align-items:center;gap:var(--sp-2);box-sizing:border-box;width:100%;margin-top:var(--sp-3);
  padding:var(--sp-2) var(--sp-3);border-radius:var(--rad-in);border:1px dashed var(--s-line);background:var(--s-sunk);
  color:var(--ink-2);font:inherit;font-size:var(--fs-sm);text-align:left;line-height:1.35}
.acad-cqstep-ico{display:inline-flex;flex:0 0 auto;color:var(--muted)}
.acad-cqstep-t{flex:1 1 auto;min-width:0}
.acad-cqstep-t b{color:var(--ink);font-weight:600}
.acad-cqstep-locked{cursor:help}
.acad-cqstep-locked:focus-visible,.acad-cqstep-ready:focus-visible{outline:2px solid var(--s-focus);outline-offset:2px}
.acad-cqstep-ready{border-style:solid;border-color:var(--s-ok);background:var(--s-ok-soft);color:var(--ink);cursor:pointer;
  transition:box-shadow var(--dur-2) var(--ease-out)}
.acad-cqstep-ready .acad-cqstep-ico{color:var(--s-ok)}
.acad-cqstep-ready:hover{box-shadow:var(--sh-1)}
.acad-cqstep-go{flex:0 0 auto;font-weight:600;color:var(--blue-ink)}
.acad-cqstep-n{white-space:nowrap}

/* ---- FIND THE BUSINESS (lane createlookup, 7 November 2026) -------------------------------------------------------------
   public/bizlookup.js: the list under a create form's name box, and the boxes it filled. A filled box is tinted until the
   person types in it (then it is theirs); its source is in its hover text, never a paragraph. Theme tokens only. */
.bl-out{grid-column:1/-1;margin-top:4px}
.bl-out:empty{display:none;margin:0}
.bl-list{list-style:none;margin:4px 0 0;padding:0;max-height:260px;overflow-y:auto;border:1px solid var(--line);
  border-radius:var(--r);background:var(--panel)}
.bl-list>li{border-bottom:1px solid var(--line)}
.bl-list>li:last-child{border-bottom:0}
.bl-hit{display:block;width:100%;text-align:left;background:none;border:0;padding:8px 10px;font:inherit;color:var(--ink);
  cursor:pointer;line-height:1.35}
.bl-hit:hover,.bl-hit:focus,.bl-hit.bl-on{background:var(--tint);outline:none}
.bl-where{color:var(--ink);margin-left:6px}
.bl-src{display:block;color:var(--muted);font-size:var(--fs-xs)}
.bl-note,.bl-done{margin:6px 0 0;color:var(--muted);font-size:var(--fs-sm)}
.bl-done{color:var(--ok)}
.bl-note-inline{color:var(--muted)}
.bl-web{margin:6px 0 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bl-said{color:var(--muted);font-size:var(--fs-sm)}
.bl-filled{background:var(--tint)}
.bl-extras{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-top:6px}
.bl-extras:empty{display:none}
.bl-extra{display:flex;flex-direction:column;gap:2px;font-size:var(--fs-sm)}
.bl-gst{margin-left:6px;color:var(--muted);font-size:var(--fs-xs)}
/* lane lookupfresh — a newer value beside its box ("Use …"), the quiet check's status word, and "N newer details" by a name. */
.bl-sugg{display:inline-flex;margin:4px 0 0}
.bl-sugg .btn{font-size:var(--fs-xs);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bl-check{color:var(--muted)}
.bl-newer{margin-left:8px;vertical-align:middle;font-size:var(--fs-xs)}
.btn.bl-newer{color:inherit;background:transparent;border-color:currentColor}

/* ---- lane wsmerge (9 November 2026) — SETTINGS › USERS & ACCESS › MERGE WORKSPACES (public/apps/wsmerge.js) -----------------
   The two pickers side by side (stacked on a phone), the three totals and Merge Workspaces on one row, the tables below.
   Theme tokens only. */
.wsm-pick{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:var(--sp-4)}
.wsm-side{display:flex;flex-direction:column;gap:var(--sp-2);min-width:0}
.wsm-label{font-weight:600;color:var(--s-ink)}
.wsm-side .input{width:100%;box-sizing:border-box}
.wsm-hits{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-1);max-height:320px;overflow:auto}
.wsm-hit{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;background:var(--s-raised);color:var(--s-ink);
  border:1px solid var(--s-line-2);border-radius:var(--rad-in);padding:var(--sp-2) var(--sp-3);cursor:pointer;font:inherit}
.wsm-hit:hover,.wsm-hit:focus-visible{border-color:var(--s-focus)}
.wsm-hit b,.wsm-chosen b{overflow-wrap:anywhere}
.wsm-sub{display:block;font-weight:400;font-size:var(--fs-sm);color:var(--muted);overflow-wrap:anywhere}
.wsm-name{display:block;overflow-wrap:anywhere}
.wsm-chosen{display:flex;gap:var(--sp-3);align-items:center;justify-content:space-between;border:1px solid var(--s-line-2);
  border-radius:var(--rad-in);padding:var(--sp-2) var(--sp-3);min-width:0}
.wsm-chosen>div{min-width:0}
.wsm-none{margin:0}
.wsm-panel{display:flex;flex-direction:column;gap:var(--sp-3)}
.wsm-sum{display:flex;flex-wrap:wrap;gap:var(--sp-5)}
.wsm-total{display:flex;flex-direction:column-reverse}
.wsm-total b{font-size:var(--fs-2xl);line-height:1.1;color:var(--s-ink);font-weight:700}
.wsm-total span{font-size:var(--fs-sm);color:var(--muted)}
.wsm-after{margin:0;overflow-wrap:anywhere}
.wsm-act{display:flex;flex-wrap:wrap;gap:var(--sp-2);align-items:center}
.wsm-calc{margin:0}
.wsm-calc-tick{display:flex;gap:var(--sp-2);align-items:center;font-weight:600}
.wsm-table{width:100%}
.wsm-table td.num,.wsm-table th.num{text-align:right;white-space:nowrap}
.wsm-table th[scope=row]{font-weight:600;text-align:left;white-space:normal}
.wsm-stay{color:var(--s-warn)}
.wsm-list,.wsm-past{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-2)}
.wsm-past li{border-top:1px solid var(--s-line-2);padding-top:var(--sp-2)}
.wsm-past-head{display:flex;flex-wrap:wrap;gap:var(--sp-2);align-items:baseline}
/* lane wsclean (14 Nov 2026) — Workspace clean-up, Delete Workspace and the customer picker (public/apps/wsclean.js). Tokens only. */
.wsc-group{display:flex;flex-direction:column;gap:var(--sp-2);margin-bottom:var(--sp-4)}
.wsc-group-head{margin:var(--sp-2) 0 0;font-size:var(--fs-sm);color:var(--s-ink-2)}
.wsc-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2.6fr) auto;gap:var(--sp-3);align-items:start;
  border:1px solid var(--s-line-2);border-radius:var(--rad-in);padding:var(--sp-2) var(--sp-3);background:var(--s-raised);min-width:0}
.wsc-row.wsc-keep{border-color:var(--s-ok)}
.wsc-who{display:flex;flex-direction:column;gap:2px;min-width:0}
.wsc-chips{display:flex;flex-wrap:wrap;gap:var(--sp-1);margin-top:2px}
.wsc-chip{font-size:var(--fs-xs);padding:1px 8px;border-radius:999px;background:var(--s-sunk);color:var(--s-ink-2);white-space:nowrap}
.wsc-chip-keep{background:var(--s-ok-soft);color:var(--s-ok);align-self:flex-start}
.wsc-chip-placeholder,.wsc-chip-nameOnly,.wsc-chip-noCustomer,.wsc-chip-why{background:var(--s-warn-soft);color:var(--s-warn)}
.wsc-chip-retired,.wsc-chip-customerArchived,.wsc-chip-customerMerged{background:var(--s-bad-soft);color:var(--s-bad)}
.wsc-chip-platinum,.wsc-chip-staff{background:var(--s-accent-soft);color:var(--s-link)}
.wsc-facts{display:flex;flex-wrap:wrap;gap:var(--sp-1) var(--sp-4);margin:0;min-width:0}
.wsc-facts div{min-width:0}
.wsc-facts dt{font-size:var(--fs-xs);color:var(--s-muted)}
.wsc-facts dd{margin:0;white-space:nowrap}
.wsc-conn{display:inline-block;font-size:var(--fs-xs);padding:0 6px;margin:0 4px 2px 0;border:1px solid var(--s-line-2);border-radius:999px}
.wsc-acts{display:flex;flex-wrap:wrap;gap:var(--sp-1);align-items:center;justify-content:flex-end;max-width:260px}
.wsc-acts .save-status{flex-basis:100%;text-align:right}
@media (max-width:900px){
  .wsc-row{grid-template-columns:1fr}
  .wsc-acts{justify-content:flex-start;max-width:none}
  .wsc-acts .save-status{text-align:left}
}
.wsc-picker{display:flex;flex-direction:column;gap:var(--sp-2)}
.wsc-picker .input{width:100%;box-sizing:border-box}
.wsc-pick-hits{display:flex;flex-direction:column;gap:var(--sp-1);max-height:340px;overflow:auto}
.wsc-pick-staff{margin:var(--sp-2) 0 0}
.wsc-del,.wsc-confirm{display:flex;flex-direction:column;gap:var(--sp-2);min-width:0}
.wsc-del h4{margin:var(--sp-2) 0 0}
.wsc-warn,.wsc-members,.wsc-lines{margin:0;padding-left:1.2em;display:flex;flex-direction:column;gap:2px}
.wsc-warn li{color:var(--s-ink)}
.wsc-warn .wsc-warn-paid,.wsc-warn .wsc-warn-money,.wsc-warn .wsc-warn-simpro,.wsc-warn .wsc-warn-xero,.wsc-warn .wsc-warn-stripe{color:var(--s-warn)}
.wsc-refused{margin:0}
.wsc-confirm{border-top:1px solid var(--s-line-2);padding-top:var(--sp-3);margin-top:var(--sp-2)}
.wsc-confirm .input{width:100%;box-sizing:border-box}
.wsc-done{display:flex;flex-direction:column;gap:var(--sp-2)}
.wsc-multi{margin:0;padding:var(--sp-1) var(--sp-3);border-radius:var(--rad-in);background:var(--s-accent-soft);color:var(--s-ink)}
/* lane fqmaybe (10 Nov 2026): Field Quoting settings, Travel's typed base address under its choices. */
.fqs-tvaddr { margin-top: 12px; }
/* lane fqdecide (10 Nov 2026): Field Quoting settings, Travel's Bands table: km, charge, quantity and Remove in a row. */
.fqs-tvbands { margin-top: 12px; }
.fqs-tvb input[type=number] { width: 6.5em; }
.fqs-tvb .fqs-tvb-ch { min-width: 10em; max-width: 100%; }
/* On a phone each band is a card: Charge across the top, then Up to km, Quantity and Remove, each with its own small label. */
@media (max-width: 520px) {
  .fqs-tvb thead { display: none; }
  .fqs-tvb, .fqs-tvb tbody { display: block; width: 100%; }
  .fqs-tvb tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px 12px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--s-line-2); }
  .fqs-tvb.tbl td, .fqs-tvb td { display: block; padding: 0; border: 0; background: none; }
  .fqs-tvb td.fqs-tvb-c { grid-column: 1 / -1; order: -1; }
  .fqs-tvb td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-xs); color: var(--s-muted); margin-bottom: 2px; }
  .fqs-tvb .fqs-tvb-ch { min-width: 0; width: 100%; }
  .fqs-tvb input[type=number] { width: 100%; box-sizing: border-box; }
  .fqs-tvb td:last-child { justify-self: end; white-space: nowrap; }
}
/* lane fqmaybe (10 Nov 2026): Field Quoting settings, Other Ways to Pay's words box, the panel's full width. */
.fqs-wide { display: block; }
.fqs-wide textarea { width: 100%; box-sizing: border-box; min-height: 96px; resize: vertical; }

/* ---- lane commscompact (10 November 2026) — THE COMMUNICATIONS DRAWER, COMPACT ----------------------------------------------
   Darren, with a picture of the drawer (Website tab, History, a web chat open) at 1912x1070 and 150% scaling: "This is all
   taking up too much room. We can't see or read anything. How do we fix this? For example mark all as seen does not need a full
   line. There is so much wasted space." The messages were one line tall: everything above them was a row of its own, with
   large gaps. Every strip is one short row now, and the messages get the rest (test/v3121960commscompact). Theme tokens only. */
/* 1. The head: one row. The phone is a short chip; its sentence (callers see …, calls recorded) is the hover (phone.js). */
#cm-drawer .cm-head{padding:3px 8px 3px 14px;gap:8px}
#cm-drawer .cm-head h2{font-size:var(--fs-md)}
#cm-drawer .cm-head .btn.small{height:26px;padding:0 10px;display:inline-flex;align-items:center;font-size:var(--fs-xs);white-space:nowrap}
#cm-drawer .cm-ph-state{font-size:var(--fs-xs);padding:2px 8px;border:1px solid var(--line);border-radius:999px;background:var(--panel)}
/* 2. The tabs: tighter, and Mark all seen at their right-hand end (public/msgseen.js), pinned there while the row scrolls. */
#cm-drawer .cm-tabs{padding:0 8px;gap:0;align-items:center}
#cm-drawer .cm-tab{padding:4px 8px;font-size:var(--fs-sm)}
#cm-drawer .cm-tab .cm-n{line-height:16px;min-width:16px}
#cm-drawer .cm-tabs > .cm-seen-all{position:sticky;right:0;margin-left:auto;padding:0 0 0 8px;display:inline-flex;align-items:center;
  gap:6px;flex:none;background:var(--panel);white-space:nowrap}
#cm-drawer .cm-tabs > .cm-seen-all:empty{display:none}
#cm-drawer .cm-tabs > .cm-seen-all .btn{height:26px;padding:0 8px;font-size:var(--fs-xs)}
#cm-drawer .cm-tabs > .cm-seen-all .cm-seen-said{font-size:var(--fs-xs)}
/* 3. The filters: one row, 28px controls; the search box takes what is left, not the whole width. */
#cm-drawer .cm-tools{padding:3px 10px;gap:6px;flex-wrap:nowrap;align-items:center;overflow-x:auto;scrollbar-width:none}
#cm-drawer .cm-tools > *{flex:none}
#cm-drawer .cm-tools .btn,#cm-drawer .cm-tools select,#cm-drawer .cm-tools input{height:28px;min-height:0;box-sizing:border-box;font-size:var(--fs-xs)}
#cm-drawer .cm-tools .btn{padding:0 8px;display:inline-flex;align-items:center}
#cm-drawer .cm-tools select{padding:0 6px}
#cm-drawer .cm-tools input#cm-q{flex:1 1 160px;min-width:110px;max-width:340px;padding:0 8px}
/* 4. The list: Choose all and the Website chips share one pinned row (the chips scroll sideways); the bulk buttons show once
   something is ticked; the rows fit the column — never a sideways scroll bar, a long name ends in an ellipsis. */
#cm-drawer .cm-left > .cm-body{overflow-x:hidden;padding:0 6px 12px}
#cm-drawer .cm-body > .cm-listbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:6px;min-width:0;
  padding:5px 0;margin:0 0 2px;background:var(--panel);box-shadow:0 6px 8px -8px var(--line)}
#cm-drawer .cm-listbar > .ib-bulk{position:static;flex:none;margin:0;box-shadow:none;padding:0;gap:6px;border:0;background:none;
  display:flex;align-items:center;flex-wrap:nowrap}
#cm-drawer .cm-listbar > .ib-bulk .btn{height:26px;padding:0 8px;font-size:var(--fs-xs);display:inline-flex;align-items:center}
#cm-drawer .cm-listbar > .ib-bulk .btn[data-pick-act][disabled],#cm-drawer .cm-listbar > .ib-bulk .ib-bulkn[data-n="0"]{display:none}
#cm-drawer .cm-listbar > .cm-websub{flex:1 1 auto;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;
  padding:0;border:0;background:none;gap:4px}
#cm-drawer .cm-listbar > .cm-websub::-webkit-scrollbar,#cm-drawer .cm-tools::-webkit-scrollbar{display:none}
#cm-drawer .cm-listbar .cm-chip{height:24px;padding:0 8px;font-size:var(--fs-xs);flex:none}
#cm-drawer .cm-listbar:empty{display:none}
#cm-drawer .cm-list,#cm-drawer .cm-li,#cm-drawer .cm-li-b{min-width:0;max-width:100%}
#cm-drawer .cm-li-b{padding:6px 6px 6px 0;gap:0 8px;grid-template-columns:30px minmax(0,1fr) auto}
#cm-drawer .cm-li-b .cm-lb{width:28px;height:28px;font-size:var(--fs-sm)}
#cm-drawer .cm-li-tick{width:26px}
#cm-drawer .cm-li-who{display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden}
/* The name gives way last: the muted probably … and Waiting for customer to reply shrink first (their words are hovers). */
#cm-drawer .cm-li-who > b{min-width:min(7.5em,45%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto}
#cm-drawer .cm-li-who > .cm-waiting,#cm-drawer .cm-li-who > .cm-li-guess{flex:0 50 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#cm-drawer .cm-li-peek{font-size:var(--fs-xs)}
/* 5. The conversation's head: one row — name (and Waiting for customer to reply) over the number, Call, then More. */
#cm-drawer .cm-conv-h{padding:3px 10px;gap:8px;flex-wrap:nowrap}
#cm-drawer .cm-conv-h > .cm-av.big,#cm-drawer .cm-conv-h > .cm-face{width:32px;height:32px;font-size:var(--fs-xs);flex:none}
#cm-drawer .cm-conv-who{flex:1 1 auto;min-width:0}
#cm-drawer .cm-conv-nm{font-size:var(--fs-md);line-height:1.3;white-space:nowrap;display:flex;align-items:center;gap:4px;min-width:0}
#cm-drawer .cm-conv-nm > .edge-badge{flex:none}
#cm-drawer .cm-conv-wait{margin:0;display:inline-flex;flex:0 1 auto;min-width:0}
#cm-drawer .cm-conv-wait .cm-waiting{padding:0 6px;min-width:0;overflow:hidden;text-overflow:ellipsis}
#cm-drawer .cm-conv-sub{line-height:1.3}
#cm-drawer .cm-conv-acts{flex:none;flex-wrap:nowrap;gap:4px;align-items:center}
#cm-drawer .cm-conv-acts > .btn,#cm-drawer .cm-conv-acts > .cm-more > .btn,#cm-drawer .cm-oncall{height:28px;padding:0 9px;font-size:var(--fs-xs)}
#cm-drawer .cm-more{position:relative;display:inline-flex}
#cm-drawer .cm-more-menu{position:absolute;top:calc(100% + 4px);right:0;z-index:30;display:flex;flex-direction:column;gap:2px;
  min-width:200px;max-width:min(300px,calc(100vw - 24px));padding:6px;background:var(--panel);border:1px solid var(--line);
  border-radius:10px;box-shadow:0 10px 30px -10px var(--ink)}
#cm-drawer .cm-more-menu[hidden]{display:none}
#cm-drawer .cm-more-menu .btn,#cm-drawer .cm-more-menu button{display:flex;width:100%;height:auto;min-height:32px;justify-content:flex-start;
  align-items:center;text-align:left;white-space:nowrap;margin:0;padding:6px 10px;border-color:transparent;background:none;font-size:var(--fs-sm)}
#cm-drawer .cm-more-menu .btn:hover,#cm-drawer .cm-more-menu button:hover{background:var(--blue-lt)}
/* Looks like Marco at Westside Sparks and its three presses: on the head's second line, in place of the muted probably …
   it repeats (public/comms.js sugHtml). It wraps under the name rather than being cut off when the head is narrow. */
#cm-drawer .cm-conv-sub:has(.cm-sugwrap){display:flex;align-items:center;flex-wrap:wrap;gap:2px 6px;white-space:normal;overflow:visible}
#cm-drawer .cm-conv-sub:has(.cf-sug) > .cm-li-guess{display:none}
#cm-drawer .cm-sugwrap{display:inline-flex;flex:1 1 auto;min-width:0;max-width:100%}
#cm-drawer .cm-sugwrap .cf-sug{flex:1 1 auto;flex-wrap:wrap;margin:0;padding:0;gap:2px 6px;min-width:0;border:0;background:none;color:var(--ink)}
#cm-drawer .cm-sugwrap .cf-sug-words{flex:1 1 6em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#cm-drawer .cm-sugwrap .cf-sug-words .hint{display:none}
#cm-drawer .cm-sugwrap .cf-sug-acts{flex:none;max-width:100%;flex-wrap:wrap;gap:4px}
#cm-drawer .cm-sugwrap .btn{height:20px;min-height:0;padding:0 7px;font-size:var(--fs-xs);display:inline-flex;align-items:center}
/* 6. One kind of message in the conversation: no All 6 · Web chat 6 row. Several: a slim one. */
#cm-drawer .cm-conv > .cm-chips.cm-chips-one{display:none}
#cm-drawer .cm-conv > .cm-chips{padding:3px 10px;gap:4px}
#cm-drawer .cm-conv > .cm-chips .cm-chip{height:22px;padding:0 8px;font-size:var(--fs-xs)}
/* 7. The AI summary: one line (AI summary and its first sentence) until pressed; all of it is the line's hover. */
#cm-drawer .cm-convbrief{padding:2px 10px;margin:0}
#cm-drawer .cm-brief-line{display:flex;align-items:center;gap:6px;width:100%;min-width:0;margin:0;padding:2px 8px;border:1px solid var(--line);
  border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-size:var(--fs-xs);text-align:left;cursor:pointer}
#cm-drawer .cm-brief-line:hover,#cm-drawer .cm-brief-line:focus-visible{border-color:var(--blue)}
#cm-drawer .cm-brief-line > b{flex:none}
#cm-drawer .cm-brief-first{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:italic;color:var(--muted)}
#cm-drawer .cm-brief-more{flex:none;color:var(--muted)}
#cm-drawer .cm-convbrief .cm-brief{font-size:var(--fs-sm);padding:6px 10px}
#cm-drawer .cm-convbrief .cm-brief-fold{float:right;margin:4px 0 0 8px}
/* 8. The messages: a little tighter. */
#cm-drawer .cm-msgs{padding:6px 10px}
#cm-drawer .cm-msgs .cm-row{margin:3px 0}
/* 9. The reply: one toolbar row over the box (Reply by, Scripts, AI Draft, Send) for a text or chat; the box grows as it is
   typed in, from one line, until the slide bar has been used (then the bar's height holds). */
#cm-drawer .cm-right .cm-reply{padding:4px 10px 5px;container-type:inline-size}
#cm-drawer .cm-reply-top{align-items:center;gap:4px 6px;margin:0 0 4px}
#cm-drawer .cm-reply-top .cm-send{height:28px;padding:0 14px}
#cm-drawer .cm-reply-top .cm-subj{height:28px}
#cm-drawer .cm-reply-one > .cm-reply-tools{flex:0 1 auto;min-width:0;margin:0;align-items:center}
#cm-drawer .cm-reply-one > .cm-reply-tools > .rs-bar{flex-wrap:nowrap;margin:0}
#cm-drawer .cm-reply-one .cm-send-said{flex:0 1 auto;text-align:left}
#cm-drawer .cm-reply-tools{margin:0 0 4px}
#cm-drawer .cm-reply .rs-bar .rs-pick,#cm-drawer .cm-reply .rs-suggest,#cm-drawer .cm-reply .rs-bar .btn{height:28px;min-height:0}
#cm-drawer .cm-right .cm-reply-row textarea{min-height:34px;max-height:40vh;field-sizing:content;resize:none;padding-top:6px;padding-bottom:6px}
#cm-drawer.cm-reply-sized .cm-right .cm-reply-row textarea{field-sizing:fixed}
/* A phone: the filters may wrap (they are hidden while a conversation is open); the head buttons stay a finger tall. */
/* A narrow conversation (a phone, or the Full page's middle column): the head's second line (the number, or Looks like … with
   its presses) takes the full width under the name and the buttons, rather than being squeezed beside them. */
#cm-drawer .cm-conv{container-type:inline-size}
@container (max-width:620px){
  #cm-drawer .cm-conv-h{flex-wrap:wrap;row-gap:2px}
  #cm-drawer .cm-conv-who{display:contents}
  #cm-drawer .cm-conv-nm{flex:1 1 0;min-width:0;overflow:hidden}
  #cm-drawer .cm-conv-who > .cm-conv-sub{order:1;flex:1 1 100%;min-width:0}
  #cm-drawer .cm-conv-acts{order:0;flex:none;margin-left:auto}
  #cm-drawer .cm-conv-h > .cm-pickbar{order:2}
}
@media (max-width:640px){
  #cm-drawer .cm-sugwrap .btn{height:auto;min-height:32px;padding:0 10px;font-size:var(--fs-xs)}
  #cm-drawer .cm-tools{flex-wrap:wrap;overflow:visible}
  #cm-drawer .cm-tools input#cm-q{flex:1 1 100%;max-width:none}
  #cm-drawer .cm-conv-acts > .btn,#cm-drawer .cm-conv-acts > .cm-more > .btn{min-height:36px}
  #cm-drawer .cm-reply-one{flex-wrap:wrap}
}
/* The filters' search box and dropdowns are the house ones (public/ui.js search-field, public/lbox.js): the same 28px. */
#cm-drawer .cm-tools .search-field{flex:1 1 160px;min-width:110px;max-width:340px}
/* The house search box is 40px with 16px words, !important (theme.css), so every box matches and a phone does not zoom in
   on it. In this one row, on a desktop, it is the row's 28px; on a phone it keeps the house size. */
@media (min-width:641px){
  #cm-drawer .cm-tools .search-field>input.sf-in{height:28px !important;min-height:0 !important;font-size:var(--fs-sm) !important;
    padding-left:30px !important}
  #cm-drawer .cm-tools .search-field .sf-icon{left:9px;width:14px;height:14px;margin-top:-7px}
  #cm-drawer .cm-tools .search-field .sf-kbd{height:18px;min-width:18px;margin-top:-9px;line-height:15px}
}
#cm-drawer .cm-tools .lbx-trigger{height:28px;min-height:0;padding:0 8px;font-size:var(--fs-xs)}
#cm-drawer .cm-tools .lbx-trigger svg{width:14px;height:14px}
#cm-drawer .cm-tools .cm-vbtn{font-size:var(--fs-xs)}
/* Each message's own buttons (Create Enquiry, Add to enquiry, Add to to-do …): small, so the words get the room. */
#cm-drawer .cm-msgs .cm-actions{margin-top:4px;gap:4px;row-gap:4px}
#cm-drawer .cm-msgs .cm-actions .btn{height:24px;min-height:0;padding:0 8px;font-size:var(--fs-xs);display:inline-flex;align-items:center}
/* Reply by: one line of small chips. */
#cm-drawer .cm-reply .rb{margin:0;flex-wrap:nowrap;gap:4px 6px}
#cm-drawer .cm-reply .rb-btns{flex-wrap:nowrap}
#cm-drawer .cm-reply .rb-b{padding:3px 8px;font-size:var(--fs-xs)}
/* The full page: the details pane steps behind Details until the screen is wide enough for three columns AND a readable
   conversation (it was 1180px, before the app's own menu took its share; now 1366px). */
@media (max-width:1366px){
  .cm-drawer.cm-page .cm-split{grid-template-columns:var(--cm-left,minmax(240px,32%)) 7px minmax(0,1fr)}
  .cm-drawer.cm-page .cm-side{display:none}
  .cm-drawer.cm-page .cm-side-btn,.cm-drawer.cm-page .cm-side-back{display:inline-flex}
  .cm-drawer.cm-page .cm-split.show-side .cm-right{display:none}
  .cm-drawer.cm-page .cm-split.show-side .cm-side{display:block;grid-column:3;border-left:0}
  .cm-drawer.cm-page .cm-side-back{margin:0 0 10px;width:auto;height:auto;padding:4px 10px;font-size:var(--fs-sm)}
}
@media (max-width:860px){
  .cm-drawer.cm-page .cm-split{grid-template-columns:minmax(0,1fr)}
  .cm-drawer.cm-page .cm-split.show-side .cm-side{grid-column:1}
}
/* A narrow conversation (the full page's middle column): the words Reply by give way (the group keeps them as its name for a
   screen reader) and Scripts is narrower, so the toolbar stays one row. */
/* The list dragged very narrow (v3.1178.0's rule, kept over this block's own): the time and the badge go under the name. */
@container (max-width:320px){
  #cm-drawer .cm-li-b{grid-template-columns:30px minmax(0,1fr)}
  #cm-drawer .cm-li-who{flex-wrap:wrap;row-gap:2px}
  #cm-drawer .cm-li-who > b{flex-basis:100%;min-width:0}
}
@container (max-width:600px){
  #cm-drawer .cm-reply-one .rb-lbl{display:none}
  #cm-drawer .cm-reply-one .rs-bar .rs-pick{max-width:100px}
}
@media (max-width:640px){
  #cm-drawer .cm-sugwrap .cf-sug,#cm-drawer .cm-sugwrap .cf-sug-acts{flex-wrap:wrap}
  #cm-drawer .cm-reply .rb,#cm-drawer .cm-reply .rb-btns{flex-wrap:wrap}
}
/* lane bec8stages (0543, 10 Nov 2026) — Waiting, beside the stages and on the board row; one chip per booking. Tokens only. */
.enq-wait{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 6px;flex:0 1 auto;max-width:100%;margin-left:6px}
.enq-wait-lab{font-size:var(--fs-xs);font-weight:600;color:var(--muted)}
.enq-wait select{font-size:var(--fs-xs);padding:3px 6px;max-width:240px}
.enq-wait-for{font-size:var(--fs-xs);color:var(--muted);white-space:nowrap}
.enq-wait-on .enq-wait-for{color:var(--s-warn,var(--muted));font-weight:600}
.enq-wait-pill{display:inline-block;font-size:var(--fs-xs);font-weight:600;padding:1px 8px;border-radius:999px;white-space:nowrap;
  color:var(--s-warn,var(--muted));border:1px solid color-mix(in srgb,var(--s-warn,var(--muted)) 40%,transparent);
  background:color-mix(in srgb,var(--s-warn,var(--muted)) 10%,transparent)}
.tl-step.tl-bk-off{opacity:.6;text-decoration:line-through}
/* ---- lane bec1110cards (Bec, 10 Nov 2026) — From, To, Cc and when on every message card -----------------------------
   One small line under the card's head (public/inboxaipanel.js metaLineHtml). It wraps only when it must, and a long
   address breaks rather than pushing the card wider than its column. Hidden with the rest of the card in compact view. */
.ia-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px;margin:4px 0 2px;font-size:var(--fs-xs);color:var(--muted);
  line-height:1.45;min-width:0;overflow-wrap:anywhere}
.ia-meta .ia-mf{min-width:0}
.ia-meta .ia-mf b{color:var(--ink);font-weight:700;margin-right:2px}
.ia-meta .ia-mt{color:var(--ink);white-space:nowrap}
.ib-compact .ia-row:not(.ia-expanded) .ia-meta{display:none}
.cm-stamp time{white-space:nowrap}

/* lane grantfree (3.1220) — Grant Free Access on a workspace (public/freegrant.js): the window, the Free access list and a
   workspace's grants on the customer record. Theme tokens only. */
.fg-form fieldset{border:1px solid var(--line);border-radius:var(--rad-in);padding:var(--sp-2) var(--sp-3);margin:0 0 var(--sp-3);min-width:0}
.fg-form legend{font-weight:600;padding:0 4px}
.fg-form .fg-apps{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:4px var(--sp-3)}
.fg-form .fg-len{display:flex;flex-wrap:wrap;gap:6px var(--sp-3);align-items:center}
.fg-form .fg-tick{display:flex;align-items:center;gap:6px;min-height:32px;cursor:pointer}
.fg-form .fg-tick input[type="date"]{margin-left:4px}
.fg-form .fg-reason input{width:100%;max-width:560px}
.fg-form .fg-for{font-size:var(--fs-md);margin:0 0 var(--sp-3)}
.fg-form .fg-pick{list-style:none;margin:0 0 var(--sp-3);padding:0;display:grid;gap:4px}
.fg-form .fg-go{display:flex;flex-wrap:wrap;gap:var(--sp-2);align-items:center}
.fg-form .fg-go .save-status,.fg-act .save-status,.fg-ws-act .save-status,.fg-panel .bi-actions .save-status{margin:0 0 0 var(--sp-2)}
.fg-act{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px}
.fg-ws-slot:empty{display:none}
.fg-ws-list{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:4px}
.fg-ws-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;border-top:1px dashed var(--line);padding-top:4px}
.fg-ws-what{min-width:0;overflow-wrap:anywhere}
.fg-ws-act{margin:6px 0 0}
.fg-gone{opacity:.45}
.fg-grid{width:100%;table-layout:auto}
.fg-grid td{vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.fg-grid td:nth-child(4){min-width:200px}
.fg-grid td.fg-cell-act{white-space:nowrap;width:1%}
.fg-find input[data-fg-q]{width:100%;max-width:560px}
@media (max-width:640px){
  .fg-grid thead{display:none}
  .fg-grid,.fg-grid tbody,.fg-grid tr,.fg-grid td{display:block;width:auto}
  .fg-grid tr{border-top:1px solid var(--line);padding:var(--sp-2) 0}
  .fg-grid td{border:0;padding:2px 0;min-width:0}
  .fg-grid td:nth-child(4){min-width:0}
  .fg-grid td[data-l]:not(:first-child)::before{content:attr(data-l) ": ";color:var(--muted);font-size:var(--fs-xs)}
  .fg-grid td.fg-cell-act{width:auto;padding-top:var(--sp-2)}
}

/* ---- lane bec1111book (3.1221) — ENQUIRY SECTIONS FOLD, AND START FOLDED ------------------------------------------------
   Bec, 11 Nov 2026 (item 18): "Enquiry sections collapsible, collapsed by default." A folded block (public/enqblocks.js
   FOLDABLE) shows its heading and count only. The caret button before the heading (and the heading's words) open and fold
   it; the caret is drawn in the heading's own colour (currentColor), so the area colours above still read. */
.enq-block.enq-folded > :not(.enq-head){display:none}
.enq-block.enq-folded > .enq-head{margin-bottom:0}
.enq-block > .enq-head:has(> .enq-fold) > h3{cursor:pointer;user-select:none}
.enq-fold{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0 -4px 0 -4px;padding:0;
  border:0;background:transparent;color:var(--area,var(--blue-dark));cursor:pointer;border-radius:var(--r);flex:none}
.enq-fold::before{content:"";width:0;height:0;border-left:6px solid currentColor;border-top:5px solid transparent;
  border-bottom:5px solid transparent;transition:transform var(--dur-1) var(--ease-out)}
.enq-fold[aria-expanded="true"]::before{transform:rotate(90deg)}
.enq-fold:hover{background:var(--panel-2)}
.enq-fold:focus-visible{outline:2px solid currentColor;outline-offset:1px}
html[data-theme="dark"] .enq-fold{color:var(--area,var(--blue))}

/* ---- lane bec1111book (3.1221) — "To job" and "From job" in the on-site travel box (Bec, item 21; public/booksheet.js
   travelLinesHtml). One row each, the label left and the choice right, in line with the money lines under them. */
.bs-travsets{display:flex;flex-direction:column;gap:4px;margin:6px 0 2px}
.bs-travset{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0}
.bs-travset > span{font-weight:600}
.bs-travset select{width:auto;min-width:9em;padding:2px 6px}

/* lane bec1111book (3.1221) — a folded section has no empty strip under its heading band; the invoice line's Booking date
   (Bec, item 19) is wide enough to read the day it names. */
.enq-rec .enq-block.enq-folded,.enq-block.enq-folded{padding-bottom:0}
.qline-bdate select{min-width:14em}
/* lane bec1111book (3.1221) — folded, the band is the whole card: no gap under it, and its corners round at the bottom too. */
.enq-rec .panel.sub[data-enq-block].enq-folded > .enq-head{margin-bottom:0;border-radius:calc(var(--r) - 1px);box-shadow:none}
/* ---- 3.1221 (lane bec1111comms) — Bec, PCA CRM Updates 11.11.26, items 1, 3, 6, 7 and 8. Theme tokens only. ---------------
   1. An email as it was sent (public/mailframe.js): the app's rim around the email's own light paper, in both themes. */
.mf-wrap{margin-top:6px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--panel);max-width:100%}
.mf-frame{display:block;width:100%;min-height:60px;border:0;background:transparent;color-scheme:light}
/* 3. The full page's details pane folds to a strip and opens again (remembered per person). Only where it sits beside the
   conversation; narrower, it is behind the Details button already. */
.cm-side-fold{display:none}
@media (min-width:1181px){
  .cm-drawer.cm-page .cm-split:not(.cm-3col) .cm-side-fold{display:inline-flex;align-items:center;gap:6px;float:right;margin:-4px -6px 6px 8px;
    padding:3px 8px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--muted);font:inherit;font-size:var(--fs-xs);cursor:pointer}
  .cm-drawer.cm-page .cm-split:not(.cm-3col) .cm-side-fold:hover{color:var(--ink);border-color:var(--grey-mid)}
  .cm-drawer.cm-page .cm-split.cm-sideshut:not(.cm-3col){grid-template-columns:var(--cm-left,minmax(340px,27%)) 7px minmax(0,1fr) 44px}
  .cm-drawer.cm-page .cm-split.cm-sideshut:not(.cm-3col) .cm-side{padding:10px 4px;overflow:hidden}
  .cm-drawer.cm-page .cm-split.cm-sideshut:not(.cm-3col) .cm-side > :not(.cm-side-fold){display:none}
  .cm-drawer.cm-page .cm-split.cm-sideshut:not(.cm-3col) .cm-side-fold{float:none;margin:0 auto;flex-direction:column;padding:8px 4px;
    writing-mode:vertical-rl;border-radius:999px;color:var(--accent-ink);font-weight:700}
  .cm-drawer.cm-page .cm-split.cm-sideshut:not(.cm-3col) .cm-side-fold > span[aria-hidden]{writing-mode:horizontal-tb}
}
/* 6. Add to Customer / Add to Contact, and what happened, beside them. */
.cm-actions .mat-b{white-space:nowrap}
.mat-said{font-size:var(--fs-xs);color:var(--muted);white-space:nowrap}
.mat-said:empty{display:none}
.mat-said.bad{color:var(--danger);white-space:normal}
/* 7. "Bec replied" / "On Bec's to-do": on the message (like "On … to-do") and, small, on the person's line in the list. */
.cm-replied{color:var(--ok);font-weight:600}
.cm-li-hand{display:inline-block;margin-right:4px;padding:0 7px;border-radius:999px;border:1px solid var(--line);background:var(--bg);
  color:var(--muted);font-size:var(--fs-xs);font-weight:600;line-height:16px;white-space:nowrap;vertical-align:1px}
/* 8. The customer's Communications chip: Emails, Calls and Texts, each with its count. */
.dir-ccx-chips{margin:0 0 10px}
.dir-ccx-n{display:inline-block;min-width:16px;margin-left:4px;padding:0 5px;border-radius:999px;background:var(--bg);color:var(--muted);
  font-size:var(--fs-xs);line-height:16px;text-align:center}
.chip.on .dir-ccx-n{background:var(--panel);color:var(--ink)}
/* On a phone: Mark all seen sat pinned over the end of the tab row, covering a tab. The tabs wrap onto a second row instead
   (every tab in view, no sideways scroll), and Mark all seen ends the last row beside them, over nothing. */
@media (max-width:600px){
  #cm-drawer .cm-tabs{flex-wrap:wrap;overflow-x:visible;row-gap:0}
  #cm-drawer .cm-tabs > .cm-seen-all{position:static;margin-left:auto;padding:2px 0 2px 8px}
}
/* lane segroups (14 Nov 2026) — Admin Settings › People › Security Groups (public/apps/fqgroups.js), board 17i. Tokens only. */
#fqs-groups{margin-top:16px}
.sg-wrap{display:grid;grid-template-columns:minmax(220px,300px) 1fr;gap:16px;align-items:start}
.sg-list{display:grid;gap:8px;align-content:start}
.sg-h{margin:8px 0 2px;font-size:var(--fs-xs);font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--s-muted)}
.sg-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:var(--s-panel);color:var(--s-ink);border:1px solid var(--s-line);border-radius:var(--rad);padding:10px 14px;cursor:pointer;font:inherit}
.sg-item b{flex:1;min-width:0;font-weight:800}
.sg-item span{font-size:var(--fs-sm);color:var(--s-muted);font-weight:600;white-space:nowrap}
.sg-item.on{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}
.sg-item:focus-visible{outline:2px solid var(--accent,var(--blue));outline-offset:2px}
.sg-edit{display:grid;gap:12px;min-width:0}
.sg-top{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}
.sg-top .sg-gname{flex:1 1 220px;margin:0}
.sg-people{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.sg-faces{display:inline-flex;padding-left:8px}
.sg-av{width:34px;height:34px;border-radius:50%;background:var(--s-accent-soft,var(--blue-lt));color:var(--blue-ink);font-size:var(--fs-xs);font-weight:800;display:inline-flex;align-items:center;justify-content:center;border:2px solid var(--s-panel);margin-left:-8px}
.sg-pc{color:var(--s-muted);font-weight:600}
.sg-secs{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.sg-sec{background:var(--s-panel);border:1px solid var(--s-line);border-radius:var(--rad);padding:6px 14px}
.sg-row{min-height:46px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--s-line);font-weight:600;flex-wrap:wrap}
.sg-row:last-child{border-bottom:0}
.sg-row>span:first-child{flex:1 1 0;min-width:0}
.sg-sub>span:first-child{padding-left:14px;font-weight:500;color:var(--s-muted)}
.sg-bizoff>span:first-child{color:var(--s-muted)}
.sg-offw{font-size:var(--fs-xs);color:var(--s-muted);font-weight:600}
.sg-limw{display:inline-flex;align-items:center;gap:4px;font-size:var(--fs-sm);color:var(--s-muted)}
.sg-limk{margin-right:2px}
.sg-lim{width:64px;min-height:34px;padding:4px 8px;border:1px solid var(--s-line);border-radius:var(--r);background:var(--s-panel);color:var(--s-ink);text-align:right}
.sg-money{width:92px}
.sg-rsaid{flex-basis:100%;margin:0 0 6px;text-align:right;min-height:0}
.sg-rsaid:empty{display:none}
html body input.sg-sw[type=checkbox]{appearance:none;-webkit-appearance:none;flex:0 0 auto;width:44px;min-width:44px;height:26px;margin:0;border-radius:999px;background:color-mix(in srgb,var(--s-muted) 40%,var(--s-panel));position:relative;cursor:pointer}
html body input.sg-sw[type=checkbox]::after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--s-panel)}
html body input.sg-sw[type=checkbox]:checked{background:var(--ok)}
html body input.sg-sw[type=checkbox]:checked::after{transform:translateX(18px)}
html body input.sg-sw[type=checkbox].sg-lock:checked{background:color-mix(in srgb,var(--ok) 55%,var(--s-panel))}
html body input.sg-sw[type=checkbox]:disabled{cursor:not-allowed}
html body input.sg-sw[type=checkbox]:disabled:not(:checked){opacity:.55}
html body input.sg-sw[type=checkbox]:focus-visible{outline:2px solid var(--accent,var(--blue));outline-offset:2px}
.sg-plain{margin:0}
.sg-biz{margin-top:14px;border:1px solid var(--s-line);border-radius:var(--rad);padding:8px 14px;background:var(--s-panel)}
.sg-biz>summary{cursor:pointer;font-weight:800;padding:4px 0}
.sg-biz .sg-sec{border:0;padding:0}
.sg-pick{display:grid;gap:6px;max-height:50vh;overflow:auto}
@media (max-width:760px){
  .sg-wrap{grid-template-columns:1fr}
  .sg-limk{display:none}
  .sg-row{flex-wrap:nowrap}
  .sg-rsaid{position:absolute;right:56px;margin:0;background:var(--s-panel)}
  .sg-row{position:relative}
  .sg-secs{grid-template-columns:1fr}
}

/* lane sejobcard (14 Nov 2026): Site Estimator settings, Allowances: name, amount, per and Remove in a row; on a phone each is a card. */
.fqs-al { width: 100%; border-collapse: collapse; margin-top: 8px; }
.fqs-al th { text-align: left; font-size: var(--fs-xs); color: var(--s-muted); font-weight: 600; padding: 4px 8px 4px 0; }
.fqs-al td { padding: 4px 8px 4px 0; vertical-align: middle; }
.fqs-al input[type=text] { width: 100%; box-sizing: border-box; }
.fqs-al .fqs-al-amt { width: 7em; }
.fqs-al td:last-child { white-space: nowrap; text-align: right; }
.fqs-ask { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--s-ink); }
@media (max-width: 520px) {
  .fqs-al thead { display: none; }
  .fqs-al, .fqs-al tbody { display: block; width: 100%; }
  .fqs-al tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--s-line-2); }
  .fqs-al td { display: block; padding: 0; }
  .fqs-al td:first-child { grid-column: 1 / -1; }
  .fqs-al td:last-child { grid-column: 1 / -1; text-align: left; }
  .fqs-al .fqs-al-amt { width: 100%; }
  .fqs-al td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-xs); color: var(--s-muted); margin-bottom: 2px; }
}

/* lane seforms (board 17d) — Admin Settings › Forms: when a form is required (public/apps/fqformrules.js). Theme tokens only. */
.fqfr h2{margin:0 0 6px}
.fqfr-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
@media (max-width:900px){.fqfr-cols{grid-template-columns:minmax(0,1fr)}}
.fqfr-col{display:grid;gap:8px;align-content:start;min-width:0}
.fqfr-group{margin:10px 0 2px;font-size:var(--fs-xs);font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--s-muted)}
.fqfr-rules{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.fqfr-rule{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:10px 12px;border:1px solid var(--s-line);border-radius:12px;background:var(--s-panel);cursor:pointer}
.fqfr-rule:hover,.fqfr-rule:focus-visible{border-color:var(--blue)}
.fqfr-rule b{flex:1 1 180px;min-width:0}
.fqfr-rule span{color:var(--s-muted);font-size:var(--fs-sm)}
.fqfr-off{opacity:.6}
.fqfr-seg{display:flex;gap:6px;flex-wrap:wrap}
.fqfr-win h3{margin:8px 0 2px;font-size:var(--fs-sm)}
.fqfr-opts{display:flex;gap:8px;flex-wrap:wrap}
.fqfr-opt{flex:1 1 210px;min-height:58px;border-radius:14px;border:1.5px solid var(--s-line);background:var(--s-panel);color:var(--s-ink);padding:8px 12px;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:2px;font:inherit;cursor:pointer}
.fqfr-opt span:first-child{font-weight:800;white-space:nowrap}   /* fix 31222-colour: a choice's name never wraps (SPEC rule 6); at 390 px the choices stack */
.fqfr-opt span:last-child{font-size:var(--fs-xs);color:var(--s-muted)}
.fqfr-opt.on{border:2px solid var(--blue);background:var(--s-accent-soft)}
.fqfr-chips{display:flex;flex-wrap:wrap;gap:6px}
.fqfr-feats{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}   /* fix 31222-colour: Pass or Fail, with Recommendation on one line */
.fqfr-feats .fqs-tick span{white-space:nowrap}
.fqfr-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 6px 4px 12px;border-radius:999px;background:var(--s-accent-soft);font-size:var(--fs-sm)}
.fqfr-x{width:24px;height:24px;border-radius:50%;border:0;background:var(--s-panel);color:var(--s-ink);cursor:pointer;font-weight:800}
.fqfr-adds .btn{white-space:nowrap}
.fqfr-pick{display:grid;gap:6px;padding:8px;border:1px dashed var(--s-line);border-radius:12px}
.fqfr-picklist{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px;max-height:180px;overflow:auto}
.fqfr-words{margin:6px 0 0;padding:10px 12px;border-radius:12px;background:var(--s-sunk);color:var(--s-ink)}
.fqs-presets{flex-wrap:wrap}
.fqs-q .fqs-wide{grid-column:1/-1}
.fqs-q textarea{width:100%;min-height:80px;font:inherit}
.fqfr-win{grid-template-columns:minmax(0,1fr)}
.fqfr-win > *{min-width:0}
.fqfr-win .fqs-row{flex-wrap:wrap}
.fqfr-win .fqs-grow{min-width:min(220px,100%)}
.fqfr-win select{max-width:100%}
.fqfr-win .field,.fqfr-win .lbx,.fqfr-win .lbx-trigger{min-width:0;max-width:100%}
.fqfr-win .lbx-val{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fqfr-win .lbx-trigger{width:100% !important;min-width:0 !important;max-width:100%}
/* lane searrive: Admin Settings › Customer Links (public/apps/fqcustlinks.js): each person's tick beside their trade; the small headings. */
.cl-people{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,240px);gap:8px;align-items:center;margin-top:8px}
.cl-people .cl-person{margin:0}
@media (max-width:640px){.cl-people{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.cl-trade{width:100%;box-sizing:border-box}
.cl-h{margin:16px 0 6px;font-size:var(--fs-md)}
.cl-row{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;margin-top:8px}
.cl-found{display:flex;flex-wrap:wrap;gap:6px;width:100%}
/* lane secomm (14 Nov 2026): Admin Settings, Commercial: what a handover pack needs, per business and per customer. */
#fqs-handover{margin-top:16px}
.fqs-ho-sub{margin:16px 0 6px;font-size:var(--fs-md);font-weight:700}
.fqs-ho-cust{border-top:1px solid var(--line);padding-top:8px;margin-top:8px}
.fqs-ho-h{display:flex;align-items:center;gap:10px;margin:0 0 6px}
.fqs-ho-add{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-top:12px}
.fqs-ho-add .fqs-field{max-width:240px}
/* lane secontract (14 Nov 2026) — SITE ESTIMATOR'S CONTRACTORS, TO APPROVE (public/apps/fqcontractors.js, board 17e). Theme tokens only. */
.fqc-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--sp-3);align-items:start;margin-top:var(--sp-2)}
.fqc-grid .panel{margin:0 0 var(--sp-3)}
.fqc-list tr[data-fqc-open]{cursor:pointer}
.fqc-list tr.on td{background:var(--s-sunk)}
.fqc-title{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-2);flex-wrap:wrap}
.fqc-title h2,.fqc-title h3{margin:0}
.fqc-head .hint{margin:4px 0 0}
.fqc-in{width:90px;text-align:right;font-weight:800}
.fqc-why{display:grid;gap:4px;margin:var(--sp-2) 0}
.fqc-why input{width:100%}
.fqc-acts{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);margin:var(--sp-2) 0}
.fqc-acts input{flex:1 1 200px;min-width:0}
.fqc-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:6px;margin:var(--sp-2) 0}
.fqc-photos img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--rad-in,10px);background:var(--s-sunk)}
.fqc-q{border-top:1px solid var(--line);padding-top:var(--sp-2);margin-top:var(--sp-2)}
.fqc-q p{margin:0 0 4px}
.fqc-clock-m{display:none}
@media (max-width:900px){.fqc-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:600px){.fqc-time .fqc-clockcol,.fqc-mats .fqc-mk{display:none}.fqc-clock-m{display:block}.fqc-in{width:56px;padding:0 6px}.fqc-mats,.fqc-time{font-size:var(--fs-sm)}
  .fqc-time th,.fqc-time td,.fqc-mats th,.fqc-mats td,.fqc-list th,.fqc-list td{white-space:normal;padding-left:6px;padding-right:6px}.fqc-mats td:first-child,.fqc-list td{overflow-wrap:anywhere}}
/* assembly 3.1222 — Admin Settings › People › Add-On Links (staff only, public/apps/fqaddons.js) and Xero Payroll's state line. Tokens only. */
.fqad-table{width:100%;border-collapse:collapse;margin-top:8px}
.fqad-table th{text-align:left;font-size:var(--fs-xs);color:var(--s-muted);font-weight:600;padding:4px 8px 4px 0}
.fqad-table td{padding:6px 8px 6px 0;border-top:1px solid var(--s-line);vertical-align:top}
.fqad-act{text-align:right;white-space:nowrap}
.fqad-feats{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:4px 12px;max-height:45vh;overflow:auto;border:1px solid var(--s-line);border-radius:var(--rad);padding:8px 12px;margin:8px 0}
.fqs-xp-state{margin:4px 0 8px;color:var(--s-ink)}
@media (max-width:640px){.fqad-table thead{display:none}.fqad-table tr{display:grid;gap:2px;padding:8px 0;border-top:1px solid var(--s-line)}.fqad-table td{border:0;padding:0}.fqad-act{text-align:left}}
/* lane selater (brief 5 item 2): Admin Settings › Price Book › Standard Extras (public/apps/fqstdextras.js). Tokens only. */
.fqs-sx-list{list-style:none;margin:0 0 8px;padding:0}
.fqs-sx-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--s-line);cursor:pointer}
.fqs-sx-w{flex:1;min-width:0;display:flex;flex-direction:column}
.fqs-sx-w small{color:var(--s-muted)}
.fqs-sx-hits{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
