/*
 * Caseron Workpapers — application styles.
 * Master Caseron palette; Poppins throughout; British English in all copy.
 * Pink and green are accents only — the surface is blue/grey/dark-text on white.
 */

/* Poppins is served from our own app, never from Google's servers — no
   visitor IP addresses leave the page just to fetch a font. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/poppins-400-d360be31.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/poppins-500-afc692de.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/poppins-600-765bd6dc.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/poppins-700-96729a37.woff2") format("woff2");
}

:root {
  --caseron-blue: #01B1F3;
  --caseron-grey: #667A91;
  --caseron-pink: #FF33CC;
  --caseron-green: #92D050;
  --caseron-amber: #FFC000;
  --caseron-dark: #1A1A1A;
  --caseron-white: #FFFFFF;

  --surface: #F4F7FA;
  --border: #E1E8EF;
  --grey-soft: #8A9BAD;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--caseron-dark);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--caseron-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header ------------------------------------------------------------------ */
.app-header {
  background: var(--caseron-white);
  border-bottom: 3px solid var(--caseron-blue);
}
.app-header__inner {
  /* Fluid: the portal uses whatever screen it's given — the standard rule
     for every area. Tables spread their columns into the space. */
  max-width: none;
  margin: 0 auto;
  padding: 18px 32px;
}
.app-header__brand {
  font-weight: 600;
  font-size: 20px;
  color: var(--caseron-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.app-header__brand:hover { text-decoration: none; }
.app-header__brand-light { color: var(--caseron-grey); font-weight: 400; }
.app-header__mark {
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--caseron-blue);
  display: inline-block;
}

/* Layout ------------------------------------------------------------------ */
/* Fluid width everywhere — wide screens get wide tables. */
.app-main { max-width: none; margin: 0 auto; padding: 28px 32px 60px; }

.page-head { margin-bottom: 24px; }
.page-head h1 { font-weight: 600; font-size: 26px; margin: 0 0 4px; }
.page-head .subtitle { color: var(--caseron-grey); margin: 0; }
.breadcrumb { color: var(--caseron-grey); font-size: 13px; margin-bottom: 14px; }
.breadcrumb a { color: var(--caseron-grey); }

/* Flash ------------------------------------------------------------------- */
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
/* The answer comes to you, wherever you are on the page.
   Pages hold your scroll position now, so a message rendered at the top of a
   long page is simply never seen: Lisa pressed "Check Companies House" low
   down the client list and reported that nothing happened at all, when in
   fact it had answered her off-screen (15/10/2026). Only real news sticks —
   not .flash--slot, which is a paper's standing state. */
.flash--notice, .flash--alert { position: sticky; top: 10px; z-index: 30; box-shadow: 0 2px 10px rgba(26, 26, 26, 0.10); }
.flash--notice { background: #E9F8DE; color: #3C6E17; border: 1px solid var(--caseron-green); }
.flash--alert { background: #FFE6F8; color: #A1136F; border: 1px solid var(--caseron-pink); }
/* Where the paper has got to, in the same slot the flash uses — quiet, because
   it is standing there on every load rather than announcing anything. */
.flash--state { background: var(--caseron-white); color: var(--caseron-grey); border: 1px solid var(--border); }
/* A reserved slot: always the same height whether it carries news or the
   paper's state, so nothing below it moves between loads (Lisa, 23/09/2026). */
.flash--slot { min-height: 45px; display: flex; align-items: center; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--caseron-blue);
  background: var(--caseron-blue);
  color: var(--caseron-white);
  cursor: pointer;
}
.btn:hover { background: #019fda; text-decoration: none; }
.btn--ghost { background: var(--caseron-white); color: var(--caseron-blue); }
.btn--ghost:hover { background: #EAF8FE; }
.btn--small { padding: 6px 12px; font-size: 13px; }
.btn--pink { background: var(--caseron-pink); color: var(--caseron-white); }
.btn--pink:hover { background: #E020B0; }
.btn--green { background: var(--caseron-green); color: var(--caseron-dark); }
.btn--green:hover { background: #7FBE3F; }
.btn--grey { background: var(--caseron-grey); color: var(--caseron-white); border-color: var(--caseron-grey); }
.btn--grey:hover { background: #566A80; }
.import-form { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.import-form input[type="date"] { padding: 8px 10px; border: 1px solid #D5DCE4; border-radius: 6px; font: inherit; color: var(--caseron-dark); }
.app-header__user { display: inline-flex; align-items: center; gap: 12px; }
.app-header__user form { display: inline; }

/* A resolved query is never removed — it drops to the bottom and greys out,
   keeping the audit trail intact. */
.grid tr.is-resolved { opacity: 0.5; }
.grid tr.is-resolved td strong { font-weight: 500; }

/* Query lifecycle statuses */
.status--q-open { background: none; border: 1px solid #D5DCE4; color: var(--caseron-grey); }
.status--q-with_client { background: #FFC000; color: var(--caseron-dark); }
.status--q-answered { background: var(--caseron-blue); color: var(--caseron-white); }
.status--q-resolved { background: var(--caseron-green); color: var(--caseron-dark); }
.status--q-dismissed { background: #F1F4F8; border-color: #D5DCE4; color: var(--caseron-grey); }
.status--q-outstanding { background: #FFF4D6; border-color: var(--caseron-amber); color: #8A6600; }
.status--q-with_caseron { background: #EAF8FE; border-color: var(--caseron-blue); color: #01699A; }

/* Client Queries — the three lifecycle tabs */
.cq-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin: 20px 0 0; }
.cq-tab {
  padding: 10px 16px; border: 1px solid transparent; border-bottom: none;
  border-radius: 8px 8px 0 0; color: var(--caseron-grey); text-decoration: none;
  font-size: 14px; font-weight: 500; margin-bottom: -2px;
}
.cq-tab:hover { background: #F6F9FC; }
.cq-tab--active {
  background: var(--caseron-white); border-color: var(--border);
  border-bottom: 2px solid var(--caseron-white); color: var(--caseron-dark);
}
.cq-tab__count {
  display: inline-block; min-width: 18px; text-align: center; padding: 0 6px;
  border-radius: 999px; background: #EEF2F6; color: var(--caseron-grey);
  font-size: 12px; margin-left: 4px;
}
.cq-tab--active .cq-tab__count { background: var(--caseron-blue); color: var(--caseron-white); }

/* A Xero-style Account Transactions report: one table per query account */
.txn-account { margin: 22px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.txn-account__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 14px; background: #F6F9FC; border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.txn-account__balance { font-weight: 400; color: var(--caseron-grey); font-size: 13px; }
.txn-scroll { overflow-x: auto; }
.txn-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.txn-table th {
  text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border);
  color: var(--caseron-grey); font-weight: 500; white-space: nowrap;
}
.txn-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.txn-table tr:last-child td { border-bottom: none; }
.txn-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.txn-table th.mid, .txn-table td.mid { text-align: center; }
.txn-date { white-space: nowrap; }
.txn-ref { color: var(--caseron-grey); font-size: 11px; margin-top: 2px; }
.txn-desc { min-width: 200px; }
.txn-row.is-resolved td { color: var(--caseron-grey); }
/* £0 VAT is the receipt-we're-chasing signal — flag it quietly */
.cq-vat-none { color: #8A6600; background: #FFF8E6; }
/* The educated-guess potential VAT recovery on a £0 line */
.cq-vat-est { color: var(--caseron-blue); font-size: 11px; font-weight: 500; }
.txn-foot td { padding: 10px 12px; border-top: 2px solid var(--border); background: #EAF8FE; color: #01699A; font-size: 12px; }
.txn-foot .num { font-size: 14px; }

/* The management columns — each editable inline, no expanding needed */
.cq-cell { vertical-align: top; }
.cq-inline { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.cq-cell--doc { min-width: 120px; }
.cq-cell--comment { min-width: 200px; }
.cq-cell--action { white-space: nowrap; }

.cq-doclink { font-size: 12px; white-space: nowrap; }
.cq-doc { display: flex; align-items: center; gap: 4px; font-size: 12px; margin-bottom: 3px; }
.cq-x { border: none; background: none; color: var(--caseron-pink); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
/* "Upload" reads as a link; the real file input is hidden behind it */
.cq-upload { color: var(--caseron-blue); font-size: 12px; cursor: pointer; white-space: nowrap; }
.cq-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.cq-comment-form { display: flex; align-items: center; gap: 6px; }
.cq-note-input { width: 150px; font: inherit; font-size: 12px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; }
.cq-stamp { color: var(--caseron-grey); font-size: 11px; margin-top: 3px; }

.txn-flags { display: inline-flex; gap: 6px; margin-left: 6px; }
.txn-flag { font-size: 11px; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.txn-flag--apron { background: #FFF0FA; color: #A1136F; border: 1px solid var(--caseron-pink); }

.cq-filter { margin: 16px 0 -6px; }
.cq-filter select { margin-left: 6px; }

/* Client Queries: query-account summary cards and the transaction log ------ */
.qa-summary { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 22px; }
.qa-card {
  flex: 1 1 200px; min-width: 200px;
  background: var(--caseron-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--caseron-blue);
  border-radius: 10px; padding: 12px 16px;
}
.qa-card__name { font-weight: 600; font-size: 14px; }
.qa-card__code { color: var(--caseron-grey); font-size: 12px; font-weight: 400; }
.qa-card__balance { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; }
.qa-card__balance--nil { color: var(--caseron-green); }

/* One query in the log: the transaction on the left, our note and the
   lifecycle controls on the right. */
.query-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.query-row.is-decided { opacity: 0.7; }
.query-row__txn { flex: 1; min-width: 0; }
.query-row__desc { font-weight: 500; }
.query-row__meta { color: var(--caseron-grey); font-size: 12px; margin-top: 3px; }
.query-row__amount { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.query-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 220px; }
.query-row__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.query-row__actions form { margin: 0; }
.query-note {
  background: #F6F9FC; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font-size: 13px; width: 100%; box-sizing: border-box;
}
.query-note__stamp { color: var(--caseron-grey); font-size: 11px; margin-top: 4px; }
.query-note-form { width: 100%; }
.query-note-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 13px;
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; resize: vertical;
}

/* Re-review flag — accent pink, small dose, exactly what accents are for */
.flag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--caseron-pink); color: var(--caseron-white);
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em; vertical-align: middle;
}
.banner { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.banner--flag { background: #FFF0FA; border: 1px solid var(--caseron-pink); color: var(--caseron-dark); }
.claude-summary__list { list-style: none; margin: 8px 0 0; padding: 0; }
.claude-summary__list li { padding: 3px 0; }
.claude-summary__list label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.claude-summary__list input[type="checkbox"] { margin-top: 3px; accent-color: var(--caseron-pink); flex: none; }
.claude-summary__list li.done span { text-decoration: line-through; color: var(--caseron-grey); }
.claude-summary__earlier { margin-top: 10px; font-size: 0.9em; color: var(--caseron-grey); }
.tracking-gap { color: #B42318; font-size: 0.85em; font-style: italic; white-space: nowrap; }

/* Queried — a paper carrying a question nobody has answered. Pink, at the top
   of the paper, and a matching ring on the findings card it sends you to
   (Lisa, 24/10/2026). */
.banner--queried { background: #FFF0FA; border-left: 5px solid var(--caseron-pink); color: var(--caseron-dark);
                   display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.card--queried { box-shadow: inset 0 0 0 2px var(--caseron-pink); }
.card--queried h2 .traffic { margin-left: 4px; vertical-align: baseline; }

/* The one Xero-pull progress bar, shown across the portal while a background
   pull runs. Loud and in its own area (the in-progress-feedback house rule):
   a flashing blue edge, a clear heading, and an indeterminate bar that moves. */
.pull-progress {
  border: 1px solid var(--caseron-blue); border-left: 4px solid var(--caseron-blue);
  background: #EAF8FE; border-radius: 8px; padding: 12px 16px; margin-bottom: 18px;
  animation: pull-progress-flash 1.2s ease-in-out infinite;
}
.pull-progress__head { display: flex; align-items: center; gap: 8px; color: var(--caseron-dark); }
.pull-progress__spark {
  width: 10px; height: 10px; border-radius: 50%; background: var(--caseron-blue);
  animation: pull-progress-pulse 1s ease-in-out infinite;
}
.pull-progress__detail { margin: 6px 0 0; color: #1A1A1A; }
.pull-progress__note { margin: 8px 0 0; font-size: 12px; color: var(--caseron-grey); }
.pull-progress__track {
  margin-top: 10px; height: 8px; border-radius: 999px; overflow: hidden; background: #CDEBFB; position: relative;
}
.pull-progress__bar {
  position: absolute; top: 0; left: 0; height: 100%; width: 35%; border-radius: 999px;
  background: var(--caseron-blue); animation: pull-progress-slide 1.3s ease-in-out infinite;
}
@keyframes pull-progress-slide {
  0% { left: -35%; } 100% { left: 100%; }
}
@keyframes pull-progress-pulse { 50% { opacity: 0.4; } }
@keyframes pull-progress-flash {
  0%, 100% { border-color: var(--caseron-blue); background: #EAF8FE; }
  50% { border-color: #7FD6F8; background: #DAF2FD; }
}
@media (prefers-reduced-motion: reduce) {
  .pull-progress, .pull-progress__spark, .pull-progress__bar { animation: none; }
  .pull-progress--timed .pull-progress__bar { width: 0; }
  .pull-progress:not(.pull-progress--timed) .pull-progress__bar { width: 100%; }
}

/* The same banner in pink — a Claude review running, rather than a Xero pull. */
.pull-progress--pink {
  border-color: var(--caseron-pink); border-left-color: var(--caseron-pink);
  background: #FFF0FB; animation-name: pull-progress-flash-pink;
}
.pull-progress--pink .pull-progress__spark { background: var(--caseron-pink); }
.pull-progress--pink .pull-progress__track { background: #FCD6F1; }
.pull-progress--pink .pull-progress__bar { background: var(--caseron-pink); }
@keyframes pull-progress-flash-pink {
  0%, 100% { border-color: var(--caseron-pink); background: #FFF0FB; }
  50% { border-color: #FF8FE2; background: #FDE1F6; }
}

/* The elapsed/remaining readout under the heading, on a timed banner. */
.pull-progress__timing { margin: 6px 0 0; font-size: 12.5px; color: var(--caseron-dark); font-weight: 500; }
.pull-progress__timing [data-progress-timer-target="remaining"] { color: var(--caseron-grey); font-weight: 400; }

/* A timed banner's bar is determinate — JS fills it towards the estimate — so
   it does not slide; it eases smoothly from where it was to where it is now. */
.pull-progress--timed .pull-progress__bar {
  width: 0; animation: none; transition: width 0.9s linear;
}

/* The footer row of the banner — the small note on the left, and (when given)
   the Stop refreshing button on the right, so Stop sits with what's running. */
.pull-progress__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.pull-progress__foot .pull-progress__note { margin-top: 10px; }
.pull-progress__stop { margin-top: 10px; white-space: nowrap; }

/* The "this may have failed" warning — amber, the Caseron in-progress/attention
   colour. Shown only when a run has gone on far longer than it should, turning
   the whole banner's edge amber so a stuck refresh can't be mistaken for a
   healthy one. */
.pull-progress__warn {
  margin: 8px 0 0; font-weight: 600; color: #8A6400;
  display: flex; align-items: center; gap: 6px;
}
.pull-progress--warn {
  border-color: #FFC000; border-left-color: #FFC000;
  background: #FFF7E0; animation: none;
}
.pull-progress--warn .pull-progress__spark { background: #FFC000; animation: none; }

/* A settled, reconciled state — brand green, the "complete" colour. */
.banner--ok { background: #F2F9E8; border: 1px solid var(--caseron-green); color: var(--caseron-dark); }

/* Portal tool tiles */
.tile--muted { opacity: 0.6; }

/* Portal launcher: the tools as cards, three to a row. Blue top edge for
   the practice tools; pink and green for the two practice-admin cards. */
.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }
.tool-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--caseron-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--caseron-blue);
  border-radius: 10px;
  padding: 18px 20px;
  /* So the waiting-count dot can sit in the corner. */
  position: relative;
}
/* What is waiting on this tool, top right. Shown only when there IS something,
   so an empty card stays quiet (Lisa, 20/10/2026). Red is the one place the
   palette uses it — this is a count of work, not an accent. */
.tool-card__dot {
  position: absolute; top: -9px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px;
  background: #D83A3A; color: var(--caseron-white);
  border: 2px solid var(--caseron-white);
  font-size: 12px; font-weight: 600; line-height: 18px;
  text-align: center; box-sizing: border-box;
}
.tool-card--muted { opacity: 0.6; }
.tool-card--pink { border-top-color: var(--caseron-pink); }
.tool-card--green { border-top-color: var(--caseron-green); }
.tool-card--grey { border-top-color: var(--caseron-grey); }
.tool-card__name { font-weight: 600; font-size: 16px; }
.tool-card__name a { color: inherit; }
.tool-card__meta { color: var(--caseron-grey); font-size: 13px; flex: 1; }
.tool-card__action { margin-top: 6px; }

/* Guest view: the presentation strip. Deliberately loud — whoever is sharing
   their screen must always know only one client is showing. */
/* The guest view picker: a type-ahead, never a list. Matches drop below the
   box only once part of a name is typed, so a shared screen never shows the
   client list. */
.guest-picker { display: inline-flex; align-items: flex-start; gap: 8px; }
.guest-picker__box { position: relative; }
.guest-picker__results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40;
  background: var(--caseron-white); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.12); overflow: hidden;
}
.guest-picker__match {
  display: block; width: 100%; text-align: left; padding: 8px 12px;
  background: none; border: none; font: inherit; font-size: 13px; cursor: pointer;
}
.guest-picker__match:hover { background: #EAF8FE; }
.guest-picker__none { padding: 8px 12px; font-size: 13px; color: var(--caseron-grey); }

.guest-banner {
  position: sticky; top: 0; z-index: 60;
  background: var(--caseron-pink); color: var(--caseron-white);
  padding: 10px 24px; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.guest-banner form { display: inline; }
.guest-banner .guest-banner__end {
  background: var(--caseron-white); color: #A1136F; border-color: var(--caseron-white); font-weight: 600;
}
.guest-banner .guest-banner__end:hover { background: #FFE6F8; }

/* Demo view: the same strip, turned up. Candy-striped and a shade darker than
   guest view, with the words "Demo data" set off in a chip, so on a shared
   screen or a recording nobody can take made-up figures for a client's real
   ones (Lisa, 21/10/2026). */
.demo-banner {
  background: repeating-linear-gradient(
    135deg, #C2008F, #C2008F 18px, #A1136F 18px, #A1136F 36px
  );
  border-bottom: 3px solid var(--caseron-pink);
  font-weight: 500;
}
.demo-banner__tag {
  background: var(--caseron-white); color: #A1136F;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.demo-banner .guest-banner__end { color: #A1136F; }

/* Trello-style drag: cards invite a grab, and the one in flight fades to a
   dashed outline until it's dropped. */
[data-controller~="card-sort"] .tool-card { cursor: grab; }
[data-controller~="card-sort"] .tool-card:active { cursor: grabbing; }
.tool-card--dragging { opacity: 0.45; border-style: dashed; }

/* Management accounts worklist */
.section-heading { font-weight: 600; font-size: 18px; margin: 26px 0 12px; }
.job-rows { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.job-row { display: inline-flex; align-items: center; gap: 10px; }
.job-row form { display: inline; }
/* Buttons in the actions row keep to one line — a flex item otherwise shrinks
   to its widest word and wraps (e.g. "Open in PULSE →"). */
.job-row .btn { white-space: nowrap; flex: 0 0 auto; }

/* Management accounts six-stage workflow — one traffic light per status */
.traffic--blue { background: var(--caseron-blue); }
.traffic--pink { background: var(--caseron-pink); }
.traffic--grey { background: var(--grey-soft); }
.traffic--none { background: var(--caseron-white); border: 2px solid #D5DCE4; }
.status--ma-not_started { color: var(--grey-soft); }
.status--ma-reviewed { background: #E9F8DE; border-color: var(--caseron-green); color: #3C6E17; }
.status--ma-in_production { background: #FFF4D6; border-color: var(--caseron-amber); color: #8A6600; }
.status--ma-with_client { background: #EAF8FE; border-color: var(--caseron-blue); color: #01699A; }
.status--ma-ready_for_review { background: #FFF0FA; border-color: var(--caseron-pink); color: #A1136F; }
.status--ma-completed { background: #E9F8DE; border-color: var(--caseron-green); color: #3C6E17; }
.status--ma-skipped { background: #F1F4F8; border-color: #D5DCE4; color: var(--caseron-grey); }

/* Standard P&L emphasis: subtotal running lines, and the bold net-profit
   line right at the foot of the statement. */
.pnl-line--emphasis td { font-weight: 600; background: #F6F9FC; }
.pnl-line--net td { font-weight: 700; border-top: 2px solid var(--caseron-blue); background: #EAF8FE; }
.pnl-line--percent td { font-style: italic; color: var(--caseron-grey); border-bottom: 1px solid var(--border); }

/* Process flow — the portal's standard stage strip: stages joined by
   arrows, tinted in their traffic-light colour. Dashboards show a count per
   stage; a record's own page highlights where it sits (past tinted, current
   ringed, future faded). */
.process-flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; list-style: none; margin: 0 0 22px; padding: 0; }
.process-step {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--caseron-white);
  font-size: 13px; color: var(--caseron-grey); white-space: nowrap;
}
.process-step strong { color: var(--caseron-dark); font-variant-numeric: tabular-nums; }
.process-step--none { background: #FAFBFC; }
.process-step--amber { background: #FFF4D6; border-color: var(--caseron-amber); color: #8A6600; }
.process-step--blue { background: #EAF8FE; border-color: var(--caseron-blue); color: #01699A; }
.process-step--pink { background: #FFF0FA; border-color: var(--caseron-pink); color: #A1136F; }
.process-step--green { background: #E9F8DE; border-color: var(--caseron-green); color: #3C6E17; }
.process-step--grey { background: #F1F4F8; border-color: #D5DCE4; }
.process-step--current { border-width: 2px; font-weight: 600; box-shadow: 0 1px 4px rgba(26, 26, 26, 0.10); }
.process-step--future { background: var(--caseron-white); border-color: var(--border); color: var(--grey-soft); opacity: 0.65; }
.process-flow__arrow { color: #C3CEDA; font-size: 14px; user-select: none; }

/* Clickable workflow stages: each stage is a button_to form. The form is
   made to vanish from layout so the button sits directly in the flex row,
   and the button carries the process-step look with a pointer + lift on
   hover — click a stage to move the period there. */
.process-flow__form { display: contents; }
button.process-step { font-family: inherit; cursor: pointer; }
.process-step--clickable:hover { border-color: var(--caseron-blue); box-shadow: 0 2px 6px rgba(1, 177, 243, 0.18); }

/* Open / Archived tabs, with the client search alongside */
.tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs-row .tabs { margin-bottom: 0; }
.search-form { display: inline-flex; align-items: center; gap: 8px; }
/* The one search box (Lisa, 28/11/2026: "one style everywhere"): rounded, a grey
   magnifying glass, a soft blue ring while typing. As wide as its prompt needs:
   260px as standard, .search-form--find for a long prompt. The budget's
   "Find a fund or line" box (.list-filter__search) shares it. */
.search-form input[type="text"], .list-filter__search {
  appearance: none; width: 260px; max-width: 100%; min-width: 0; padding: 8px 14px 8px 36px;
  border: 1px solid #D5DCE4; border-radius: 999px; font: inherit; font-size: 13.5px; color: var(--caseron-dark);
  background: var(--caseron-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667A91' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px 50%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-form input[type="text"]::placeholder, .list-filter__search::placeholder { color: var(--caseron-grey); }
.search-form input[type="text"]:focus, .list-filter__search:focus {
  outline: none; border-color: var(--caseron-blue); box-shadow: 0 0 0 3px rgba(1, 177, 243, 0.18);
}
@media (prefers-reduced-motion: reduce) { .search-form input[type="text"], .list-filter__search { transition: none; } }
/* A search box whose prompt is long ("Find a bill: …"), so it shows in full. */
.search-form--find input[type="text"] { width: 450px; }
/* VAT reviews import: tick several clients, add them in one go */
.bulk-add-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pick-box { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }

/* Duplicate detector: the email settings form */
.settings-block { margin-bottom: 22px; max-width: 560px; }
.settings-label { display: block; font-weight: 500; margin-bottom: 2px; }
.settings-input {
  width: 100%; padding: 9px 12px; border: 1px solid #D5DCE4; border-radius: 8px;
  font: inherit; color: var(--caseron-dark); margin-top: 6px;
}

/* Duplicate detector: the staff-expense-claimant panel above the queues */
.claimants-panel {
  background: var(--caseron-white); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 18px;
}
.claimants-panel summary { cursor: pointer; font-weight: 500; }
.claimant-list { list-style: none; margin: 4px 0 12px; padding: 0; }
.claimant-list li { padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.claimant-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.claimant-add select { padding: 6px 8px; border: 1px solid #D5DCE4; border-radius: 8px; font: inherit; font-size: 13px; }

/* Duplicate queues: a reviewer's decision lives on every row */
.decision-form { display: flex; align-items: center; gap: 6px; }
.decision-form select,
.decision-form input[type="text"] {
  padding: 6px 8px; border: 1px solid #D5DCE4; border-radius: 8px;
  font: inherit; font-size: 13px; color: var(--caseron-dark);
}
.decision-form input[type="text"] { min-width: 120px; }

.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab {
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--caseron-white);
  color: var(--caseron-grey); font-size: 14px;
}
.tab--active { background: var(--caseron-blue); border-color: var(--caseron-blue); color: var(--caseron-white); font-weight: 500; }
a.tab:hover { text-decoration: none; }
/* The BUDGET button beside a period's tabs (Lisa, 28/10/2026): grey, so it
   reads as a door to the year's budget, not another view of the period. */
.tab--budget { background: var(--caseron-grey); border-color: var(--caseron-grey); color: var(--caseron-white); font-weight: 600; letter-spacing: .04em; }
a.tab--budget:hover { background: #56687D; color: var(--caseron-white); }
/* A count riding on a tab (e.g. Leavers 17) */
.tab .tab__count { font-variant-numeric: tabular-nums; opacity: 0.75; margin-left: 6px; }

/* Stat tiles — a small KPI row for an area summary */
.stat-tiles { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 22px; }
.stat-tile {
  flex: 1 1 150px; background: var(--caseron-white);
  border: 1px solid var(--border); border-top: 3px solid var(--caseron-blue);
  border-radius: 10px; padding: 14px 16px;
}
.stat-tile__value { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--caseron-dark); }
.stat-tile__label { color: var(--caseron-grey); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.stat-tile--alert { border-top-color: var(--caseron-pink); }
.stat-tile--muted { border-top-color: var(--grey-soft); }

/* Payment runs: Direct Debit rows stay visible but clearly not in play */
.row--muted { opacity: 0.55; }
.row--muted td { color: var(--caseron-grey); }

/* Payment run progress: one pill per stage, green behind us, blue where we are */
.progress-bar { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 22px; }
.progress-step {
  flex: 1; text-align: center; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--caseron-white);
  color: var(--caseron-grey); font-size: 13px;
}
.progress-step--done { border-color: var(--caseron-green); background: #E9F8DE; color: #3C6E17; }
.progress-step--current { border-color: var(--caseron-blue); background: var(--caseron-blue); color: var(--caseron-white); font-weight: 600; }

/* Payment runs read like a spreadsheet — dense rows, smaller text, by design */
.grid--dense { font-size: 12.5px; }
.grid--dense th, .grid--dense td { padding: 6px 8px; }
.grid--dense input[type="text"] { font-size: 12px; padding: 4px 6px; border: 1px solid #D5DCE4; border-radius: 5px; font-family: inherit; }
.grid--dense .btn--small { padding: 3px 8px; font-size: 11px; }
/* Payment runs: bills in currency blocks, each with its own total */
.currency-block__head td { font-weight: 600; color: #1A1A1A; background: #F4F7FA; border-top: 2px solid #01B1F3; }
.currency-block__total td { font-weight: 600; border-bottom: 2px solid #D5DCE4; }
/* Payment runs: bills by property, then by supplier (Lisa, 30/11/2026). A
   property's heading and total look like a currency block's; two or more
   bills from one supplier get a quiet subtotal line. */
.property-block__head td { font-weight: 600; color: #1A1A1A; background: #F4F7FA; border-top: 2px solid #01B1F3; }
.property-block__total td { font-weight: 600; border-bottom: 2px solid #D5DCE4; }
.supplier-subtotal td { color: #667A91; font-size: 12px; padding-top: 4px; padding-bottom: 4px; }
/* Payment runs: a supplier's bank details under its name (client pays) */
/* Wraps only between the sort code and the account number, each kept whole
   (span.bank-details__part), so a narrow page never runs off the edge. */
.bank-details { font-size: 12px; color: #667A91; margin-top: 3px; }
.bank-details__part { white-space: nowrap; }
.bank-details--missing { font-style: italic; }
.bank-details--changed { color: #D64545; font-weight: 600; white-space: normal; }
/* Payment run groups: one block per company on the client's page */
.company-block__head td { font-weight: 600; font-size: 14px; color: #1A1A1A; background: #EAF7FE; border-top: 3px solid #01B1F3; }

/* Sticky headers: the column names follow you down a long bill list.
   Two traps defused here: the wrapper must not become a scroll box (the
   base .table-wrap rule sets overflow-x later in this file, so this
   selector doubles up to outrank it), and collapsed table borders stop
   headers sticking in some browsers, so the sticky table separates them. */
.table-wrap.table-wrap--sticky { overflow: visible; }
table.grid--sticky { border-collapse: separate; border-spacing: 0; }
table.grid--sticky thead th {
  position: sticky; top: 0; z-index: 5;
  background: var(--caseron-white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}

/* Common-size columns: each line as a % of total income. Tinted as a group
   and set in grey so they read as supporting ratios beside the money columns,
   with a faint rule where the block begins. */
.grid .cs-col { background: #F5F7FA; color: var(--caseron-grey); }
.grid th.cs-col { color: var(--caseron-grey); font-weight: 500; }
.grid .cs-col--start { border-left: 2px solid #E3E8EF; }

/* A P&L month figure that stands out as higher than the line's own monthly
   average — highlighted pink to draw the eye to something worth looking into.
   A guide for a person, not a control. */
.grid td.pnl-high { background: #FFE6F8; color: #A1136F; font-weight: 600; }

/* Balance-sheet month-movement columns: the £ change between adjacent months,
   tinted grey so they sit between the figure columns without competing. */
.grid .bs-move { background: #F5F7FA; color: var(--caseron-grey); }
.grid th.bs-move { color: var(--caseron-grey); font-weight: 500; }

/* The note column: last, and wide enough to actually write in */
.grid td.note-cell { width: 24%; min-width: 260px; }

/* An account name that deep-links into its transactions in Xero — a dotted
   underline marks it clickable in dense report tables, solid on hover */
.xero-account-link { border-bottom: 1px dotted var(--caseron-blue); }
.xero-account-link:hover { border-bottom-style: solid; }
/* An account name linking to its own paper in the portal, with a small Xero
   link kept beside it for the source. */
.ma-account-link { color: var(--caseron-blue); border-bottom: 1px solid transparent; }
.ma-account-link:hover { border-bottom-color: var(--caseron-blue); text-decoration: none; }
.xero-mini-link { font-size: 11px; color: var(--caseron-grey); white-space: nowrap; }
.xero-mini-link:hover { color: var(--caseron-blue); }

/* A saved note commits in grey under the box — still editable, still deletable */
.note-committed { color: var(--caseron-grey); font-size: 12px; margin-top: 4px; }
/* The portal-wide note stamp: "05/07 [LD]" leading every saved note */
.note-stamp { font-weight: 600; white-space: nowrap; }

/* Planned-date cards — Xero's Awaiting Payment strip, faithfully:
   date on top, items and value beneath, Overdue badge on past dates */
.planned-strip { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; }
.planned-card {
  display: block; min-width: 160px; padding: 10px 14px;
  background: var(--caseron-white);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--caseron-dark);
}
.planned-card:hover { border-color: var(--caseron-blue); text-decoration: none; }
.planned-card--active { border-color: var(--caseron-blue); box-shadow: inset 0 0 0 1px var(--caseron-blue); }
.planned-card__date { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.planned-card__meta {
  display: flex; justify-content: space-between; gap: 14px;
  color: var(--caseron-grey); font-size: 13px; margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.note-committed__action {
  background: none; border: none; padding: 0 2px; cursor: pointer;
  color: var(--caseron-blue); font: inherit; font-size: 11px; text-decoration: underline;
}

/* What it's for: the column that makes the run readable — give it room,
   and let it stretch as the window widens */
.grid td.desc-cell { width: 30%; min-width: 280px; }

/* P&L subsections on the control list */
.area-row--sub th { padding-left: 28px; font-size: 12px; color: var(--caseron-grey); background: #F6F8FA; }
.totals-row--sub td { font-weight: 600; background: #FAFBFC; }

/* Traffic lights: green complete · amber not complete · red has open queries */
.traffic { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.traffic--green { background: var(--caseron-green); }
.traffic--amber { background: #FFC000; }
.traffic--red { background: #D64545; }
.traffic--orange { background: #F5A623; }

/* The per-account Review dot on the summaries — status at a glance and a
   one-click quick-flag (click to flag a query, click again to clear). The
   button is invisible; only the dot shows, with a soft ring on hover/focus. */
.dot-form { display: inline; margin: 0; }
.dot-btn { background: none; border: 0; padding: 4px; cursor: pointer; line-height: 0; border-radius: 50%; }
.dot-btn:hover .traffic { box-shadow: 0 0 0 3px rgba(102, 122, 145, 0.25); }
.dot-btn:focus-visible { outline: 2px solid var(--caseron-blue); outline-offset: 1px; }
.dot-link { display: inline-block; line-height: 0; padding: 4px; border-radius: 50%; }
.dot-link:hover .traffic { box-shadow: 0 0 0 3px rgba(102, 122, 145, 0.25); }

/* The Review-dot key above a summary table. */
.review-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0 14px; font-size: 12px; color: var(--caseron-grey); }
.review-legend .traffic { margin-right: 5px; }

/* The "highlight figures more than X% from the average" control on the P&L. */
.threshold-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; font-size: 13px; color: var(--caseron-grey); }
.threshold-box input[type="number"] { width: 64px; padding: 6px 8px; border: 1px solid #D5DCE4; border-radius: 6px; font: inherit; font-size: 13px; }

/* A card's heading row with an action on the right. */
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.d-inline { display: inline; }
.traffic-summary { display: inline-flex; align-items: center; gap: 6px; color: var(--caseron-grey); font-size: 13px; }
.traffic-summary .traffic { width: 12px; height: 12px; }
/* VAT review — what was read and every check passed, one line each */
.vat-checks { list-style: none; margin: 4px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--caseron-dark); }
.vat-checks__line { padding-left: 22px; position: relative; line-height: 1.5; }
.vat-checks__line::before { position: absolute; left: 0; top: 0; width: 16px; text-align: center; }
.vat-checks__line--pass::before { content: "✓"; color: var(--caseron-green); font-weight: 700; }
.vat-checks__line--read { color: var(--caseron-grey); }
.vat-checks__line--read::before { content: "•"; color: var(--caseron-grey); }
.vat-checks__line--note::before { content: "!"; color: var(--caseron-pink); font-weight: 700; }

/* The prior year stands apart: a rule after the PY TB column, Xero
   Workpapers style. */
.prior-col { border-right: 2px solid #C9D4DF; }

/* Supporting-balance variance on the control list */
.variance { font-weight: 600; font-variant-numeric: tabular-nums; }
.variance--nil { color: #3C6E17; }
.variance--out { color: #D64545; background: #FDECEC; padding: 2px 8px; border-radius: 6px; }

/* Filing countdown on the import worklist */
.due { font-weight: 600; }
.due--overdue { color: #D64545; }
.due--soon { color: #B58900; }

/* Evidence drag-and-drop */
.dropzone { border: 2px dashed #D5DCE4; border-radius: 8px; padding: 18px; transition: border-color 0.15s, background 0.15s; }
.dropzone--over { border-color: var(--caseron-blue); background: #EAF8FE; }
/* A file waiting in the box is not saved yet — say so unmistakably. */
.dropzone--pending { border-color: var(--caseron-amber); border-style: solid; background: #FFFBF0; }
.dropzone--pending .dropzone__hint { color: #8A6D00; font-weight: 500; }

/* Cards ------------------------------------------------------------------- */
.card {
  background: var(--caseron-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 16px;
}
.card h2 { font-weight: 600; font-size: 18px; margin: 0 0 12px; }

.empty {
  background: var(--caseron-white);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: var(--caseron-grey);
}

/* Per-account transaction months — the three blocks either side of the period
   boundary. Kept compact and dense so all three fit on screen without heavy
   scrolling; an empty month is a single quiet line, never a big box. */
.card--txn { padding: 12px 14px; margin-bottom: 10px; }
.card--txn h2 { font-size: 15px; margin: 0 0 2px; }
.card--txn .txn-sub { margin: 0 0 8px; font-size: 12px; line-height: 1.35; color: var(--caseron-grey); }
.card--txn .table-wrap { margin: 0; }
.card--txn table.grid th, .card--txn table.grid td { padding: 5px 9px; }
.txn-empty { margin: 0 0 8px; padding: 2px; font-size: 12.5px; color: var(--caseron-grey); }
.txn-empty strong { color: var(--caseron-dark); font-weight: 600; }
/* Accrue / Prepay / Defer straight off a transaction line — the three letter
   buttons sit together and stay on one line, never wrapping the row. */
.txn-spread { white-space: nowrap; }
.txn-spread form { display: inline; }
.card--txn table.grid td.txn-spread { padding-top: 3px; padding-bottom: 3px; }

/* The account page's own review-state pill — orange to review, green approved,
   amber figures-changed (re-review), pink query. The summary's dots are styled
   separately. */
.ma-review-pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
}

/* The query pop-up — a dialog to type the question and assign it, reused on the
   account page, the transaction rows and the summary. */
.ma-query { display: inline-block; }
/* Two-thirds of the window, centred (native <dialog> centres a showModal
   dialog on its own), so the question and note boxes are wide enough to read
   what you're typing (Lisa, 21/10/2026). Narrows to near-full-width only on a
   small screen. */
.ma-query__dialog {
  border: 1px solid var(--border); border-radius: 12px; padding: 18px 24px 22px;
  width: 66vw; max-width: none; box-shadow: 0 12px 44px rgba(26, 26, 26, 0.22);
  color: var(--caseron-dark);
}
@media (max-width: 760px) { .ma-query__dialog { width: 92vw; } }
/* The boxes inside fill that width, with room to breathe. */
.ma-query__dialog textarea { min-height: 120px; line-height: 1.45; }
.ma-query__dialog::backdrop { background: rgba(26, 26, 26, 0.35); }
.ma-query__close-form { margin: 0 -6px 0 0; text-align: right; }
.ma-query__x { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--caseron-grey); padding: 0 4px; }

/* Query a transaction — the Query button sits farthest right, and the row reads
   pink while the query stands (pink = query). */
.txn-query { white-space: nowrap; }
.txn-query form { display: inline; margin-right: 4px; }
.txn-query .cell-num { width: 68px; display: inline-block; }
.card--txn table.grid td.txn-query { padding-top: 3px; padding-bottom: 3px; }
.card--txn table.grid tr.txn--query td { background: #FFF0FA; }

/* Sign-off tick, farthest right: tick to turn the row green with a forced note
   (Lisa, 21/10/2026). Pink = for review, green = signed off. */
.txn-signoff { text-align: center; white-space: nowrap; }
.txn-signoff__box {
  width: 18px; height: 18px; padding: 0; border: 1.5px solid var(--caseron-grey);
  border-radius: 4px; background: #fff; cursor: pointer; vertical-align: middle;
}
.txn-signoff__box:hover { border-color: #01B1F3; }
.txn-signoff__box:focus-visible { outline: 2px solid #01B1F3; outline-offset: 2px; }
.txn-signoff__done { color: #3F6E12; font-weight: 700; font-size: 15px; }
.card--txn table.grid tr.txn--signed td { background: #EDF7E1; }

/* Lists of clients / year ends ------------------------------------------- */
.tile-list { list-style: none; margin: 0; padding: 0; }
.tile {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: var(--caseron-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
}
.tile__name { font-weight: 500; }
.tile__meta { color: var(--caseron-grey); font-size: 13px; }

/* Reconciliation controls: four equal boxes side by side, not tall stacked
   rows — the same information, far less wasted white space. */
/* The reconciliation summary as separate cards, side by side and equal depth:
   opening→closing and controls (plus a bank-reconciliation card in front on
   bank/cash papers). Folds to one column on a narrow screen. */
.recon-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: stretch; }
.recon-cards--3 { grid-template-columns: repeat(3, 1fr); }
.recon-cards > .card { margin-bottom: 0; height: 100%; }
@media (max-width: 1100px) { .recon-cards, .recon-cards--3 { grid-template-columns: 1fr; } }
.oc-note { font-size: 12px; color: var(--caseron-grey); margin: 6px 0 0; }

/* Two things of equal importance, side by side and half the width each, so
   neither pushes the trial balance below the fold (Lisa, 23/09/2026). When
   only one of the pair is there, it takes the full width rather than leaving
   a hole. */
/* Tiles on a row are one width and one depth (Lisa, 15/11/2026: "consistency
   and aesthetics are super important"). The grid stretches every tile to the
   tallest on its row; a column stacking several tiles lets the last take the
   slack (flex: 1) so it ends level with its neighbour. */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.two-up > .card, .two-up > * > .card { margin-bottom: 0; }
.two-up > :only-child { grid-column: 1 / -1; }
@media (max-width: 1100px) { .two-up { grid-template-columns: 1fr; } }

/* The refresh progress and the Xero allowance: two running figures, each in
   its own block instead of two full-width lines across the page.

   A quarter and three quarters, not half and half (Lisa, 21/10/2026). The
   left-hand line is short — "Complete, checked 20/10/2026 15:12" — while the
   allowance says how many requests are left, when the first come back and when
   the rest do, and at 50% it wrapped onto three lines. The space belongs to
   the one that needs it. */
.two-up--lines { margin-top: 10px; gap: 12px; grid-template-columns: 1fr 3fr; }
/* On a narrow screen they stack, as the plain .two-up always has. Repeated
   here because two classes outrank the one in the shared rule below, and
   without it these two would stay side by side and squeeze. */
@media (max-width: 1100px) { .two-up--lines { grid-template-columns: 1fr; } }
.two-up--lines > .trust-line, .two-up--lines > .xero-allowance {
  margin: 0; padding: 10px 14px; background: var(--caseron-white);
  border: 1px solid var(--border); border-radius: 10px;
}
.two-up--lines > .xero-allowance, .two-up--lines > .trust-line { align-items: center; }

/* Evidence: list of attached files (each renamable / deletable), a tidy
   upload form, rename control, and an in-tab preview overlay. */
.link-button { background: none; border: 0; padding: 0; color: var(--caseron-blue); cursor: pointer; font: inherit; text-decoration: underline; text-align: left; }
.evidence-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.evidence-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--caseron-white); }
.evidence-item__main { min-width: 0; }
.evidence-item__delete { flex: none; }
.evidence-rename summary { cursor: pointer; font-size: 12px; color: var(--caseron-blue); margin-top: 4px; }
.evidence-rename__form { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.evidence-input { flex: 1; min-width: 150px; padding: 8px 10px; border: 1px solid #D5DCE4; border-radius: 6px; font: inherit; }
.evidence-upload { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.evidence-upload__file { font-size: 13px; }
.evidence-upload__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.evidence-upload__row input[type=text] { flex: 1 1 140px; min-width: 0; }
.dropzone__hint { font-size: 13px; color: var(--caseron-grey); margin: 0; }
/* The screenshot preview only shows once an image is chosen — the controller
   toggles [hidden]; don't force it visible when empty. */
.dropzone__preview:not([hidden]) { max-width: 220px; max-height: 140px; border: 1px solid #D5DCE4; border-radius: 6px; margin-top: 10px; display: block; }
.preview-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.preview-modal[hidden] { display: none; }
.preview-modal__backdrop { position: absolute; inset: 0; background: rgba(26, 26, 26, 0.55); }
.preview-modal__panel { position: relative; background: var(--caseron-white); border-radius: 10px; width: 900px; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 44px rgba(0, 0, 0, 0.32); }
.preview-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-weight: 600; }
.preview-modal__body { padding: 14px; overflow: auto; background: #F4F6F9; }
.preview-modal__img { max-width: 100%; max-height: 78vh; display: block; margin: 0 auto; }
.preview-modal__frame { width: 100%; height: 78vh; border: 0; background: var(--caseron-white); }
/* Excel/CSV rendered inline as a table (SheetJS). */
.preview-sheet { background: var(--caseron-white); }
.preview-sheet__name { margin: 4px 0 8px; font-size: 13px; color: var(--caseron-grey); }
.preview-sheet table { border-collapse: collapse; font-size: 12.5px; margin-bottom: 18px; }
.preview-sheet td, .preview-sheet th { border: 1px solid var(--border); padding: 4px 8px; white-space: nowrap; text-align: left; }
.oc-dl { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin: 0; font-size: 13px; }
.oc-dl dt { color: var(--caseron-grey); }
.oc-dl dd { margin: 0; text-align: right; }
.oc-controls { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.oc-controls li { display: grid; grid-template-columns: 14px 1fr; gap: 3px 8px; align-items: start; }
.oc-controls .traffic { margin-top: 3px; }
.oc-controls__label { font-size: 13px; font-weight: 500; color: var(--caseron-dark); }
.oc-controls__detail { grid-column: 2; font-size: 12px; color: var(--caseron-grey); }

/* The pensions reconciliation grid — Xero's extract on the left, a column per
   payroll month on the right, worked here instead of in a spreadsheet. */
.payroll-grid__wrap { max-height: 680px; overflow: auto; }
/* Auto-fit: every column takes only the width its figures need, so as much of
   the year as possible is readable at once. */
.payroll-grid { font-size: 11px; table-layout: auto; width: auto; }
.payroll-grid th, .payroll-grid td { padding: 2px 5px; white-space: nowrap; }
.payroll-grid thead th { position: sticky; top: 0; background: var(--caseron-white); z-index: 2; }
.payroll-grid__totals th { background: #F4FBFE; font-weight: 600; }
.payroll-grid__control th { border-bottom: 2px solid var(--caseron-dark); }
.payroll-grid__sticky { text-align: right; }
/* The control: green when the month comes to nil, red when it does not. */
.payroll-grid__agreed { color: #3C6E17; background: #E9F8DE; font-weight: 600; }
.payroll-grid__nil { color: var(--caseron-grey); }
.payroll-grid__residual { color: #D64545; background: #FDEFEF; font-weight: 600; }
.payroll-grid__post { background: #FBFCFD; color: var(--caseron-grey); }
.payroll-grid__bfwd { background: #F4FBFE; }
.payroll-grid__row--post td { background: #FBFCFD; }
/* The extract's text columns are capped so they can't push the months off the
   screen; the full text is in the cell's tooltip. */
.payroll-grid__desc { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.payroll-grid__src { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.payroll-grid__ref { max-width: 104px; overflow: hidden; text-overflow: ellipsis; }
/* Hidden while the grid is narrowed to fit a year on the page. */
.payroll-grid--tight .payroll-grid__detail { display: none; }
/* The date stays in view while the months scroll past. */
.payroll-grid td:first-child, .payroll-grid thead th:first-child {
  position: sticky; left: 0; background: var(--caseron-white); z-index: 3;
}
.payroll-grid__totals th:first-child { z-index: 4; }
.payroll-grid__row--post td:first-child { background: #FBFCFD; }
.payroll-grid td.payroll-grid__cell { cursor: pointer; padding: 1px 2px; }
.payroll-grid__cell:hover { background: #EAF8FE; outline: 1px solid var(--caseron-blue); }
.payroll-grid__cell--set { background: #E9F8DE; }
/* An allocated cell is green only while its column comes to nil; the moment
   the column's difference is non-nil, every allocation in it turns red — the
   same absolute signal as the difference row above. */
.payroll-grid__cell--set.payroll-grid__cell--off { background: #FDEFEF; color: #D64545; }
/* The "paid after the year end" row, under the totals */
.payroll-grid__clearance th, .payroll-grid__clearance td { background: #F4FBFE; border-top: 1px solid #CFEDFA; }
/* Each control row totals across, so the proof is on the page: the differences
   come to the closing balance, and "still owed" comes to nil once recorded. */
.payroll-grid__rowtotal { display: inline-block; margin-left: 10px; padding: 1px 6px; border-radius: 3px;
                          font-variant-numeric: tabular-nums; }
/* Deep enough to actually pick a date from — the pickers were unusably
   small at grid scale (Lisa, 14/09/2026). */
.payroll-grid__clearance-date { width: 118px; font-size: 12px; padding: 6px 4px;
                               margin-top: 3px; line-height: 1.4; min-height: 32px;
                               border: 1px solid #D5DCE4; border-radius: 3px; }
.payroll-grid__clearance-date[hidden] { display: none; }
.payroll-grid__clearance-select { width: 100%; max-width: 88px; min-height: 30px; padding: 5px 3px; font-size: 11px; }
.payroll-grid__clearance td .payroll-grid__amount { min-height: 30px; font-size: 12px; padding: 5px 3px; margin-top: 3px; }
/* The input sets the column width — narrow enough for a year on one screen. */
.payroll-grid__amount { width: 52px; font-size: 11px; padding: 1px 3px; text-align: right;
                        border: 1px solid transparent; background: transparent; border-radius: 3px; }
.payroll-grid__amount:hover { border-color: #D5DCE4; }
.payroll-grid__amount:focus { border-color: var(--caseron-blue); background: var(--caseron-white); outline: none; }
.payroll-grid__amount::-webkit-outer-spin-button,
.payroll-grid__amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.payroll-grid__note { width: 84px; font-size: 11px; padding: 1px 4px; }
.payroll-grid__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.payroll-grid--unsaved .payroll-grid__cell--set { outline: 1px dashed var(--caseron-blue); }

/* "No evidence available" — a deliberate note that there is nothing to attach */
.evidence-waiver { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 8px 10px;
                   background: #F4FBFE; border: 1px solid #CFEDFA; border-radius: 6px; }
.evidence-waiver__label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--caseron-dark); cursor: pointer; }
.evidence-waiver input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--caseron-blue); cursor: pointer; }

/* Reconciles / Reviewed / Approved pips on the control list. */
.rai { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.rai__pip {
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  padding: 1px 5px; border-radius: 3px;
  border: 1px solid var(--border); background: var(--caseron-white); color: var(--caseron-grey);
}
.rai__pip--on { background: var(--caseron-green); border-color: var(--caseron-green); color: var(--caseron-dark); }
.rai__pip--off { opacity: 0.5; }
/* Reconciles, but on a person's note that no evidence exists rather than on a
   document — neutral blue, so it never reads as evidence held. */
.rai__pip--neutral { background: var(--caseron-blue); border-color: var(--caseron-blue); color: var(--caseron-white); }

/* Evidence, client queries and review notes side by side, so they stop eating
   vertical space stacked full-width. Each column is a plain .card, sitting
   flush to the top of the row. */
/* Three equal thirds, whatever is inside: a plain 1fr lets the widest
   content (the evidence upload boxes) widen its column and push review notes
   off the page (30/11/2026). */
.paper-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
/* All three cards take the full height of the row, so they read as equal
   depth — the shorter one (client queries) no longer sits small in the middle. */
.paper-columns > .card { margin-bottom: 0; height: 100%; }
@media (max-width: 1100px) { .paper-columns { grid-template-columns: 1fr; } }

/* Tables ------------------------------------------------------------------ */
/* Wide tables scroll sideways inside their wrapper rather than squeezing every
   column thin: the table grows to its content (min 100% so narrow tables still
   fill the card), and the wrapper scrolls when there are more columns than fit.
   Headers and figures never wrap, so each column keeps a readable width. */
.table-wrap { overflow-x: auto; }
table.grid {
  width: auto;
  min-width: 100%;
  border-collapse: collapse;
  background: var(--caseron-white);
  /* Compact by design: the control list carries many columns. */
  font-size: 12.5px;
}
table.grid th, table.grid td.num, table.grid td.code { white-space: nowrap; }
table.grid th, table.grid td {
  text-align: left;
  padding: 8px 11px;
  border-bottom: 1px solid var(--border);
}
table.grid thead th {
  color: var(--caseron-grey);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table.grid td.num, table.grid th.num { text-align: right; font-variant-numeric: tabular-nums; }
.area-row th {
  background: #EEF3F8;
  color: var(--caseron-dark);
  font-weight: 600;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}
tr.account-row:hover td { background: #F7FAFD; }
.code { color: var(--caseron-grey); font-variant-numeric: tabular-nums; }

/* Status pills (paper/section status convention) -------------------------- */
.status {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--caseron-grey);
  background: var(--caseron-white);
  white-space: nowrap;
}
.status--not_started { color: var(--grey-soft); }
.status--in_progress { background: #FFF4D6; border-color: var(--caseron-amber); color: #8A6600; }
.status--complete { background: #E9F8DE; border-color: var(--caseron-green); color: #3C6E17; }

/* Client inboxes: the Karbon-style three-pane reader ---------------------- */
.reader {
  display: grid;
  grid-template-columns: 210px 320px 1fr;
  gap: 0;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--caseron-white);
  min-height: 560px; height: calc(100vh - 200px);
}
.reader > * { min-width: 0; overflow-y: auto; }

/* Pane 1 — the rail of inboxes */
.reader__rail { background: #F7FAFC; border-right: 1px solid var(--border); padding: 12px 10px; }
.reader__rail-head {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--caseron-grey); font-weight: 600; padding: 4px 8px 10px;
}
.reader__rail-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.reader__inbox { position: relative; display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; color: var(--caseron-dark); }
.reader__inbox:hover { background: #EAF8FE; text-decoration: none; }
.reader__inbox--active { background: #E1F3FC; }
/* The new-mail alert: a count in the top-right corner of the tab. */
.reader__badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--caseron-pink); color: var(--caseron-white);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.reader__avatar {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--caseron-white); background: var(--caseron-blue);
}
.reader__avatar--microsoft { background: #0F6CBD; }
/* The short-code chip on each tab, so the rail stays small. */
.reader__code {
  flex: 0 0 auto; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--caseron-white); background: var(--caseron-blue);
}
.reader__code--microsoft { background: #0F6CBD; }
.reader__inbox-text { display: flex; flex-direction: column; min-width: 0; }
.reader__inbox-name { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader__inbox-meta { font-size: 11px; color: var(--caseron-grey); }
/* Folders under the active inbox. */
.reader__folders { list-style: none; margin: 2px 0 6px 0; padding: 0 0 0 10px; display: flex; flex-direction: column; gap: 1px; }
.reader__folder { display: block; padding: 4px 8px; border-radius: 6px; font-size: 12px; color: var(--caseron-grey); }
.reader__folder:hover { background: #EAF8FE; text-decoration: none; }
.reader__folder--active { background: #E1F3FC; color: var(--caseron-dark); font-weight: 600; }
.reader__add {
  display: block; text-align: center; padding: 8px; border-radius: 8px;
  border: 1px dashed #C7D2DE; color: var(--caseron-grey); font-size: 12px; font-weight: 500;
}
.reader__add:hover { border-color: var(--caseron-blue); color: var(--caseron-blue); text-decoration: none; }

/* Pane 2 — the conversation list */
.reader__list { border-right: 1px solid var(--border); }
.reader__list-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-weight: 600; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--caseron-white);
}
.reader__list-count { color: var(--caseron-grey); font-size: 13px; font-variant-numeric: tabular-nums; }
.reader__list-link { font-size: 12px; font-weight: 500; }
.reader__inbox-connect { color: var(--caseron-pink); font-weight: 600; }
.reader__list-subhead {
  padding: 10px 16px 4px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--caseron-grey); font-weight: 600;
}
.reader__conversations { list-style: none; margin: 0; padding: 0; }
.reader__convo { display: block; padding: 12px 16px; border-bottom: 1px solid #EEF2F6; color: var(--caseron-dark); }
.reader__convo:hover { background: #F7FAFC; text-decoration: none; }
.reader__convo--active { background: #E1F3FC; }
.reader__convo--active:hover { background: #E1F3FC; }
.reader__convo-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.reader__convo-who { font-size: 13px; color: var(--caseron-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader__convo-when { font-size: 12px; color: var(--grey-soft); white-space: nowrap; }
.reader__convo-subject { font-size: 14px; margin: 2px 0 1px; }
.reader__convo-preview { font-size: 12px; color: var(--caseron-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader__convo--unread .reader__convo-subject,
.reader__convo--unread .reader__convo-who { font-weight: 600; color: var(--caseron-dark); }
.reader__convo--unread { border-left: 3px solid var(--caseron-blue); }
.reader__convo--muted .reader__convo-subject { color: var(--caseron-grey); }

/* Pane 3 — the reading pane */
.reader__pane { display: flex; flex-direction: column; }
.reader__pane-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--caseron-white);
}
.reader__subject { font-size: 18px; font-weight: 600; margin: 0; }
.reader__pane-sub { font-size: 12px; color: var(--caseron-grey); }
/* The management toolbar on a managed inbox: move, tag, mark read. */
.reader__manage {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 20px; border-bottom: 1px solid var(--border); background: #FBFDFF;
}
.reader__manage-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.reader__manage-select { padding: 5px 8px; border: 1px solid #D5DCE4; border-radius: 6px; font: inherit; font-size: 13px; }
.reader__thread { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.reader__msg { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.reader__msg--inbound { border-left: 3px solid var(--caseron-blue); }
.reader__msg--outbound { border-left: 3px solid var(--caseron-green); background: #FAFCF7; }
.reader__msg-meta { font-size: 13px; color: var(--caseron-grey); margin-bottom: 6px; }
.reader__msg-when { display: block; font-size: 12px; color: var(--grey-soft); margin-top: 2px; }
.reader__msg-body p { margin: 0 0 8px; }
.reader__msg-body p:last-child { margin-bottom: 0; }
.reader__reply { border-top: 1px solid var(--border); padding: 14px 20px; background: #F7FAFC; }
.reader__reply-box { width: 100%; border: 1px solid #D5DCE4; border-radius: 8px; padding: 10px 12px; font: inherit; resize: vertical; }
.reader__reply-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.reader__reply-note { font-size: 12px; color: var(--caseron-grey); }
.reader__reply--readonly { color: var(--caseron-grey); font-size: 13px; }
.reader__pane-empty, .reader__pane-empty p { color: var(--caseron-grey); padding: 40px 20px; text-align: center; }
.reader__warning { padding: 16px; color: var(--caseron-grey); font-size: 13px; }
.reader__empty { grid-column: 2 / 4; padding: 40px; }
.reader__empty h1 { font-weight: 600; font-size: 22px; margin: 0 0 6px; }
.reader__empty p { color: var(--caseron-grey); margin: 0 0 14px; }

@media (max-width: 900px) {
  .reader { grid-template-columns: 1fr; height: auto; }
  .reader__rail, .reader__list { border-right: none; border-bottom: 1px solid var(--border); }
}

.vintage { color: var(--caseron-grey); font-size: 13px; }
.totals-row td { font-weight: 600; border-top: 2px solid var(--border); }

/* Notes on a review finding: accumulate, each stamped, edit and delete ----- */
.finding-notes { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 10px; }
.finding-note { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.finding-note__body { font-size: 13px; }
.finding-note__tools { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.finding-note__tools details { display: inline-block; }
.finding-note__tools summary { cursor: pointer; font-size: 12px; color: var(--caseron-blue); }
.finding-note__tools details[open] summary { margin-bottom: 6px; }
.finding-note__input { padding: 6px 10px; border: 1px solid #D5DCE4; border-radius: 6px; font: inherit; min-width: 260px; }

/* One action row at the foot of a finding: a full-width note field with its
   Add note button, then Raise query / Dismiss — all on the same line. */
.finding-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.finding-actions form { margin: 0; }
.finding-actions__note { display: flex; align-items: center; gap: 8px; flex: 1 1 60%; min-width: 300px; }
.finding-actions__note .finding-note__input { flex: 1; min-width: 0; }

/* The unpaid-invoice bad-debt tick on aged papers. */
.aged-baddebt { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; cursor: pointer; }
/* The contact row: name on the left, the whole-contact bad-debt decision right */
.aged-contact { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.aged-contact__form { display: inline; margin: 0; }
/* "Show only bad debt" filter on the aged report: keep just the bad-debt rows
   and the client headings above them (for copying into a Karbon note); hide the
   other invoices, the subtotals and the grand total. */
.show-baddebt-only tbody tr.totals-row { display: none; }
.show-baddebt-only tfoot { display: none; }
.show-baddebt-only tbody tr:not(.aged-row--baddebt):not(.aged-contact--baddebt) { display: none; }

/* Transactions at the foot of a paper: review and flag rows to query ------ */
.txn__heading { font-weight: 600; font-size: 15px; margin: 18px 0 8px; }
.txn__flag { white-space: nowrap; }
.txn__flag form { display: inline; }
.txn__flag details { display: inline-block; margin-right: 6px; }
.txn__flag summary { cursor: pointer; font-size: 12px; color: var(--caseron-blue); }
tr.txn--flagged td { background: #FFF0FA; }
/* The transaction filters/actions row (filters, select-all, clear selected). */
.txn-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.deferral__decline { display: inline-block; margin: 6px 6px 0 0; }
.xero-drafts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.xero-drafts .deferral__warning { flex-basis: 100%; margin: 0; }
.txn-group { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.txn-group__label { font-size: 13px; color: var(--caseron-grey); }
.deferral__group { margin: 6px 0 10px; font-size: 13px; }
.deferral__group td, .deferral__group th { padding: 3px 8px; }
.txn-selectall { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--caseron-grey); }
.txn__select { margin-right: 6px; vertical-align: middle; }

/* Disclosure decision radio dials — the reviewer's Reported / Not needed call */
.disc-radio { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--caseron-dark); margin-bottom: 4px; cursor: pointer; }
.disc-radio input { margin: 0; }

/* The four ordered steps on the trial-balance page: framework, data import, review, work papers */
.step-card { padding: 12px 18px; margin-bottom: 12px; }
.step-card__title { margin: 0; font-size: 15px; }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.step-status { margin: 8px 0 0; font-size: 14px; color: var(--caseron-dark); }

/* The client you are in, shown in the header at a glance */
.app-header__client { display: inline-flex; align-items: baseline; gap: 10px; margin-left: 2px; }
.app-header__client-sep { color: #C9D2DC; font-weight: 400; }
.app-header__client-name { color: var(--caseron-dark); font-weight: 500; text-decoration: none; font-size: 17px; }
.app-header__client-name:hover { color: var(--caseron-primary); }

/* The four-step strip — the year end at a glance, ticked as it completes */
.steps-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
.steps-strip--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .steps-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps-strip--thirds { grid-template-columns: 1fr; } }
.step-block { background: #FFFFFF; border: 1px solid #E3E8EE; border-radius: 10px; padding: 12px 14px; min-width: 0; }
.step-block__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.step-block__label { font-size: 14px; font-weight: 500; color: var(--caseron-grey); letter-spacing: .01em; }
.step-tick { width: 21px; height: 21px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.step-tick--done { background: var(--caseron-green); color: #1A3A0A; }
/* A step that is running flashes, so "happening now" reads from across the
   room and is never mistaken for "nobody has pressed it" (Lisa, 30/09/2026).
   The first attempt was too quiet to notice, so the circle now changes colour
   as well as size and throws a ring, and the whole block glows with it. */
.step-tick--busy { background: var(--caseron-amber); color: #5C4300; position: relative;
  animation: step-tick-flash 1s ease-in-out infinite; }
@keyframes step-tick-flash {
  0%, 100% { background: var(--caseron-amber); color: #5C4300; transform: scale(1);
             box-shadow: 0 0 0 0 rgba(255, 192, 0, .85); }
  50%      { background: #FF8A00; color: #FFFFFF; transform: scale(1.22);
             box-shadow: 0 0 0 9px rgba(255, 138, 0, 0); }
}

/* The block it belongs to, so the eye lands on the right step and not just the
   circle. */
.step-block--working { border-color: var(--caseron-amber);
  animation: step-block-flash 1s ease-in-out infinite; }
@keyframes step-block-flash {
  0%, 100% { background: #FFFFFF; box-shadow: 0 0 0 0 rgba(255, 192, 0, 0); }
  50%      { background: #FFF8E3; box-shadow: 0 0 0 3px rgba(255, 192, 0, .35); }
}
.step-block--working .step-block__label { color: #8A6100; font-weight: 600; }
.step-block--working .step-block__fact { color: #6B4C00; }

@media (prefers-reduced-motion: reduce) {
  .step-tick--busy, .step-block--working { animation: none; }
  .step-tick--busy { background: #FF8A00; color: #FFFFFF; }
  .step-block--working { background: #FFF8E3; }
}
.step-tick--stuck { background: var(--caseron-pink); color: #FFFFFF; }
.step-tick--todo { border: 1.5px solid #C9D2DC; }

/* The twelve steps (Year_End_Workflow_Spec_V1.1): two rows of six tiles, one
   width and one depth (house rule, 15/11/2026). The band across the top of a
   tile is its state in the house colours: none not started, amber in
   progress, green complete, pink when it needs a person. The tile's buttons
   sit at its foot, level across the row. */
/* Three rows of four: wide enough that every button keeps its whole name on
   one row, so no tile has to cut a label short (29/11/2026). */
.twelve-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; margin-bottom: 14px; }
@media (max-width: 1000px) { .twelve-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .twelve-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step-tile { background: #FFFFFF; border: 1px solid #E3E8EE; border-top: 4px solid #E3E8EE; border-radius: 10px; padding: 10px 12px 12px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.step-tile--done { border-top-color: var(--caseron-green); }
.step-tile--in_progress, .step-tile--working { border-top-color: var(--caseron-amber); }
.step-tile--stuck { border-top-color: var(--caseron-pink); }
.step-tile--working { animation: step-block-flash 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .step-tile--working { animation: none; background: #FFF8E3; } }
.step-tile__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
/* Three lines and no more (Lisa, 29/11/2026): the name, one line of status,
   one row of buttons. Anything longer is cut with an ellipsis and said in
   full on the pointer. */
.step-tile__head { min-width: 0; }
.step-tile__name { font-size: 13px; font-weight: 600; color: var(--caseron-dark); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.step-tile__num { display: inline-block; min-width: 18px; color: var(--caseron-grey); font-weight: 500; }
.step-tile__fact { margin: 2px 0 0; font-size: 12.5px; color: var(--caseron-dark); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-tile__note { color: var(--caseron-grey); }
.step-tile__actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: nowrap; gap: 4px; align-items: center; min-width: 0; overflow: hidden; }
.step-tile__actions form { margin: 0; min-width: 0; flex: 0 1 auto; }
.step-tile__actions .btn--small { padding: 3px 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%; flex: 0 1 auto; }
.step-tile__form input[type=submit] { flex: none; }
.step-tile__form { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; min-width: 0; }
.step-tile__form select { min-width: 0; flex: 1 1 auto; font-size: 11.5px; padding: 3px 4px; }
.step-tick--amber { background: var(--caseron-amber); }
.step-block__fact { margin: 8px 0 0; font-size: 15px; font-weight: 500; color: var(--caseron-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-block__meta { margin: 4px 0 0; font-size: 13px; color: var(--caseron-grey); display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.step-block__meta a { color: var(--caseron-primary); text-decoration: none; }
.step-block__form { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; }
.step-block__select { padding: 6px 8px; border: 1px solid #D5DCE4; border-radius: 6px; font: inherit; font-size: 14px; min-width: 0; flex: 1; }
.step-block__action { background: none; border: none; padding: 0; font: inherit; font-size: 13px; color: var(--caseron-primary); cursor: pointer; }
.step-block__meta form { display: inline; margin: 0; }
.step-block__button { margin-top: 8px; }

/* Two workings side by side whose ROWS have to line up — the tax workings and
   the deferred tax journal, where 2025 in one is 2025 in the other and they are
   read across. The journal's column headings run to two lines and the tax
   workings' to one, which put every row out of step (Lisa, 30/09/2026).
   Heading, subtitle and table header are each held to the same height, so the
   first figure in both tables starts on the same line. */
.paired-workings { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; margin-top: 20px; }
.paired-workings > div { flex: 1 1 340px; min-width: 300px; }
.paired-workings > div > h3 { margin: 0 0 6px; min-height: 1.6em; }
.paired-workings > div > .subtitle { margin: 0 0 10px; min-height: 2.8em; }
.paired-workings thead th { height: 3.4em; vertical-align: bottom; }
@media (max-width: 760px) {
  /* Stacked, so there is nothing to line up. */
  .paired-workings > div > h3,
  .paired-workings > div > .subtitle { min-height: 0; }
  .paired-workings thead th { height: auto; }
}

/* A box for PROSE, not money: the sections of a letter, a long note. Full
   width because a paragraph needs the room, and a class rather than an inline
   width so the editable-table standard still holds (Lisa, 10/10/2026). */
.prose-box { width: 100%; padding: 10px; border: 1px solid #D5DCE4; border-radius: 6px;
  font: inherit; font-size: 14px; line-height: 1.5; }
.prose-box:focus { outline: 2px solid var(--caseron-primary); outline-offset: -1px; }
.prose-line { max-width: 420px; }

/* A figure you can type over, inside a grid. Right-aligned like the figure it
   replaces, so a table of them still reads as a column of money. */
.cell-num { width: 8.5em; text-align: right; padding: 4px 6px; border: 1px solid #D5DCE4;
  border-radius: 5px; font: inherit; font-size: 14px; background: #FFFFFF; }
.cell-num:focus { outline: 2px solid var(--caseron-primary); outline-offset: -1px; }
/* A year, or a rate — a figure that is never money and never long. */
.cell-num--narrow { width: 5em; }
/* An account you type into, inside a grid — a code or a name, picked from a
   list. Left-aligned text, wide enough for "4011_PD — ABAP Training [Paid]". */
.cell-code { width: 24em; max-width: 100%; padding: 4px 8px; border: 1px solid #D5DCE4;
  border-radius: 5px; font: inherit; font-size: 14px; background: #FFFFFF; }
.cell-code:focus { outline: 2px solid var(--caseron-primary); outline-offset: -1px; }
/* A tracking code in a dense transaction list — a short option name. */
.cell-code--narrow { width: 13em; padding: 3px 6px; font-size: 13px; }
/* The save bar above and below a long list of typed codes (Lisa, 28/10/2026). */
.tc-save-bar { display: flex; align-items: center; gap: 12px; margin: 10px 0; flex-wrap: wrap; }

/* A filter bar above a long list (Lisa, 28/10/2026): the portal's pill tabs to
   choose which rows show, and a find box — so nobody scrolls a hundred lines. */
.list-filter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0; }
.list-filter .tabs { margin-bottom: 0; }
/* .list-filter__search: styled with the one search box, beside .search-form. */
/* The pill tabs used as on-page buttons — a filter, a view switch. */
button.tab { font: inherit; font-size: 14px; cursor: pointer; }

/* The SORP P&L's Summary view: each group collapses to its sub-total. */
.is-summary .pnl-detail-row { display: none; }
/* The payroll grid is the one exception: a column per month leaves no room for
   a box this size, so it keeps its own much smaller one. */

/* The data-trust line — the self-correction standard on every work paper.
   Stacked, not strung out: the state and its bar on top, what it means next,
   what to do about it last. As one flowing line the sentence broke into
   columns and had to be read across them (Lisa, 23/09/2026). */
.trust-line { margin: 8px 0 0; font-size: 13px; color: var(--caseron-grey);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.trust-line__head { display: flex; align-items: center; gap: 8px; flex: none; }
.trust-line__note, .trust-line__tail { display: inline; }
.trust-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; align-self: center; }
/* The refresh counter: something to watch while a ledger is being read. */
.trust-progress { display: inline-block; width: 120px; height: 8px; border-radius: 4px;
                  background: #DCEEF8; overflow: hidden; align-self: center; flex: none; }
.trust-progress__bar { display: block; height: 100%; background: var(--caseron-blue);
                       transition: width 0.6s ease; }
.trust-progress__figure { font-variant-numeric: tabular-nums; }
.trust-line--reading .trust-dot { background: var(--caseron-primary); }
.trust-line--reading { color: #0A5E80; }
.trust-line--healthy .trust-dot { background: var(--caseron-green); }
.trust-line--repairing .trust-dot { background: var(--caseron-amber); }
.trust-line--repairing { color: #8A6D00; }
.trust-line--blocked .trust-dot { background: var(--caseron-pink); }
.trust-line--blocked { color: #B00060; }
/* A statement on a working, rather than the state of an import: it proves
   (fine), it wants attention (low), or it is happening now (working). They
   were being used on the papers all through 10–11/10/2026 with no styles
   behind them at all, so they read as ordinary grey text and said nothing
   (found 11/10/2026). They are bands, so they carry a little room and a
   left edge rather than a dot. */
.trust-line--fine, .trust-line--low, .trust-line--working {
  padding: 8px 12px; border-radius: 6px; border-left: 3px solid; }
.trust-line--fine { background: #F2FAEC; border-left-color: var(--caseron-green); color: #3E6B16; }
.trust-line--low { background: #FFF8E8; border-left-color: var(--caseron-amber); color: #8A6D00; }
.trust-line--working { background: #EAF6FD; border-left-color: var(--caseron-primary); color: #0A5E80; }

/* P&L monthly trend — click a month to isolate its transactions below */
.monthfilter__cell { cursor: pointer; }
/* A month wears the colour of its own transactions, in the same two colours as
   the rows underneath: pink while any line in it is flagged or still to check,
   green once every one picked up has been cleared. The order below is the
   order they win in — review state first, then size, then hover, then the
   month you have actually clicked (Lisa, 23/09/2026). */
th.monthfilter__cell.month--large, td.monthfilter__cell.month--large { background: #FFF6E0; }
th.monthfilter__cell.month--check, td.monthfilter__cell.month--check { background: #FFDFF4; }
th.monthfilter__cell.month--cleared, td.monthfilter__cell.month--cleared { background: #EAF7E1; }
th.monthfilter__cell:hover, td.monthfilter__cell:hover { background: #EAF7FF; }
th.monthfilter__cell.is-active, td.monthfilter__cell.is-active { background: var(--caseron-blue); color: #FFFFFF; }
.monthfilter__status[hidden] { display: none; }
.monthfilter__status { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--caseron-grey); }
/* "Show queried only" filter: hide every transaction row that isn't flagged. */
.show-queried-only tbody tr:not(.txn--flagged) { display: none; }
/* "Show only lines to check" filter: hide every row the review didn't highlight
   as worth checking. Baked in — every transaction listing carries this filter. */
.show-check-only tbody tr:not(.txn--check) { display: none; }
/* Might-need-checking rows: a clearer pink than a human flag, drawing the eye
   without claiming the line is wrong. The reason sits under the description. */
tr.txn--check td { background: #FFDFF4; }
/* Reviewed ("cleared") rows: a soft green — looked at, the figure is fine. */
tr.txn--reviewed td { background: #EAF7E1; }
/* Compact reallocation control on the trial-balance rows. */
.account-row details.reallocate { display: inline; margin-left: 8px; }
.account-row details.reallocate summary { cursor: pointer; font-size: 11px; color: var(--caseron-blue); display: inline; }
.account-row details.reallocate .import-form { margin-top: 6px; }
.txn__check-reason { color: var(--caseron-pink); font-size: 11px; margin-top: 3px; }
/* The operating leases paper: a lease's terms, and the note under the leases —
   boxes that show the whole of what is written (Lisa, 02/10/2026). */
.lease-terms { width: 100%; min-width: 220px; font: inherit; font-size: 11px; padding: 4px 6px;
               border: 1px solid #D5DCE4; border-radius: 6px; resize: vertical; margin-top: 4px; }
.lease-note { display: block; width: 100%; font: inherit; font-size: 13px; padding: 6px 8px; margin-top: 4px;
              border: 1px solid #D5DCE4; border-radius: 6px; resize: vertical; }
/* A year-end item settled after the year end, and the line that settled it. */
.txn__cleared { color: #3C6E17; font-size: 11px; margin-top: 3px; }
.txn__clearing { margin-top: 6px; }
.txn__clearing-form { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.txn__clearing-select { max-width: 220px; font: inherit; font-size: 11px; padding: 3px 4px;
                        border: 1px solid #D5DCE4; border-radius: 6px; }
/* The other side of the entry, under the payee and memo — context, not the headline. */
.txn__contra { color: var(--caseron-grey); font-size: 11px; margin-top: 2px; }
/* What a journal set is, in a few words, in its own column beside the code.
   Reads as supporting detail rather than competing with the figures. */
th.set-about, td.set-about { min-width: 230px; }
td.set-about { color: var(--caseron-grey); font-size: 12px; font-weight: 400;
  white-space: normal; }
.txn__check-key { display: inline-block; width: 11px; height: 11px; border-radius: 3px;
  background: #FFDFF4; border: 1px solid var(--caseron-pink); vertical-align: middle; }
/* Its opposite number: cleared, in the same green the reviewed rows carry. */
.txn__cleared-key { display: inline-block; width: 11px; height: 11px; border-radius: 3px;
  background: #EAF7E1; border: 1px solid var(--caseron-green); vertical-align: middle; }

/* Rolling through the pack: previous/next arrows on every paper ----------- */
.paper-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.paper-nav__count { white-space: nowrap; text-align: center; line-height: 1.5; }
/* How far the pack has got, beside where you are in it. The count that matters
   is in the brand green: it only goes up (Lisa, 24/09/2026). */
.paper-nav__done { color: #4E8A1E; font-weight: 600; }
.paper-nav__end { opacity: 0.45; cursor: default; }
.paper-nav--foot { display: flex; justify-content: flex-end; margin-top: 20px; }

/* Pack progress at a glance — three points per paper (opened, reviewed,
   signed off), shown as a single fill toward 100% complete. */
.pack-progress { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; min-width: 240px; }
.pack-progress__track { width: 240px; height: 8px; border-radius: 999px; overflow: hidden; background: #EDF1F5; }
.pack-progress__fill { display: block; height: 100%; background: var(--caseron-green); border-radius: 999px; transition: width 0.3s ease; }
.pack-progress__label { font-size: 12px; color: var(--caseron-grey); text-align: right; }

/* The paper's progress bar: not started → … → approved --------------------- */
.stage-card { padding: 16px 18px; }
.stage-bar { display: flex; flex-wrap: wrap; }
.stage-bar form { flex: 1; display: flex; min-width: 120px; }
.stage-bar form + form .stage-bar__step { border-left: none; }
.stage-bar__step {
  flex: 1;
  font-family: inherit; font-size: 13px; font-weight: 500;
  padding: 10px 8px; cursor: pointer; text-align: center;
  background: var(--caseron-white); color: var(--caseron-grey);
  border: 1px solid var(--border); border-radius: 0;
}
.stage-bar form:first-child .stage-bar__step { border-radius: 8px 0 0 8px; }
.stage-bar form:last-child .stage-bar__step { border-radius: 0 8px 8px 0; }
.stage-bar__step:hover { background: #EAF8FE; }
.stage-bar__step.is-done { background: #EAF8FE; color: #01699A; border-color: var(--caseron-blue); }
.stage-bar__step.is-current { background: var(--caseron-blue); color: var(--caseron-white); border-color: var(--caseron-blue); font-weight: 600; }
/* Approved is the sign-off — the final step turns green when it's reached. */
.stage-bar__step--approved.is-current { background: var(--caseron-green); color: var(--caseron-dark); border-color: var(--caseron-green); }
/* Approval is Lisa's alone; for everyone else the last step is a locked span,
   not a button — keep the border/rounded-corner chain unbroken. */
.stage-bar__step.is-locked { cursor: not-allowed; opacity: 0.6; }
.stage-bar__step.is-locked:hover { background: var(--caseron-white); }
.stage-bar form + span.stage-bar__step { border-left: none; }
.stage-bar > span.stage-bar__step:last-child { border-radius: 0 8px 8px 0; }
/* A skipped Management Accounts period: closed off grey, never dressed green. */
.stage-bar__step--skipped.is-current { background: #F1F4F8; color: var(--caseron-grey); border-color: #D5DCE4; }
.status-word { font-size: 12px; color: var(--caseron-grey); margin-left: 2px; vertical-align: middle; }

/* Aged detail report: Xero's layout, computed totals ----------------------- */
.grid--compact th, .grid--compact td { font-size: 12.5px; padding: 6px 10px; }
.aged-report__head { line-height: 1.5; }
.aged-report__title { font-weight: 600; }
.aged-report__org { color: var(--caseron-grey); }

/* Definition lists on the paper ------------------------------------------ */
.dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; margin: 0; }
.dl dt { color: var(--caseron-grey); }
.dl dd { margin: 0; font-weight: 500; }

/* PULSE -------------------------------------------------------------------
   Restyled 11/07/2026 to the portal's light language — white cards, blue
   top edges, grey text — as a mock-up for Lisa's judgement. The original
   dark scheme (which Lisa likes) is recorded in
   docs/PULSE_Colour_Scheme_V1.0.md and restores with one revert. The
   letter tiles, heartbeat, and green-revenue/blue-cost charts are brand,
   not theme, and stay identical in both skins. */
:root {
  --pulse-navy: #0A1628;
  --pulse-navy2: #0F2040;
  --pulse-blue-light: #33C4F7;
  --pulse-blue-pale: #E6F8FE;
  --pulse-ok: #027A48;   /* profit lines and positive states, from the old build */
  --pulse-bad: #B42318;
}

/* The compact PULSE logo: blue square with the heartbeat, the name, the tag */
.pulse-logo { display: flex; align-items: center; gap: 9px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.pulse-logo__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--caseron-blue); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pulse-logo__name { color: var(--caseron-blue); font-weight: 700; font-size: 17px; letter-spacing: 3px; line-height: 1; }
.pulse-logo__tag { color: var(--grey-soft); font-size: 8.5px; letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }

/* P&L sheet section bands */
.pulse-sec td { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; padding: 5px 12px; }
.pulse-sec--rev td { background: #ECFDF5; color: #065F46; }
.pulse-sec--cogs td { background: #F9FAFB; color: var(--caseron-grey); }
.pulse-sec--vital td { background: #EFF8FF; color: #1E3A5F; }
.pulse-sec--ctrl td { background: #FFFBEB; color: #92400E; }
.pulse-sec--blw td { background: #F9FAFB; color: var(--caseron-grey); }
.pulse-row--net td { background: #ECFDF3; font-weight: 700; }

.pulse-layout { display: flex; gap: 22px; align-items: flex-start; }

.pulse-sidebar {
  flex: 0 0 216px; position: sticky; top: 16px;
  background: var(--caseron-white); border: 1px solid var(--border);
  border-top: 3px solid var(--caseron-blue); border-radius: 12px;
  padding: 20px 16px; color: var(--caseron-grey);
}
.pulse-content { flex: 1; min-width: 0; }

/* The stacked wordmark: leading capitals bold, grey lowercase tails.
   P and U pink, L green, S and E blue; the heartbeat runs from Learn. */
.pulse-wordmark { list-style: none; margin: 0 0 18px; padding: 0; }
.pulse-wordmark li { font-size: 15px; line-height: 1.7; color: var(--grey-soft); display: flex; align-items: center; gap: 6px; }
.pulse-wordmark .cap { font-weight: 700; font-size: 17px; }
.pulse-wordmark svg { flex: 0 0 auto; }
.pulse-tagline { color: var(--grey-soft); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 18px; }

.pulse-nav { margin: 0 0 16px; }
.pulse-nav__group { color: var(--grey-soft); font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; margin: 14px 0 4px; }
.pulse-nav a, .pulse-nav__soon {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 10px; border-radius: 7px; font-size: 13px; color: var(--caseron-grey);
}
.pulse-nav a:hover { background: #EAF8FE; text-decoration: none; }
.pulse-nav a.pulse-nav--active { background: var(--pulse-blue-pale); color: #01699A; font-weight: 500; box-shadow: inset 2px 0 0 var(--caseron-blue); }
.pulse-nav__soon { color: var(--grey-soft); cursor: default; }
.pulse-soon-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  padding: 1px 6px; border-radius: 999px;
  border: 1px solid var(--grey-soft); color: var(--grey-soft);
}

/* Client switcher in the sidebar */
.pulse-clients { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; margin-bottom: 8px; }
.pulse-clients summary { cursor: pointer; font-size: 13px; color: var(--caseron-dark); font-weight: 500; list-style: none; display: flex; align-items: center; gap: 8px; }
.pulse-clients summary::-webkit-details-marker { display: none; }
.pulse-client-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
/* Charities stand apart on the client lists (Lisa, 26/10/2026). */
.pulse-charity-tag { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: #92D050; color: #1A1A1A; font-size: 11px; font-weight: 600; line-height: 18px; vertical-align: middle; }
.pulse-clients a { display: block; padding: 5px 8px; border-radius: 6px; font-size: 13px; color: var(--caseron-grey); }
.pulse-clients a:hover { background: #EAF8FE; text-decoration: none; }
.pulse-clients form { margin-top: 8px; }
.pulse-add-form input, .pulse-add-form select {
  width: 100%; margin-bottom: 6px; padding: 6px 8px; font: inherit; font-size: 12.5px;
  border: 1px solid #D5DCE4; border-radius: 6px;
  background: var(--caseron-white); color: var(--caseron-dark);
}
.pulse-add-form label { font-size: 11px; color: var(--caseron-grey); display: block; }

/* Health ring — an SVG donut with the score in the middle */
.pulse-health { text-align: center; padding-top: 14px; border-top: 1px solid var(--border); }
.pulse-health__label { font-size: 12px; font-weight: 600; margin-top: 4px; }
.pulse-health__sub { font-size: 11px; color: var(--caseron-grey); }

/* Topbar strip inside the content column */
.pulse-topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.pulse-topbar h1 { font-size: 24px; font-weight: 600; margin: 0; }
.pulse-topbar .vintage { white-space: nowrap; }

/* Self-check panel — slides open from the checks toggle */
.pulse-checks { position: relative; }
.pulse-checks summary { cursor: pointer; list-style: none; }
.pulse-checks summary::-webkit-details-marker { display: none; }
.pulse-checks__badge {
  display: inline-block; min-width: 18px; text-align: center;
  background: #D64545; color: var(--caseron-white);
  border-radius: 999px; font-size: 11px; font-weight: 600; padding: 1px 6px;
}
.pulse-checks__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  width: 320px; background: var(--caseron-white);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.14); padding: 14px;
}
.pulse-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.pulse-check:last-child { border-bottom: none; }
.pulse-check__label { font-size: 13px; font-weight: 500; }
.pulse-check__detail { font-size: 12px; color: var(--caseron-grey); }

/* Dashboard hero: the five PULSE tiles, gently breathing */
.pulse-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--caseron-white); border: 1px solid var(--border); border-top: 3px solid var(--caseron-blue); border-radius: 12px; padding: 24px; color: var(--caseron-dark); margin-bottom: 16px; }
.pulse-hero__tiles { display: flex; gap: 10px; flex-wrap: wrap; }
.pulse-hero__tile { text-align: center; background: var(--surface); border-radius: 10px; padding: 12px 14px; min-width: 86px; animation: pulse-breathe 3.2s ease-in-out infinite; }
.pulse-hero__tile b { display: block; font-size: 26px; }
.pulse-hero__tile span { font-size: 11px; color: var(--caseron-grey); letter-spacing: 0.04em; }
@keyframes pulse-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .pulse-hero__tile { animation: none; } }

/* KPI cards */
.pulse-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 1000px) { .pulse-kpis { grid-template-columns: repeat(2, 1fr); } }
.pulse-kpi { background: var(--caseron-white); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.pulse-kpi__label { color: var(--caseron-grey); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.pulse-kpi__value { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pulse-kpi__value--negative { color: #D64545; }

/* Module grid on the dashboard */
.pulse-module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .pulse-module-grid { grid-template-columns: 1fr; } }
.pulse-module-card { background: var(--caseron-white); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pulse-module-card:hover { border-color: var(--caseron-blue); text-decoration: none; }
.pulse-module-card--soon { opacity: 0.6; }

/* The P&L sheets: editable cells, amber-tinted controllable rows, locked
   computed rows. Compact like every portal grid. */
table.pulse-sheet input {
  width: 76px; text-align: right; font: inherit; font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding: 3px 5px; border: 1px solid transparent; border-radius: 5px;
  background: transparent;
}
table.pulse-sheet input:hover { border-color: #D5DCE4; background: var(--caseron-white); }
table.pulse-sheet input:focus { border-color: var(--caseron-blue); background: var(--caseron-white); outline: none; }
.pulse-row--ctrl td { background: #FFF9EA; }
.pulse-ctrl-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; color: #8A6600; border: 1px solid var(--caseron-amber); border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: middle; }
.pulse-row--computed td { background: #F1F5F9; font-weight: 600; }
.pulse-row--ktlo td { background: var(--pulse-blue-pale); font-weight: 700; }

/* The valuation report — a printable client-facing pack. On screen each
   deck page is a card; in print the portal chrome disappears and each page
   breaks cleanly. Brand: Poppins, Caseron accents, mostly ink-on-white. */
.rpt-page {
  background: var(--caseron-white); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px 36px; margin-bottom: 18px;
  position: relative;
}
.rpt-page h2 { font-size: 21px; font-weight: 600; margin: 0 0 18px; }
.rpt-page h3 { font-size: 15px; font-weight: 600; margin: 18px 0 8px; }
.rpt-cover { text-align: center; padding: 90px 36px; }
.rpt-cover .rpt-title { font-size: 27px; font-weight: 700; }
.rpt-cover .rpt-client { font-size: 21px; margin-top: 18px; }
.rpt-cover .rpt-period { font-size: 17px; color: var(--caseron-grey); margin-top: 6px; }
.rpt-headline {
  background: var(--pulse-blue-pale); border: 1px solid var(--caseron-blue);
  border-radius: 8px; padding: 10px 16px; font-weight: 600; margin-bottom: 16px;
}
.rpt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.rpt-page ul { margin: 6px 0 14px; padding-left: 20px; }
.rpt-page li { margin-bottom: 4px; font-size: 13.5px; }
.rpt-quote {
  border-left: 3px solid var(--caseron-blue); padding: 8px 14px; margin: 14px 0;
  color: var(--caseron-grey); font-style: italic;
}
.rpt-note { font-size: 12px; color: var(--caseron-grey); }
.rpt-footer { text-align: right; color: var(--grey-soft); font-size: 11px; margin-top: 18px; }
table.rpt-table { width: 100%; border-collapse: collapse; font-size: 12px; }
table.rpt-table th, table.rpt-table td { padding: 4px 8px; border-bottom: 1px solid var(--border); text-align: right; font-variant-numeric: tabular-nums; }
table.rpt-table th:first-child, table.rpt-table td:first-child { text-align: left; }
table.rpt-table thead th { color: var(--caseron-grey); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
tr.rpt-section th { background: #EEF3F8; text-align: left; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--caseron-dark); }
tr.rpt-subtotal td { font-weight: 600; }
tr.rpt-key td { font-weight: 700; background: var(--pulse-blue-pale); }
.rpt-projected { color: #01699A; }

@media print {
  .app-header, .pulse-sidebar, .pulse-topbar, .breadcrumb, .rpt-controls, .flash { display: none !important; }
  .app-main { padding: 0; }
  .pulse-layout { display: block; }
  body { background: var(--caseron-white); }
  .rpt-page { border: none; border-radius: 0; page-break-after: always; margin: 0; }
}

/* Proposal & engagement-letter documents reuse the .rpt-page pack styling.
   The cover carries the Caseron wordmark as type (the real logo is an image
   in the brand document; this is the text stand-in until it's embedded). */
.prop-wordmark { font-size: 46px; font-weight: 700; color: #01B1F3; letter-spacing: -0.5px; line-height: 1; }
.prop-wordmark-sub { font-size: 13px; font-weight: 600; color: #667A91; letter-spacing: 0.22em; margin-top: 2px; }

/* Charts: green revenue, blue costs — the standard, everywhere */
.pulse-chart-legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--caseron-grey); font-size: 12px; margin-top: 8px; }
.pulse-chart-legend .swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.pulse-cost-row { display: grid; grid-template-columns: 170px 1fr 90px 60px; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; }
.pulse-cost-row .bar { height: 16px; border-radius: 4px; min-width: 2px; }

/* ── Ask Claude — the portal-wide assistant ─────────────────────────────────
   Launcher pill bottom-right on every signed-in page; a slide-over panel with
   a lazy-loaded conversation frame. Caseron blue/grey/white; pink as the one
   small accent on the spark. British English throughout the copy. */
.assistant { position: fixed; z-index: 900; }

.assistant-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 901;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--caseron-blue); color: var(--caseron-white);
  font-family: inherit; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(1, 177, 243, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.assistant-launcher:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(1, 177, 243, 0.45); }
.assistant-launcher__spark {
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--caseron-white), var(--caseron-pink) 75%);
  box-shadow: 0 0 8px rgba(255, 51, 204, 0.8);
}

.assistant-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 902;
  width: 420px; max-width: 100vw;
  display: flex; flex-direction: column;
  background: var(--caseron-white);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(26, 26, 26, 0.12);
}
.assistant-panel[hidden] { display: none; }

.assistant-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(1, 177, 243, 0.08), rgba(1, 177, 243, 0));
}
.assistant-panel__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.assistant-panel__actions { display: inline-flex; align-items: center; gap: 12px; }
.assistant-panel__new { font-size: 13px; color: var(--caseron-blue); text-decoration: none; font-weight: 500; }
.assistant-panel__new:hover { text-decoration: underline; }
.assistant-panel__close {
  border: none; background: none; cursor: pointer; font-size: 24px; line-height: 1;
  color: var(--caseron-grey); padding: 0 4px;
}
.assistant-panel__close:hover { color: var(--caseron-dark); }

.assistant-frame, .assistant-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.assistant-loading { padding: 24px; color: var(--caseron-grey); font-size: 14px; }

.assistant-recent { border-bottom: 1px solid var(--border); padding: 8px 16px; }
.assistant-recent summary { cursor: pointer; color: var(--caseron-grey); font-size: 13px; font-weight: 500; }
.assistant-recent ul { list-style: none; margin: 8px 0 2px; padding: 0; max-height: 160px; overflow-y: auto; }
.assistant-recent li { margin: 0 0 2px; }
.assistant-recent a {
  display: block; padding: 5px 8px; border-radius: 6px; text-decoration: none;
  color: var(--caseron-dark); font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.assistant-recent a:hover { background: var(--surface); }
.assistant-recent a.is-current { background: rgba(1, 177, 243, 0.1); color: var(--caseron-blue); font-weight: 500; }

.assistant-thread { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.assistant-welcome { color: var(--caseron-grey); font-size: 14px; }
.assistant-welcome p { margin: 0 0 10px; }
.assistant-welcome strong { color: var(--caseron-dark); }
.assistant-hint { background: var(--surface); border-radius: 8px; padding: 10px 12px; }
.assistant-note { font-size: 12.5px; color: var(--grey-soft); border-top: 1px dashed var(--border); padding-top: 10px; }

.assistant-msg { max-width: 92%; }
.assistant-msg__body { padding: 10px 13px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.assistant-msg__body p { margin: 0 0 8px; }
.assistant-msg__body p:last-child { margin-bottom: 0; }
.assistant-msg--user { align-self: flex-end; }
.assistant-msg--user .assistant-msg__body {
  background: var(--caseron-blue); color: var(--caseron-white); border-bottom-right-radius: 4px;
}
.assistant-msg--assistant { align-self: flex-start; }
.assistant-msg--assistant .assistant-msg__body {
  background: var(--surface); color: var(--caseron-dark); border: 1px solid var(--border); border-bottom-left-radius: 4px;
}
.assistant-msg__tools { margin: 4px 2px 0; font-size: 11.5px; color: var(--grey-soft); }

.assistant-dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.assistant-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--caseron-grey); animation: assistant-bounce 1.2s infinite ease-in-out; }
.assistant-dots i:nth-child(2) { animation-delay: 0.2s; }
.assistant-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes assistant-bounce { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.assistant-compose { border-top: 1px solid var(--border); padding: 12px 16px; background: var(--caseron-white); }
.assistant-compose__row { display: flex; gap: 8px; align-items: flex-end; }
.assistant-compose textarea {
  flex: 1 1 auto; resize: none; max-height: 140px;
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  font-family: inherit; font-size: 14px; line-height: 1.4; color: var(--caseron-dark);
}
.assistant-compose textarea:focus { outline: none; border-color: var(--caseron-blue); box-shadow: 0 0 0 3px rgba(1, 177, 243, 0.15); }
.assistant-compose textarea:disabled { background: var(--surface); }

@media (max-width: 560px) {
  .assistant-panel { width: 100vw; border-left: none; }
  .assistant-launcher { right: 14px; bottom: 14px; }
}

@media print { .assistant, .assistant-launcher, .assistant-panel { display: none !important; } }

/* Ask Claude — proposed actions (propose → confirm). The assistant stages a
   change; the person confirms it. Blue while pending, green once done. */
.assistant-action { margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--caseron-white); }
.assistant-action--proposed { border-color: var(--caseron-blue); background: rgba(1, 177, 243, 0.05); }
.assistant-action__tag { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--caseron-blue); margin-right: 4px; }
.assistant-action__preview { margin: 0 0 10px; font-size: 13.5px; color: var(--caseron-dark); }
.assistant-action__buttons { display: flex; gap: 8px; }
.assistant-action__buttons form { margin: 0; }
.assistant-action__done { margin: 0; font-size: 13px; color: #3B7A2A; font-weight: 500; }
.assistant-action__cancelled { margin: 0; font-size: 13px; color: var(--caseron-grey); }
.assistant-action__failed { margin: 0; font-size: 13px; color: #D64545; }
.assistant-action--confirmed { border-color: var(--caseron-green); background: rgba(146, 208, 80, 0.08); }

/* Annual costs: a bill that buys a year, offered for spreading across the year
   end. Blue — it is a suggestion, never a flag. */
.deferral {
  border: 1px solid #DCE4EC;
  border-left: 3px solid var(--caseron-blue);
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 12px;
}
.deferral__head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.deferral__head strong { font-size: 15px; }
.deferral__reasons {
  margin: 8px 0 10px;
  padding-left: 18px;
  color: var(--caseron-grey);
  font-size: 13px;
}
.deferral__reasons li { margin: 2px 0; }
.deferral__fields { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.deferral__fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--caseron-grey);
}
.deferral__fields input, .deferral__fields select {
  padding: 5px 7px;
  border: 1px solid #C9D4DF;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
}
.deferral__period-note { margin: 8px 0 0; font-size: 12px; color: var(--caseron-grey); }
.deferral__split {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin: 10px 0;
  padding: 9px 12px;
  background: #EAF8FE;
  border-radius: 4px;
}
.deferral__split > div { display: flex; flex-direction: column; gap: 2px; }
.deferral__label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--caseron-grey); }
.deferral__figure { font-size: 15px; font-weight: 500; color: var(--caseron-dark); }
.deferral__warning { margin: 6px 0; font-size: 13px; color: #A1136F; }
.deferral__note { margin-left: 10px; font-size: 12px; color: var(--caseron-grey); }
.deferral__narrative {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--caseron-grey);
}
.deferral__narrative input {
  padding: 6px 8px;
  border: 1px solid #C9D4DF;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  max-width: 100%;
}
.deferral__narrative .deferral__note { margin-left: 0; }

/* Accrue · Defer · Prepay, on a transaction line. Small and quiet — they sit
   beside Flag and Clear without competing with them. */
.txn__spread { display: inline-flex; gap: 2px; align-items: center; margin-left: 6px; }
.btn--letter {
  min-width: 24px;
  padding: 3px 6px;
  font-weight: 600;
  letter-spacing: .02em;
}
.flag--spread {
  background: #EAF8FE;
  color: #01699A;
  border: 1px solid var(--caseron-blue);
}
.deferral__control {
  margin: 0 0 10px;
  padding: 7px 11px;
  border-radius: 4px;
  background: #E9F8DE;
  color: #3C6E17;
  font-size: 13px;
}
.deferral__control--failed { background: #FFF0FA; color: #A1136F; }
.deferral__narrative-save { margin: 6px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* The current year, under the year's own schedule — present, but plainly not
   part of it. */
.txn-current > summary {
  cursor: pointer;
  padding: 8px 11px;
  background: #EAF8FE;
  border-left: 3px solid var(--caseron-blue);
  border-radius: 4px;
  font-size: 13px;
}
.txn-current > summary strong { color: #01699A; }

/* The clearing date sits in its own row under the amount it clears. */
.payroll-grid__clearance-dates td { padding-top: 0; }
.payroll-grid__clearance-date {
  width: 100%;
  min-width: 0;
  padding: 3px 4px;
  border: 1px solid #C9D4DF;
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
}

/* A matched month shows its amount and nothing else, so the row reads as
   figures that come to nil. The picker waits behind "change". */
.payroll-grid__clear-cell .payroll-grid__repick { display: none; }
.payroll-grid__clear-cell.is-picked .payroll-grid__clearance-select { display: none; }
.payroll-grid__clear-cell.is-picked .payroll-grid__repick {
  display: block;
  margin: 2px auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--caseron-grey);
  font-size: 10px;
  text-decoration: underline;
  cursor: pointer;
}
.payroll-grid__clear-cell.is-picked .payroll-grid__repick:hover { color: var(--caseron-blue); }
.payroll-grid__clear-cell.is-picked .payroll-grid__amount { font-weight: 500; }

/* Adding a client whose books are on QuickBooks. */
.qbo-form { display: flex; gap: 16px; flex-wrap: wrap; }
.qbo-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--caseron-grey); }
.qbo-form input {
  padding: 8px 10px;
  border: 1px solid #C9D4DF;
  border-radius: 6px;
  font: inherit;
  min-width: 260px;
}
.source-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 10px;
  background: #EEF2F6;
  color: var(--caseron-grey);
  font-size: 11px;
  letter-spacing: .02em;
}
.source-tag--quickbooks { background: #E9F8DE; color: #3C6E17; }

/* What is left of a client's Xero allowance — Xero's own count, shown where
   the work is started so a refusal is never a surprise. */
.xero-allowance { margin: 10px 0 0; font-size: 12px; color: var(--caseron-grey);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.xero-allowance__bar { display: inline-block; width: 110px; height: 6px; border-radius: 3px;
  background: #E5EAF0; overflow: hidden; flex: none; }
.xero-allowance__fill { display: block; height: 100%; background: var(--caseron-green); }
.xero-allowance--low .xero-allowance__fill { background: #FFC000; }
.xero-allowance--spent .xero-allowance__fill { background: var(--caseron-pink); }
.xero-allowance--low strong, .xero-allowance--spent strong { color: var(--caseron-dark); }
/* The list-row badge: the same count shrunk to sit beside a client's name on
   the worklists, so allowance-hungry clients show before a refresh is started. */
.xero-allowance--badge { display: inline-flex; margin: 0 0 0 8px; gap: 6px;
  white-space: nowrap; vertical-align: middle; font-weight: 400; }
.xero-allowance--badge .xero-allowance__bar { width: 64px; }
.xero-allowance--badge.xero-allowance--low { color: #8A6600; }
.xero-allowance--badge.xero-allowance--spent { color: #A1136F; }

/* Which side of the accounts a paper belongs to, beside its name — P&L or BS.
   It replaced a sentence that said the same on every paper of a kind. */
.paper-side { font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--caseron-grey); background: #EEF2F7; border: 1px solid #D5DCE4;
  border-radius: 5px; padding: 2px 8px; white-space: nowrap; }

/* ============================================================================
   Proposal presentation (.pp-*) — the slick, screen-shareable proposal /
   agreement. Big Poppins type, generous space, Caseron brand throughout;
   deep-blue gradient hero, tier cards, stat tiles. Screen-first, prints clean.
   ========================================================================== */
:root {
  --pp-ink: #0A3550;           /* deep blue derived from Caseron blue, for the hero */
  --pp-ink-2: #072A40;
  --pp-wash: #F2FAFE;          /* faint blue wash for section bands */
  --pp-line: #E4EDF4;
}
.pp-doc { background: var(--caseron-white); color: var(--caseron-dark); font-size: 17px; line-height: 1.6; }
.pp-doc *, .pp-doc *::before, .pp-doc *::after { box-sizing: border-box; }

/* Sticky section nav — for jumping around while screen-sharing */
.pp-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 24px; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--pp-line);
}
.pp-nav__brand { font-weight: 700; color: var(--caseron-blue); font-size: 18px; margin-right: 8px; letter-spacing: -0.3px; }
.pp-nav__spacer { flex: 1; }
.pp-nav a { color: var(--caseron-grey); font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.pp-nav a:hover, .pp-nav a.is-active { background: var(--pp-wash); color: var(--caseron-blue); text-decoration: none; }
.pp-nav__cta { background: var(--caseron-blue); color: #fff !important; }
.pp-nav__cta:hover { background: #0193cc !important; }

/* Hero */
.pp-hero {
  background: linear-gradient(135deg, var(--caseron-blue) 0%, var(--pp-ink) 62%, var(--pp-ink-2) 100%);
  color: #fff; padding: 92px 24px 80px; text-align: center; position: relative; overflow: hidden;
}
.pp-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,51,204,0.22), transparent 70%); pointer-events: none;
}
.pp-hero__wordmark { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; }
.pp-hero__wordmark span { color: #BFECFB; }
.pp-hero__sub { font-size: 12px; letter-spacing: 0.24em; color: #BFECFB; margin-top: 2px; text-transform: uppercase; }
.pp-tag {
  display: inline-block; margin: 40px 0 18px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.pp-hero h1 { font-size: 52px; font-weight: 700; line-height: 1.08; margin: 8px 0 10px; letter-spacing: -1px; }
.pp-hero__project { font-size: 22px; font-weight: 400; color: #DCF3FD; margin: 0; }
.pp-hero__meta {
  display: flex; gap: 44px; justify-content: center; flex-wrap: wrap;
  margin-top: 48px; text-align: left;
}
.pp-hero__meta h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8FD6F4; margin: 0 0 6px; font-weight: 600; }
.pp-hero__meta p { margin: 0; font-size: 15px; line-height: 1.5; }
.pp-hero__ref { margin-top: 44px; font-size: 13px; color: #A9DEF4; letter-spacing: 0.06em; }

/* Section rhythm */
.pp-section { padding: 72px 24px; }
.pp-section--wash { background: var(--pp-wash); }
.pp-section__inner { max-width: 900px; margin: 0 auto; }
.pp-kicker { color: var(--caseron-blue); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 10px; }
.pp-h2 { font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: -0.6px; margin: 0 0 20px; }
.pp-doc h3 { font-size: 21px; font-weight: 600; margin: 26px 0 10px; }
.pp-lead { font-size: 20px; line-height: 1.6; color: #33404D; }
.pp-doc p { margin: 0 0 16px; }
.pp-doc ul { margin: 0 0 18px; padding-left: 22px; }
.pp-doc li { margin-bottom: 8px; }

/* Big testimonial */
.pp-quote { border: none; margin: 8px 0; padding: 0; }
.pp-quote__mark { color: var(--caseron-blue); font-size: 64px; line-height: 0.6; font-weight: 800; opacity: 0.35; }
.pp-quote__text { font-size: 24px; line-height: 1.5; font-weight: 500; color: #1A2B38; margin: 6px 0 16px; }
.pp-quote__by { color: var(--caseron-grey); font-weight: 600; }
.pp-quote__by span { display: block; font-weight: 400; font-size: 14px; }

/* Assumptions as stat tiles */
.pp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 4px; }
.pp-stat { background: #fff; border: 1px solid var(--pp-line); border-radius: 14px; padding: 22px; text-align: center; }
.pp-stat h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--caseron-grey); font-weight: 600; }
.pp-stat p { margin: 0; font-size: 22px; font-weight: 700; color: var(--caseron-dark); }

/* Fee — single quote */
.pp-fee-head { text-align: center; margin-bottom: 28px; }
.pp-fee-head .pp-price { font-size: 60px; font-weight: 800; color: var(--caseron-blue); letter-spacing: -1.5px; line-height: 1; }
.pp-fee-head .pp-price small { font-size: 20px; font-weight: 600; color: var(--caseron-grey); letter-spacing: 0; }
.pp-fee-head .pp-price-note { color: var(--caseron-grey); margin-top: 8px; }
table.pp-fee { width: 100%; border-collapse: collapse; font-size: 16px; }
table.pp-fee th, table.pp-fee td { padding: 14px 16px; text-align: right; font-variant-numeric: tabular-nums; }
table.pp-fee th:first-child, table.pp-fee td:first-child { text-align: left; }
table.pp-fee thead th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--caseron-grey); border-bottom: 2px solid var(--pp-line); }
table.pp-fee tbody td { border-bottom: 1px solid var(--pp-line); }
table.pp-fee tr.pp-fee__section th { background: var(--pp-wash); color: var(--caseron-dark); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; border-bottom: none; padding-top: 18px; }
table.pp-fee tr.pp-fee__sub td { font-weight: 600; border-top: 2px solid var(--pp-line); border-bottom: none; }
table.pp-fee tr.pp-fee__total td { font-weight: 800; font-size: 18px; color: var(--caseron-blue); border: none; }
.pp-line-when { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--pp-wash); color: var(--caseron-blue); font-size: 12px; font-weight: 600; }

/* Fee — three tiers */
.pp-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.pp-tier {
  background: #fff; border: 1.5px solid var(--pp-line); border-radius: 18px; padding: 26px 22px;
  display: flex; flex-direction: column; gap: 4px; position: relative;
}
.pp-tier--featured { border-color: var(--caseron-pink); box-shadow: 0 14px 40px -18px rgba(255,51,204,0.45); }
.pp-tier__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--caseron-pink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.pp-tier__name { font-size: 22px; font-weight: 700; }
.pp-tier__tagline { color: var(--caseron-grey); font-size: 14px; min-height: 40px; margin-bottom: 6px; }
.pp-tier__price { font-size: 40px; font-weight: 800; color: var(--caseron-blue); letter-spacing: -1px; line-height: 1.1; }
.pp-tier__price small { display: block; font-size: 13px; font-weight: 500; color: var(--caseron-grey); letter-spacing: 0; }
.pp-tier__oneoff { font-size: 13px; color: var(--caseron-grey); margin-top: 2px; }
.pp-tier ul.pp-tier__list { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--pp-line); }
.pp-tier__list li { position: relative; padding-left: 26px; font-size: 14.5px; margin-bottom: 10px; color: #33404D; }
.pp-tier__list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--caseron-green); font-weight: 800; }
.pp-tier__list li.pp-tier__excluded { color: #AAB6C1; }
.pp-tier__list li.pp-tier__excluded::before { content: "\2013"; color: #C6D0DA; }

/* Steps */
.pp-steps { display: grid; gap: 14px; margin-top: 8px; }
.pp-step { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--pp-line); border-radius: 14px; padding: 18px 20px; }
.pp-step__n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--caseron-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.pp-step__body { padding-top: 4px; }
.pp-step__body strong { display: block; margin-bottom: 2px; }

/* Services explained */
.pp-svc { background: #fff; border: 1px solid var(--pp-line); border-radius: 14px; padding: 22px 24px; margin-bottom: 14px; }
.pp-svc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pp-svc__name { font-size: 19px; font-weight: 700; color: var(--caseron-dark); }
.pp-svc__answers { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 6px; }
.pp-chip { background: var(--pp-wash); color: var(--caseron-blue); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }

/* CTA */
.pp-cta { text-align: center; }
.pp-cta__btn {
  display: inline-block; background: linear-gradient(135deg, var(--caseron-blue), var(--pp-ink));
  color: #fff; font-size: 20px; font-weight: 700; padding: 18px 44px; border-radius: 14px;
  box-shadow: 0 16px 40px -16px rgba(1,177,243,0.7); letter-spacing: 0.01em;
}
.pp-cta__btn:hover { text-decoration: none; filter: brightness(1.05); }
.pp-cta__ref { margin-top: 14px; color: var(--caseron-grey); font-size: 14px; }

/* Footer */
.pp-foot { text-align: center; color: var(--grey-soft); font-size: 12.5px; padding: 34px 24px 48px; border-top: 1px solid var(--pp-line); }

/* Scroll-reveal (progressive; visible by default if JS is off) */
.pp-reveal { opacity: 1; transform: none; }
.js .pp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .pp-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 780px) {
  .pp-hero h1 { font-size: 36px; }
  .pp-tiers, .pp-stats { grid-template-columns: 1fr; }
  .pp-nav { gap: 4px; }
}

@media print {
  .pp-nav, .pp-scrollhint, .pp-cta__btn { display: none !important; }
  .pp-doc { font-size: 12px; }
  .pp-hero { padding: 40px 24px; }
  .pp-hero h1 { font-size: 32px; }
  .pp-section { padding: 28px 24px; page-break-inside: avoid; }
  .pp-tier, .pp-step, .pp-svc, .pp-stat { break-inside: avoid; }
  .pp-hero, .pp-tier--featured, .pp-cta__btn, .pp-step__n { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Respect reduced-motion: no reveal animation, nothing can sit hidden. */
@media (prefers-reduced-motion: reduce) {
  .js .pp-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Proposal builder polish — bigger, calmer inputs than the cramped default. */
.pb-field { display: block; font-size: 14px; font-weight: 600; color: var(--caseron-grey); margin-bottom: 14px; }
.pb-field input[type="text"], .pb-field input[type="number"], .pb-field input[type="email"],
.pb-field input[type="date"], .pb-field select, .pb-field textarea {
  display: block; width: 100%; margin-top: 5px; padding: 11px 13px; font: inherit; font-weight: 400;
  color: var(--caseron-dark); border: 1.5px solid #D5DCE4; border-radius: 9px; background: #fff;
}
.pb-field input:focus, .pb-field select:focus, .pb-field textarea:focus { border-color: var(--caseron-blue); outline: none; box-shadow: 0 0 0 3px rgba(1,177,243,0.15); }
.pb-inline { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.pb-inline .pb-field { margin-bottom: 0; }

/* The real Caseron cloud logo on the hero — white cloud lifts off the blue. */
.pp-hero__logo { width: 260px; max-width: 62%; height: auto; margin: 0 auto 6px; display: block; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.22)); }
@media (max-width: 780px) { .pp-hero__logo { width: 200px; } }
@media print { .pp-hero__logo { width: 200px; filter: none; } }

/* The traffic light on the workpaper buttons on the trial balance (Lisa,
   02/10/2026): white to do, green approved, blue not applicable. */
.btn--status-approved { background: #92D050; color: #1A1A1A; border-color: #92D050; }
.btn--status-approved:hover { background: #84C043; }
.btn--status-na { background: #01B1F3; color: #FFFFFF; border-color: #01B1F3; }
.btn--status-na:hover { background: #0199D2; }

/* The client's approve & sign panel on the live proposal link. */
.pp-approve { max-width: 540px; margin: 0 auto; text-align: left; }
.pp-approve__tiers { display: grid; gap: 10px; margin-bottom: 18px; }
.pp-approve__tier { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--pp-line); border-radius: 12px; cursor: pointer; font-size: 16px; }
.pp-approve__tier:has(input:checked) { border-color: var(--caseron-blue); background: var(--pp-wash); }
.pp-approve__row label { display: block; font-weight: 600; font-size: 14px; color: var(--caseron-grey); }
.pp-approve__row input { display: block; width: 100%; margin-top: 6px; padding: 13px 15px; font: inherit; font-weight: 400; color: var(--caseron-dark); border: 1.5px solid #D5DCE4; border-radius: 10px; }
.pp-approve__row input:focus { border-color: var(--caseron-blue); outline: none; box-shadow: 0 0 0 3px rgba(1,177,243,0.15); }
.pp-approve__agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 15px; color: #33404D; cursor: pointer; }
.pp-approve__agree input { margin-top: 4px; width: 18px; height: 18px; }

/* Hall Monitor — the health score, the month grids and the checks list */
.hm-score { display: inline-block; min-width: 2.4em; text-align: center; padding: 1px 8px; border-radius: 999px; font-weight: 600; }
.hm-score--good { background: var(--caseron-green); color: var(--caseron-dark); }
.hm-score--fair { background: #FFC000; color: var(--caseron-dark); }
.hm-score--poor { background: var(--caseron-pink); color: var(--caseron-white); }
.hm-score--none { color: var(--caseron-grey); }
.hm-running { color: var(--caseron-blue); font-weight: 600; animation: hm-pulse 1.2s ease-in-out infinite; }
.hm-running-banner {
  padding: 14px 18px; border-radius: 8px; margin-bottom: 18px;
  background: var(--caseron-blue); color: var(--caseron-white);
  animation: hm-pulse 1.6s ease-in-out infinite;
}
@keyframes hm-pulse { 50% { opacity: 0.7; } }
.hm-grid td, .hm-grid th { white-space: nowrap; }
.hm-grid .hm-partial { color: var(--caseron-grey); font-style: italic; }
.hm-grid .hm-total td { font-weight: 600; border-top: 2px solid var(--border); }
.hm-source { color: var(--caseron-grey); font-size: 12px; white-space: normal; }
.hm-checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.hm-check { background: var(--caseron-white); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; }
.hm-check--clear { opacity: 0.65; }
.hm-check summary { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.hm-check__title { flex: 1; font-weight: 500; }
.hm-check__count { color: var(--caseron-grey); font-size: 13px; font-variant-numeric: tabular-nums; }
.hm-check__why { color: var(--caseron-grey); font-size: 13px; margin: 10px 0; }
.hm-sev { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); min-width: 64px; text-align: center; }
.hm-sev--critical { background: var(--caseron-pink); border-color: var(--caseron-pink); color: var(--caseron-white); }
.hm-sev--high { background: #FFF4D6; border-color: #FFC000; color: #8A6600; }
.hm-sev--medium { background: #EAF8FE; border-color: var(--caseron-blue); color: #01699A; }
.hm-sev--low { color: var(--caseron-grey); }
.hm-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 22px; }
.hm-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--caseron-grey); }

/* Group tax */
.gt-wide { display: block; width: 100%; max-width: 420px; }
.gt-ref { width: 16em; }
.gt-now { background: #EEF9FE; }
.gt-snapshot { width: 100%; font-family: inherit; font-size: 13px; line-height: 1.5; padding: 10px; border: 1px solid #D5DCE4; border-radius: 6px; }
.hm-bulk__bar {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  background: var(--caseron-white); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px;
}
.hm-bulk__bar input[type=submit] { margin-left: auto; }
.hm-bulk__all { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }
.hm-bulk__pick { display: flex; gap: 12px; align-items: flex-start; flex: 1; cursor: pointer; }
.hm-bulk__pick input { width: 18px; height: 18px; margin-top: 2px; }
.hm-sort a { color: inherit; text-decoration: none; white-space: nowrap; }
.hm-sort a:hover { color: var(--caseron-blue); }
.hm-sort--active a { color: var(--caseron-blue); }
.hm-win { display: flex; align-items: center; gap: 18px; background: var(--caseron-white); border: 1px solid var(--border); border-left: 4px solid var(--caseron-green); border-radius: 10px; padding: 14px 18px; margin-bottom: 8px; }
.hm-win__score { font-size: 22px; font-weight: 600; white-space: nowrap; }
.hm-check__win { min-width: 54px; text-align: right; font-weight: 700; font-size: 16px; color: #3C6E17; font-variant-numeric: tabular-nums; }
.hm-check__win--none { color: var(--grey-soft); font-weight: 400; }
.hm-groups { flex-wrap: wrap; margin-bottom: 12px; }
.hm-tag .hm-tag__name { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--caseron-grey); }
.hm-tag .hm-tag__name input { padding: 6px 10px; border: 1px solid #D5DCE4; border-radius: 6px; font: inherit; min-width: 220px; }
.hm-tag input[type=submit] { margin-left: 0; }
.hm-tick { width: 28px; }
.hm-tick input { width: 16px; height: 16px; }
.hm-group-chip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; background: #EAF8FE; border: 1px solid var(--caseron-blue); color: #01699A; text-decoration: none; }

/* ============================================================================
   Present-and-build mode (.build-*) — the live, screen-shared pricing tool.
   Stepped, two-pane, running totals. Muted-but-colourful Caseron brand:
   white surfaces, blue/grey, pink + green accents, Poppins.
   ========================================================================== */
.build { min-height: 100vh; display: flex; flex-direction: column; background: var(--pp-wash); color: var(--caseron-dark); }
.build * { box-sizing: border-box; }

/* Top bar */
.build__top { display: flex; align-items: center; gap: 16px; padding: 12px 22px; background: #fff; border-bottom: 1px solid var(--pp-line); }
.build__logo { height: 34px; width: auto; }
.build__who { line-height: 1.2; }
.build__who strong { font-size: 16px; }
.build__who span { display: block; color: var(--caseron-grey); font-size: 12.5px; }
.build__top-spacer { flex: 1; }

/* Step rail */
.build__rail { display: flex; gap: 6px; overflow-x: auto; padding: 12px 22px; background: #fff; border-bottom: 1px solid var(--pp-line); scrollbar-width: thin; }
.build__step { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--caseron-grey); background: #F4F7FA; border: 1px solid var(--pp-line); text-decoration: none; }
.build__step:hover { text-decoration: none; border-color: var(--caseron-blue); color: var(--caseron-blue); }
.build__step .n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid var(--pp-line); font-size: 11px; }
.build__step--now { background: var(--caseron-blue); color: #fff; border-color: var(--caseron-blue); }
.build__step--now .n { background: rgba(255,255,255,0.25); border-color: transparent; color: #fff; }
.build__step--done { color: #2F5E12; border-color: var(--caseron-green); background: #EFF8E5; }
.build__step--done .n { background: var(--caseron-green); border-color: var(--caseron-green); color: #fff; }
.build__step--review { margin-left: auto; }

/* Two-pane body */
.build__body { flex: 1; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 20px; padding: 22px; align-items: start; min-height: 0; }
.build__pane { background: #fff; border: 1px solid var(--pp-line); border-radius: 16px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(10,53,80,0.04); }
.build__pane h2 { font-size: 23px; font-weight: 700; letter-spacing: -0.4px; margin: 0 0 2px; }
.build__pane .sub { color: var(--caseron-grey); font-size: 14px; margin: 0 0 16px; }

/* Service rows */
.svc { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--pp-line); border-radius: 12px; margin-bottom: 10px; transition: border-color .15s, background .15s; }
.svc--added { border-color: var(--caseron-blue); background: var(--pp-wash); }
.svc__add { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--caseron-blue); background: #fff; color: var(--caseron-blue); font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.svc__add:hover { background: var(--caseron-blue); color: #fff; }
.svc__add--on { background: var(--caseron-green); border-color: var(--caseron-green); color: #fff; }
.svc__add--on:hover { background: #7FBE3F; border-color: #7FBE3F; }
.svc__main { flex: 1; min-width: 0; }
.svc__name { font-weight: 600; font-size: 15.5px; }
.svc__desc { color: var(--caseron-grey); font-size: 13px; margin-top: 2px; }
.svc__price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.svc__price b { font-size: 16px; }
.svc__price small { display: block; color: var(--caseron-grey); font-size: 11px; }
.svc__price .flag { font-size: 10px; }
.svc__config { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.svc__config label { font-size: 12px; font-weight: 600; color: var(--caseron-grey); }
.svc__config input, .svc__config select { display: block; margin-top: 4px; padding: 8px 10px; border: 1.5px solid #D5DCE4; border-radius: 8px; font: inherit; font-weight: 400; }
.svc__tiers { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.svc__tierchip { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #EFF8E5; color: #2F5E12; }
.svc__tierchip--off { background: #F1F4F8; color: #9AA7B4; }

/* Visual (right) pane */
.build__pane--visual { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.build__visual { background: linear-gradient(135deg, var(--caseron-blue), var(--pp-ink)); color: #fff; padding: 34px 28px; position: relative; overflow: hidden; }
.build__visual::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(255,51,204,0.25), transparent 70%); }
.build__visual .kick { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #BFECFB; font-weight: 700; }
.build__visual h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.6px; margin: 6px 0 0; }
.build__visual p { margin: 10px 0 0; color: #DCF3FD; font-size: 14.5px; max-width: 34ch; }
.build__motif { display: flex; gap: 8px; margin-top: 22px; }
.build__motif span { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.5); }
.build__note { padding: 20px 24px; flex: 1; display: flex; flex-direction: column; }
.build__note label { font-weight: 600; font-size: 13px; color: var(--caseron-grey); margin-bottom: 8px; }
.build__note textarea { width: 100%; flex: 1; min-height: 160px; padding: 14px 16px; border: 1.5px solid var(--pp-line); border-radius: 12px; font: inherit; font-size: 15px; line-height: 1.55; resize: vertical; }
.build__note textarea:focus { outline: none; border-color: var(--caseron-blue); box-shadow: 0 0 0 3px rgba(1,177,243,0.15); }
.build__note .actions { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* Sticky totals bar */
.build__totals { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--pp-line); box-shadow: 0 -4px 20px rgba(10,53,80,0.06); padding: 12px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.build__chips { display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: thin; }
.build__chip { white-space: nowrap; font-size: 12.5px; padding: 6px 12px; border-radius: 10px; background: #F4F7FA; border: 1px solid var(--pp-line); color: var(--caseron-grey); }
.build__chip b { color: var(--caseron-dark); }
.build__chip--now { border-color: var(--caseron-blue); background: var(--pp-wash); color: var(--caseron-blue); }
.build__chip--has b { color: var(--caseron-blue); }
.build__grand { text-align: right; white-space: nowrap; }
.build__grand .amt { font-size: 26px; font-weight: 800; color: var(--caseron-blue); letter-spacing: -0.5px; line-height: 1; }
.build__grand small { color: var(--caseron-grey); font-size: 12px; }
.build__nav { display: flex; gap: 8px; }

/* Review step */
.build__review { padding: 22px; display: grid; gap: 16px; max-width: 1000px; margin: 0 auto; width: 100%; }
.build__review .rev-card { background: #fff; border: 1px solid var(--pp-line); border-radius: 14px; padding: 20px 22px; }
.build__rev-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--pp-line); font-size: 14.5px; }
.build__rev-line:last-child { border-bottom: none; }
.build__rev-sec { font-weight: 700; margin: 14px 0 4px; display: flex; justify-content: space-between; }

@media (max-width: 920px) {
  .build__body { grid-template-columns: 1fr; }
}

/* ============================================================================
   New-proposal screen (.np-*) — a tidy, branded creation form in the house
   style: white cards, Caseron blue accents, Poppins, selectable choice cards.
   ========================================================================== */
.np-head { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--pp-line); border-left: 4px solid var(--caseron-blue); border-radius: 14px; padding: 18px 22px; margin-bottom: 18px; }
.np-head img { height: 42px; width: auto; }
.np-head h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.4px; }
.np-head p { margin: 3px 0 0; color: var(--caseron-grey); font-size: 14px; }

.np-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.np-card { background: #fff; border: 1px solid var(--pp-line); border-radius: 14px; padding: 22px 24px; }
.np-card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.np-card .np-kicker { color: var(--caseron-blue); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.np-card__hint { color: var(--caseron-grey); font-size: 13px; margin: 0 0 16px; }

/* Selectable choice cards (engagement type, tiers) */
.choice-cards { display: grid; gap: 10px; margin-bottom: 16px; }
.choice-cards--2 { grid-template-columns: 1fr 1fr; }
.choice-card { position: relative; display: block; border: 1.5px solid var(--pp-line); border-radius: 12px; padding: 13px 15px; cursor: pointer; background: #fff; transition: border-color .12s, background .12s; }
.choice-card:hover { border-color: var(--caseron-blue); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:has(input:checked) { border-color: var(--caseron-blue); background: var(--pp-wash); box-shadow: 0 0 0 3px rgba(1,177,243,0.12); }
.choice-card__t { font-weight: 700; font-size: 14.5px; }
.choice-card__d { color: var(--caseron-grey); font-size: 12.5px; margin-top: 3px; line-height: 1.4; }

/* Test-mode toggle row */
.np-testrow { display: flex; gap: 10px; align-items: flex-start; background: #FBFCFE; border: 1px dashed var(--pp-line); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.np-testrow input { margin-top: 3px; width: 18px; height: 18px; }
.np-testrow b { font-size: 14px; }
.np-testrow span { display: block; color: var(--caseron-grey); font-size: 12.5px; margin-top: 2px; }

.np-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }

@media (max-width: 760px) { .np-grid, .choice-cards--2 { grid-template-columns: 1fr; } }
.hm-email { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--caseron-white); border: 1px solid var(--border); border-left: 4px solid var(--caseron-blue); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.hm-tag__sep { width: 1px; align-self: stretch; background: var(--border); }
.hm-tag__select, .hm-form select { padding: 6px 10px; border: 1px solid #D5DCE4; border-radius: 6px; font: inherit; }

/* Alerts — each run's state has its own look. Running flashes (colour and
   area, not a fade — Lisa, 30/09/2026); waiting to be checked is amber and
   impossible to miss; failed is pink. */
.status--alert-running { background: #FFF4D6; border-color: var(--caseron-amber); color: #8A6600;
  animation: step-block-flash 1s ease-in-out infinite; }
.status--alert-ready { background: var(--caseron-amber); border-color: var(--caseron-amber); color: #5C4300; font-weight: 600; }
.status--alert-sent { background: #E9F8DE; border-color: var(--caseron-green); color: #3C6E17; }
.status--alert-held { background: #F1F4F8; border-color: #D5DCE4; color: var(--caseron-grey); }
.status--alert-failed { background: #FFE6F8; border-color: var(--caseron-pink); color: #A1136F; }
.alert-banner { border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; font-size: 14px; border: 2px solid; }
.alert-banner h2 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.alert-banner ul { margin: 0; padding-left: 18px; }
.alert-banner li { margin: 4px 0; }
.alert-banner--waiting { background: #FFF4D6; border-color: var(--caseron-amber); color: #5C4300; }
.alert-banner--running { border-color: var(--caseron-amber); color: #6B4C00; animation: step-block-flash 1s ease-in-out infinite; }
.alert-banner--failed { background: #FFE6F8; border-color: var(--caseron-pink); color: #A1136F; }
.alert-row--running td { animation: step-block-flash 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .status--alert-running, .alert-banner--running, .alert-row--running td { animation: none; background: #FFF8E3; }
}
.alert-checks__list { margin: 0; padding-left: 18px; font-size: 14px; }
.alert-checks__list > li { margin: 6px 0; }
.alert-check--ok { color: #3C6E17; }
.alert-check--flag { color: #A1136F; }
.alert-preview__title { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.alert-preview { background: #FFFFFF; border: 1px solid var(--border); border-radius: 10px; padding: 8px 22px 16px; max-width: 780px; }
.alert-preview__head { border-bottom: 1px solid var(--border); padding: 8px 0; margin-bottom: 8px; font-size: 13px; }
.alert-form .card { margin-bottom: 16px; }
.alert-field { display: block; margin: 10px 0; font-size: 14px; font-weight: 500; }
.alert-field input[type=text], .alert-field input[type=number], .alert-field input[type=time],
.alert-field select, .alert-field textarea { display: block; margin-top: 4px; padding: 8px 10px; border: 1px solid #D5DCE4;
  border-radius: 6px; font: inherit; font-weight: 400; width: 100%; max-width: 520px; box-sizing: border-box; }
.alert-field.alert-field--short input, .alert-field.alert-field--short select { display: inline-block; width: auto; margin: 0 6px; }
.alert-row { display: flex; gap: 16px; flex-wrap: wrap; }
.alert-ticks { border: 0; padding: 0; margin: 10px 0; }
.alert-ticks legend { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.alert-ticks label { display: inline-block; margin: 4px 16px 4px 0; font-size: 14px; }
.alert-check { display: block; margin: 8px 0; font-size: 14px; }
.alert-kpi-pick { max-width: 680px; margin-top: 12px; }
.alert-kpi-target { white-space: nowrap; color: var(--caseron-grey); font-size: 13px; }
.alert-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 14px; }
.alert-facts dt { color: var(--caseron-grey); }
.alert-facts dd { margin: 0; }
.alert-companies { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; margin: 8px 0 12px; font-size: 14px; }
.hm-check__tools { display: flex; gap: 14px; align-items: center; margin: 0 0 8px; font-size: 13px; }
.hm-putaway { display: inline-flex; gap: 4px; white-space: nowrap; }
.hm-putaway__form { margin: 0; display: inline; }
.hm-putaway__btn { font: inherit; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--caseron-white); color: var(--caseron-grey); cursor: pointer; }
.hm-putaway__btn:hover { border-color: var(--caseron-blue); color: var(--caseron-blue); }
.hm-putaway__btn--forever:hover { border-color: var(--caseron-pink); color: #C4127F; }
.hm-putaway__btn--fixing:hover { border-color: var(--caseron-green); color: #3C6E17; }
.hm-putaway-cell { width: 190px; text-align: right; white-space: nowrap; }
.hm-help { display: inline-block; width: 15px; height: 15px; line-height: 15px; text-align: center; border-radius: 50%; background: #EAF8FE; color: #01699A; font-size: 10px; cursor: help; }
.hm-before-after { font-size: 14px; margin: 4px 0; }
.hm-up { color: #3C6E17; font-weight: 600; }
.hm-down { color: #C4127F; font-weight: 600; }
.hm-doc-links { white-space: nowrap; }
.hm-doc-link { font-size: 12px; margin-left: 6px; }
.hm-form .hm-form__tick { flex-direction: row; align-items: center; gap: 6px; }

/* MA budget tab: a faint box around the three trend months, so the trend
   reads apart from the budget variances either side — discreet, never
   louder than the figures (Lisa, 15/10/2026). */
.grid .ma-trend--first { border-left: 1px solid #CFE3F1; }
.grid .ma-trend--last { border-right: 1px solid #CFE3F1; }
.grid thead th.ma-trend { border-top: 1px solid #CFE3F1; }
.grid tbody tr:last-child td.ma-trend { border-bottom: 1px solid #CFE3F1; }

/* The report Open rows: house-soft pickers, never the browser's harsh
   defaults (Lisa, 15/10/2026). */
.report-open-row select, .report-build-row select {
  font: inherit; font-size: 13px; color: var(--caseron-ink, #1A1A1A);
  background: var(--caseron-white, #fff); border: 1px solid #D5DCE4;
  border-radius: 6px; padding: 6px 10px;
}
.hm-list th.hm-sort { white-space: normal; max-width: 7.5em; vertical-align: bottom; line-height: 1.25; cursor: grab; }
.hm-list th.hm-sort a { white-space: normal; }
.hm-list th.hm-sort--dragging { opacity: 0.4; outline: 2px dashed var(--caseron-blue); }


/* The selected report card on the client dashboard. */
.pulse-module-card--active { border-color: var(--caseron-blue, #01B1F3); box-shadow: 0 0 0 1px var(--caseron-blue, #01B1F3) inset; }
.status--alert-clear { background: #E9F8DE; border-color: var(--caseron-green); color: #3C6E17; }
.hm-list .hm-total-col { font-weight: 700; background: #EAF8FE; border-left: 2px solid var(--caseron-blue); }
.hm-list th.hm-total-col a { color: var(--caseron-dark); }

/* The PULSE "running to" month picker (Lisa, 17/10/2026): PULSE always
   reviews the last COMPLETE month unless a month is picked here. */
.pulse-asat { display: inline-flex; align-items: center; gap: 6px; }
.pulse-asat__label { font-size: 11px; color: var(--caseron-grey, #667A91); font-weight: 600; }
.pulse-asat__input { border: 1px solid var(--border, #D5DCE4); border-radius: 6px; padding: 4px 8px;
                     font-family: inherit; font-size: 12px; color: inherit; background: #fff; }
.pulse-asat__reset { font-size: 10.5px; color: var(--caseron-blue, #01B1F3); }

/* The PULSE Goal seeker module (Lisa, 18/10/2026). */
.goal-form { display: grid; gap: 14px; max-width: 980px; }
.goal-form__block { border: 1px solid var(--border, #D5DCE4); border-radius: 10px; padding: 12px 14px; background: #fff; }
.goal-form__block h3 { margin: 0 0 6px; font-size: 14px; }
.goal-radio { display: block; margin: 3px 0; font-size: 13px; }
.goal-radio--inline { display: inline-block; margin: 0 12px 0 6px; }
.goal-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; font-size: 13px; }
.goal-row label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--caseron-grey, #667A91); }
.goal-row input[type="text"], .goal-row input[type="month"], .goal-row select, .goal-people input, .goal-people select {
  font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--border, #D5DCE4); border-radius: 6px; color: #1A1A1A; }
.goal-people { border-collapse: collapse; }
.goal-people th { text-align: left; font-size: 11px; color: var(--caseron-grey, #667A91); padding: 2px 8px 2px 0; }
.goal-people td { padding: 3px 8px 3px 0; }

/* The report-settings modules (Lisa, 19/10/2026): every report page has a
   module that sets the parameters changing its outcome. */
.report-module__h { margin: 18px 0 4px; }
.report-module__form { margin: 8px 0 4px; }
.report-module__fields { border-collapse: collapse; max-width: 760px; width: 100%; }
.report-module__fields td { padding: 7px 8px; border-bottom: 1px solid var(--border, #E2E8EF); vertical-align: middle; }
.report-module__fields td.num { text-align: right; white-space: nowrap; }
.report-module__split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.report-module__split h4 { margin: 6px 0; font-size: 13px; }
.report-module__foot { margin-top: 22px; padding-top: 10px; border-top: 1px solid var(--border, #E2E8EF); font-size: 12.5px; color: var(--caseron-grey, #667A91); }

/* Settings tucked behind a click, the report page below (Lisa, 19/10/2026:
   "the variables we're setting need to be clicked to open — the page is
   still visible as I'm talking clients through it live on a call"). */
/* "⚙ Set this page" — the one bar on every page whose data can be changed
   (Lisa, 29/10/2026: "in a box that's grey ... Caseron-branded, clean, tidy
   and classy ... something to click on to open the settings and to close
   them"). A white bar that says Open / Close, the choices in a grey box
   under it; never printed. .report-module__settings is the same bar on the
   PULSE module pages. */
.settings-bar, .report-module__settings { border: 1px solid #D5DCE4; border-radius: 10px; background: #fff; margin: 4px 0 14px; overflow: hidden; font-family: "Poppins", sans-serif; }
.settings-bar > summary, .report-module__settings > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 14px; font-size: 13px; font-weight: 600; color: #01B1F3; list-style: none; }
.settings-bar > summary::-webkit-details-marker, .report-module__settings > summary::-webkit-details-marker { display: none; }
.settings-bar > summary:hover, .report-module__settings > summary:hover { background: #F7FAFC; }
.settings-bar > summary::after, .report-module__settings > summary::after { content: "Open \25BE"; margin-left: auto; flex: none; padding: 2px 11px; border: 1px solid #D5DCE4; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 500; color: #667A91; }
.settings-bar[open] > summary::after, .report-module__settings[open] > summary::after { content: "Close \25B4"; border-color: #01B1F3; color: #01B1F3; }
.settings-bar[open] > summary, .report-module__settings[open] > summary { border-bottom: 1px solid #E2E8EF; }
.settings-bar__about { font-weight: 400; color: #667A91; }
.settings-bar__body, .report-module__settings-body { background: #F3F5F8; padding: 14px 16px 16px; font-size: 12.5px; color: #1A1A1A; }
.settings-bar__body table, .report-module__settings-body table { background: #fff; }
.settings-bar__body > :first-child, .report-module__settings-body > :first-child { margin-top: 0; }
.settings-bar__body p { margin: 0 0 10px; line-height: 1.5; }

/* The choices: label above, the control under it, laid out in a row. */
.settings-fields { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-start; }
.settings-field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.settings-field__label { font-size: 11px; font-weight: 500; color: #667A91; letter-spacing: .01em; }
.settings-field__control { display: flex; align-items: center; gap: 8px; }
.settings-field__by { font-size: 10.5px; color: #667A91; }
.settings-field__unit { font-size: 12px; color: #667A91; }
.settings-note { margin: 12px 0 0; font-size: 11px; color: #667A91; }
.settings-bar select, .report-module__settings select { appearance: none; -webkit-appearance: none; min-height: 32px; padding: 5px 32px 5px 11px; border: 1px solid #C9D2DC; border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23667A91' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center; font-family: "Poppins", sans-serif; font-size: 12.5px; color: #1A1A1A; cursor: pointer; }
.settings-bar select:hover, .report-module__settings select:hover { border-color: #01B1F3; }
.settings-bar select:focus, .report-module__settings select:focus,
.settings-bar input:focus, .report-module__settings input:focus { outline: none; border-color: #01B1F3; box-shadow: 0 0 0 3px rgba(1, 177, 243, .15); }
.settings-bar input[type="text"], .settings-bar input[type="number"], .settings-bar input[type="date"] { min-height: 32px; padding: 5px 10px; border: 1px solid #C9D2DC; border-radius: 6px; background: #fff; font-family: "Poppins", sans-serif; font-size: 12.5px; color: #1A1A1A; }
.report-module__page-head { font-size: 12.5px; color: var(--caseron-grey, #667A91); margin: 0 0 6px; }
.report-module__frame { width: 100%; height: 1250px; border: 1px solid #DDE3EA; border-radius: 6px; background: #E9EEF3; }

/* PULSE dashboard: the client's reports panel — one year-end picker for
   every Open, and a new report built page by page or from a standard
   template (Lisa, 19/10/2026). */
.client-reports__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 2px 0 10px; }
.client-reports__bar { justify-content: flex-end; }
.client-reports__grid > .pulse-module-card:not(.client-reports__new) { flex-wrap: wrap; }
.client-reports__run { display: flex; align-items: center; gap: 6px; flex-basis: 100%; margin-top: 8px; }
.client-reports__run .client-reports__pick { flex: 1; min-width: 0; }
.client-reports__pick { font: inherit; font-size: 12px; padding: 3px 6px; border: 1px solid #D5DCE4; border-radius: 6px; background: #fff; }
.client-reports__open.is-disabled { opacity: 0.45; pointer-events: none; }
.client-reports__new { flex-direction: column; align-items: stretch; gap: 6px; }
.client-reports__new-row { margin: 0; display: flex; align-items: center; gap: 8px; width: 100%; }
.client-reports__new-label { flex: 0 0 118px; font-size: 12px; font-weight: 500; color: var(--caseron-grey, #667A91); }
.client-reports__new-row input[type=text], .client-reports__new-row select { flex: 1; min-width: 0; padding: 5px 10px; border: 1px solid #D5DCE4; border-radius: 6px; font: inherit; font-size: 13px; background: #fff; }

/* Run the report on a PULSE module (Lisa, 20/10/2026): the button above the
   page, and a loud band while it builds — colour and area, never a faint fade. */
.report-run__bar { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.report-run__running { margin: 0 0 8px; padding: 12px 16px; border-radius: 8px; background: #01B1F3; color: #fff; font-weight: 600; animation: report-run-pulse 1s ease-in-out infinite alternate; }
@keyframes report-run-pulse { from { opacity: 1; } to { opacity: .7; } }

/* Management accounts: several lines as one accrual, prepayment or deferral
   (Lisa, 20/10/2026). The bar stays at the top of the screen while lines are
   ticked in any month. */
.group-pick { position: sticky; top: 12px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: #01B1F3; color: #fff; box-shadow: 0 4px 14px rgba(1, 177, 243, .3); }
.group-pick .btn { background: #fff; color: #01B1F3; border-color: #fff; }
.group-pick .btn--ghost { background: transparent; color: #fff; }
.txn-group { text-align: center; }

/* A pink P&L figure is a button: click to mark it checked with a note, and it
   reads green, the note on hover (Lisa, 20/10/2026). */
.grid td.pnl-checked { background: #EDF7E1; color: #3F6E12; font-weight: 600; }
.pnl-flag { all: unset; cursor: pointer; display: block; width: 100%; text-align: right; }
.pnl-flag:focus-visible { outline: 2px solid #01B1F3; outline-offset: 2px; }
.pnl-flag__dialog { text-align: left; font-weight: 400; color: #1A1A1A; }

/* A draft journal ticked as posted to Xero by hand (Lisa, 20/10/2026). */
.flag--posted { background: #EDF7E1; color: #3F6E12; border-color: #92D050; }

/* One period at a time on a management accounts account (Lisa, 20/10/2026).
   A month with nothing posted reads pale, so a missing invoice stands out. */
.period-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.period-filter__label { font-size: 12px; color: #667A91; font-weight: 600; margin-right: 2px; }
.period-filter__pill { font: inherit; font-size: 12px; padding: 3px 10px; border: 1px solid #D5DCE4; border-radius: 999px; background: #fff; color: #1A1A1A; cursor: pointer; }
.period-filter__pill:hover { border-color: #01B1F3; }
.period-filter__pill.is-active { background: #01B1F3; border-color: #01B1F3; color: #fff; }
.period-filter__pill--empty { color: #99A7B6; border-style: dashed; }

/* Queried — an open query that is still ours to look into, before it goes to
   the client: the query pink, hollow (Lisa, 20/10/2026). */
.traffic--queried { background: var(--caseron-white); box-shadow: inset 0 0 0 2px var(--caseron-pink); }

/* The monthly email's Send waits for current figures (Lisa, 19/10/2026). */
.freshness-note { padding: 8px 12px; border-radius: 6px; font-size: 12px; color: #1A1A1A; max-width: 520px; }
.freshness-note--updating { background: #FFF4CC; border-left: 5px solid #FFC000; animation: freshness-note-pulse 1.6s ease-in-out infinite; }
.freshness-note--stuck { background: #FFE6F7; border-left: 5px solid #FF33CC; }
@keyframes freshness-note-pulse { 50% { background: #FFE699; } }

/* PULSE → Management Accounts, under the client's name (Lisa, 20/10/2026). */
.pulse-ma-link { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--caseron-blue, #01B1F3); }

/* The tax year's rates panel — amber until Lisa confirms (23/10/2026). */
.tax-rates { border: 1px solid #D5DCE4; border-radius: 8px; padding: 8px 12px; margin: 6px 0 14px; background: #fff; }
.tax-rates > summary { cursor: pointer; font-weight: 600; }
.tax-rates--draft { border-left: 6px solid #FFC000; background: #FFF9E6; }
.tax-rates--ok { border-left: 6px solid #92D050; }
.hm-period { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--caseron-white); border: 1px solid var(--border); border-left: 4px solid var(--caseron-blue); border-radius: 10px; padding: 10px 14px; margin: 6px 0 12px; font-size: 14px; }
.hm-period__form { margin: 0; display: inline; }
.hm-period__btn { font: inherit; font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--caseron-white); color: var(--caseron-dark); cursor: pointer; }
.hm-period__btn:hover { border-color: var(--caseron-blue); }
.hm-period__btn--on { background: var(--caseron-blue); border-color: var(--caseron-blue); color: var(--caseron-white); font-weight: 600; }
.hm-period__covers { margin-left: 6px; color: var(--caseron-grey); }
.hm-period__covers strong { color: var(--caseron-dark); }

/* The PULSE Forecast module (Lisa, 24/10/2026): set up first, then the
   assumptions, then the clients — the answer in four boxes at the top. */
.fc-tiles { margin: 10px 0 14px; }
.fc-neg { color: #FF33CC; }
.fc-card { margin-top: 14px; }
.fc-card h2 { margin: 0 0 2px; font-size: 16px; }
.fc-ways__label { font-weight: 600; margin: 4px 0 6px; }
.fc-ways__options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fc-way { display: flex; flex-direction: column; gap: 2px; border: 1px solid #D5DCE4; border-radius: 8px; padding: 8px 10px; font-size: 11.5px; color: #667A91; cursor: pointer; background: #fff; }
.fc-way strong { color: #1A1A1A; font-size: 12.5px; }
.fc-way input { display: none; }
.fc-way--on { border: 2px solid #01B1F3; background: #F2FBFF; }
.fc-way--next { opacity: 0.55; cursor: not-allowed; }
.fc-basics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 18px; margin: 6px 0 12px; }
.fc-basic { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.fc-basic__label { font-weight: 500; }
.fc-typed { color: #B07D00; }
.fc-month { font: inherit; font-size: 12px; padding: 3px 5px; border: 1px solid #B9C6D3; border-radius: 5px; width: 9.5em; }
.fc-other td { background: #F7F9FB; }
.fc-client { min-width: 250px; }
.fc-new { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid #E8EDF2; font-size: 12.5px; }
.fc-new input[type=text] { font: inherit; font-size: 12.5px; padding: 4px 7px; border: 1px solid #B9C6D3; border-radius: 5px; }
.fc-links { display: flex; gap: 8px; flex-wrap: wrap; }
.fc-tabs { display: flex; gap: 4px; margin: 6px 0 0; border-bottom: 2px solid #01B1F3; flex-wrap: wrap; }
.fc-tabs a { padding: 8px 16px; border-radius: 8px 8px 0 0; background: #E3EAF1; color: #667A91; font-weight: 500; font-size: 13px; text-decoration: none; }
.fc-tabs a.fc-tab--on { background: #01B1F3; color: #fff; }
.fc-tabs + .fc-card { margin-top: 0; border-top-left-radius: 0; }
.fc-tabs__gap { align-self: center; margin: 0 4px 0 14px; font-size: 11px; color: #667A91; letter-spacing: .04em; }
.fc-tabs a.fc-tab--out { background: #E6F7FE; color: #01B1F3; font-weight: 600; }
.fc-tabs a.fc-tab--out.fc-tab--on { background: #01B1F3; color: #fff; }
.fc-sub { font-size: 13.5px; margin: 16px 0 6px; }


/* Bertie Bookkeeper ---------------------------------------------------------
   Purchase bills from client inboxes, reviewed and approved into Xero
   (Lisa, 25/10/2026). The review page puts the invoice on the left third and
   Bertie's notes and the decision on the right two thirds. */
.bertie-flow { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bertie-flow li { background: var(--caseron-white); border: 1px solid var(--border); border-top: 3px solid var(--caseron-blue); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; }
.bertie-flow li.is-soon { border-top-color: var(--grey-soft); background: #FAFBFC; }
.bertie-flow__head { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; font-weight: 600; font-size: 13.5px; }
.bertie-flow__chip { font-size: 10px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--caseron-blue); color: var(--caseron-white); white-space: nowrap; }
.bertie-flow li.is-soon .bertie-flow__chip { background: var(--grey-soft); }
.bertie-flow__count { margin-top: 6px; color: var(--caseron-grey); } .bertie-flow__count strong { font-size: 22px; color: var(--caseron-dark); font-variant-numeric: tabular-nums; margin-right: 4px; }
.bertie-flow p { margin: 6px 0 0; color: var(--caseron-grey); line-height: 1.5; }
.bertie-rows tr[data-href] { cursor: pointer; }
.bertie-rows tr[data-href]:hover td { background: #F3FBFF; }
.bertie-rows tr.is-priority td { background: #FFF5FC; }
.bertie-star { background: none; border: 0; padding: 0 4px; font-size: 18px; line-height: 1; color: #C3CCD6; cursor: pointer; }
.bertie-star.is-on { color: var(--caseron-pink); }
.bertie-zero { color: #C3CCD6; }
.bertie-sort .btn[aria-pressed="true"] { background: var(--caseron-blue); color: var(--caseron-white); }
.bertie-pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.bertie-pill--ready { background: #E9F8DE; color: #3C6E17; }
.bertie-pill--needs_info, .bertie-pill--possible_duplicate, .bertie-pill--held { background: #FFF4D6; color: #8A6600; }
.bertie-pill--duplicate { background: #FFE6F8; color: #A1136F; }
.bertie-pill--pushed { background: #E9F8DE; color: #3C6E17; }
.bertie-pill--collected, .bertie-pill--not_invoice, .bertie-pill--statement, .bertie-pill--billed_elsewhere, .bertie-pill--error { background: #F1F4F8; color: var(--caseron-grey); }
.bertie-queue { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--caseron-white); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; margin-bottom: 16px; font-size: 13px; }
.bertie-queue .bertie-queue__nav { margin-left: auto; display: flex; gap: 6px; }
.bertie-review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 18px; align-items: start; }
@media (max-width: 960px) { .bertie-review { grid-template-columns: minmax(0, 1fr); } }
.bertie-doc { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 8px; }
.bertie-doc__frame { width: 100%; height: 78vh; border: 1px solid var(--border); border-radius: 10px; background: var(--caseron-white); }
.bertie-doc img.bertie-doc__frame { height: auto; max-height: 78vh; object-fit: contain; }
.bertie-notes { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bertie-card { background: var(--caseron-white); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.bertie-card h3 { margin: 0 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--caseron-grey); font-weight: 600; }
.bertie-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.bertie-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.bertie-total { font-size: 24px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bertie-attention { border: 2px solid var(--caseron-amber); background: #FFFCF2; }
.bertie-attention h3 { color: #8A6600; }
.bertie-blocked { border: 2px solid var(--caseron-pink); background: #FFF0FA; }
.bertie-blocked h3 { color: #A1136F; }
.bertie-point { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px 10px; padding: 10px 0; border-top: 1px solid #F1E3C8; }
.bertie-point:first-of-type { border-top: 0; padding-top: 0; }
.bertie-point__n { width: 22px; height: 22px; border-radius: 50%; background: var(--caseron-amber); color: var(--caseron-dark); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.bertie-point.is-done .bertie-point__n { background: var(--caseron-green); }
.bertie-point.is-done p { color: var(--caseron-grey); text-decoration: line-through; }
.bertie-point p { margin: 0 0 6px; font-size: 13.5px; }
.bertie-point form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bertie-point input[type="text"], .bertie-card input[type="text"], .bertie-card input[type="date"], .bertie-card input[type="number"], .bertie-card select, .bertie-card textarea {
  font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid #D5DCE4; border-radius: 6px; color: var(--caseron-dark); }
.bertie-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 14px; font-size: 13px; }
.bertie-checks .is-ok::before { content: "✓ "; color: #3C6E17; font-weight: 700; }
.bertie-credit { flex-basis: 100%; background: #EEF8FD; border-left: 3px solid #01B1F3; padding: 8px 10px; border-radius: 0 6px 6px 0; font-size: 13px; }
.bertie-credit__apply { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; }
.bertie-checks .is-warn::before { content: "! "; color: #8A6600; font-weight: 700; }
.bertie-read { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); gap: 8px 14px; align-items: center; font-size: 13px; }
.bertie-read dt { color: var(--caseron-grey); } .bertie-read dd { margin: 0; }
.bertie-lines { width: 100%; border-collapse: collapse; font-size: 13px; }
.bertie-lines th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--caseron-grey); font-weight: 600; border-bottom: 1px solid var(--border); padding: 5px 6px; }
.bertie-lines td { padding: 7px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.bertie-lines td.num { text-align: right; white-space: nowrap; }
.bertie-lines input[type="text"] { width: 100%; }
.bertie-lines input[type="number"] { width: 100px; text-align: right; }
.bertie-lines select { max-width: 230px; }
.bertie-lines .bertie-small { display: block; font-size: 11px; color: var(--caseron-grey); }
/* Removing lines (Lisa, 16/11/2026): a tick box and a × at the end of each line; £0.00 lines greyed. */
.bertie-lines .bertie-line-remove { width: 1%; white-space: nowrap; text-align: center; }
.bertie-lines .bertie-line-x { border: 0; background: none; color: var(--caseron-grey); font-size: 18px; line-height: 1; padding: 0 4px; cursor: pointer; vertical-align: middle; }
.bertie-lines .bertie-line-x:hover, .bertie-lines .bertie-line-x:focus-visible { color: var(--caseron-pink); }
.bertie-lines tr.is-zero input[type="text"], .bertie-lines tr.is-zero input[type="number"] { color: var(--caseron-grey); }
.bertie-enter-saves { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bertie-decision { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bertie-decision textarea { width: 100%; min-height: 50px; margin-bottom: 8px; }
.bertie-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12px; color: var(--caseron-grey); }
.bertie-history time { color: var(--caseron-dark); margin-right: 6px; font-variant-numeric: tabular-nums; }
.bertie-alert { border-top: 1px solid #F3D6EA; padding: 10px 0; font-size: 13.5px; }
.bertie-alert:first-child { border-top: 0; }
.bertie-alert--bank strong { color: #A1136F; }
/* Supplier statements: the statement on the left third, the reconciliation on
   the right two thirds (Lisa, 26/10/2026). */
.bertie-pill--st-needs_you { background: #FFE6F8; color: #A1136F; }
.bertie-pill--st-explained { background: #E3F6FE; color: #0077A8; }
.bertie-pill--st-reconciled { background: #E9F8DE; color: #3C6E17; }
.bertie-pill--st-error, .bertie-pill--st-replaced { background: #F1F4F8; color: var(--caseron-grey); }
.bertie-diff { color: #A1136F; font-weight: 600; } .bertie-nil { color: #3C6E17; font-weight: 600; }
.bertie-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .bertie-tiles { grid-template-columns: minmax(0, 1fr); } }
.bertie-tile { background: var(--caseron-white); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.bertie-tile__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--caseron-grey); font-weight: 600; }
.bertie-tile__value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bertie-tile__note { font-size: 12px; color: var(--caseron-grey); }
.bertie-tile--diff { border: 2px solid var(--caseron-pink); } .bertie-tile--diff .bertie-tile__value { color: #A1136F; }
.bertie-tile--nil { border: 2px solid var(--caseron-green); } .bertie-tile--nil .bertie-tile__value { color: #3C6E17; }
.bertie-explain { width: 100%; border-collapse: collapse; font-size: 13px; }
.bertie-explain td { padding: 9px 6px; border-bottom: 1px solid #F1E3C8; vertical-align: top; }
.bertie-explain td.num { text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.bertie-explain p { margin: 2px 0 0; color: var(--caseron-grey); }
.bertie-explain .bertie-do { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.bertie-explain tr.is-total td { border-bottom: 0; border-top: 2px solid var(--caseron-dark); font-weight: 700; }
.bertie-explain tr.is-left td { border: 0; font-weight: 700; }
.bertie-lines tr.is-flagged td { background: #FFFCF2; }
/* Bertie's mistakes: a yellow warning triangle with the count (Lisa, 26/10/2026). */
.bertie-flag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 7px 0 5px; height: 20px; border-radius: 10px;
  background: #FFC000; color: var(--caseron-dark); font-size: 11.5px; font-weight: 700; line-height: 1; }
.bertie-flag::before { content: ""; width: 11px; height: 10px; background: var(--caseron-dark);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.bertie-flag--icon { padding: 0; width: 18px; height: 16px; margin: 0 6px 0 0; background: none; vertical-align: -3px; }
.bertie-flag--icon::before { width: 16px; height: 14px; background: #FFC000; }
.bertie-flag-form summary { cursor: pointer; font-size: 13px; color: var(--caseron-grey); list-style: none; }
.bertie-flag-form summary::-webkit-details-marker { display: none; }
.bertie-flag-form[open] summary { color: var(--caseron-dark); font-weight: 500; }
.bertie-flag-form form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.bertie-flag-form textarea { width: 100%; min-height: 44px; font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid #D5DCE4; border-radius: 6px; }
.bertie-error { border-top: 1px solid var(--border); padding: 12px 0; font-size: 13.5px; }
.bertie-error:first-child { border-top: 0; padding-top: 0; }
.bertie-warn { color: #FF33CC; font-size: 15px; line-height: 1; }
.bertie-posted__meta { color: var(--caseron-grey); font-size: 12.5px; margin: 2px 0 8px; }
.bertie-posted { border-collapse: collapse; font-size: 13.5px; min-width: 560px; margin-bottom: 4px; }
.bertie-posted th { font-weight: 500; color: var(--caseron-grey); font-size: 12px; text-align: right; padding: 4px 14px; border-bottom: 1px solid var(--border); }
.bertie-posted td { text-align: right; padding: 5px 14px; font-variant-numeric: tabular-nums; vertical-align: top; }
.bertie-posted th:first-child, .bertie-posted td:first-child { text-align: left; padding-left: 0; }
.bertie-posted .is-different .bertie-posted__gap { color: #FF33CC; font-weight: 600; }
.bertie-posted__gap.is-nil { color: #3C6E17; }
.bertie-posted__gap span { display: block; color: var(--caseron-grey); font-weight: 400; font-size: 12px; }
.bertie-posted__flag { width: 22px; padding: 5px 0 !important; text-align: center !important; }
.bertie-posted__history { margin: 4px 0 8px; font-size: 13px; }
.bertie-posted__history summary { cursor: pointer; color: var(--caseron-blue); font-size: 12.5px; margin-bottom: 4px; }
.bertie-posted__read { display: block; color: var(--caseron-grey); font-size: 12px; margin-top: 2px; }
.bertie-error__said { color: var(--caseron-grey); margin: 4px 0; }
.bertie-error__wrong { background: #FFF8E1; border-left: 3px solid #FFC000; padding: 6px 10px; margin: 6px 0; border-radius: 0 6px 6px 0; }
/* Portal cards: the counts top right — Bertie's mistakes (yellow) left of the work waiting (red). */
.tool-card__badges { position: absolute; top: -9px; right: -6px; display: flex; gap: 4px; }
.tool-card__badges .tool-card__dot { position: static; }
.tool-card__badges .bertie-flag { margin: 0; height: 22px; border: 2px solid var(--caseron-white); border-radius: 11px; box-sizing: border-box; }

/* Bertie: choosing a bill's Xero supplier, and a client check running (06/11/2026) */
.bertie-pick { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #EEF1F4; }
.bertie-pick form { margin: 0; }
.bertie-running { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 14px; border-radius: 8px;
  background: #E6F7FE; border: 2px solid #01B1F3; color: #1A1A1A; font-weight: 500; }
.bertie-running__dot { width: 12px; height: 12px; border-radius: 50%; background: #01B1F3; animation: bertie-pulse 1s ease-in-out infinite; }
@keyframes bertie-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* Predictive dropdowns — every single-choice dropdown in the portal opens a
   type-to-find list (app/javascript/predictive_select.js). Lisa, 07/11/2026. */
.predictive-select { position: fixed; z-index: 10000; background: var(--caseron-white); border: 1px solid #C9D4DF;
  border-radius: 8px; box-shadow: 0 8px 24px rgba(26, 26, 26, .16); font-family: "Poppins", sans-serif; font-size: 13px;
  color: var(--caseron-dark); overflow: hidden; }
.predictive-select__search { display: block; width: 100%; margin: 0; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--border);
  font: inherit; font-size: 13px; outline: none; background: var(--caseron-white); }
.predictive-select__search:focus { border-bottom-color: var(--caseron-blue); }
.predictive-select__list { list-style: none; margin: 0; padding: 4px 0; max-height: 300px; overflow-y: auto; }
.predictive-select__option { padding: 5px 10px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.predictive-select__option.is-chosen { font-weight: 600; }
.predictive-select__option.is-active { background: #E6F7FE; box-shadow: inset 3px 0 0 var(--caseron-blue); }
.predictive-select__option.is-disabled { color: var(--grey-soft); cursor: default; }
.predictive-select__group { padding: 6px 10px 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--caseron-grey); }
.predictive-select__none { padding: 8px 10px; color: var(--caseron-grey); }

/* Bertie: a duplicate shown point by point (07/11/2026) */
.bertie-match { border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.bertie-match th, .bertie-match td { padding: 4px 10px 4px 0; text-align: left; border-bottom: 1px solid #EEF1F4; }
.bertie-match tr.is-differs td { color: #B3007E; }
.bertie-match__lines td { vertical-align: top; max-width: 320px; }
.bertie-not-duplicate { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.bertie-not-duplicate form { margin: 0; }
.bertie-match__y { color: #3C6E17; font-weight: 700; }
.bertie-match__x { color: #FF33CC; font-weight: 700; }
.bertie-match__n { color: var(--caseron-grey); }
.bertie-match-line { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; margin-top: 4px; }

/* Bertie: plain-English help under each point (07/11/2026) */
.bertie-help { margin: 4px 0 6px; padding: 6px 10px; border-left: 3px solid #01B1F3; background: #F2FBFE; font-size: 12.5px; color: #1A1A1A; }

/* Bertie: reviewed Not invoices sit below, under their own heading (07/11/2026) */
.bertie-rows__section td { background: #F4F6F8; color: var(--caseron-grey); font-weight: 600; font-size: 12.5px; cursor: default; }

/* The Goal seeker module, redrawn (Lisa, 08/11/2026): the goal, the time
   frame and the starting point side by side, the directors beneath, and
   every goal set with where it stands. */
.goal-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.goal-box { border: 2px dashed var(--caseron-blue, #01B1F3); border-radius: 10px; padding: 12px 14px; background: #F7FCFE; font-size: 13px; }
.goal-box h4 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--caseron-blue, #01B1F3); }
.goal-box .goal-radio input[type="text"], .goal-box .goal-radio input[type="month"] { font: inherit; font-size: 13px; padding: 2px 6px; border: 1.5px solid var(--caseron-blue, #01B1F3); border-radius: 5px; margin-left: 4px; }
.goal-box .cell-num--narrow { width: 4.5em; }
.goal-sub { margin: 2px 0 0 22px; padding-left: 10px; border-left: 2px solid #D5DCE4; }
.goal-set-line { margin: 4px 0 12px; padding: 10px 14px; border-radius: 8px; background: #F4F6F9; font-size: 13px; }
.goal-set-line--draft { background: #FFF8E1; }
.goal-standing { font-weight: 600; }
.goal-standing--ahead, .goal-standing--reached { color: #3F6E12; }
.goal-standing--behind, .goal-standing--missed { color: #A1136F; }
.goal-standing--waiting, .goal-standing--draft { color: var(--caseron-grey, #667A91); }
.goal-history__title { margin: 16px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--caseron-blue, #01B1F3); }
.goal-history--current td { background: #F2FAE8; }
@media (max-width: 1100px) { .goal-grid { grid-template-columns: 1fr; } }
/* Radios sit beside their words inside the goal boxes (the older .goal-row
   rule stacks a label's contents for text boxes). */
.goal-box .goal-row label.goal-radio { display: flex; flex-direction: row; align-items: center; gap: 4px; color: #1A1A1A; font-size: 13px; }
.goal-box .goal-row label.goal-radio--inline { display: inline-flex; margin: 0 10px 0 4px; }
.goal-box .goal-row > span { color: var(--caseron-grey, #667A91); font-size: 12px; }

/* Bertie supplier rules (08/11/2026) */
.bertie-rule-form fieldset { border: 1px solid #E3E8EF; border-radius: 8px; padding: 10px 14px 12px; margin: 0 0 12px; }
.bertie-rule-form legend { font-weight: 500; padding: 0 6px; }
.bertie-rule-form .bertie-small { margin: 2px 0 8px; }
.bertie-rules td { vertical-align: top; }
.bertie-due-terms { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bertie-contact-choices { margin: 6px 0; display: grid; gap: 4px; }

/* Bertie tracking codes on bill lines (09/11/2026) */
.bertie-line-tracking td { padding-top: 0; border-top: 0; }
.bertie-lines .bertie-line-tracking .bertie-small { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; }
.bertie-line-tracking select.is-missing { border-color: #FFC000; background: #FFF8E1; }

/* Procedures --------------------------------------------------------------
   Each client's agreed procedures, read as one document: numbered procedures
   with their own anchors and "Ask about this", open points as tick boxes,
   questions kept under the procedure they are about. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.proc-contents ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.proc-doc { padding: 26px 30px; line-height: 1.55; }
.proc-doc h1, .proc-doc h2 { font-weight: 600; font-size: 21px; margin: 0 0 10px; }
.proc-doc h3 { font-weight: 600; font-size: 17px; margin: 0; }
.proc-doc h4 { font-weight: 600; font-size: 15px; margin: 0; }
.proc-section { scroll-margin-top: 70px; }
.proc-section--h2 { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
.proc-section--h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.proc-section--h3, .proc-section--h4 { margin-top: 22px; }
.proc-procedure { border-left: 3px solid var(--caseron-blue); padding-left: 16px; }
.proc-procedure:target { background: #F2FBFF; }
.proc-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.proc-heading__actions { display: inline-flex; align-items: center; gap: 12px; }
.proc-back { font-size: 13px; color: var(--caseron-grey); }
.proc-doc ul, .proc-doc ol { padding-left: 22px; margin: 6px 0 10px; }
.proc-doc li { margin: 3px 0; }
.proc-doc p { margin: 6px 0 10px; }
.proc-doc strong { font-weight: 600; }
table.procedure-table { border-collapse: collapse; width: 100%; font-size: 13.5px; margin: 8px 0 14px; background: var(--caseron-white); }
table.procedure-table th, table.procedure-table td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid var(--border); }
table.procedure-table thead th { color: var(--caseron-grey); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.calendar-link { white-space: nowrap; }
.doc-link { display: inline-flex; align-items: center; gap: 6px; }
.doc-link__mark { font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: #01699A; background: #EAF8FE; border: 1px solid #B9E7FB; border-radius: 4px; padding: 0 5px; }
.proc-keydocs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 2px 0 10px; font-size: 13.5px; }
.proc-keydocs__label { color: var(--caseron-grey); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.proc-muted { color: var(--caseron-grey); }
.proc-small { font-size: 12.5px; }
.proc-ticks { list-style: none; padding: 0 !important; margin: 8px 0; }
.proc-tick { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--border); }
.proc-tick__form { margin: 0; }
.proc-tick__box { width: 20px; height: 20px; margin-top: 2px; border: 1.5px solid var(--caseron-grey); border-radius: 4px; background: var(--caseron-white); cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--caseron-dark); font-size: 13px; line-height: 1; }
.proc-tick__box.is-ticked { background: var(--caseron-green); border-color: var(--caseron-green); }
.proc-tick.is-ticked .proc-tick__text { color: var(--caseron-grey); text-decoration: line-through; }
.proc-tick__who { font-size: 12px; color: var(--caseron-grey); margin-top: 2px; }
.proc-systems h3 { margin: 18px 0 6px; }
.proc-questions { margin: 12px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.proc-question { border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; background: var(--surface); }
.proc-question--waiting { background: #FFF9E8; border-color: #FFE08A; }
.proc-question__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.proc-question__q, .proc-question__a { margin: 6px 0 !important; }
.proc-answer { display: flex; gap: 8px; align-items: flex-start; }
.proc-answer textarea { flex: 1; font: inherit; padding: 7px 9px; border: 1px solid #D5DCE4; border-radius: 6px; }
.proc-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 18px; margin-bottom: 14px; }
.proc-form-grid label, .proc-block-label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; color: var(--caseron-grey); }
.proc-block-label { margin-bottom: 14px; }
.proc-form-grid input, .proc-form-grid select, .proc-block-label input[type="text"] { font: inherit; padding: 8px 10px; border: 1px solid #D5DCE4; border-radius: 6px; color: var(--caseron-dark); }
.proc-editor { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; padding: 10px 12px; border: 1px solid #D5DCE4; border-radius: 6px; width: 100%; box-sizing: border-box; color: var(--caseron-dark); }
.proc-help { margin: -4px 0 14px; font-size: 13px; color: var(--caseron-grey); }
.proc-help code { background: var(--surface); padding: 1px 4px; border-radius: 3px; }
.proc-systems-edit input, .proc-systems-edit textarea, .proc-systems-edit select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid #D5DCE4; border-radius: 6px; width: 100%; box-sizing: border-box; min-width: 120px; }
.proc-row-actions { white-space: nowrap; width: 1%; }
.proc-row-actions form { display: inline-block; margin: 0 4px 4px 0; }
.proc-row-actions .btn, .proc-row-actions input[type="submit"] { width: auto; min-width: 0; }
.proc-problems { border-color: var(--caseron-pink); }
.proc-version summary { cursor: pointer; }
.proc-diff { margin-top: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; border: 1px solid var(--border); border-radius: 6px; overflow-x: auto; }
.proc-diff__line { padding: 1px 10px; white-space: pre-wrap; }
.proc-diff__line--added { background: #E9F8DE; color: #2E5A10; }
.proc-diff__line--removed { background: #FFE6F8; color: #A1136F; }
.proc-diff__line--gap { color: var(--grey-soft); background: var(--surface); }
.assistant-compose__refer { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--caseron-grey); }
.assistant-msg--refusal .assistant-msg__body { border: 1px solid var(--caseron-pink); }
@media (max-width: 640px) { .proc-doc { padding: 18px 16px; } .proc-answer { flex-direction: column; } }
.portal-head-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.portal-procedures { position: relative; }
.portal-procedures__dot { position: absolute; top: -8px; right: -8px; }
.proc-group-title { font-weight: 600; font-size: 18px; margin: 22px 0 10px; }
.proc-group-empty { padding: 22px; }
.proc-owner-form { margin: 0; display: inline; }
.proc-owner { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--caseron-dark); }
.proc-owner__label { color: var(--caseron-grey); font-size: 12px; }
.proc-owner select { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid #D5DCE4; border-radius: 6px; background: var(--caseron-white); }
.proc-calendar__owner { white-space: nowrap; }
.proc-calendar__owner .proc-owner__label { display: none; }
.proc-keydoc { display: inline-flex; align-items: center; gap: 2px; }
.proc-keydoc__form { display: inline; margin: 0; }
.proc-keydoc__remove { border: 0; background: none; color: var(--grey-soft); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }
.proc-keydoc__remove:hover { color: var(--caseron-pink); }
.proc-add { font-size: 13px; }
.proc-add summary { cursor: pointer; color: var(--caseron-blue); }
.proc-add__form { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; margin-top: 6px; }
.proc-add__form input[type="text"], .proc-add__form input[type="url"], .proc-add__form textarea { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid #D5DCE4; border-radius: 6px; min-width: 200px; }
.proc-add__form--note textarea { flex: 1; min-width: 260px; }
.proc-notes { margin: 8px 0 2px; display: flex; flex-direction: column; gap: 6px; }
.proc-note { border-left: 3px solid var(--caseron-green); background: #F6FBF1; border-radius: 0 6px 6px 0; padding: 8px 12px; font-size: 13.5px; }
.proc-note__who { color: var(--caseron-grey); font-size: 12px; margin-top: 3px; display: flex; gap: 8px; align-items: center; }
.proc-note__form { display: inline; margin: 0; }
.proc-note__remove { border: 0; background: none; color: var(--caseron-grey); text-decoration: underline; cursor: pointer; font-size: 12px; padding: 0; }
.proc-add--note { margin-top: 2px; }
.proc-tabs { flex-wrap: wrap; margin-bottom: 14px; }
.proc-jump { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
/* Custom journals (Lisa, 16/11/2026): each client's own journals, set up in
   five steps and drafted every period. */
.cj-code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: #EAF8FE; color: #01699A; padding: 1px 7px; border-radius: 5px; white-space: nowrap; }
.cj-pill--ok { background: #E9F8DE; border-color: var(--caseron-green); color: #3C6E17; }
.cj-pill--setup { background: #FFF4D6; border-color: var(--caseron-amber); color: #8A6600; }
.cj-pill--held { background: #FFE6F8; border-color: var(--caseron-pink); color: #A1136F; }
.cj-pill--xero { background: #EAF8FE; border-color: var(--caseron-blue); color: #01699A; }
.cj-steps { display: flex; flex-wrap: wrap; margin: 14px 0 18px; }
.cj-step { flex: 1; min-width: 140px; padding: 10px 12px; border: 1px solid var(--border); background: var(--caseron-white); font-size: 13px; color: var(--caseron-grey); }
.cj-step:first-child { border-radius: 8px 0 0 8px; }
.cj-step:last-child { border-radius: 0 8px 8px 0; }
.cj-step b { display: block; color: var(--caseron-dark); font-weight: 500; }
.cj-step--done { background: #E9F8DE; border-color: var(--caseron-green); }
.cj-step--now { background: #EAF8FE; border-color: var(--caseron-blue); box-shadow: inset 0 -3px 0 var(--caseron-blue); }
.cj-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .cj-grid2 { grid-template-columns: 1fr; } }
.cj-field { display: block; font-size: 13px; font-weight: 500; margin: 12px 0 4px; }
.cj-input { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #D5DCE4; border-radius: 6px; background: var(--caseron-white); }
textarea.cj-input { min-height: 120px; resize: vertical; }
.cj-input--short { width: 110px; }
.cj-radios { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.cj-control { border-radius: 8px; padding: 10px 14px; font-weight: 500; margin-top: 12px; background: #E9F8DE; border: 1px solid var(--caseron-green); color: #3C6E17; }
.cj-control--held { background: #FFE6F8; border-color: var(--caseron-pink); color: #A1136F; }
.cj-source { font-size: 12.5px; color: var(--caseron-grey); }
.cj-tick { color: #3C6E17; font-weight: 600; }
.cj-cross { color: #A1136F; font-weight: 600; }
.cj-skill { white-space: pre-wrap; max-height: 260px; overflow: auto; background: #F6F9FC; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; }

/* Proposals — where an issued proposal stands: sent, opened, reminders, closing date. */
.pf-status { list-style: none; margin: 0 0 14px; padding: 10px 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 18px; background: #F6F9FC; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.pf-status span { display: block; font-size: 11px; font-weight: 600; color: var(--caseron-grey); text-transform: uppercase; letter-spacing: .04em; }

/* Engagement letter — the client initials each section before signing. */
.pp-initial { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--pp-line); font-size: 13px; color: var(--caseron-grey); }
.pp-initial input { width: 110px; border: 1.5px solid #D5DCE4; border-radius: 8px; padding: 8px 10px; font: inherit; font-weight: 700; text-transform: uppercase; text-align: center; }
.pp-initial__ok { display: none; color: #2F5E12; font-weight: 700; }
.pp-initial.is-done input { border-color: var(--caseron-green); background: #F3FAE9; }
.pp-initial.is-done .pp-initial__ok { display: inline; }

/* Every testimonial on a proposal carries five stars (Lisa, 22/11/2026) — the
   same pink stars as the reviews on the client's adjustable proposal. Quote
   blocks on the documents are only ever testimonials, so a new one gets its
   stars without anyone having to add them. */
.pp-doc blockquote::before { content: "★★★★★"; content: "★★★★★" / "Five stars"; display: block; color: var(--caseron-pink); font-size: 16px; letter-spacing: 3px; font-style: normal; margin-bottom: 8px; }
/* Passwords tab (24/11/2026): one page, edited like a Word document. */
.pw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.pw-head h2 { margin-bottom: 4px; }
.pw-head p { max-width: 760px; margin: 0; }
.pw-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pw-status--problem { color: #A1136F !important; font-weight: 500; }
.pw-cover { border: 1px dashed var(--border); border-radius: 8px; padding: 34px 20px; text-align: center; color: var(--caseron-grey); background: var(--surface); }
.pw-cover p { margin: 0; }
.pw-page { background: #EEF1F5; border-radius: 8px; padding: 24px 16px; }
.pw-doc { background: var(--caseron-white); max-width: 820px; min-height: 420px; margin: 0 auto; padding: 48px 56px; box-shadow: 0 1px 4px rgba(26, 26, 26, 0.12); border-radius: 2px; font-size: 14px; line-height: 1.55; color: var(--caseron-dark); outline: none; overflow-wrap: anywhere; }
.pw-doc:focus { box-shadow: 0 0 0 2px var(--caseron-blue); }
.pw-doc:empty::before { content: attr(data-placeholder); color: var(--grey-soft); }
.pw-doc h1, .pw-doc h2, .pw-doc h3, .pw-doc h4 { font-weight: 600; margin: 16px 0 6px; }
.pw-doc h1 { font-size: 20px; } .pw-doc h2 { font-size: 17px; } .pw-doc h3 { font-size: 15px; }
.pw-doc p { margin: 0 0 8px; }
.pw-doc ul, .pw-doc ol { margin: 0 0 8px; padding-left: 24px; }
.pw-doc table { border-collapse: collapse; width: 100%; margin: 6px 0 12px; font-size: 13.5px; }
.pw-doc th, .pw-doc td { border: 1px solid #C9D2DC; padding: 5px 8px; vertical-align: top; text-align: left; }
.pw-doc th { background: #F4F7FA; font-weight: 600; }
.pw-log { margin-top: 12px; font-size: 13px; }
.pw-log summary { cursor: pointer; color: var(--caseron-blue); }
.pw-log ul { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 640px) { .pw-doc { padding: 24px 18px; } }
.pw [hidden] { display: none !important; }

/* Bertie: "None of these" tick under the supplier choices, and the loud saving note (Lisa, 25/11/2026). */
.bertie-none-of-these { display: flex; gap: 8px; align-items: center; padding: 8px 0 0; margin-top: 6px; border-top: 1px solid #EEF1F4; font-size: 13px; cursor: pointer; }
.bertie-saving { font-size: 12.5px; font-weight: 500; color: #1A1A1A; background: #FFC000; padding: 3px 8px; border-radius: 4px; animation: bertie-saving-pulse 0.9s ease-in-out infinite alternate; }
@keyframes bertie-saving-pulse { from { opacity: 1; } to { opacity: 0.55; } }

/* Bertie fast post (Lisa, 27/11/2026): tick bills, the summary says what goes into Xero. */
.fast-post__summary { position: sticky; top: 8px; z-index: 2; box-shadow: 0 2px 10px rgba(26, 26, 26, 0.06); }
.fast-post__totals { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 8px; }
.fast-post__totals div { display: flex; flex-direction: column; }
.fast-post__totals strong { font-size: 18px; font-weight: 600; color: var(--caseron-dark, #1A1A1A); }
.fast-post__by-account { max-width: 640px; }
.fast-post td { vertical-align: top; }
.fast-post__stuck td { background: #FBFCFD; color: var(--caseron-grey); }
.fast-post__total td { font-weight: 600; border-top: 2px solid var(--border); }

