* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; }
body { background: #07080c; }

/* The reload prompt (src/components/UpdateBar.jsx): 16px off the bottom, or above the phone layout's 60px bottom nav. */
.cadence-update { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 767px) { .cadence-update { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } }

/* Printed: no browser header or footer (the date, the title, the address, the page number) on any page of the app, the
   tracker's review among them. The rule and why it's this one: src/lib/printPage.js (NO_BROWSER_HEADER, this text exactly,
   held equal by scripts/print-header.test.mjs). */
@page { @top-left-corner { content: ""; } @bottom-right-corner { content: ""; } }
/* src/auth/auth.css — the sign-in screens, drawn to the mock (claude.ai/artifact/VJWi88ZYYBUbXkAsNQhaQn, "Cadence —
   signing in"): Sign in, Forgot your password, Check your email, Signed out (SignIn.jsx); Enter the code and Set up the
   account (InviteAccept.jsx); Set a password (SetPassword.jsx). The mock's faces are the app's own (Ryan, 2026-10-22:
   Geist only): titles in Geist at --weight-title, everything else in Geist, the code's digits in Geist Mono. Every class is au-. */

.au-page {
  --au-ground: #faf9f5;
  --au-ink: #141413;
  --au-soft: #6b655c;
  --au-label: #44403c;
  --au-faint: #8a8378;
  --au-whisper: #a8a29e;
  --au-rule: #e6e2da;
  --au-rule-soft: #ebe7df;
  --au-edge: #ddd8ce;
  --au-locked: #f3f1ea;
  --au-locked-ink: #57534a;
  --au-button: #14261e;
  --au-link: #3e7d5c;
  --au-link-hover: #2c5a42;
  --au-mark: #0f2a22;
  --au-bad-ground: #fbeeea;
  --au-bad-edge: #efcdc2;
  --au-bad-ink: #8f3420;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--au-ground);
  color: var(--au-ink);
  font-family: var(--font-sans);
}
.au-page *, .au-page *::before, .au-page *::after { box-sizing: border-box; }

/* Set a password lies over the app, where the root's Classic did (fixed, under the loaders' layers). */
.au-page.au-over { position: fixed; inset: 0; z-index: 9998; overflow-y: auto; }

/* Sign in: the card over a dark green ground, lit from three corners, with a grain over it. */
.au-page.au-dark {
  position: relative;
  overflow: hidden;
  background: #0d1a14;
}
.au-glow { position: absolute; inset: 0; pointer-events: none; }
.au-glow-a { background: radial-gradient(60% 46% at 78% 12%, rgba(62, 125, 92, 0.30) 0%, rgba(62, 125, 92, 0) 62%); }
.au-glow-b { background: radial-gradient(54% 44% at 12% 62%, rgba(110, 170, 132, 0.26) 0%, rgba(110, 170, 132, 0) 62%); }
.au-glow-c { background: radial-gradient(70% 50% at 50% 104%, rgba(45, 92, 67, 0.32) 0%, rgba(45, 92, 67, 0) 60%); }
.au-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.26; mix-blend-mode: overlay; pointer-events: none; }

.au-card {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: flex;
  overflow: hidden;
  background: var(--au-ground);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.au-card-brand {
  width: 330px;
  flex-shrink: 0;
  padding: 40px 32px;
  border-right: 1px solid var(--au-rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}
.au-card-brand-sub { font-size: 16px; color: var(--au-soft); }
.au-card-body { flex-grow: 1; min-width: 0; padding: 40px 36px; display: flex; flex-direction: column; gap: 9px; }

/* The lockup: three bars and the word. */
.au-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--au-mark); }
.au-lockup svg { flex-shrink: 0; fill: currentColor; }
.au-lockup-word { font-weight: 500; font-size: 20px; letter-spacing: -0.04em; line-height: 1; }
.au-lockup-lg .au-lockup-word { font-size: 38px; }

/* The single-column screens. */
.au-col { width: 100%; max-width: 400px; }
.au-col-wide { max-width: 420px; }
.au-col > .au-lockup { margin-bottom: 30px; }
.au-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--weight-title);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.au-sub { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--au-soft); }
.au-sub strong { font-weight: 600; color: var(--au-ink); }
.au-stack { margin-top: 26px; display: flex; flex-direction: column; gap: 15px; }
.au-note { margin-top: 22px; font-size: 13px; line-height: 1.6; color: var(--au-faint); text-align: center; }
.au-foot { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--au-rule-soft); }
.au-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

/* Fields. */
.au-field { display: flex; flex-direction: column; gap: 6px; }
.au-label { font-size: 13px; font-weight: 500; color: var(--au-label); }
.au-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--au-edge);
  border-radius: 10px;
  background: #ffffff;
  color: var(--au-ink);
  font: inherit;
  font-size: 14px;
}
.au-input:focus { outline: none; border-color: var(--au-button); box-shadow: 0 0 0 1px var(--au-button); }
.au-input::placeholder { color: var(--au-whisper); }
.au-locked {
  padding: 12px 14px;
  border: 1px solid var(--au-rule-soft);
  border-radius: 10px;
  background: var(--au-locked);
  font-size: 14px;
  color: var(--au-locked-ink);
  overflow-wrap: anywhere;
}

/* Buttons and links. */
.au-primary {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: var(--au-button);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.au-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.au-secondary {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--au-edge);
  border-radius: 10px;
  background: #ffffff;
  color: var(--au-ink);
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.au-secondary:disabled { opacity: 0.55; cursor: not-allowed; }
.au-pair { display: flex; gap: 10px; margin-top: 20px; }
.au-sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--au-edge);
  border-radius: 10px;
  background: #ffffff;
  color: var(--au-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.au-sso svg { flex-shrink: 0; }
.au-sso[aria-disabled="true"] { cursor: default; }
.au-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--au-link);
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.au-link:hover { color: var(--au-link-hover); }
.au-link-sm { font-size: 13px; }
.au-link-quiet { color: var(--au-faint); }
.au-link-quiet:hover { color: var(--au-soft); }

.au-or { display: flex; align-items: center; gap: 14px; margin: 16px 0; font-size: 12px; color: var(--au-whisper); }
.au-or::before, .au-or::after { content: ""; flex-grow: 1; height: 1px; background: var(--au-rule); }
.au-or-loose { margin: 22px 0; }

/* What went wrong, and what is so. */
.au-error {
  padding: 10px 14px;
  border: 1px solid var(--au-bad-edge);
  border-radius: 10px;
  background: var(--au-bad-ground);
  color: var(--au-bad-ink);
  font-size: 13px;
  line-height: 1.5;
}
.au-said { font-size: 13px; line-height: 1.5; color: var(--au-soft); }
.au-box { margin-top: 26px; padding: 17px 19px; border: 1px solid var(--au-rule); border-radius: 11px; background: #ffffff; }
.au-box-title { margin-bottom: 9px; font-size: 13px; font-weight: 600; }
.au-box-text { font-size: 13px; line-height: 1.6; color: #55504a; }

/* The code: six boxes. */
.au-digits { display: flex; gap: 10px; margin-top: 28px; }
.au-digit {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 0;
  border: 1px solid var(--au-edge);
  border-radius: 10px;
  background: #ffffff;
  color: var(--au-ink);
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  text-align: center;
}
.au-digit:focus { outline: none; border: 2px solid var(--au-button); padding: 15px 0; }
/* Under a label (the sign-in's code step, src/auth/CodeBoxes.jsx): the field's own gap, not the invite page's. */
.au-digits.au-digits--code { margin-top: 0; }

/* A password's rules, met or not, and the bar that counts them. */
.au-meter { display: flex; flex-direction: column; gap: 8px; }
.au-bar { height: 5px; border-radius: 3px; background: #efece5; overflow: hidden; }
.au-bar-fill { height: 100%; background: var(--au-link); transition: width 0.2s ease; }
.au-rule { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--au-faint); }
.au-rule-mark { width: 15px; height: 15px; flex-shrink: 0; border-radius: 999px; border: 1.5px solid var(--au-edge); }
.au-rule-ok { color: var(--au-link-hover); }
.au-rule-ok .au-rule-mark { background: #eaf0ec; border: 4px solid var(--au-link); }

/* Done. */
.au-done-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eaf0ec;
  color: var(--au-link);
}
.au-center { text-align: center; }

/* The crash fallback's line over the previous screen. */
.au-fell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  padding: 10px 16px;
  background: #fff4dc;
  border-bottom: 1px solid #ecd6a4;
  color: #6b4a0c;
  font-family: var(--font-sans);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 720px) {
  .au-card { flex-direction: column; }
  .au-card-brand { width: auto; padding: 28px 24px 22px; border-right: none; border-bottom: 1px solid var(--au-rule); gap: 10px; }
  .au-lockup-lg .au-lockup-word { font-size: 30px; }
  .au-lockup-lg svg { width: 20px; height: 32px; }
  .au-card-body { padding: 28px 22px; }
  .au-digits { gap: 6px; }
  .au-digit { font-size: 22px; padding: 13px 0; }
  .au-digit:focus { padding: 12px 0; }
}
/* Single entry point for the component library styles.
   Import this once from CadenceRep.jsx (or main.jsx):
   import './styles/index.css' */

:root {
  --pine: #0F2A22;
  --pine-deep: #0A1E18;
  --pine-raised: #14332A;
  --pine-card: #122E26;
  --pine-soft: #16382E;
  --parchment: #FAF8F3;
  --parchment-dim: #F1ECDF;
  --vermilion: #B0432A;
  --vermilion-bright: #CE5536;
  --brass: #B58A3D;
  --brass-soft: rgba(181, 138, 61, 0.16);
  --ink: #15231E;
  --ink-soft: rgba(21, 35, 30, 0.62);
  --ink-faint: rgba(21, 35, 30, 0.38);
  --white: #FFFFFF;
  --hairline: rgba(15, 42, 34, 0.10);
  --hairline-strong: rgba(15, 42, 34, 0.18);
  --success: #3E7D5C;
  --warning: #B58A3D;
  --danger: #B0432A;
  --info: #2A6B8A;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 2px rgba(15, 42, 34, 0.06);
  --shadow-sm: 0 1px 4px rgba(15, 42, 34, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 42, 34, 0.12);
  --shadow-lg: 0 8px 32px rgba(15, 42, 34, 0.18);
  --shadow-xl: 0 16px 48px rgba(15, 42, 34, 0.24);
  --font-sans: 'Geist', -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', monospace;
  /* One family, Classic and New alike (Ryan, 2026-10-22: "Geist only … One family, weights doing the work the serif was
     doing"; docs/REFRESH_SPEC.md "Type"): Geist for everything — a page's title at --weight-title, a card's or a section's
     heading a level under it at --weight-heading (Ryan, 2026-10-22: "two levels instead of one"), a figure set apart at
     --weight-figure, a figure read down a column with font-variant-numeric: tabular-nums — and Geist Mono
     only for what is genuinely code: SQL, ids, the build SHA, an account number. There is no serif, and no display,
     reading or figure face of its own; the fonts gate fails a face named anywhere but here. */
  --weight-title: 600;              /* a page's title, a record's name: the top of the page */
  --weight-heading: 500;            /* a card's or a section's heading, a dialog's title: a level under the page title */
  --weight-figure: 600;             /* a figure that stands as the thing to read: a tile's number, a count confirmed */
  /* Amber means "look here": never contacted, going quiet, no line, not carried. */
  --amber: #B45309;
  --amber-soft: rgba(180, 83, 9, 0.10);
  /* The workspace's accent (Ryan, 2026-10-05; docs/REFRESH_SPEC.md "Colour": the accent is the workspace's own). The New
     screens paint every accent role through these three, never --pine. AccentVars (src/modules/revenue/features/accent/)
     sets them on <html> from the workspace's branding as it loads; these values are the product's own forest green, what
     a workspace that never picked a colour gets (src/lib/accent.js), and what draws before the settings arrive.
     --on-accent is white or ink, whichever reads better on the accent. */
  --accent: #0F2A22;
  --accent-raised: #14332A;
  --on-accent: #FFFFFF;
  /* Semantic aliases over the base families, for clarity at call sites. */
  --font-body: var(--font-sans);
  --text-2xs: 10px;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 30px;
  --text-3xl: 36px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  /* THE NEW SCREENS' SCALE (Ryan, 2026-10-16: "The New screens are too large in the content area … I drew the mocks at
     1600 to 2240 wide and the proportions do not hold at a normal window size … Do it in the tokens rather than per
     screen"). docs/REFRESH_SPEC.md's mocks were drawn at 1600-2240 wide; these set the laptop scale (a 1280-1440 window),
     measured against the Classic beside them, and every New stylesheet takes its page title, subtitle, list rows, cards
     and the gaps between its panels from here — the fonts gate fails a New page title or subtitle that names its own size.
     Density, not smaller type: what comes down is the title, the space around the words and between the panels; the
     words in a row keep their size. src/styles/TOKENS.md says what each is for. */
  --text-page-title: 24px;          /* a page's title, at --weight-title: a list's, a dashboard's, a record's name — the Classic's is 22px */
  --leading-page-title: 1.2;        /* 28.8px a line: the Classic title's own line box (29px) */
  --text-page-title-phone: 22px;    /* the same title on a phone */
  --text-page-sub: 12px;            /* the line under a page title: the Classic's own subtitle size */
  --space-page-sub: 2px;            /* between a page title and its subtitle: the Classic's own */
  --text-section-title: 20px;       /* a heading inside a page, at --weight-heading (a dealer's name on Insights, a template's name) */
  --space-row-y: 7px;               /* a list row's or a table cell's padding above and below: a one-line row is the Classic's 37px */
  --space-card-y: 12px;             /* a card's padding, top and bottom */
  --space-card-x: 14px;             /* a card's padding, at the sides */
  --space-panel-gap: 12px;          /* between cards and panels laid side by side or one above another */
  --space-section-gap: 16px;        /* between a page's sections: the head and what follows it, one group and the next */
  --space-page-top: 24px;           /* the page's own padding — the Classic's gutter, unchanged (24px 28px) */
  --space-page-x: 28px;
  --space-page-bottom: 32px;
  /* The New records, a notch tighter (Ryan, 2026-10-19: "more on screen without the text getting smaller"): dealer, contact
     and order records and their task rows; and Analytics, which takes them rather than a scale of its own (Ryan,
     2026-10-23: "Bring the record-scale tokens to this screen or tell me why it needs its own"). */
  --space-record-row-y: 5px;        /* a row inside a record's card (a line, a contact, a task): was --space-row-y's 7px */
  --space-record-card-y: 10px;      /* a record card's padding, top and bottom: was 12px */
  --space-record-card-x: 12px;      /* a record card's padding, at the sides: was 14px */
  --space-record-card-gap: 8px;     /* between a record card's head, body and foot: was 10px */
  --space-record-tabs-top: 10px;    /* the title block to the tab row: was 14px */
  --space-record-body-top: 12px;    /* the tab row to the content: was --space-section-gap's 16px */
  --transition:0.2s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scoped reset for the component library. Applied to elements inside
   library components via the cd- class prefix; box-sizing is global. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Global baseline: the brand body font (Geist, via --font-sans). Without this,
   the document default is the browser serif ("Times"), and every node that
   inherits its font — including the legacy Revenue surface's many
   fontFamily:"inherit" elements — falls back to it. Surfaces still set their own
   root font; this guarantees a brand baseline everywhere. */

body {
  font-family: var(--font-sans);
}

[class^='cd-'],
[class*=' cd-'] {
  margin: 0;
}

[class^='cd-'] button,
[class*=' cd-'] button,
button[class^='cd-'],
input[class^='cd-'],
textarea[class^='cd-'],
select[class^='cd-'] {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

[class^='cd-'] img,
[class*=' cd-'] img {
  display: block;
  max-width: 100%;
}

[class^='cd-'] ul,
[class*=' cd-'] ul,
[class^='cd-'] ol,
[class*=' cd-'] ol {
  list-style: none;
  padding: 0;
}

[class^='cd-'] a,
[class*=' cd-'] a {
  color: inherit;
  text-decoration: none;
}

/* Typography utilities for the component library. */

.cd-heading-1 {
  font-family: var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: var(--weight-title);
  line-height: 1.15;
  color: var(--ink);
}

.cd-heading-2 {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: var(--weight-title);
  line-height: 1.2;
  color: var(--ink);
}

.cd-heading-3 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--weight-heading);
  line-height: 1.25;
  color: var(--ink);
}

.cd-heading-4 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  line-height: 1.3;
  color: var(--ink);
}

.cd-body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink);
}

.cd-body-sm {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--ink-soft);
}

.cd-caption {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--ink-faint);
}

.cd-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.cd-mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.cd-text-soft { color: var(--ink-soft); }

.cd-text-faint { color: var(--ink-faint); }

.cd-text-danger { color: var(--danger); }

.cd-text-success { color: var(--success); }

.cd-text-warning { color: var(--warning); }

.cd-text-info { color: var(--info); }

/* Component classes for the cd- component library.
   Every color references a token from tokens.css. */

/* ---------- Button ---------- */

.cd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition);
}

.cd-button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.cd-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cd-button--sm { font-size: var(--text-sm); padding: var(--space-1) var(--space-3); min-height: 28px; }

.cd-button--md { font-size: var(--text-sm); padding: var(--space-2) var(--space-4); min-height: 36px; }

.cd-button--lg { font-size: var(--text-base); padding: var(--space-3) var(--space-5); min-height: 44px; }

.cd-button--primary { background: var(--pine); color: var(--parchment); }

.cd-button--primary:hover:not(:disabled) { background: var(--pine-raised); }

.cd-button--secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-xs);
}

.cd-button--secondary:hover:not(:disabled) { background: var(--parchment-dim); }

.cd-button--danger { background: var(--vermilion); color: var(--white); }

.cd-button--danger:hover:not(:disabled) { background: var(--vermilion-bright); }

.cd-button--ghost { background: transparent; color: var(--ink-soft); }

.cd-button--ghost:hover:not(:disabled) { background: var(--brass-soft); color: var(--ink); }

/* Action = vermilion primary CTA for Cadence OS modules (primary stays pine for
   the revenue surface). Ghost-light = transparent button with parchment text for
   placement on dark/pine backgrounds such as the module header. */

.cd-button--action { background: var(--vermilion); color: var(--parchment); }

.cd-button--action:hover:not(:disabled) { background: var(--vermilion-bright); }

.cd-button--ghost-light { background: transparent; color: var(--parchment); }

.cd-button--ghost-light:hover:not(:disabled) { background: color-mix(in srgb, var(--parchment) 12%, transparent); }

.cd-button--block { width: 100%; }

/* ---------- Field (Input / Textarea / Select shared) ---------- */

.cd-field { display: flex; flex-direction: column; gap: var(--space-1); }

.cd-field__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
}

.cd-field__required { color: var(--vermilion); margin-left: 2px; }

.cd-field__hint { font-size: var(--text-xs); color: var(--ink-faint); }

.cd-field__error { font-size: var(--text-xs); color: var(--danger); }

.cd-input,
.cd-textarea,
.cd-select {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cd-input::placeholder,
.cd-textarea::placeholder { color: var(--ink-faint); }

.cd-input:focus,
.cd-textarea:focus,
.cd-select:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-soft);
}

.cd-input--error,
.cd-textarea--error,
.cd-select--error { border-color: var(--danger); }

.cd-textarea { resize: vertical; min-height: 88px; line-height: 1.5; }

.cd-select { appearance: none; padding-right: var(--space-8); cursor: pointer; }

.cd-select-wrap { position: relative; }

.cd-select-wrap::after {
  content: '';
  position: absolute;
  right: var(--space-3);
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ---------- Modal ---------- */

.cd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  z-index: 1000;
  animation: cd-fade-in var(--transition);
}

.cd-modal {
  background: var(--parchment);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-height: calc(100vh - var(--space-16));
  display: flex;
  flex-direction: column;
  animation: cd-scale-in var(--transition);
}

.cd-modal--sm { max-width: 400px; }

.cd-modal--md { max-width: 560px; }

.cd-modal--lg { max-width: 760px; }

.cd-modal--xl { max-width: 1000px; }

.cd-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--hairline);
}

.cd-modal__title {
  font-family: var(--font-sans);
  font-weight: var(--weight-heading);
  font-size: var(--text-xl);
  color: var(--ink);
}

.cd-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: var(--text-lg);
  line-height: 1;
}

.cd-modal__close:hover { background: var(--brass-soft); color: var(--ink); }

.cd-modal__body { padding: var(--space-6); overflow-y: auto; flex: 1; }

.cd-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--hairline);
}

/* ---------- Table ---------- */

.cd-table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--white); }

.cd-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }

.cd-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--hairline-strong);
  background: var(--parchment);
  white-space: nowrap;
}

.cd-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  vertical-align: middle;
}

.cd-table tbody tr:last-child td { border-bottom: none; }

.cd-table tbody tr { transition: background-color var(--transition); }

.cd-table--hover tbody tr:hover { background: var(--parchment); }

.cd-table--clickable tbody tr { cursor: pointer; }

.cd-table__sort-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  cursor: pointer;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.cd-table__sort-button:hover { color: var(--ink); }

/* ---------- Card ---------- */

.cd-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.cd-card--padded { padding: var(--space-6); }

.cd-card--hover { transition: box-shadow var(--transition), border-color var(--transition); }

.cd-card--hover:hover { box-shadow: var(--shadow-md); border-color: var(--hairline-strong); }

.cd-card--clickable { cursor: pointer; }

.cd-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--hairline);
}

.cd-card__title { font-size: var(--text-md); font-weight: 600; color: var(--ink); }

.cd-card__body { padding: var(--space-6); }

.cd-card__footer { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--hairline); }

/* ---------- Badge ---------- */

.cd-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
}

.cd-badge--neutral { background: var(--parchment-dim); color: var(--ink-soft); border-color: var(--hairline); }

.cd-badge--success { background: rgba(62, 125, 92, 0.12); color: var(--success); }

.cd-badge--warning { background: var(--brass-soft); color: var(--brass); }

.cd-badge--danger { background: rgba(176, 67, 42, 0.12); color: var(--danger); }

.cd-badge--info { background: rgba(42, 107, 138, 0.12); color: var(--info); }

.cd-badge--brand { background: var(--pine); color: var(--parchment); }

.cd-badge__dot { width: 6px; height: 6px; border-radius: var(--radius-full); background: currentColor; }

/* ---------- Spinner ---------- */

.cd-spinner {
  display: inline-block;
  border-radius: var(--radius-full);
  border: 2px solid var(--hairline-strong);
  border-top-color: var(--pine);
  animation: cd-spin 0.7s linear infinite;
}

.cd-spinner--sm { width: 14px; height: 14px; }

.cd-spinner--md { width: 20px; height: 20px; }

.cd-spinner--lg { width: 32px; height: 32px; border-width: 3px; }

.cd-spinner--inverse { border-color: rgba(250, 248, 243, 0.3); border-top-color: var(--parchment); }

.cd-spinner-center { display: flex; align-items: center; justify-content: center; padding: var(--space-10); }

/* ---------- Avatar ---------- */

.cd-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--pine-soft);
  color: var(--parchment);
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
  user-select: none;
}

.cd-avatar img { width: 100%; height: 100%; object-fit: cover; }

.cd-avatar--xs { width: 20px; height: 20px; font-size: 9px; }

.cd-avatar--sm { width: 26px; height: 26px; font-size: var(--text-xs); }

.cd-avatar--md { width: 34px; height: 34px; font-size: var(--text-sm); }

.cd-avatar--lg { width: 48px; height: 48px; font-size: var(--text-md); }

.cd-avatar-group { display: inline-flex; }

.cd-avatar-group .cd-avatar { border: 2px solid var(--white); }

.cd-avatar-group .cd-avatar + .cd-avatar { margin-left: -8px; }

/* ---------- Dropdown ---------- */

.cd-dropdown { position: relative; display: inline-block; }

.cd-dropdown__menu {
  position: absolute;
  top: calc(100% + var(--space-1));
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-1);
  z-index: 500;
  animation: cd-fade-in var(--transition);
}

.cd-dropdown__menu--left { left: 0; }

.cd-dropdown__menu--right { right: 0; }

.cd-dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  text-align: left;
  font-size: var(--text-sm);
  color: var(--ink);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.cd-dropdown__item:hover { background: var(--parchment-dim); }

.cd-dropdown__item--danger { color: var(--danger); }

.cd-dropdown__item--active { background: var(--brass-soft); }

.cd-dropdown__divider { height: 1px; background: var(--hairline); margin: var(--space-1) 0; }

/* ---------- Tooltip ---------- */

.cd-tooltip-wrap { position: relative; display: inline-flex; }

.cd-tooltip {
  position: absolute;
  background: var(--ink);
  color: var(--parchment);
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  z-index: 600;
  animation: cd-fade-in var(--transition);
  pointer-events: none;
}

.cd-tooltip--top { bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); }

.cd-tooltip--bottom { top: calc(100% + 6px); left: 50%; transform: translateX(-50%); }

.cd-tooltip--left { right: calc(100% + 6px); top: 50%; transform: translateY(-50%); }

.cd-tooltip--right { left: calc(100% + 6px); top: 50%; transform: translateY(-50%); }

/* ---------- Toast ---------- */

.cd-toast-stack {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 1100;
}

.cd-toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--ink);
  color: var(--parchment);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  max-width: 420px;
  animation: cd-slide-up var(--transition);
}

.cd-toast__bar { width: 3px; align-self: stretch; border-radius: var(--radius-full); flex-shrink: 0; }

.cd-toast--success .cd-toast__bar { background: var(--success); }

.cd-toast--error .cd-toast__bar { background: var(--vermilion-bright); }

.cd-toast--warning .cd-toast__bar { background: var(--brass); }

.cd-toast--info .cd-toast__bar { background: var(--info); }

.cd-toast__message { flex: 1; }

.cd-toast__close { color: var(--parchment); opacity: 0.6; cursor: pointer; font-size: var(--text-md); line-height: 1; }

.cd-toast__close:hover { opacity: 1; }

/* ---------- EmptyState ---------- */

.cd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-12) var(--space-6);
}

.cd-empty__icon { font-size: var(--text-2xl); margin-bottom: var(--space-2); }

.cd-empty__title { font-size: var(--text-md); font-weight: 600; color: var(--ink); }

.cd-empty__description { font-size: var(--text-sm); color: var(--ink-soft); max-width: 360px; }

.cd-empty__action { margin-top: var(--space-3); }

/* ---------- Checkbox / Toggle ---------- */

.cd-checkbox { display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; font-size: var(--text-sm); color: var(--ink); }

.cd-checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }

.cd-checkbox__box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--hairline-strong);
  border-radius: var(--radius-xs);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.cd-checkbox input:checked + .cd-checkbox__box { background: var(--pine); border-color: var(--pine); }

.cd-checkbox input:focus-visible + .cd-checkbox__box { outline: 2px solid var(--brass); outline-offset: 1px; }

.cd-checkbox__check { color: var(--parchment); font-size: 10px; line-height: 1; }

.cd-checkbox--disabled { opacity: 0.5; cursor: not-allowed; }

.cd-toggle { display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; font-size: var(--text-sm); color: var(--ink); }

.cd-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }

.cd-toggle__track {
  width: 34px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--hairline-strong);
  position: relative;
  transition: background-color var(--transition);
  flex-shrink: 0;
}

.cd-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition);
}

.cd-toggle input:checked + .cd-toggle__track { background: var(--success); }

.cd-toggle input:checked + .cd-toggle__track .cd-toggle__thumb { transform: translateX(14px); }

.cd-toggle input:focus-visible + .cd-toggle__track { outline: 2px solid var(--brass); outline-offset: 1px; }

.cd-toggle--disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- FileUpload ---------- */

.cd-fileupload {
  border: 1.5px dashed var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
  background: var(--white);
}

.cd-fileupload:hover, .cd-fileupload--dragging { border-color: var(--brass); background: var(--brass-soft); }

.cd-fileupload__hint { font-size: var(--text-sm); color: var(--ink-soft); }

.cd-fileupload__list { margin-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }

.cd-fileupload__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm);
  background: var(--parchment);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
}

.cd-fileupload__remove { color: var(--ink-faint); cursor: pointer; }

.cd-fileupload__remove:hover { color: var(--danger); }

/* ---------- RichText ---------- */

.cd-richtext { border: 1px solid var(--hairline-strong); border-radius: var(--radius-md); background: var(--white); }

.cd-richtext:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }

.cd-richtext__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: var(--space-1) var(--space-2);
  border-bottom: 1px solid var(--hairline);
}

.cd-richtext__button {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-width: 28px;
}

.cd-richtext__button:hover { background: var(--parchment-dim); color: var(--ink); }

.cd-richtext__button--active { background: var(--brass-soft); color: var(--ink); }

.cd-richtext__content .ProseMirror {
  padding: var(--space-3) var(--space-4);
  min-height: 120px;
  outline: none;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink);
}

.cd-richtext__content .ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  color: var(--ink-faint);
  float: left;
  height: 0;
  pointer-events: none;
}

/* ---------- Layout ---------- */

.cd-page-container { max-width: 1200px; margin: 0 auto; padding: var(--space-8) var(--space-6); width: 100%; }

.cd-page-container--narrow { max-width: 760px; }

.cd-page-container--full { max-width: none; }

.cd-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-8); }

.cd-page-header__eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-bottom: var(--space-1); }

.cd-page-header__title { font-family: var(--font-sans); font-size: var(--text-2xl); font-weight: var(--weight-title); color: var(--ink); line-height: 1.15; }

.cd-page-header__subtitle { font-size: var(--text-sm); color: var(--ink-soft); margin-top: var(--space-1); }

.cd-page-header__actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }

.cd-section-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }

.cd-section-header__title { font-size: var(--text-md); font-weight: 600; color: var(--ink); }

.cd-section-header__count { font-size: var(--text-sm); color: var(--ink-faint); margin-left: var(--space-2); }

.cd-two-column { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-8); align-items: start; }

.cd-two-column--reverse { grid-template-columns: 320px 1fr; }

@media (max-width: 900px) { .cd-two-column, .cd-two-column--reverse { grid-template-columns: 1fr; } }

/* ---------- Shared ---------- */

.cd-searchbar { position: relative; }

.cd-searchbar .cd-input { padding-left: var(--space-8); }

.cd-searchbar__icon { position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%); color: var(--ink-faint); pointer-events: none; }

.cd-filterbar { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }

.cd-filterbar__clear { font-size: var(--text-sm); color: var(--ink-soft); cursor: pointer; }

.cd-filterbar__clear:hover { color: var(--danger); }

.cd-datatable__pagination { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--hairline); font-size: var(--text-sm); color: var(--ink-soft); }

.cd-datatable__pagination-buttons { display: flex; gap: var(--space-2); }

.cd-user-avatar { display: inline-flex; align-items: center; gap: var(--space-2); }

.cd-user-avatar__name { font-size: var(--text-sm); color: var(--ink); }

.cd-assignee-select__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: var(--space-1) var(--space-3);
  background: var(--white);
  cursor: pointer;
}

.cd-assignee-select__trigger:hover { border-color: var(--brass); }

.cd-date-display { font-size: var(--text-sm); color: var(--ink-soft); white-space: nowrap; }

.cd-date-display--overdue { color: var(--amber); font-weight: 500; }

/* ============================================================
   Definitive platform button / form / modal classes (Task 1).
   Generic .btn / .form-* / .modal-* utilities. src/admin and
   src/hub, which applied them, are gone; the only users left
   are the .form-* classes in src/components/ui/CurrencyInput.jsx
   and src/components/shared/CSVImportWizard.jsx, and no .btn,
   .btn-* or .modal-* class is applied in src. These intentionally coexist
   with the cd-* component library; the [class*="btn"] selector
   does NOT match cd-button (no "btn" substring).
   ============================================================ */

/* ---------- Buttons ---------- */

.btn, button[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn:disabled, button[class*="btn"]:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--pine);
  color: var(--parchment);
  border-color: var(--pine);
}

.btn-primary:hover:not(:disabled) { background: var(--pine-raised); }

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--hairline-strong);
}

.btn-secondary:hover:not(:disabled) { background: var(--parchment-dim); }

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

.btn-danger:hover:not(:disabled) { opacity: 0.9; }

/* Vermilion CTA — primary action for OS modules */

.btn-action {
  background: var(--vermilion);
  color: var(--parchment);
  border-color: var(--vermilion);
}

.btn-action:hover:not(:disabled) { background: var(--vermilion-bright); }

/* Ghost — for use on dark backgrounds */

.btn-ghost {
  background: transparent;
  color: var(--parchment);
  border-color: rgba(250, 248, 243, 0.3);
}

.btn-ghost:hover:not(:disabled) { background: rgba(250, 248, 243, 0.1); }

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-block { width: 100%; }

/* ---------- Form elements ---------- */

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: var(--white);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  transition: var(--transition);
  box-sizing: border-box;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(15, 42, 34, 0.08);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--ink-faint);
}

.form-field { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-4); }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: var(--space-1);
}

.form-label.required::after {
  content: ' *';
  color: var(--vermilion);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2315231E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-error { font-size: 12px; color: var(--danger); margin-top: var(--space-1); }

/* ---------- Modal (pine-header variant) ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 24, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
}

.modal-container {
  background: var(--parchment);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.modal-container--sm { max-width: 420px; }

.modal-container--lg { max-width: 760px; }

.modal-container--xl { max-width: 1000px; }

.modal-header {
  background: var(--pine);
  color: var(--parchment);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-sans);
  font-weight: var(--weight-heading);
  font-size: 18px;
  color: var(--parchment);
}

.modal-close {
  background: none;
  border: none;
  color: rgba(250, 248, 243, 0.7);
  cursor: pointer;
  font-size: 20px;
  padding: 4px;
  line-height: 1;
}

.modal-close:hover { color: var(--parchment); }

.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  flex-shrink: 0;
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ---------- CSV Import Wizard (Task 8) ---------- */

.csvwiz { display: flex; flex-direction: column; gap: var(--space-4); }

.csvwiz__note { font-size: var(--text-sm); color: var(--ink-soft); }

.csvwiz__or { text-align: center; font-size: var(--text-xs); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }

.csvwiz__map { display: flex; flex-direction: column; gap: var(--space-2); }

.csvwiz__map-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3); }

.csvwiz__map-source { min-width: 0; }

.csvwiz__map-header { font-size: var(--text-sm); font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.csvwiz__map-sample { font-size: var(--text-xs); color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.csvwiz__map-arrow { color: var(--ink-faint); }

.csvwiz__preview { display: flex; flex-direction: column; gap: var(--space-2); }

.csvwiz__stats { display: flex; gap: var(--space-3); }

.csvwiz__stat { flex: 1; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: var(--space-3); font-size: var(--text-sm); color: var(--ink-soft); text-align: center; }

.csvwiz__stat strong { display: block; font-size: var(--text-xl); color: var(--ink); }

.csvwiz__issues { display: flex; flex-direction: column; gap: var(--space-1); max-height: 220px; overflow-y: auto; }

.csvwiz__issue { display: flex; gap: var(--space-2); align-items: baseline; font-size: var(--text-sm); }

.csvwiz__issue-row { font-weight: 600; color: var(--ink); flex-shrink: 0; }

.csvwiz__issue-msg { color: var(--danger); }

.csvwiz__alert { padding: var(--space-3); border-radius: var(--radius-md); font-size: var(--text-sm); }

.csvwiz__alert--error { background: rgba(176, 67, 42, 0.12); color: var(--danger); }

.csvwiz__alert--warning { background: var(--brass-soft); color: var(--brass); }

.csvwiz__confirm { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-md); }

.csvwiz__confirm-count { font-family: var(--font-sans); font-weight: var(--weight-figure); font-size: var(--text-3xl); color: var(--pine); }

.csvwiz__progress-wrap { padding: var(--space-6) 0; }

.csvwiz__progress { height: 8px; background: var(--parchment-dim); border-radius: var(--radius-full); overflow: hidden; }

.csvwiz__progress-bar { height: 100%; background: var(--success); transition: width var(--transition); }

.csvwiz__result { display: flex; gap: var(--space-4); }

.csvwiz__result-success { font-size: var(--text-md); font-weight: 600; color: var(--success); }

.csvwiz__result-error { font-size: var(--text-md); font-weight: 600; color: var(--danger); }

/* ---------- Shared user profile (OS Hub / Admin / Revenue) ---------- */

.user-profile { display: flex; flex-direction: column; gap: var(--space-4); }

.user-profile__loading { display: flex; align-items: center; gap: var(--space-2); color: var(--ink-soft); font-size: var(--text-sm); padding: var(--space-4) 0; }

.user-profile__avatar-row { display: flex; align-items: flex-start; gap: var(--space-4); }

.user-profile__avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; background: var(--parchment-dim); border: 1px solid var(--hairline); }

.user-profile__avatar-img { width: 100%; height: 100%; object-fit: cover; }

.user-profile__avatar-placeholder { font-size: var(--text-xl); font-weight: 700; color: var(--pine); }

.user-profile__avatar-upload { flex: 1; min-width: 0; }

.user-profile__section { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--hairline); }

.user-profile__section-label { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); }

.user-profile__row { display: flex; align-items: center; }

.user-profile__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--hairline); }

/* ── Classic / New (src/components/versions, src/components/ui/Segmented.jsx; docs/CLASSIC.md) ───────────────────── */

/* The switch: the selected option in pine, never the workspace's accent. Classes, not inline sizes (the phone layout
   rewrites inline min-widths), and a 36px touch height on coarse pointers. */

.cd-segmented { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--hairline-strong); border-radius: var(--radius-md, 8px); background: var(--white, #fff); }

.cd-segmented__option { border: 0; background: transparent; color: var(--ink-soft); font: 600 12px/1 var(--font-sans); line-height: 14px; padding: 5px 12px; border-radius: 6px; cursor: pointer; min-height: 24px; white-space: nowrap; }

.cd-segmented--sm .cd-segmented__option { padding: 3px 10px; min-height: 20px; }

/* Outranks the global `button[class^="cd-"] { font: inherit }`, which would otherwise set a 16px line and a taller switch. */

.cd-segmented button.cd-segmented__option { font: 600 12px/14px var(--font-sans); }

/* The compact switch, for the version strip: 20px tall, so it sits in the 28px strip with air around it rather than
   filling it — a strip under the screen's own controls, not a second toolbar (Ryan, 2026-09-30: "tighten the strip"). */

.cd-segmented--xs { padding: 1px; }

.cd-segmented--xs .cd-segmented__option { padding: 1px 9px; min-height: 16px; }

.cd-segmented--xs button.cd-segmented__option { font: 600 11px/14px var(--font-sans); }

.cd-segmented__option[aria-checked="true"] { background: var(--pine); color: var(--white, #fff); }

.cd-segmented__option:focus-visible { outline: 2px solid var(--pine); outline-offset: 1px; }

.cd-segmented__option:disabled { opacity: .5; cursor: default; }

/* A switched screen: the strip above, the chosen version below it, in a box that fills what is left. One shape for the
   content pane (a flex column), the console (a flex row) and a mount inside a sized block (height:100%). */

.cd-versioned { flex: 1 1 0; height: 100%; min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }

.cd-versioned__box { flex: 1 1 0; min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }

.cd-versioned[data-mode="part"] { flex: none; height: auto; overflow: visible; }

.cd-versioned[data-mode="part"] > .cd-versioned__box { flex: none; display: block; overflow: visible; }

.cd-version-strip { flex-shrink: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; padding: 0 16px; background: var(--parchment-dim); border-bottom: 1px solid var(--hairline); font: 400 12px/1.35 var(--font-sans); color: var(--ink-soft); }

.cd-version-strip--part { min-height: 28px; padding: 2px 8px; margin-bottom: 6px; border: 1px solid var(--hairline); border-radius: var(--radius-md, 8px); }

.cd-version-strip__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cd-version-strip__short { display: none; }

@media (max-width: 767px) { .cd-version-strip__text { display: none; } .cd-version-strip__short { display: inline; } }

/* While the choice is off for the launch: the one line after a crash fallback, in the strip's place. It wraps rather than
   cuts off on a phone, and it has no short form: it is the only thing said. */

.cd-version-strip--note { justify-content: flex-start; padding-top: 4px; padding-bottom: 4px; }

.cd-version-strip__note { min-width: 0; }

/* A finger, not a pointer: the strip keeps its 36px and the switch its full size. */

@media (pointer: coarse) { .cd-version-strip { min-height: 36px; } .cd-segmented--xs { padding: 2px; } .cd-segmented--xs .cd-segmented__option { padding: 3px 10px; min-height: 20px; } .cd-segmented--xs button.cd-segmented__option { font-size: 12px; } }

/* The shell's switch, in the profile menu and the phone menu drawer. */

.cd-chrome-versions { display: flex; flex-direction: column; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--hairline); }

.cd-chrome-version { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 500 12px/1.3 var(--font-sans); color: var(--ink-soft); }

/* Standard module chrome shared by every Cadence OS module:
   pine header + fixed 220px pine sidebar + parchment content.
   All colors are token-derived; color-mix() supplies translucent
   parchment/pine tints so no raw rgba/hex appears here. */

.cos-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--parchment);
}

/* ---------- Header (pine) ---------- */

.cos-shell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-shrink: 0;
  background: var(--pine);
  padding: var(--space-4) var(--space-6);
}

.cos-shell__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  color: color-mix(in srgb, var(--parchment) 70%, transparent);
  cursor: pointer;
  transition: color var(--transition);
}

.cos-shell__back:hover {
  color: var(--parchment);
}

.cos-shell__titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cos-shell__mark {
  display: block;
  height: 16px;
  width: auto;
}

.cos-shell__title {
  font-family: var(--font-sans);
  font-size: var(--text-xl); /* 24px */
  font-weight: var(--weight-title);
  line-height: 1.1;
  color: var(--parchment);
}

.cos-shell__breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-1);
  font-size: var(--text-sm); /* 13px */
  color: color-mix(in srgb, var(--parchment) 60%, transparent);
}

.cos-shell__crumb {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.cos-shell__crumb-sep {
  color: color-mix(in srgb, var(--parchment) 38%, transparent);
}

.cos-shell__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* ---------- Body: sidebar + content ---------- */

.cos-shell__body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.cos-shell__sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--pine-raised);
  padding: var(--space-4) var(--space-3);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cos-shell__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cos-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: color-mix(in srgb, var(--parchment) 70%, transparent);
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition),
    border-color var(--transition);
}

.cos-nav-item:hover {
  color: var(--parchment);
  background: color-mix(in srgb, var(--parchment) 8%, transparent);
}

.cos-nav-item--active {
  color: var(--parchment);
  border-left-color: var(--vermilion);
  background: color-mix(in srgb, var(--parchment) 10%, transparent);
}

.cos-nav-item__label {
  flex: 1;
}

.cos-nav-item__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: color-mix(in srgb, var(--parchment) 55%, transparent);
}

.cos-shell__sidebar-footer {
  margin-top: auto;
}

/* ---------- Content (parchment) ---------- */

.cos-shell__content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  background: var(--parchment);
  padding: var(--space-6);
}

/* Keyframes and animation utilities for the component library. */

@keyframes cd-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cd-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes cd-scale-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes cd-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cd-slide-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cd-spin {
  to { transform: rotate(360deg); }
}

@keyframes cd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes cd-shimmer {
  from { background-position: -400px 0; }
  to { background-position: 400px 0; }
}

.cd-animate-fade-in { animation: cd-fade-in var(--transition); }

.cd-animate-slide-up { animation: cd-slide-up var(--transition); }

.cd-animate-slide-down { animation: cd-slide-down var(--transition); }

.cd-animate-pulse { animation: cd-pulse 1.6s ease-in-out infinite; }

.cd-skeleton {
  background: linear-gradient(
    90deg,
    var(--parchment-dim) 25%,
    var(--parchment) 50%,
    var(--parchment-dim) 75%
  );
  background-size: 800px 100%;
  animation: cd-shimmer 1.4s linear infinite;
  border-radius: var(--radius-sm);
}

/* Settings-search hit. One-shot flash on the section a search result points at.
   Deliberately NOT cd-animate-pulse: that one loops forever and reads as "loading".
   scroll-margin-top keeps the heading clear of the settings panel's 32px top padding
   when scrollIntoView lands it. Applied and removed by scrollToSettingsSection()
   in src/lib/settingsSearch.js. */

@keyframes cd-section-hit {
  0%   { background: transparent; }
  15%  { background: var(--accent-wash, rgba(176, 67, 42, 0.14)); }
  100% { background: transparent; }
}

[data-settings-section] {
  scroll-margin-top: 24px;
}

.set-sec-hit {
  animation: cd-section-hit 1.6s ease-out 1;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .cd-animate-fade-in,
  .cd-animate-slide-up,
  .cd-animate-slide-down,
  .cd-animate-pulse,
  .cd-skeleton,
  .cd-spinner,
  .set-sec-hit {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
/* src/modules/revenue/features/reports/reports.css — the New Reports screen (docs/REFRESH_SPEC.md).
   EVERY RULE IS SCOPED UNDER .rp-screen, and that is load-bearing: the Classic/New wrapper's class starts with "cd-", so the
   global reset `[class^="cd-"] button { background: none; border: none; font: inherit }` (0,1,1) reaches every button in
   the New and outranks any single-class rule — the question cards drew with no card. Two classes (0,2,0) win.
   The rules that apply everywhere: colour means something (the workspace's accent for the app's own — active, selected,
   links, confirmations; amber for "look here", one thing at a time, never a sentence; grey where nothing is there; nothing
   coloured for decoration, so a failed read is said in ink and a field's type is a grey mark); content near-white, cards
   white on it — the report page too (the look pass, 2026-10-05: its rails and results were flat panels edge to edge).
   Type is Geist only (Ryan, 2026-10-22): --weight-title for page titles and a report's name only, a
   card's or a dialog's heading (a question on a card, a block's title) a level under at --weight-heading
   (docs/REFRESH_SPEC.md "Type"), Geist for everything else — a figure (a
   count, an amount, a cell of numbers) is Geist with tabular numerals (rp-num), never another face — and Geist Mono only
   for genuine code (rp-code: a formula, the filter logic). Classes, not inline sizes: the phone layout rewrites inline
   min-widths.
   THE WIDTH (Ryan, 2026-10-03: "Keep a sensible maximum for prose-width things like the Reports questions, but tables and
   records should use the width they are given"): the list fills the content area as the Classic's does — no maximum and no
   centring on the page, the Classic's own 32px gutter — so the saved reports' table takes the width there is (the report
   page already did: its rails and results run edge to edge). A maximum sits only on what is read as prose: the question
   cards keep the 1072px they had (three to a row), a reading paragraph its 62ch, the unanswered question's page its
   672px — each from the left gutter, never centred. */

.rp-screen { flex: 1 1 0; min-height: 0; overflow-y: auto; background: #FCFBF8; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.rp-screen .rp-wrap { padding: var(--space-page-top) 32px var(--space-page-bottom); box-sizing: border-box; }
.rp-screen .rp-wrap--narrow > * { max-width: 672px; }
.rp-screen .rp-h1 { margin: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); }
.rp-screen .rp-sub { margin: var(--space-page-sub) 0 0; color: var(--ink-soft); font-size: var(--text-page-sub); }
.rp-screen .rp-h2 { margin: var(--space-6) 0 var(--space-panel-gap); font: 600 12px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.rp-screen .rp-h2row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rp-screen .rp-listhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rp-screen .rp-read { font-size: 15px; line-height: 1.6; max-width: 62ch; }
.rp-screen .rp-muted { color: var(--ink-soft); }
.rp-screen .rp-small { font-size: 12px; }
.rp-screen .rp-num { font-variant-numeric: tabular-nums; }
.rp-screen .rp-strong { font-weight: 700; }
.rp-screen .rp-attn { color: var(--amber); font-weight: 600; }
.rp-screen .rp-faint { color: var(--ink-faint); }

/* Buttons and links */
.rp-screen button { font-family: inherit; }
.rp-screen .rp-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.rp-screen .rp-button:hover:not(:disabled) { border-color: var(--accent); }
.rp-screen .rp-button:disabled { opacity: .45; cursor: default; }
.rp-screen .rp-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rp-screen .rp-button--primary:hover:not(:disabled) { background: var(--accent-raised); }
.rp-screen .rp-link { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-align: left; text-underline-offset: 2px; }
.rp-screen .rp-link:hover:not(:disabled) { text-decoration: underline; }
.rp-screen .rp-link:disabled { color: var(--ink-faint); cursor: default; }
.rp-screen .rp-link--strong { font-weight: 600; }
.rp-screen .rp-back { border: 0; background: none; padding: 4px 0; color: var(--accent); font: 600 13px var(--font-sans); cursor: pointer; white-space: nowrap; }
.rp-screen .rp-lock { font-size: 12px; color: var(--ink-soft); border: 1px dashed var(--hairline-strong); border-radius: 8px; padding: 6px 10px; }
.rp-screen .rp-chip__x { border: 0; background: none; padding: 0 0 0 2px; color: var(--ink-soft); font-size: 15px; line-height: 1; cursor: pointer; }
.rp-screen .rp-chip__x:hover { color: var(--danger); }
/* Closing the picker destroys nothing, so it never turns red (it wore the remove button's ×). */
.rp-screen .rp-modal__close { border: 0; background: none; padding: 0; color: var(--ink-soft); font-size: 22px; line-height: 1; cursor: pointer; }
.rp-screen .rp-modal__close:hover { color: var(--ink); }
.rp-screen .rp-star { border: 0; background: none; padding: 0; font-size: 16px; line-height: 1; color: var(--ink-faint); cursor: pointer; }
.rp-screen .rp-star--on { color: var(--accent); }

/* Inputs */
.rp-screen .rp-select { box-sizing: border-box; min-width: 0; max-width: 100%; padding: 6px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.rp-screen .rp-select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.rp-screen .rp-select:disabled { background: var(--parchment); color: var(--ink-soft); }
/* A formula or the filter logic is code: Geist Mono, after the select's own font so it holds. */
.rp-screen .rp-select.rp-code { font-family: var(--font-mono); font-size: 12px; }
.rp-screen .rp-textarea { width: 100%; resize: vertical; margin-top: 8px; }
.rp-screen .rp-search { min-width: 200px; }
.rp-screen .rp-check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rp-screen .rp-field { display: inline-flex; flex-direction: column; gap: 4px; }
.rp-screen .rp-field--stack { display: flex; margin-bottom: 8px; }
.rp-screen .rp-field--dates { flex-direction: row; align-items: center; gap: 6px; }
.rp-screen .rp-field__label { font: 600 11px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

/* The list: questions */
.rp-screen .rp-questions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-panel-gap); align-items: stretch; max-width: 1072px; }
.rp-screen .rp-qcard { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; cursor: pointer; color: var(--ink); transition: border-color var(--transition), box-shadow var(--transition); }
.rp-screen .rp-qcard:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.rp-screen .rp-qcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rp-screen .rp-qcard__text { font: var(--weight-heading) 16px/1.3 var(--font-sans); }
.rp-screen .rp-qcard__line { font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.rp-screen .rp-note { margin-top: auto; align-self: flex-start; font: 600 11px/1.3 var(--font-sans); padding: 3px 9px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink-soft); }
.rp-screen p.rp-note { display: inline-block; margin: 10px 0 14px; }

/* The list: saved reports */
.rp-screen .rp-list { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.rp-screen .rp-list th { text-align: left; padding: var(--space-row-y) 12px; font: 600 11px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--hairline-strong); }
.rp-screen .rp-list td { padding: var(--space-row-y) 12px; font-size: 13px; border-top: 1px solid var(--hairline); vertical-align: top; }
.rp-screen .rp-list tbody tr:first-child td { border-top: 0; }
.rp-screen .rp-list tbody tr:hover td { background: #FCFBF8; }
.rp-screen .rp-list__pin, .rp-screen .rp-list__del { width: 28px; }
.rp-screen .rp-list__src { color: var(--ink-soft); white-space: nowrap; }
.rp-screen .rp-list__asks { color: var(--ink); }

/* The report page: a head on the near-white area (the back link, the name, the subtitle); then the body — what it asks in a
   card on the left (a builder's), the answer in a card, and the right rail's cards — and a footer bar with the sharing
   mark, the exports and Save, always in view. */
.rp-screen.rp-page { display: flex; flex-direction: column; overflow: hidden; }
.rp-screen .rp-head { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 20px 0; }
.rp-screen .rp-head__name { display: flex; align-items: center; gap: 10px; width: 100%; }
.rp-screen .rp-head .rp-sub { margin: var(--space-page-sub) 0 0 6px; font-size: var(--text-page-sub); }
.rp-screen .rp-title { flex: 1 1 260px; min-width: 0; margin: 0; padding: 2px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); }
.rp-screen input.rp-title:hover, .rp-screen input.rp-title:focus { background: var(--white); outline: none; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.rp-screen .rp-title--missing { box-shadow: inset 0 0 0 1px var(--amber); }
/* Unsaved is a state, not "look here": grey, as the Classic's was. */
.rp-screen .rp-unsaved { font: 600 11px var(--font-sans); color: var(--ink-soft); white-space: nowrap; }
.rp-screen .rp-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; padding: 12px 20px 0; }
.rp-screen .rp-controls .rp-srcline { flex-basis: 100%; order: 9; margin: -4px 0 0; }
.rp-screen .rp-source-name { font-weight: 600; padding: 5px 0; }
.rp-screen .rp-sentence { margin: 12px 20px 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; line-height: 1.6; }
.rp-screen .rp-sentence__subject { font-weight: 600; }
.rp-screen .rp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--hairline-strong); font-size: 13px; line-height: 1.4; }
.rp-screen .rp-chip--time { background: var(--parchment-dim); border-color: var(--parchment-dim); }
.rp-screen .rp-chip--param { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.rp-screen .rp-chip__select { border: 0; background: transparent; color: var(--accent); font: 600 13px var(--font-sans); padding: 0 2px; max-width: 220px; }
/* What a date condition reads as, on its chip; amber when it matches nothing (parity triage #9) — "look here". */
.rp-screen .rp-chip__note { margin-left: 2px; font-size: 12px; color: var(--ink-soft); }
.rp-screen .rp-chip__note::before { content: "· "; }
.rp-screen .rp-chip__note--bad { color: var(--amber); font-weight: 600; }
.rp-screen .rp-join { border: 0; background: none; padding: 0 2px; color: var(--ink-soft); font: 400 13px var(--font-sans); text-decoration: underline dotted; text-underline-offset: 3px; }
.rp-screen button.rp-join { cursor: pointer; }
.rp-screen .rp-narrow { border: 1px dashed var(--accent); background: none; color: var(--accent); font: 600 13px var(--font-sans); padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.rp-screen .rp-narrowform { margin: 0 20px 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; background: var(--white); border: 1px solid var(--hairline); border-radius: 10px; }
.rp-screen .rp-body { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr) 270px; gap: var(--space-panel-gap); padding: 14px 20px 16px; }
.rp-screen .rp-body--view { grid-template-columns: minmax(0, 1fr) 270px; }
.rp-screen .rp-rail { overflow-y: auto; padding: var(--space-card-y) var(--space-card-x); box-sizing: border-box; min-width: 0; }
.rp-screen .rp-rail--fields { background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.rp-screen .rp-rail--why { padding: 0; }
.rp-screen .rp-rail__h { margin: 16px 0 6px; font: 600 11px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.rp-screen .rp-rail__h:first-child { margin-top: 0; }
.rp-screen .rp-results { overflow: auto; padding: 14px 18px 24px; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; min-width: 0; }
/* What it asks: Source, Layout, Columns, Showing — each a section of the card on the left, ruled off from the one above. */
.rp-screen .rp-asks__h { margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--hairline); font: 600 12px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.rp-screen .rp-asks__h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.rp-screen .rp-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-screen .rp-source { padding: 5px 10px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--white); color: var(--ink); font: 500 12.5px/1.25 var(--font-sans); cursor: pointer; }
.rp-screen .rp-source:hover { border-color: var(--accent); }
.rp-screen .rp-source:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rp-screen .rp-source--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rp-screen .rp-srcline { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
.rp-screen .rp-showing { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.rp-screen .rp-showing .rp-field { display: flex; }
.rp-screen .rp-showing .rp-sentence { margin: 0; font-size: 14px; }
.rp-screen .rp-showing .rp-narrowform { margin: 0; }
/* The footer bar: the sharing mark and why Save is off on the left, the exports and Save on the right. */
.rp-screen .rp-pagefoot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 20px; border-top: 1px solid var(--hairline); background: var(--white); }
.rp-screen .rp-pagefoot__share { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rp-screen .rp-pagefoot__actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Selected is the accent, in the shared Segmented too (Layout, Show as, Asc / Desc, a band's type): its own rule paints the
   selected option the forest green whatever the workspace's colour is. */
.rp-screen .cd-segmented__option[aria-checked="true"] { background: var(--accent); color: var(--on-accent); }
.rp-screen .cd-segmented__option:focus-visible { outline-color: var(--accent); }
.rp-screen .rp-showas { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rp-screen .rp-chartctl { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: 8px; }
.rp-screen .rp-select--sm { padding: 4px 8px; font-size: 12px; }

/* Rails: fields */
.rp-screen .rp-fieldlist { list-style: none; margin: 0; padding: 0; }
.rp-screen .rp-fieldrow { display: flex; align-items: center; gap: 4px; padding: 1px 0; }
.rp-screen .rp-fieldrow__name { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: 400 13px var(--font-sans); text-align: left; cursor: pointer; }
.rp-screen .rp-fieldrow__name:hover { background: var(--white); }
.rp-screen .rp-fieldrow--on .rp-fieldrow__name { background: var(--white); font-weight: 600; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.rp-screen .rp-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ink-faint); }
/* A field's type, as a mark in grey — a shape, not a colour (colour means something): a number filled, a date a ring, a
   choice a filled ring. */
.rp-screen .rp-dot--num { background: var(--ink-soft); }
.rp-screen .rp-dot--date { background: none; box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
.rp-screen .rp-dot--enum, .rp-screen .rp-dot--lookup { background: var(--hairline-strong); box-shadow: inset 0 0 0 1px var(--ink-soft); }
.rp-screen .rp-move { display: inline-flex; flex-direction: column; }
.rp-screen .rp-move button { border: 0; background: none; padding: 0; font-size: 8px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.rp-screen .rp-move button:disabled { color: var(--hairline-strong); cursor: default; }
.rp-screen .rp-mini { font: 400 11px var(--font-sans); padding: 1px 4px; border: 1px solid var(--hairline-strong); border-radius: 5px; background: var(--white); color: var(--ink-soft); cursor: pointer; }
.rp-screen .rp-mini--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rp-screen .rp-tag { font-size: 10px; font-weight: 600; padding: 0 5px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink-soft); }
.rp-screen .rp-sort { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.rp-screen .rp-topn { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.rp-screen .rp-topn .rp-select { width: 76px; }
.rp-screen .rp-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rp-screen .rp-pill { border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 400 12px var(--font-sans); padding: 2px 8px; border-radius: 999px; cursor: pointer; }
.rp-screen .rp-pill--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rp-screen .rp-fold { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--hairline); }
.rp-screen .rp-fold > summary { cursor: pointer; font: 600 13px var(--font-sans); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; list-style-position: inside; }
.rp-screen .rp-foldbody { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.rp-screen .rp-hlrule { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; background: var(--white); border: 1px solid var(--hairline); border-radius: 8px; }
.rp-screen .rp-hlrule .rp-select { flex: 1 1 90px; }
.rp-screen .rp-swatches { display: inline-flex; gap: 4px; }
.rp-screen .rp-swatch { width: 16px; height: 16px; padding: 0; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--hairline-strong); cursor: pointer; }
.rp-screen .rp-swatch--on { box-shadow: 0 0 0 2px var(--ink); }
/* Any colour for a rule's cell, the Classic's free picker (parity triage #3): a swatch-sized well. */
.rp-screen .rp-colour { width: 20px; height: 20px; padding: 0; border: 1px solid var(--hairline-strong); border-radius: 50%; background: none; cursor: pointer; overflow: hidden; }
.rp-screen .rp-colour::-webkit-color-swatch-wrapper { padding: 0; }
.rp-screen .rp-colour::-webkit-color-swatch { border: 0; border-radius: 50%; }
/* The formula box's keys and example (parity triage #5): words to read, in the reading face; a key set off by weight. */
.rp-screen .rp-formulahelp p { margin: 0 0 4px; line-height: 1.45; }
.rp-screen .rp-key { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
/* A band field, band by band (the Classic's BucketFieldBuilder), and how the report's rows fall into it. */
.rp-screen .rp-bands { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rp-screen .rp-band { display: flex; gap: 4px; align-items: center; }
.rp-screen .rp-band .rp-select { flex: 1 1 60px; }
.rp-screen .rp-band .rp-band__values { flex: 2 1 120px; }
.rp-screen .rp-bandfall { display: flex; flex-direction: column; gap: 4px; padding: 8px; background: var(--white); border: 1px solid var(--hairline); border-radius: 8px; }
.rp-screen .rp-bandfall__why { margin: 0; color: var(--ink); }
.rp-screen .rp-bandfall__list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.rp-screen .rp-bandfall__list li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.rp-screen .rp-blocksed, .rp-screen .rp-blocked { display: flex; flex-direction: column; gap: 6px; }
.rp-screen .rp-blocked { padding: 8px; background: var(--white); border: 1px solid var(--hairline); border-radius: 8px; margin-bottom: 8px; }
.rp-screen .rp-blocked__head { display: flex; gap: 6px; align-items: center; }
.rp-screen .rp-blockfilter { display: flex; }

/* Rails: why */
.rp-screen .rp-panel { background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; padding: var(--space-card-y) var(--space-card-x); margin-bottom: var(--space-panel-gap); }
.rp-screen .rp-panel__title { margin: 0 0 8px; font: 600 11px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.rp-screen .rp-question { margin: 0 0 6px; font-size: 12.5px; color: var(--ink-soft); }
.rp-screen .rp-answer { margin: 0; font-size: 14px; line-height: 1.5; }
.rp-screen .rp-count { margin: 8px 0 0; color: var(--ink); }
.rp-screen .rp-prov { margin: 0; }
.rp-screen .rp-prov__row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 7px 0; border-top: 1px solid var(--hairline); }
.rp-screen .rp-prov__row:first-child { border-top: 0; padding-top: 0; }
.rp-screen .rp-prov dt { font-size: 13px; }
.rp-screen .rp-prov dd { margin: 0; text-align: right; }
.rp-screen .rp-prov dd.rp-prov__note { grid-column: 1 / -1; text-align: left; font-size: 12px; color: var(--ink-soft); }
.rp-screen .rp-runs { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 12px; }
.rp-screen .rp-runs th { text-align: left; padding: 4px 4px 4px 0; font: 600 10px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--hairline-strong); }
.rp-screen .rp-runs td { padding: 5px 4px 5px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.rp-screen .rp-runs .rp-num { text-align: right; white-space: nowrap; }

/* Results */
.rp-screen .rp-tablewrap { overflow-x: auto; }
.rp-screen .rp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.rp-screen .rp-table th { position: sticky; top: 0; z-index: 1; background: var(--white); text-align: left; padding: var(--space-row-y) 10px; font: 600 11px/1.2 var(--font-sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--hairline-strong); white-space: nowrap; }
.rp-screen .rp-table td { padding: var(--space-row-y) 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.rp-screen .rp-table th.rp-num, .rp-screen .rp-table td.rp-num { text-align: right; }
.rp-screen .rp-table tfoot td, .rp-screen .rp-table tfoot th { font-weight: 600; background: var(--parchment); border-top: 1px solid var(--hairline-strong); border-bottom: 0; }
.rp-screen .rp-table--matrix tbody th { text-align: left; font: 600 13px var(--font-sans); color: var(--ink); text-transform: none; letter-spacing: 0; position: static; padding: var(--space-row-y) 10px; border-bottom: 1px solid var(--hairline); }
/* A group's line is structure, not a signal: a warm neutral, lighter the deeper it sits — never the accent's tint. */
.rp-screen .rp-group td { cursor: pointer; font-weight: 600; background: color-mix(in srgb, var(--parchment-dim) 55%, var(--white)); }
.rp-screen .rp-group--1 td { background: color-mix(in srgb, var(--parchment-dim) 30%, var(--white)); }
.rp-screen .rp-group--2 td { background: color-mix(in srgb, var(--parchment-dim) 12%, var(--white)); }
.rp-screen .rp-group__count { margin-left: 8px; color: var(--ink-soft); font-weight: 400; }
.rp-screen .rp-group__sub { margin-left: 14px; font-weight: 600; }
.rp-screen .rp-caret { display: inline-block; width: 14px; color: var(--ink-soft); }
.rp-screen .rp-empty, .rp-screen .rp-wait { padding: 40px 16px; text-align: center; color: var(--ink-soft); font-size: 14px; }
/* A read that failed is said in ink, never amber: it isn't the data asking to be looked at. */
.rp-screen .rp-wait--bad { color: var(--ink); }
.rp-screen .rp-foot { margin: 8px 0 0; font-size: 12px; color: var(--ink-soft); }
.rp-screen .rp-chart { padding: 4px 0; }
/* What amber means, under the chart: the sentence in grey, keyed by one amber square. */
.rp-screen .rp-legend { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
.rp-screen .rp-legend::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; background: var(--amber); vertical-align: 0; }
.rp-screen .rp-drill { margin-top: 12px; border: 1px solid var(--hairline); border-radius: 10px; padding: 10px 12px; }
.rp-screen .rp-drill__head { display: flex; gap: 8px; align-items: baseline; }
.rp-screen .rp-drill__head .rp-link { margin-left: auto; }
/* The drill-down (ReportResults.jsx DrillTable): the report's own columns, every row a page at a time, scrolled inside the
   panel so its sticky header stays in view; a header is a button that sorts, set in the header's own type. */
.rp-screen .rp-drill__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0; }
.rp-screen .rp-drill__bar .rp-button { margin-left: auto; }
.rp-screen .rp-drill__pages { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.rp-screen .rp-drill .rp-tablewrap { max-height: 420px; overflow: auto; }
.rp-screen .rp-sortbtn { border: 0; background: none; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; cursor: pointer; white-space: nowrap; }
.rp-screen .rp-sortbtn:hover { color: var(--ink); }
.rp-screen .rp-blocks { display: grid; gap: var(--space-panel-gap); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.rp-screen .rp-block { padding: var(--space-card-y) var(--space-card-x); border: 1px solid var(--hairline); border-radius: 12px; background: var(--white); min-width: 0; }
.rp-screen .rp-block__title { margin: 0 0 8px; font: var(--weight-heading) 15px/1.3 var(--font-sans); }

/* Phone: one column, the page scrolls as a whole, results first. */
@media (max-width: 767px) {
  .rp-screen .rp-wrap { padding: 20px 16px 48px; }
  .rp-screen .rp-h1 { font-size: var(--text-page-title-phone); }
  .rp-screen .rp-questions { grid-template-columns: 1fr; }
  .rp-screen .rp-search { min-width: 0; width: 100%; }
  .rp-screen .rp-list thead { display: none; }
  .rp-screen .rp-list, .rp-screen .rp-list tbody, .rp-screen .rp-list tr, .rp-screen .rp-list td { display: block; }
  .rp-screen .rp-list tr { position: relative; padding: 12px 40px 12px 36px; border-top: 1px solid var(--hairline); }
  .rp-screen .rp-list tbody tr:first-child { border-top: 0; }
  .rp-screen .rp-list td { padding: 1px 0; border: 0; }
  .rp-screen .rp-list td[data-label]::before { content: attr(data-label) " · "; color: var(--ink-faint); font-size: 11px; }
  .rp-screen .rp-list__pin { position: absolute; left: 10px; top: 12px; width: auto; }
  .rp-screen .rp-list__del { position: absolute; right: 10px; top: 10px; width: auto; }
  .rp-screen.rp-page { overflow-y: auto; }
  .rp-screen .rp-head { padding: 10px 16px 0; }
  .rp-screen .rp-title { flex-basis: 100%; font-size: var(--text-page-title-phone); }
  .rp-screen .rp-controls { padding: 10px 16px 0; }
  .rp-screen .rp-sentence { margin: 10px 16px 6px; font-size: 14px; }
  .rp-screen .rp-narrowform { margin: 0 16px 8px; }
  .rp-screen .rp-body, .rp-screen .rp-body--view { display: flex; flex-direction: column; flex: none; gap: 12px; padding: 12px 16px; }
  .rp-screen .rp-rail, .rp-screen .rp-results { overflow: visible; }
  .rp-screen .rp-results { order: 1; padding: 12px 14px 18px; }
  .rp-screen .rp-rail--why { order: 2; }
  .rp-screen .rp-rail--fields { order: 3; }
  .rp-screen .rp-pagefoot { padding: 10px 16px; }
  .rp-screen .rp-pagefoot__actions { margin-left: 0; }
  .rp-screen .rp-showas { flex-wrap: wrap; }
  .rp-screen .rp-chartctl { margin-left: 0; }
}

/* The New Report picker (Ryan, 2026-09-30: keep the picker — questions first, then presets by source, then scratch).
   Rendered inside .rp-screen (not portaled), so the scoped rules reach it; fixed over the whole window. */
.rp-screen .rp-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: color-mix(in srgb, var(--ink) 45%, transparent); }
.rp-screen .rp-modal__card { width: 100%; max-width: 820px; max-height: 84vh; display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow-xl); }
.rp-screen .rp-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 12px; border-bottom: 1px solid var(--hairline); }
.rp-screen .rp-modal__title { margin: 0; font: var(--weight-heading) var(--text-section-title)/1.2 var(--font-sans); }
.rp-screen .rp-modal__close { font-size: 22px; }
.rp-screen .rp-modal__body { overflow-y: auto; padding: 8px 22px 22px; }
.rp-screen .rp-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; align-items: stretch; }
.rp-screen .rp-pick { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 10px; cursor: pointer; color: var(--ink); font: 400 13px/1.4 var(--font-sans); }
.rp-screen .rp-pick:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.rp-screen .rp-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rp-screen .rp-pick__name { font-weight: 600; font-size: 14px; }
.rp-screen .rp-pick__line { color: var(--ink-soft); font-size: 12.5px; }
.rp-screen .rp-pick--scratch { margin-top: 18px; width: 100%; border-style: dashed; }
/* The chart a preset opens as, at the foot of its card, so the cards in a row end level however their names wrap. */
.rp-screen .rp-tag--chart { margin-top: auto; align-self: flex-start; color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.rp-screen .rp-nowrap { white-space: nowrap; }
/* On a touch phone the root lifts every button to 36px (CadenceRepImpl.jsx, pointer: coarse); these small ones stay small. */
.rp-screen .rp-chip__x, .rp-screen .rp-join, .rp-screen .rp-move button, .rp-screen .rp-swatch, .rp-screen .rp-star, .rp-screen .rp-mini, .rp-screen .rp-sortbtn, .rp-screen .rp-modal__close { min-height: 0; }
@media (max-width: 767px) {
  .rp-screen .rp-modal { align-items: flex-end; padding: 0; }
  .rp-screen .rp-modal__card { max-height: 92vh; border-radius: 16px 16px 0 0; }
  .rp-screen .rp-picker-grid { grid-template-columns: 1fr; }
}
/* src/modules/revenue/features/accounts/dealerMerge.css — the dealer merge's drawer (DealerMerge.jsx), opened from the New
   dealers list and the New dealer record. Loaded by DealerMerge.jsx alone. EVERY RULE IS SCOPED UNDER .dm-wrap, two
   classes deep, for the reason accountPage.css gives: the Classic/New wrapper's global button reset is (0,1,1), and two
   classes (0,2,0) win. Colour and type from the tokens; the type is the app's own (inherited), never a face named here.
   Amber marks a problem (a dot, then ink words); the accent the one action; no width query (a phone's drawer is the whole
   width because the drawer is never wider than the window). */
.dm-wrap .dm-backdrop { position: fixed; inset: 0; z-index: 230; background: rgba(15, 42, 34, .35); }
.dm-wrap .dm-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 231; box-sizing: border-box; width: min(560px, 100vw); display: flex; flex-direction: column; background: var(--white); color: var(--ink); box-shadow: var(--shadow-xl); font-family: inherit; font-size: 14px; line-height: 1.45; }
.dm-wrap .dm-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.dm-wrap .dm-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 12px 20px 20px; }
.dm-wrap .dm-h2 { margin: 0; font-family: inherit; font-size: 16px; font-weight: var(--weight-heading); }
.dm-wrap .dm-muted { color: var(--ink-soft); }
.dm-wrap .dm-small { font-size: 12px; }
.dm-wrap .dm-strong { font-weight: 600; }
.dm-wrap .dm-say { margin: 0 0 12px; }
.dm-wrap .dm-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.dm-wrap .dm-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.dm-wrap .dm-button:hover:not(:disabled) { border-color: var(--accent); }
.dm-wrap .dm-button:disabled { opacity: .45; cursor: default; }
.dm-wrap .dm-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dm-wrap .dm-button--primary:hover:not(:disabled) { background: var(--accent-raised); }
.dm-wrap .dm-button:focus-visible, .dm-wrap .dm-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dm-wrap .dm-groups, .dm-wrap .dm-picks { margin: 12px 0 0; padding: 0; list-style: none; }
.dm-wrap .dm-group { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--hairline); }
.dm-wrap .dm-group__head { display: flex; align-items: center; gap: 4px; }
.dm-wrap .dm-group__head .dm-button { margin-left: auto; }
.dm-wrap .dm-field { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 0; }
.dm-wrap .dm-label { font-size: 12px; color: var(--ink-soft); }
.dm-wrap .dm-input { box-sizing: border-box; min-width: 0; max-width: 100%; margin: 6px 0 0; padding: 7px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font-family: inherit; font-size: 13px; }
.dm-wrap .dm-check { display: block; padding: 6px 0; cursor: pointer; }
.dm-wrap .dm-check input { margin: 0 8px 0 0; }
.dm-wrap .dm-fieldset { margin: 0 0 16px; padding: 0; border: 0; }
.dm-wrap .dm-legend { margin: 0 0 6px; padding: 0; font-weight: var(--weight-heading); }
.dm-wrap .dm-plan { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--hairline); }
.dm-wrap .dm-plan .dm-small { margin: 6px 0 0; }
.dm-wrap .dm-summary { margin: 0 0 12px; }
.dm-wrap .dm-problem { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; }
.dm-wrap .dm-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.dm-wrap .dm-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 16px 0 0; }
.dm-wrap .dm-undo { margin-right: auto; align-self: center; font-size: 12px; color: var(--ink-soft); }
.dm-wrap .dm-done { display: flex; flex-direction: column; gap: 8px; }
.dm-wrap .dm-done p { margin: 0; }
/* src/modules/revenue/features/lists/lists.css — the New lists: dealers, contacts, orders (docs/REFRESH_SPEC.md §3).
   Loaded by ListScreen.jsx alone (the registry lets one file load a stylesheet, so a withdrawal can find it).
   EVERY RULE IS SCOPED UNDER .ls-screen, two classes deep, and that is load-bearing: the Classic/New wrapper's class
   starts with "cd-", so the global reset `[class^='cd-'] button { background: none; border: none; font: inherit }` (0,1,1)
   reaches every button in the list and outranks a single-class rule. Two classes (0,2,0) win (the New Reports found it).
   The root's own `* { margin: 0; padding: 0 }` is why every padding here is stated.
   The rules that apply everywhere: colour means something — the workspace's accent for the app's own (active, links,
   confirmations), amber for "look here" (never touched, going quiet, no line) — on one word or figure at a time, never a
   sentence: a read that failed or a save refused is said in ink (ls-say, ls-note) — red only for destroying something,
   nothing for decoration; the content area near-white and the things on it white. Type is Geist only
   (Ryan, 2026-10-22): the title at --weight-title, Geist for everything else too — a figure (a count, an amount,
   a percentage) is Geist with tabular numerals (ls-num), never another face, and a date, an age or a number inside a
   sentence is plain Geist — an empty state's heading included — and Geist Mono only for genuine code (ls-code: an id such as a PO number). Classes, not
   inline sizes: the root's phone rules rewrite inline min-widths and grids.
   THE WIDTH (Ryan, 2026-10-03: "tables and records should use the width they are given"): the list fills the content
   area as the Classic lists do — no maximum and no centring on the page, the Classic's own 28px gutter. A maximum belongs
   on a run of prose (the empty state's sentence, below), never on the page a table sits in. */

.ls-screen { flex: 1 1 0; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; background: #FCFBF8; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.ls-screen .ls-wrap { padding: var(--space-page-top) var(--space-page-x) var(--space-page-bottom); box-sizing: border-box; }
.ls-screen .ls-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.ls-screen .ls-head__text { min-width: 0; }
.ls-screen .ls-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ls-screen .ls-h1 { margin: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); }
.ls-screen .ls-sub { margin: var(--space-page-sub) 0 0; padding: 0; color: var(--ink-soft); font-size: var(--text-page-sub); }
.ls-screen .ls-note { color: var(--ink); }
.ls-screen .ls-num { font-variant-numeric: tabular-nums; }
.ls-screen .ls-code { font-family: var(--font-mono); font-size: 0.92em; }
.ls-screen .ls-muted { color: var(--ink-soft); }
/* Grey: nothing is there (Part one) — a dealer no file has named this year ("no file"), an order with no lines on it. Not
   muted ink, which is a recording gap, nor amber. */
.ls-screen .ls-none { color: var(--ink-faint); }
.ls-screen .ls-small { font-size: 12px; }
.ls-screen .ls-attn { color: var(--amber); }
.ls-screen .ls-say { color: var(--ink); }
.ls-screen .ls-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ls-screen button { font-family: inherit; }

/* Buttons, links, inputs */
/* Orders' List | Board toggle (the orders fold, channel only): two buttons as one control, the view shown in the accent. */
.ls-screen .ls-toggle { display: inline-flex; border: 1px solid var(--hairline-strong); border-radius: 8px; overflow: hidden; background: var(--white); }
.ls-screen .ls-toggle__item { padding: 7px 12px; border: 0; background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; }
.ls-screen .ls-toggle__item + .ls-toggle__item { border-left: 1px solid var(--hairline-strong); }
.ls-screen .ls-toggle__item--on { background: var(--accent); color: var(--on-accent); }
.ls-screen .ls-toggle__item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ls-screen .ls-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.ls-screen .ls-button:hover:not(:disabled) { border-color: var(--accent); }
.ls-screen .ls-button:focus-visible, .ls-screen .ls-link:focus-visible, .ls-screen .ls-rowlink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ls-screen .ls-button:disabled { opacity: .45; cursor: default; }
.ls-screen .ls-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ls-screen .ls-button--primary:hover:not(:disabled) { background: var(--accent-raised); }
.ls-screen .ls-button--on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.ls-screen .ls-button--small { padding: 5px 10px; font-size: 12px; }
.ls-screen .ls-button--view { max-width: 280px; }
.ls-screen .ls-button__label { overflow: hidden; text-overflow: ellipsis; }
.ls-screen .ls-caret { font-size: 10px; color: var(--ink-soft); }
.ls-screen .ls-edited { font-weight: 400; color: var(--ink-soft); }
.ls-screen .ls-pill { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; line-height: 16px; text-align: center; }
.ls-screen .ls-link { border: 0; background: none; padding: 0; color: var(--accent); font: 600 13px/1.3 var(--font-sans); cursor: pointer; text-underline-offset: 2px; }
.ls-screen .ls-link:hover { text-decoration: underline; }
.ls-screen .ls-link--danger { color: var(--danger); }
.ls-screen .ls-input { box-sizing: border-box; min-width: 0; max-width: 100%; padding: 7px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.ls-screen .ls-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.ls-screen .ls-input--op { flex: 0 0 auto; }
.ls-screen .ls-input--num { width: 90px; font-variant-numeric: tabular-nums; }
.ls-screen .ls-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ls-screen input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.ls-screen .ls-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 500 12px/18px var(--font-sans); white-space: nowrap; }
/* A status mark (a new dealer, the default view) is information, not the app's own action: ink, never the accent. */
.ls-screen .ls-tag--mark { background: var(--parchment-dim); color: var(--ink); font-size: 11px; font-weight: 600; }
.ls-screen .ls-tag--attn { background: var(--amber-soft); color: var(--amber); }

/* The toolbar, in the spec's rows: one the search and the quick-filter pills; two the view picker, Filters and Columns, the
   count on the right; three the chips (below). THE SEARCH FILLS ROW ONE and the pills sit at its right edge (Ryan,
   2026-10-10: "In the mock it fills the row with the quick-filter pills pushed to the right edge … Make search grow to fill
   the space") — "sized to the data" is its placeholder, "Search 1,387 dealers". Where the row is too narrow for both, the
   pills take a row of their own, still at the right edge; on a phone (below) the search takes the row and the pills wrap
   from the left under it. */
.ls-screen .ls-toolbararea { position: relative; margin: var(--space-section-gap) 0 var(--space-panel-gap); }
.ls-screen .ls-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ls-screen .ls-toolbar--two { margin-top: 8px; }
.ls-screen .ls-search { flex: 1 1 240px; }
.ls-screen .ls-quicks { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; margin-left: auto; }
.ls-screen .ls-showing { margin: 0 0 0 auto; padding: 0; color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.ls-screen .ls-anchor { position: relative; }
.ls-screen .ls-backdrop { position: fixed; inset: 0; z-index: 40; }

/* Chips */
.ls-screen .ls-chiprow { margin-top: 10px; }
.ls-screen .ls-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ls-screen .ls-chips__mode { font-size: 12px; color: var(--ink-soft); }
.ls-screen .ls-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 6px 3px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); background: color-mix(in srgb, var(--accent) 5%, transparent); color: var(--ink); font-size: 13px; line-height: 1.4; }
.ls-screen .ls-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-screen .ls-chip__x { border: 0; background: none; padding: 0 4px; color: var(--ink-soft); font-size: 16px; line-height: 1; cursor: pointer; }
.ls-screen .ls-chip__x:hover { color: var(--ink); }
.ls-screen .ls-lost { margin: 6px 0 0; padding: 0; font-size: 12px; color: var(--ink-soft); }

/* Popovers: the view picker, the filter panel, the column checklist */
.ls-screen .ls-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 41; box-sizing: border-box; min-width: 260px; max-width: min(calc(100vw - 32px), var(--ls-fit, 100vw)); max-height: min(72vh, 640px); overflow-y: auto; padding: 12px 14px; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--shadow-lg); }
.ls-screen .ls-pop { transform: translateX(var(--ls-shift, 0px)); }
.ls-screen .ls-pop--panel { width: 880px; }
.ls-screen .ls-pop--views { width: 320px; }
.ls-screen .ls-pop--columns { width: 680px; }
.ls-screen .ls-pop__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ls-screen .ls-pop__h { margin: 8px 0 6px; padding: 0; font: 600 11px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.ls-screen .ls-pop__top .ls-pop__h { margin-top: 0; }
.ls-screen .ls-pop__title { margin: 0 0 6px; padding: 0; font: var(--weight-heading) 15px/1.3 var(--font-sans); color: var(--ink); }
.ls-screen .ls-pop__done { margin-bottom: 6px; }
.ls-screen .ls-pop__close { font-size: 20px; }
.ls-screen .ls-pop__note { margin: 0 0 6px; }
.ls-screen .ls-pop__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.ls-screen .ls-pop__foot--row { flex-direction: row; gap: 16px; }
/* The panel's last footer: the line that says how long filters stay, beside Save as a view (its name, or why a view can't
   keep these filters, on a row of its own). */
.ls-screen .ls-pop__foot--line { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ls-screen .ls-pop__foot--line .ls-lost { flex: 1 1 280px; margin: 0; }
.ls-screen .ls-pop__foot--line .ls-save--wide { flex: 1 1 100%; }
.ls-screen .ls-menu { margin: 0; padding: 0; list-style: none; }
.ls-screen .ls-menu__item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: 400 13px/1.3 var(--font-sans); text-align: left; cursor: pointer; }
.ls-screen .ls-menu__item:hover { background: var(--parchment); }
.ls-screen .ls-menu__item--on { color: var(--accent); font-weight: 600; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.ls-screen .ls-menu__own { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; }
.ls-screen .ls-menu__own .ls-menu__item { flex: 1 1 140px; width: auto; }
.ls-screen .ls-menu__acts { display: inline-flex; gap: 10px; padding: 0 8px 4px; }
.ls-screen .ls-rename, .ls-screen .ls-save__form { display: flex; gap: 6px; width: 100%; }
.ls-screen .ls-rename .ls-input, .ls-screen .ls-save__form .ls-input { flex: 1 1 auto; }
.ls-screen .ls-save { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.ls-screen .ls-save p { margin: 0; }
.ls-screen .ls-save .ls-button--small { align-self: flex-start; }
.ls-screen .ls-save .ls-save__form .ls-button--small { align-self: auto; }

/* The filter panel's fields: a 3-column grid (as many as fit, three across the panel's width), each field its label over its
   controls. */
.ls-screen .ls-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 20px; }
.ls-screen .ls-frow { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; padding: 8px 0; }
.ls-screen .ls-frow p { margin: 0; }
.ls-screen .ls-frow__label { font-weight: 600; font-size: 13px; }
.ls-screen .ls-frow__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.ls-screen .ls-frow__ctl > select:not(.ls-input--op), .ls-screen .ls-frow__ctl > input[type="text"], .ls-screen .ls-frow__ctl > input[type="date"] { flex: 1 1 140px; }
.ls-screen .ls-frow__note { flex-basis: 100%; }
/* Several values on one field: each value after the first as a token ("or Ohio ×"), then a select adding another. */
.ls-screen .ls-token { display: inline-flex; align-items: center; gap: 4px; padding: 2px 2px 2px 10px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--parchment); color: var(--ink); font-size: 13px; line-height: 1.4; }
.ls-screen .ls-frow__ctl > select.ls-input--more { flex: 0 1 120px; }
.ls-screen .ls-seg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ls-screen .ls-seg__opt { padding: 4px 10px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--white); color: var(--ink); font: 500 12px/1.3 var(--font-sans); cursor: pointer; }
.ls-screen .ls-seg__opt--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* The column checklist: a 4-column grid (as many as fit, four across its width); a shown column in medium weight, dragged
   by its row onto another's place. */
.ls-screen .ls-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 16px; margin: 0; padding: 0; list-style: none; }
.ls-screen .ls-cols__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 5px 0; font-size: 13px; }
.ls-screen .ls-cols__row--on .ls-check span { font-weight: 500; }
.ls-screen .ls-cols__row[draggable="true"] { cursor: grab; }
.ls-screen .ls-cols__row--dragging { opacity: .45; }
.ls-screen .ls-cols__note { margin: 8px 0 0; padding: 0; color: var(--ink-soft); }
.ls-screen .ls-cols__arrows { display: none; }
.ls-screen .ls-move { display: inline-flex; gap: 2px; }
.ls-screen .ls-move button { width: 24px; height: 22px; padding: 0; border: 1px solid var(--hairline); border-radius: 5px; background: var(--white); color: var(--ink-soft); font-size: 11px; line-height: 1; cursor: pointer; }
.ls-screen .ls-move button:disabled { opacity: .35; cursor: default; }

/* The sort line (ListTable): the order said above the rows where no header says it — on a phone, where the header row is
   hidden, and at any width while the sorted column is one the person hid (--hidden). Otherwise the headers say and set
   the order, and the line is hidden. */
.ls-screen .ls-phonesort { display: none; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.ls-screen .ls-phonesort--hidden { display: flex; }
.ls-screen .ls-phonesort__label { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--ink-soft); }
.ls-screen .ls-phonesort__label .ls-input { color: var(--ink); }

/* The table */
.ls-screen .ls-tablewrap { overflow-x: auto; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.ls-screen .ls-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.ls-screen .ls-table th { padding: 0; text-align: left; background: var(--white); border-bottom: 1px solid var(--hairline-strong); white-space: nowrap; }
.ls-screen .ls-th__sort { display: inline-flex; align-items: center; gap: 4px; width: 100%; padding: var(--space-row-y) 12px; border: 0; background: none; color: var(--ink-soft); font: 600 11px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; text-align: left; cursor: pointer; }
.ls-screen .ls-th--num .ls-th__sort { justify-content: flex-end; }
.ls-screen .ls-th__dir { min-width: 8px; color: var(--accent); }
.ls-screen .ls-table td { padding: var(--space-row-y) 12px; border-top: 1px solid var(--hairline); vertical-align: middle; }
.ls-screen .ls-table tbody tr:first-child td { border-top: 0; }
.ls-screen .ls-table tbody tr { cursor: pointer; }
.ls-screen .ls-table tbody tr:hover td { background: #FCFBF8; }
.ls-screen .ls-table tbody tr.ls-row--on td { background: color-mix(in srgb, var(--accent) 5.5%, transparent); }
.ls-screen .ls-table tbody tr.ls-row--on td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.ls-screen .ls-td--check { width: 40px; padding-left: 14px; padding-right: 4px; }
.ls-screen th.ls-td--check { padding: var(--space-row-y) 4px var(--space-row-y) 14px; }
.ls-screen .ls-td--num { text-align: right; white-space: nowrap; }
.ls-screen .ls-td--primary { font-weight: 600; min-width: 180px; }
.ls-screen .ls-rowlink { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink); font: 600 13px/1.35 var(--font-sans); text-align: left; cursor: pointer; }
.ls-screen .ls-rowlink:hover { color: var(--accent); }
/* THE ROW IS A LINK (ListTable's ls-row--link; open in a new tab, landing 1): the name's link, a real <a href>
   (RecordLink), stretched over its whole row as ActivityRow's overlay is — the row positions it, its ::after covers the
   row — so a command, middle or right click anywhere on the row is the link's: a new tab, the browser's own menu. Hovering
   the row is hovering the link, so the name takes the accent. What keeps its own job sits above it: the checkbox, and a
   link, button or field inside a cell. The link itself is never positioned, or its ::after would cover the name alone. */
.ls-screen .ls-table tbody tr.ls-row--link { position: relative; }
.ls-screen .ls-table tr.ls-row--link .ls-rowlink { text-decoration: none; }
.ls-screen .ls-table tr.ls-row--link .ls-rowlink::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ls-screen .ls-table tr.ls-row--link td a:not(.ls-rowlink), .ls-screen .ls-table tr.ls-row--link td button,
.ls-screen .ls-table tr.ls-row--link td input, .ls-screen .ls-table tr.ls-row--link td label,
.ls-screen .ls-table tr.ls-row--link td select { position: relative; z-index: 2; }
.ls-screen .ls-cell-link { color: var(--accent); text-decoration: none; }
.ls-screen .ls-cell-link:hover { text-decoration: underline; }
.ls-screen .ls-lines { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
/* The key-dealer mark: a dot after the name (the subtitle says what it means) — information, so ink, never the accent. */
.ls-screen .ls-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.ls-screen .ls-nowrap { white-space: nowrap; }

/* Empty states and waits: they say why */
.ls-screen .ls-empty { padding: 40px 20px; text-align: center; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.ls-screen .ls-empty__title { margin: 0 0 6px; font: var(--weight-heading) 16px/1.3 var(--font-sans); color: var(--ink); }
.ls-screen .ls-empty__text { margin: 0 auto 14px; max-width: 52ch; color: var(--ink-soft); }
.ls-screen .ls-empty--bad .ls-empty__text { color: var(--ink); }
.ls-screen .ls-empty__acts { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* The quick-filter pills beside the search: one-click filters; the pressed one takes the accent (ls-button--on). */
.ls-screen .ls-quick { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; }

/* The footer: the shape of the data, and Show all */
.ls-screen .ls-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-top: var(--space-panel-gap); color: var(--ink-soft); font-size: 13px; }
.ls-screen .ls-foot__shape { margin: 0; padding: 0; }

/* The dark action bar */
.ls-screen .ls-actionbar { position: sticky; bottom: 12px; z-index: 30; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--white); box-shadow: var(--shadow-lg); }
.ls-screen .ls-actionbar__main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ls-screen .ls-actionbar__count { font-weight: 600; }
.ls-screen .ls-actionbar__aside { font-weight: 400; opacity: .75; }
.ls-screen .ls-actionbar__link { border: 0; background: none; padding: 0; color: var(--white); opacity: .85; font: 600 13px var(--font-sans); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ls-screen .ls-actionbar__link:hover { opacity: 1; }
.ls-screen .ls-actionbar__acts { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ls-screen .ls-actionbar__btn { padding: 7px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: var(--white); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.ls-screen .ls-actionbar__btn:hover:not(:disabled) { border-color: var(--white); }
.ls-screen .ls-actionbar__btn--main { background: var(--white); border-color: var(--white); color: var(--accent); }
.ls-screen .ls-actionbar__btn:disabled { opacity: .45; cursor: default; }
.ls-screen .ls-actionbar__btn:focus-visible, .ls-screen .ls-actionbar__link:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.ls-screen .ls-actionbar__note { margin: 6px 0 0; padding: 0; font-size: 12px; opacity: .85; }

/* On a touch phone the root lifts every button to 36px; these small ones stay small. */
.ls-screen .ls-chip__x, .ls-screen .ls-move button, .ls-screen .ls-th__sort, .ls-screen .ls-rowlink, .ls-screen .ls-link, .ls-screen .ls-actionbar__link { min-height: 0; }

/* The phone (ls-screen--phone): one column, a 16px gutter, nothing wider than the screen. The popovers become sheets from
   the bottom; the table becomes cards — the name, then the next three chosen columns and the sorted one — under a line
   saying how they are sorted (the header row that says it is hidden). A sheet and its backdrop sit ABOVE the app's bottom
   nav (MobileBottomNav: fixed, z-index 200), or the nav would cover a sheet's last rows — Save view, Show all — and stay
   clickable behind it; below the phone drawer (500), which opens over everything.
   THE PHONE IS THE APP'S MOBILE SETTING, not the width alone (the parity triage, accounts #4): ListScreen adds
   ls-screen--phone when useIsMobile says so — the platform's mobile setting on and the window under 768px — as the Classic
   lists lay themselves out, so with the setting off a narrow window keeps the table, scrolling sideways in its card. Each
   rule is the width query's as it was, one class deeper, so it outranks the rule it restates as it did. */
.ls-screen.ls-screen--phone .ls-wrap { padding: 18px 16px 24px; }
.ls-screen.ls-screen--phone .ls-h1 { font-size: var(--text-page-title-phone); }
.ls-screen.ls-screen--phone .ls-search { flex-basis: 100%; }
.ls-screen.ls-screen--phone .ls-quicks { justify-content: flex-start; margin-left: 0; }
.ls-screen.ls-screen--phone .ls-anchor { position: static; }
.ls-screen.ls-screen--phone .ls-backdrop { z-index: 210; background: color-mix(in srgb, var(--ink) 35%, transparent); }
.ls-screen.ls-screen--phone .ls-pop, .ls-screen.ls-screen--phone .ls-pop--panel, .ls-screen.ls-screen--phone .ls-pop--views, .ls-screen.ls-screen--phone .ls-pop--columns {
  position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 211; width: 100%; max-width: 100%; max-height: 85vh;
  border-radius: 16px 16px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); transform: none; }
.ls-screen.ls-screen--phone .ls-fields, .ls-screen.ls-screen--phone .ls-cols { grid-template-columns: 1fr; }
.ls-screen.ls-screen--phone .ls-showing { flex-basis: 100%; margin-left: 0; }
.ls-screen.ls-screen--phone .ls-cols__drag { display: none; }
.ls-screen.ls-screen--phone .ls-cols__arrows { display: inline; }
.ls-screen.ls-screen--phone .ls-tablewrap { overflow: visible; }
.ls-screen.ls-screen--phone .ls-table thead { display: none; }
.ls-screen.ls-screen--phone .ls-phonesort { display: flex; }
.ls-screen.ls-screen--phone .ls-phonesort__label { flex: 1 1 200px; }
.ls-screen.ls-screen--phone .ls-phonesort__label .ls-input { flex: 1 1 auto; }
.ls-screen.ls-screen--phone .ls-table, .ls-screen.ls-screen--phone .ls-table tbody, .ls-screen.ls-screen--phone .ls-table tr, .ls-screen.ls-screen--phone .ls-table td { display: block; width: auto; }
.ls-screen.ls-screen--phone .ls-table tr { position: relative; padding: 12px 14px; border-top: 1px solid var(--hairline); }
.ls-screen.ls-screen--phone .ls-table tbody tr:first-child { border-top: 0; }
.ls-screen.ls-screen--phone .ls-table--select tr { padding-left: 46px; }
.ls-screen.ls-screen--phone .ls-table td { padding: 1px 0; border: 0; text-align: left; }
.ls-screen.ls-screen--phone .ls-table tbody tr.ls-row--on td:first-child { box-shadow: none; }
.ls-screen.ls-screen--phone .ls-table tbody tr.ls-row--on { box-shadow: inset 3px 0 0 var(--accent); background: color-mix(in srgb, var(--accent) 5.5%, transparent); }
.ls-screen.ls-screen--phone .ls-table tbody tr.ls-row--on td, .ls-screen.ls-screen--phone .ls-table tbody tr:hover td { background: transparent; }
.ls-screen.ls-screen--phone .ls-td--check { position: absolute; left: 14px; top: 13px; width: auto; padding: 0; }
.ls-screen.ls-screen--phone .ls-td--primary { min-width: 0; margin-bottom: 3px; }
.ls-screen.ls-screen--phone .ls-td--primary .ls-rowlink { font-size: 15px; }
.ls-screen.ls-screen--phone .ls-table td[data-label] { font-size: 12.5px; color: var(--ink); }
.ls-screen.ls-screen--phone .ls-table td[data-label]::before { content: attr(data-label) " · "; color: var(--ink-faint); }
.ls-screen.ls-screen--phone .ls-td--num { text-align: left; }
.ls-screen.ls-screen--phone .ls-table td.ls-td--extra { display: none; }   /* outranks the block rule above: a card is the name, three facts and the sort's */
.ls-screen.ls-screen--phone .ls-actionbar { bottom: 8px; }
.ls-screen.ls-screen--phone .ls-actionbar__acts { margin-left: 0; width: 100%; }
.ls-screen.ls-screen--phone .ls-actionbar__btn { flex: 1 1 auto; }
/* src/modules/revenue/features/contacts/contacts.css — the New contacts list's own pieces beside the shared list's
   (lists.css): the Add to a sequence dialog, and the Account cell's manufacturer mark. Loaded by ContactsList.jsx alone.
   EVERY RULE IS SCOPED UNDER .ls-screen, two classes deep, as lists.css is and for its reason: the Classic/New wrapper's
   class starts with "cd-", and the global `[class^='cd-'] button` reset (0,1,1) outranks a single-class rule.
   Colour means something: the workspace's accent for the app's own actions (what landed is said in ink), amber for what
   needs looking at (refused, not saved), nothing for decoration. Type as the list's (lists.css): Geist throughout — the
   dialog's title too — a figure Geist with tabular
   numerals (ls-num). */

.ls-screen .ct-backdrop { position: fixed; inset: 0; z-index: 220; background: color-mix(in srgb, var(--ink) 35%, transparent); }
/* Above the app's phone bottom nav (MobileBottomNav, 200), below the phone drawer (500) — as the list's sheets sit. */
.ls-screen .ct-dialog { position: fixed; z-index: 221; top: 50%; left: 50%; transform: translate(-50%, -50%); box-sizing: border-box;
  width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 720px); overflow-y: auto; padding: 18px 20px 20px;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: var(--shadow-xl); color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.ls-screen .ct-dialog__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ls-screen .ct-dialog__title { margin: 0; padding: 0; font: var(--weight-heading) 18px/1.3 var(--font-sans); color: var(--ink); }
.ls-screen .ct-dialog__sub { margin: 4px 0 0; padding: 0; color: var(--ink-soft); font-size: 13px; }
.ls-screen .ct-dialog__h { margin: 16px 0 6px; padding: 0; font: 600 11px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.ls-screen .ct-dialog p { margin: 0; }
.ls-screen .ct-seqs { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ls-screen .ct-seq { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--hairline-strong); border-radius: 10px; cursor: pointer; }
.ls-screen .ct-seq:hover { border-color: var(--accent); }
.ls-screen .ct-seq--on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.ls-screen .ct-seq input[type="radio"] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.ls-screen .ct-seq__name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ls-screen .ct-seq__meta { margin-left: auto; padding-left: 8px; color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.ls-screen .ct-plan { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ls-screen .ct-plan li { padding: 9px 12px; border-radius: 10px; background: #FCFBF8; border: 1px solid var(--hairline); }
.ls-screen .ct-plan__lead { font-weight: 600; }
.ls-screen .ct-plan__lead--ok { color: var(--ink); }
.ls-screen .ct-plan__lead--attn { color: var(--amber); }
.ls-screen .ct-who { margin-top: 2px; color: var(--ink-soft); font-size: 12px; overflow-wrap: anywhere; }
/* A sentence that says something went wrong is ink, its colour on the one phrase that needs looking at. */
.ls-screen .ct-who--say { color: var(--ink); }
.ls-screen .ct-dialog__note { margin-top: 10px; color: var(--ink-soft); font-size: 12.5px; }
.ls-screen .ct-dialog__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* The Account cell for a manufacturer's person: the family's own mark and brand links, and the company as a link to its
   manufacturer page (a button: the row's own click ignores one). */
.ls-screen .ct-mfr { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; min-width: 0; }
.ls-screen .ct-mfr .ct-mfr__company { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-align: left; }
.ls-screen .ct-mfr .ct-mfr__company:hover { text-decoration: underline; }
.ls-screen .ct-mfr__brands { color: var(--ink-soft); font-size: 12px; }
.ls-screen .ct-mfr .ct-mfr__company, .ls-screen .ct-dialog .ls-chip__x { min-height: 0; }

/* The phone (ls-screen--phone: the app's mobile setting, as the list's own rules — lists.css, ListScreen.jsx): the dialog is a
   sheet from the bottom, with a 16px gutter. Each rule one class deeper than the width query's was. */
.ls-screen.ls-screen--phone .ct-dialog { top: auto; left: 0; right: 0; bottom: 0; transform: none; width: 100%; max-height: 88vh;
  border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.ls-screen.ls-screen--phone .ct-dialog__acts .ls-button { flex: 1 1 auto; justify-content: center; }
/* src/modules/revenue/features/orders/orderBoard.css — Orders' board view (docs/REFRESH_SPEC.md §6, "Order board"), since
   the orders fold (2026-10-24) a body under the orders list's header and toolbar. Loaded by OrderBoard.jsx alone.
   EVERY RULE IS SCOPED UNDER .ob-screen, two classes deep: the switch's wrapper class starts with "cd-", and the global
   reset `[class^='cd-'] button { background: none; border: none; font: inherit }` outranks a single-class rule on a button.
   The root's own `* { margin: 0; padding: 0 }` is why every margin and padding here is stated.
   Colour means something: the workspace's accent for the app's own (the active filter, links, the confirm), amber for
   "look here" (an order a month in its status, a write refused) and on one thing at a time — a word or a figure, never a
   sentence or a panel: a refusal, and the warning before Paid, are ink words after an amber dot; a read that failed is
   said in plain words (it isn't one of the spec's attention marks). Nothing for decoration — a status is ink, never a
   colour. Type is Geist only, by token: the title at --weight-title; Geist for
   everything else too; a figure (a count, a total) Geist with tabular numerals (ob-num); Geist Mono only for a PO number
   (ob-code). An age is plain.
   THE WIDTH: the board fills the list's page — no maximum; the columns share it, and scroll sideways only when there are
   more statuses than fit (each at least 196px: a workspace's five open statuses fit beside the nav at 1440). The gutter is
   the list's page's (lists.css ls-wrap), 16px on a phone.
   THE PHONE is the app's mobile setting, not the width alone: the board adds ob-screen--phone when useIsMobile says so (the
   setting on and the window under 768px), as the Classic board laid itself out — so with the setting off, a narrow window
   gets the desktop board (its columns scroll sideways), never a phone board inside the desktop shell. */

.ob-screen { flex: 1 1 0; min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: color-mix(in srgb, var(--parchment) 45%, var(--white)); color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.ob-screen button, .ob-screen select { font-family: inherit; }
.ob-screen .ob-num { font-variant-numeric: tabular-nums; }
.ob-screen .ob-code { font-family: var(--font-mono); font-size: 0.92em; }
.ob-screen .ob-muted { color: var(--ink-soft); }
.ob-screen .ob-small { font-size: 12px; }
.ob-screen .ob-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The body's head: the count line ("12 orders · $48,200 on the board"), what the board leaves off with the link to the list,
   and the live line. The title, the toggle, the toolbar and the subtitle are the list's, above it. */
.ob-screen.ob-screen--body { flex: none; overflow: visible; background: none; margin: var(--space-section-gap) 0 0; }
.ob-screen .ob-head { flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; padding: 0; }
.ob-screen .ob-sub { margin: 0; padding: 0; color: var(--ink-soft); font-size: 13px; }
.ob-screen .ob-link:focus-visible, .ob-screen .ob-cardname:focus-visible, .ob-screen .ob-button:focus-visible, .ob-screen .ob-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ob-screen .ob-select { padding: 6px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.ob-screen .ob-select--small { padding: 3px 8px; font-size: 12px; color: var(--ink-soft); }
.ob-screen .ob-note { margin: 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
.ob-screen .ob-live { margin: 0; padding: 0; min-height: 0; font-size: 12px; color: var(--ink-soft); }
.ob-screen .ob-live:empty { display: none; }
.ob-screen .ob-link { border: 0; background: none; padding: 0; color: var(--accent); font: 600 12px/1.3 var(--font-sans); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ob-screen .ob-link:disabled { opacity: .5; cursor: default; }

/* The board: the columns share the width; past that, they scroll sideways. */
.ob-screen .ob-board { flex: 1 1 auto; min-height: 0; display: flex; gap: var(--space-panel-gap); align-items: stretch; overflow-x: auto; overflow-y: visible; padding: 12px 0 8px; }
.ob-screen .ob-col { flex: 1 1 0; min-width: 196px; display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid transparent; }
.ob-screen .ob-col--over { border-color: var(--accent); background: var(--white); }
.ob-screen .ob-colhead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; padding: 0 2px 6px; border-bottom: 1px solid var(--hairline-strong); }
.ob-screen .ob-h2 { margin: 0; padding: 0; font: var(--weight-heading) 13px/1.3 var(--font-sans); color: var(--ink); }
/* A status that counts toward attainment is underlined (§6, "stages that count toward attainment marked"), and says so. */
.ob-screen .ob-h2--counts { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ob-screen .ob-colfig { font-size: 12px; color: var(--ink-soft); }
.ob-screen .ob-countsword { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.ob-screen .ob-cards { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.ob-screen .ob-empty { margin: 0; padding: 14px 10px; border: 1px dashed var(--hairline-strong); border-radius: 10px; text-align: center; font-size: 12px; color: var(--ink-soft); }

/* A card: white on the board, the whole card a drag handle, and a click anywhere on it but its Move control opens the order
   (the Classic's); its name is the card's button for a keyboard. */
.ob-screen .ob-card { display: flex; flex-direction: column; gap: 4px; padding: 11px 12px; background: var(--white); border: 1px solid var(--hairline); border-radius: 10px; cursor: grab; }
.ob-screen .ob-card:hover { border-color: var(--hairline-strong); box-shadow: var(--shadow-xs); }
.ob-screen .ob-card--dragging { opacity: .45; }
.ob-screen .ob-card--moving { cursor: progress; }
.ob-screen .ob-cardname { padding: 0; border: 0; background: none; color: var(--ink); font: 600 13px/1.35 var(--font-sans); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.ob-screen .ob-cardname:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.ob-screen .ob-carddealer { margin: 0; padding: 0; font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }
.ob-screen .ob-cardrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; }
.ob-screen .ob-cardtotal { font-size: 14px; font-weight: 600; color: var(--ink); }
.ob-screen .ob-po { margin: 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
.ob-screen .ob-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; }
.ob-screen .ob-chip { padding: 1px 7px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 500 11px/17px var(--font-sans); white-space: nowrap; }
.ob-screen .ob-chip--gone { background: transparent; border: 1px dashed var(--hairline-strong); color: var(--ink-soft); }
.ob-screen .ob-age { margin: 2px 0 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
.ob-screen .ob-age--attn { color: var(--amber); font-weight: 600; }
.ob-screen .ob-problem { margin: 2px 0 0; padding: 0; font-size: 12px; font-weight: 400; color: var(--ink); }
.ob-screen .ob-problem::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--amber); vertical-align: middle; }
/* "Move to": a status picked, then Move — a select's change never moves an order (arrowing through a closed select fires one
   on each key on Windows). */
.ob-screen .ob-move { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; }
.ob-screen .ob-move__pick { display: flex; min-width: 0; flex: 0 1 auto; }
.ob-screen .ob-move__pick .ob-select { min-width: 0; max-width: 100%; }
.ob-screen .ob-button--small { padding: 3px 10px; font-size: 12px; }
.ob-screen .ob-move .ob-button { flex-shrink: 0; white-space: nowrap; }
.ob-screen .ob-button:disabled { opacity: .5; cursor: default; }

/* The question before Paid (the board's only one: Ryan, 2026-10-06) */
.ob-screen .ob-backdrop { position: fixed; inset: 0; z-index: 230; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 42, 34, .35); }
.ob-screen .ob-dialog { box-sizing: border-box; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow-xl); }
.ob-screen .ob-dialog__title { margin: 0; padding: 0; font: var(--weight-heading) 16px/1.3 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.ob-screen .ob-dialog__lead { margin: 0; padding: 0; font-size: 13px; color: var(--ink-soft); }
/* Ryan's sentences, one to a line, in ink: what the move sends is information, not a warning. What the move also does (it
   logs the move) is a fact: plain. */
.ob-screen .ob-dialog__body { margin: 0; padding: 0; font-size: 13px; color: var(--ink); }
.ob-screen .ob-dialog__also { margin: 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
.ob-screen .ob-dialog__foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.ob-screen .ob-button { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; }
.ob-screen .ob-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* The phone (ob-screen--phone: the app's mobile setting, above): one column of statuses, each with its cards; the list's
   gutter. Every select at 16px — the size under which an iPhone zooms the page when one is tapped, and the
   card's Move to is the only way to move an order on a phone. */
.ob-screen.ob-screen--phone .ob-board { flex: 0 0 auto; flex-direction: column; overflow: visible; padding: 12px 0 8px; }
.ob-screen.ob-screen--phone .ob-col { min-width: 0; padding: 6px 0; }
/* As the Classic board did on a phone: a status with nothing in it (or nothing the filter shows) takes no room. */
.ob-screen.ob-screen--phone .ob-col--empty { display: none; }
.ob-screen.ob-screen--phone .ob-select, .ob-screen.ob-screen--phone .ob-select--small { font-size: 16px; }
.ob-screen.ob-screen--phone .ob-button--small { padding: 6px 12px; font-size: 14px; }

/* The crash fallback's line (OrdersWithFallback.jsx, one release), over the Classic: as Targets' (tg-fell). */
.ob-fell { flex: none; margin: 0; padding: 10px 28px; background: var(--amber-soft); color: var(--ink); font: 400 13px/1.4 var(--font-sans); }
/* src/modules/revenue/features/tasks/tasks.css — the New Tasks list (docs/REFRESH_SPEC.md §8). Loaded by TasksList.jsx
   alone (the registry lets one file load a stylesheet, so a withdrawal can find it). The head, the toolbar and the empty
   states are the shared list pieces' (lists.css, loaded by ListScreen.jsx); this file is the groups, the rows and the
   New task box.
   EVERY RULE IS SCOPED UNDER .tk-screen, two classes deep: the Classic/New wrapper's class starts with "cd-", and the global
   reset `[class^='cd-'] button` (0,1,1) outranks a single-class rule on a button inside it. Two classes (0,2,0) win.
   Colour means something: the workspace's accent for the app's own (a link, a ticked box), amber for something that
   needs attention (overdue counts, the days a task is late, the phrase saying a change was refused) — on one figure or
   phrase, never a whole sentence, which is ink (tk-say) — nothing for decoration — a line badge and a priority are
   information, ink. Type is Geist only (Ryan,
   2026-10-22): the title is the shared head's (--weight-title, lists.css); everything else Geist (--font-sans), the
   shared empty states' headings too; a
   figure compared down a column — a group's count — Geist with tabular numerals through the shared Num, never another
   face; a count inside a sentence ("12 of 15 tasks", "3 days late", "+2 more") plain Geist. THE WIDTH: the groups fill the content area — no maximum, no centring; a maximum only on
   the New task box, a dialog over the list, as the Classic's was. */

.tk-screen .tk-muted { color: var(--ink-soft); }
.tk-screen .tk-attn { color: var(--amber); }
.tk-screen .tk-say { color: var(--ink); }
.tk-screen .tk-overdue { color: var(--amber); font-weight: 600; }
/* Whose tasks (TasksList.jsx, Ryan 2026-11-09): My tasks and Team tasks, a two-way switch in the head beside New task, the
   one shown in the accent — pronounced, not a filter. */
.tk-screen .tk-who { display: inline-flex; align-items: center; gap: 2px; margin: 0; padding: 2px; border: 1px solid var(--hairline-strong); border-radius: 10px; background: var(--white); }
.tk-screen .tk-who__opt { margin: 0; padding: 7px 16px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 600 13px/1.3 var(--font-sans); cursor: pointer; }
.tk-screen .tk-who__opt--on { background: var(--accent); color: var(--on-accent); }
.tk-screen .tk-who__opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tk-screen .tk-status { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 0; font-size: 13px; }
.tk-screen .tk-confirm { color: var(--ink); font-weight: 600; }
.tk-screen .tk-status__x { font-size: 16px; line-height: 1; color: var(--ink-soft); }

/* The groups: Overdue, Today, This week, Later, No due date, Done */
.tk-screen .tk-groups { display: flex; flex-direction: column; gap: var(--space-section-gap); }
.tk-screen .tk-group__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 8px; padding: 0; font: 600 12px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.tk-screen .tk-group__count { letter-spacing: 0; color: var(--ink-soft); }
.tk-screen .tk-group__count.tk-overdue { color: var(--amber); }
.tk-screen .tk-group__sub { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.tk-screen .tk-group__fold { margin-left: auto; font-size: 12px; letter-spacing: 0; text-transform: none; }

/* The rows: the box, the task and its record, then when it is due and who it is for */
.tk-screen .tk-rows { margin: 0; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.tk-screen .tk-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 4px 14px; padding: var(--space-row-y) 16px; border-top: 1px solid var(--hairline); }
.tk-screen .tk-row:first-child { border-top: 0; }
.tk-screen .tk-row--nocheck { grid-template-columns: minmax(0, 1fr) auto; }
.tk-screen .tk-row--done .tk-title { color: var(--ink-soft); text-decoration: line-through; }
.tk-screen .tk-row--saving .tk-title { color: var(--ink-soft); }
.tk-screen .tk-check { width: 20px; height: 20px; margin-top: 1px; padding: 0; border: 1.5px solid var(--hairline-strong); border-radius: 6px; background: var(--white); color: var(--white); font: 600 12px/1 var(--font-sans); cursor: pointer; }
.tk-screen .tk-check:hover:not(:disabled) { border-color: var(--accent); }
.tk-screen .tk-check--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tk-screen .tk-check:disabled { cursor: default; }
.tk-screen .tk-row__main { min-width: 0; }
.tk-screen .tk-title { display: block; max-width: 100%; padding: 0; border: 0; background: none; color: var(--ink); font: 600 14px/1.35 var(--font-sans); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.tk-screen .tk-title:hover { color: var(--accent); }
.tk-screen .tk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.tk-screen .tk-record { min-width: 0; overflow-wrap: anywhere; }
.tk-screen .tk-bit { display: inline; }
.tk-screen .tk-dot { color: var(--ink-faint); }
.tk-screen .tk-link { padding: 0; border: 0; background: none; color: var(--accent); font: 500 13px/1.35 var(--font-sans); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.tk-screen .tk-link:hover { text-decoration: underline; }
.tk-screen .tk-check:focus-visible, .tk-screen .tk-title:focus-visible, .tk-screen .tk-link:focus-visible, .tk-screen .tk-modal__x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The manufacturer badges: the lines the task's dealer carries — information, so ink on parchment */
.tk-screen .tk-lines { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.tk-screen .tk-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 500 12px/18px var(--font-sans); white-space: nowrap; }
/* the task's own line (148): outlined, so it never reads as one its dealer carries */
.tk-screen .tk-badge--own { background: transparent; border: 1px solid var(--ink-soft); padding: 0 7px; }
.tk-screen .tk-tag { display: inline-block; padding: 0 7px; border: 1px solid var(--hairline-strong); border-radius: 999px; color: var(--ink); font: 500 11px/17px var(--font-sans); white-space: nowrap; }
.tk-screen .tk-tag--strong { font-weight: 700; }
.tk-screen .tk-tag--mark { border-color: transparent; background: var(--parchment-dim); }
/* Due, assignee and priority on one line at the row's right (Ryan, 2026-10-19: "one line on the right of the row"). */
.tk-screen .tk-row__aside { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 10px; font-size: 13px; text-align: right; white-space: nowrap; }
.tk-screen .tk-due, .tk-screen .tk-who { white-space: nowrap; }
.tk-screen .tk-rowmsg { margin: 6px 0 0; padding: 0; font-size: 12px; }

/* New task: the app's one task form, in a box over the list */
.tk-screen .tk-modal { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; }
.tk-screen .tk-modal__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 45%, transparent); }
.tk-screen .tk-modal__box { position: relative; box-sizing: border-box; width: 100%; max-width: 620px; max-height: calc(100vh - 48px); overflow-y: auto; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-xl); }
.tk-screen .tk-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.tk-screen .tk-modal__title { margin: 0; padding: 0; font: var(--weight-heading) 17px/1.3 var(--font-sans); color: var(--ink); }
.tk-screen .tk-modal__x { width: 32px; height: 32px; padding: 0; border: 1px solid var(--hairline); border-radius: 8px; background: var(--white); color: var(--ink-soft); font-size: 18px; line-height: 1; cursor: pointer; }
.tk-screen .tk-modal__body { padding: 16px 20px 20px; }

/* The sort line: the order inside each group, said and set above the groups at every width (the list has no header row
   to click) — the Classic's four sortable headers, Task, Due, Status and Assigned to, up then down (the parity triage,
   tasks.list #1); "Each group's own order" is the groups' (by when due, then priority). */
.tk-screen .tk-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 var(--space-panel-gap); }
.tk-screen .tk-sort__label { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--ink-soft); }
.tk-screen .tk-sort__label .ls-input { color: var(--ink); }

/* On a touch phone the root lifts every button to 36px; the links and the title stay the size of their text, and the box
   its own square. The root's rule is the window's width and a coarse pointer, whatever the app's mobile setting, so the
   box's exemption sits here at every width, not with the phone's rules below — there, a narrow touch screen with the
   setting off drew the 20px box 36px tall (the parity triage's second round). */
.tk-screen .tk-check, .tk-screen .tk-link, .tk-screen .tk-title, .tk-screen .tk-status__x, .tk-screen .tk-group__fold { min-height: 0; }

/* The phone (tk-screen--phone): the 16px gutter is the list frame's; a row is the box, then the task, its record and its
   badges, then when it is due and who it is for on one line beneath; the sort line's select takes the row; the New task
   box is a sheet from the bottom, above the app's bottom nav. THE PHONE IS THE APP'S MOBILE SETTING, not the width alone
   (the parity triage, every New list): the list adds tk-screen--phone when useIsMobile says so — the setting on and the
   window under 768px — as the Classic laid itself out; each rule is the width query's, one class deeper. (The box's
   tick is the Classic's own width rule, useTickOpens — a separate question from the layout.) */
.tk-screen.tk-screen--phone .tk-row { grid-template-columns: auto minmax(0, 1fr); padding: 12px 14px; }
.tk-screen.tk-screen--phone .tk-row--nocheck { grid-template-columns: minmax(0, 1fr); }
.tk-screen.tk-screen--phone .tk-row__aside { grid-column: -2 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 12px; text-align: left; }
.tk-screen.tk-screen--phone .tk-check { width: 24px; height: 24px; min-height: 0; }
.tk-screen.tk-screen--phone .tk-group__fold { margin-left: 0; }
.tk-screen.tk-screen--phone .tk-sort__label { flex: 1 1 200px; }
.tk-screen.tk-screen--phone .tk-sort__label .ls-input { flex: 1 1 auto; }
.tk-screen.tk-screen--phone .tk-modal { align-items: flex-end; padding: 0; }
.tk-screen.tk-screen--phone .tk-modal__box { max-width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
.tk-screen.tk-screen--phone .tk-modal__head { padding: 14px 16px; }
.tk-screen.tk-screen--phone .tk-modal__body { padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
/* src/modules/revenue/features/accounts/accountPage.css — the New dealer record (docs/REFRESH_SPEC.md §4).
   Loaded by AccountPage.jsx alone (the registry lets one file load a stylesheet, so a withdrawal can find it).
   EVERY RULE IS SCOPED UNDER .ap-screen, two classes deep, and that is load-bearing: the Classic/New wrapper's class starts
   with "cd-", so the global reset `[class^='cd-'] button { background: none; border: none; font: inherit }` (0,1,1) reaches
   every button in the record and outranks a single-class rule. Two classes (0,2,0) win (the New Reports found it).
   The root's own `* { margin: 0; padding: 0 }` is why every margin and padding here is stated.
   The rules that apply everywhere: colour means something — the workspace's accent for the app's own (active, links,
   confirmations), amber for "look here" (never touched, a place with no activity, a line not carried, an order with no
   PO, overdue, a write refused) and on one thing at a time: a word or a figure, never a sentence — a refusal is ink words
   after an amber dot; a read that failed is said in plain words (it isn't one of the spec's attention marks). A line not
   discussed here since lines started being recorded on conversations is amber ("not since 21 Sep": the state that read
   "never" — Ryan, 2026-10-08, src/lib/lineRecording.js). Red only for destroying something, nothing for decoration; the content area
   near-white and the things on it white. Section headings in sentence case, as the spec names them ("Lines", "Open
   work"); caps only where the mock draws them (SHOWROOM). Type is Geist only (Ryan, 2026-10-22): the name at --weight-title,
   Geist for everything else too — a figure (a count, an amount standing as a value) is Geist with tabular
   numerals (ap-num), never another face; a date, an age, a phone number or a number inside a sentence is plain Geist —
   and Geist Mono only for genuine code (ap-code: an account number, a PO number). Classes, not inline sizes: the root's
   phone rules rewrite inline grids. The logger keeps its own look — it is the app's one composer.
   THE WIDTH (Ryan, 2026-10-03: "tables and records should use the width they are given"): the band and the body fill the
   content area as the Classic record does — no maximum and no centring, the Classic's own 28px gutter — so the two columns
   and every tab's table take the width there is. A maximum sits only on prose: the Notes and Comments tabs (760px) and an
   empty tab's why (72ch), each from the left gutter, never centred. */

.ap-screen { flex: 1 1 0; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; background: #FCFBF8; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.ap-screen .ap-wrap { padding: 0 var(--space-page-x) var(--space-page-bottom); box-sizing: border-box; }
.ap-screen .ap-head__in { padding: 18px var(--space-page-x) 0; box-sizing: border-box; }
.ap-screen button { font-family: inherit; }
.ap-screen .ap-num { font-variant-numeric: tabular-nums; }
.ap-screen .ap-code { font-family: var(--font-mono); font-size: 0.92em; }
.ap-screen .ap-muted { color: var(--ink-soft); }
.ap-screen .ap-small { font-size: 12px; }
.ap-screen .ap-attn { color: var(--amber); font-weight: 600; }
.ap-screen .ap-overdue { color: var(--amber); font-weight: 600; }
.ap-screen .ap-problem { flex-basis: 100%; margin: 6px 0 0; padding: 0; color: var(--ink); font-size: 12px; font-weight: 400; }
.ap-screen .ap-problem::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.ap-screen .ap-note { margin: 0 0 10px; padding: 0; color: var(--ink-soft); font-size: 13px; }
.ap-screen .ap-h2 { margin: 0; padding: 0; font: var(--weight-heading) 14px/1.3 var(--font-sans); color: var(--ink); }
.ap-screen .ap-h3 { margin: 0 0 6px; padding: 0; font: var(--weight-heading) 12px/1.3 var(--font-sans); color: var(--ink); }

/* Buttons, links, inputs */
.ap-screen .ap-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.ap-screen .ap-button:hover:not(:disabled) { border-color: var(--accent); }
.ap-screen .ap-button:disabled { opacity: .45; cursor: default; }
.ap-screen .ap-button:focus-visible, .ap-screen .ap-link:focus-visible, .ap-screen .ap-tab:focus-visible, .ap-screen .ap-rowlink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-screen .ap-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ap-screen .ap-button--primary:hover:not(:disabled) { background: var(--accent-raised); }
.ap-screen .ap-button--danger { color: var(--danger); }
.ap-screen .ap-button--danger:hover:not(:disabled) { border-color: var(--danger); }
.ap-screen .ap-button--small { padding: 5px 10px; font-size: 12px; }
/* A link drawn as a button (Analytics, in the header's actions): a button's look, no underline. */
.ap-screen .ap-button--link { text-decoration: none; }
.ap-screen .ap-link { border: 0; background: none; padding: 0; color: var(--accent); font: 600 13px/1.3 var(--font-sans); cursor: pointer; text-decoration: none; text-underline-offset: 2px; }
.ap-screen .ap-link:hover { text-decoration: underline; }
.ap-screen .ap-link--plain { color: var(--ink); font-weight: 600; }
/* An expected zero is grey (Open work's "0 tasks open"). */
.ap-screen .ap-link--none { color: var(--ink-faint); font-weight: 400; }
.ap-screen .ap-input { box-sizing: border-box; min-width: 0; max-width: 100%; padding: 7px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.ap-screen .ap-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.ap-screen .ap-input--code { width: 130px; font-family: var(--font-mono); font-size: 12px; }
.ap-screen .ap-input--tier { padding: 4px 8px; font-size: 12px; }
.ap-screen .ap-input--static { display: block; border-style: dashed; background: transparent; }
.ap-screen .ap-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 500 12px/18px var(--font-sans); white-space: nowrap; }
/* A status mark (a new dealer) is information, not the app's own action: ink, never the accent. SHOWROOM is grey, in the
   capitals the mock draws it in. */
.ap-screen .ap-tag--mark { font-size: 11px; font-weight: 600; }
.ap-screen .ap-tag--grey { background: transparent; border: 1px solid var(--hairline-strong); color: var(--ink-soft); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.ap-screen .ap-tag--quiet { background: transparent; border: 1px solid var(--hairline-strong); color: var(--ink-soft); }
/* target dealers (145): a target this quarter in ink, closed ones quiet, last quarter's still open in amber */
.ap-screen .ap-tag--target { background: var(--parchment-dim); }
.ap-screen .ap-tag--attn { background: var(--amber-soft); color: var(--ink); }
.ap-screen .ap-targetpick { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ap-screen .ap-select--small { padding: 3px 6px; font-size: 12px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); }
/* …and on a line's record, its Target dealers card (Rankings' own card in this record's look: manufacturers/LineTargets.jsx):
   Add's matches, a listbox under its search box — the match the keys are on drawn as a hovered row is, the one picked marked
   by the accent's edge, the name cut short with an ellipsis and its town beside it. */
.ap-screen .ap-matches { display: flex; flex-direction: column; max-width: 440px; margin: 0; padding: 0; list-style: none; border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; }
.ap-screen .ap-matches > li { margin: 0; padding: 0; border-bottom: 1px solid var(--hairline); }
.ap-screen .ap-matches > li:last-child { border-bottom: 0; }
.ap-screen .ap-match { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 6px 10px; border: 0; background: var(--white); color: var(--ink); font: 500 13px/1.35 var(--font-sans); text-align: left; cursor: pointer; }
.ap-screen .ap-match:hover, .ap-screen .ap-match--active { background: var(--parchment); }
.ap-screen .ap-match[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.ap-screen .ap-match:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ap-screen .ap-match:disabled { cursor: default; color: var(--ink-soft); }
.ap-screen .ap-match__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The header band: breadcrumb; the name, its badges and Edit and Delete at the right, on one line; the meta row; the tabs
   flush to its foot (the active tab's underline sits on the band's own bottom edge).
   THE META ROW (§4: "on one line … separated by middots"; Ryan, 2026-10-03: "Give it a fixed grid rather than letting
   fields size to their content, truncate long values with the full text on hover"): one line of six equal columns — the
   spec's six — the values filling them in order with a middot between, so a long address can't push the owner off to the
   right; what the Classic also showed carries on in a second line under the first columns (no middot opening a line). No labels, as the mock draws none: each is its value's dt,
   kept for a screen reader, and the value's hover says "Owner: Ann Price". A value is one line, cut with an ellipsis, and a
   cut one takes the keyboard's focus and opens to its full text there (MetaValue). Where the band is narrower the values
   wrap two to a line, and on a phone one to a line with its label beside it. The band is its own container: the columns
   follow the band's width, which the rail's collapse changes, not the window's. */
.ap-screen .ap-head { display: block; background: var(--white); border-bottom: 1px solid var(--hairline-strong); container: ap-band / inline-size; }
.ap-screen .ap-crumbs { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; color: var(--ink-soft); min-width: 0; }
.ap-screen .ap-crumbs__sep { color: var(--ink-faint); }
.ap-screen .ap-crumbs__here { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-screen .ap-titlerow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
/* A refusal about the key mark wraps under the whole line, Edit and Delete included. */
.ap-screen .ap-titlerow .ap-problem { order: 1; }
.ap-screen .ap-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.ap-screen .ap-keymark { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 12px/1.3 var(--font-sans); cursor: pointer; white-space: nowrap; }
.ap-screen .ap-keymark--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ap-screen .ap-keymark:disabled { opacity: .7; cursor: wait; }
.ap-screen .ap-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; margin: 10px 0 0; padding: 0; min-width: 0; }
.ap-screen .ap-meta__item { display: flex; align-items: baseline; min-width: 0; max-width: 100%; }
.ap-screen .ap-meta__item:not(:first-child)::before { content: "·"; flex-shrink: 0; padding: 0 10px; color: var(--ink-faint); }
.ap-screen .ap-meta__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ap-screen .ap-meta__value { display: block; flex: 1 1 auto; margin: 0; padding: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink); }
/* A link or a button in a value is cut the same way, by its own ellipsis (a button is a box of its own, so the value's
   ellipsis can't reach its words), and keeps its line's height on a touch phone (the root lifts every button to 36px). */
.ap-screen .ap-meta__value .ap-link { display: inline-block; max-width: 100%; min-height: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }
.ap-screen .ap-meta__value:focus-within, .ap-screen .ap-meta__value:focus-visible { white-space: normal; overflow-wrap: anywhere; overflow: visible; }
.ap-screen .ap-meta__value:focus-within .ap-link { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.ap-screen .ap-meta__value:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.ap-screen .ap-head__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 0 0 0 auto; }
.ap-screen .ap-customs { margin: 8px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.ap-screen .ap-customs:empty { display: none; }
/* The tab row: it overlaps the band's border by 1px itself (margin-bottom), not each tab — a tab's own -1px made the row's
   content 1px taller than the row, and overflow-x: auto makes overflow-y auto too, so the row scrolled 1px under a
   trackpad even when every tab fit (Ryan, 2026-10-19: "sometimes scroll when they should not"). */
.ap-screen .ap-tabs { display: flex; gap: 2px; margin: var(--space-record-tabs-top) 0 -1px; padding: 0; overflow-x: auto; scrollbar-width: none; }
.ap-screen .ap-tab { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 9px 12px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-soft); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.ap-screen .ap-tab:hover { color: var(--ink); }
.ap-screen .ap-tab--on { color: var(--accent); border-bottom-color: var(--accent); }
.ap-screen .ap-tab__n { color: var(--ink-faint); font-weight: 500; }
.ap-screen .ap-tab--on .ap-tab__n { color: var(--accent); }

/* The body */
.ap-screen .ap-body { display: block; padding: var(--space-record-body-top) 0 0; }
.ap-screen .ap-card { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-record-card-gap); min-width: 0; padding: var(--space-record-card-y) var(--space-record-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.ap-screen .ap-card__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
/* The Trackers tab (AccountTrackers.jsx): one entry per tracker row matched to this dealer — the tracker, its note, the row's
   values filled in here and its open tasks, and the row as the file had it behind a disclosure; and the Overview's one line. */
.ap-screen .ap-tracker { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 0; border-top: 1px solid var(--hairline); }
.ap-screen .ap-tracker__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.ap-screen .ap-tracker__note { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.ap-screen .ap-tracker__note.ap-muted { color: var(--ink-soft); }
.ap-screen .ap-tracker__row summary { cursor: pointer; color: var(--ink-soft); }
.ap-screen .ap-tracker__fields { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; font-size: 12px; }
.ap-screen .ap-tracker__fields dt { display: inline; margin: 0 4px 0 0; color: var(--ink-faint); }
.ap-screen .ap-tracker__fields dd { display: inline; margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.ap-screen .ap-tracker__tasks { margin: 0; padding: 0 0 0 16px; color: var(--ink); }
.ap-screen .ap-tracker__nothing, .ap-screen .ap-tracker__valuesay, .ap-screen .ap-tracker__done { margin: 0; }
.ap-screen .ap-trackers-line { margin: 0; }
/* Rows stretch, cards fill: whatever belongs at the bottom of a card sits there. */
.ap-screen .ap-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; padding: 8px 0 0; border-top: 1px solid var(--hairline); }
.ap-screen .ap-empty { margin: 0; padding: 6px 0; color: var(--ink-soft); font-size: 13px; }
.ap-screen .ap-empty--bad { color: var(--ink); }
.ap-screen .ap-empty--block { display: flex; flex-direction: column; gap: 4px; padding: 20px 16px; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.ap-screen .ap-empty__lead { margin: 0; padding: 0; color: var(--ink); font-weight: 600; }
.ap-screen .ap-empty__why { margin: 0; padding: 0; color: var(--ink-soft); max-width: 72ch; }

/* Overview: two equal columns, the rows stretched so both end level. */
.ap-screen .ap-overview { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-panel-gap); align-items: stretch; }
.ap-screen .ap-col { display: flex; flex-direction: column; gap: var(--space-panel-gap); min-width: 0; }
/* The logger stretches to the column's height; its own footer sits at the bottom (ActivityLoggerPanel's fill). Visible
   overflow: its pickers open over what is below. */
.ap-screen .ap-logcard { flex: 1 1 auto; padding: 0; gap: 0; overflow: visible; }
/* Three equal-height cards side by side (§4), a phone's one above another. */
.ap-screen .ap-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-panel-gap); align-items: stretch; }
.ap-screen .ap-mini { gap: 8px; }
.ap-screen .ap-minilist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
/* Two lines per item, so three cards fit a column: the name, then what is said about it — each one line, cut short with an
   ellipsis. */
.ap-screen .ap-minilist li { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.ap-screen .ap-minilist li > * { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.ap-screen .ap-minilist__sub { color: var(--ink-soft); font-size: 12px; }
/* Open work reads as two sentences, not a name and a date. */
.ap-screen .ap-minilist--words li { display: block; }
/* The activity: a fixed height that fills what the logger leaves, scrolling inside. */
.ap-screen .ap-card--activity { flex: 1 0 360px; min-height: 360px; overflow: hidden; padding-bottom: var(--space-record-card-y); }
.ap-screen .ap-feed { flex: 1 1 0; min-height: 0; overflow-y: auto; margin: 0 calc(-1 * var(--space-record-card-x)); padding: 0 4px; }
.ap-screen .ap-acticon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--parchment); flex-shrink: 0; }

/* The lines */
.ap-screen .ap-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ap-screen .ap-seg__opt { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--white); color: var(--ink); font: 500 12px/1.4 var(--font-sans); cursor: pointer; }
.ap-screen .ap-seg__opt:disabled { opacity: .5; cursor: default; }
.ap-screen .ap-seg__opt--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* The contacts tab's Never, when anyone is never touched (never contacted is one of the spec's attention marks). The lines'
   Never is never amber: a line nobody has discussed is grey. */
.ap-screen .ap-seg__opt--attn:not(.ap-seg__opt--on) { border-color: var(--amber); color: var(--amber); }
.ap-screen .ap-linelist { margin: 0; padding: 0; list-style: none; }
.ap-screen .ap-line { display: flex; flex-direction: column; padding: 0; border-top: 1px solid var(--hairline); }
.ap-screen .ap-line:first-child { border-top: 0; }
/* A row (§4): a dot (filled once discussed), the name, its tier, a dash, when it was last discussed or "never" in grey —
   the whole row a button that opens it in place. */
.ap-screen .ap-line__head { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; margin: 0; padding: var(--space-record-row-y) 0; border: 0; background: none; color: var(--ink); font: 400 13px/1.35 var(--font-sans); text-align: left; cursor: pointer; }
.ap-screen .ap-line__head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-screen .ap-line__dot { flex-shrink: 0; width: 8px; height: 8px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--ink-faint); }
.ap-screen .ap-line__dot--on { background: var(--ink); border-color: var(--ink); }
.ap-screen .ap-line__name { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-screen .ap-line__tier { flex-shrink: 0; font-size: 11px; }
.ap-screen .ap-line__dash { flex-shrink: 0; color: var(--ink-faint); }
.ap-screen .ap-line__when { flex-shrink: 0; color: var(--ink-soft); white-space: nowrap; }
.ap-screen .ap-line__when--notsince { color: var(--amber); }
/* Open: its conversations, its account number and tier side by side, Remove line and Save at the right. */
.ap-screen .ap-line__edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; margin: 0 0 12px 16px; padding: 12px 14px; border-radius: 8px; background: var(--parchment); }
.ap-screen .ap-line__talk { grid-column: 1 / -1; margin: 0; padding: 0; color: var(--ink-soft); font-size: 12px; }
.ap-screen .ap-line__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ap-screen .ap-line__field .ap-input { width: 100%; }
.ap-screen .ap-line__label { font-size: 12px; font-weight: 600; color: var(--ink); }
.ap-screen .ap-line__actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
/* Remove line (§4: "Remove is quiet — on the expanded row only, not on every row at full weight"; Ryan, 2026-10-03):
   quiet ink, never red — the destructive word is the confirmation's — and only in the open row. */
.ap-screen .ap-line__remove { border: 0; background: none; padding: 2px 0; color: var(--ink-soft); font: 400 12px/1.3 var(--font-sans); cursor: pointer; text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 2px; }
.ap-screen .ap-line__remove:hover:not(:disabled), .ap-screen .ap-line__remove:focus-visible { color: var(--ink); text-decoration-color: currentColor; }
.ap-screen .ap-line__remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-screen .ap-line__remove:disabled { cursor: default; }
.ap-screen .ap-notcarried { padding: 10px 0 0; border-top: 1px solid var(--hairline); }
.ap-screen .ap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ap-screen .ap-chips--inline { display: inline-flex; gap: 4px; }
.ap-screen .ap-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 500 12px/18px var(--font-sans); white-space: nowrap; }
/* Not carried: the other half of the split, in the logger's own amber (NOT_CARRIED_AMBER, set on .ap-screen as
   --ap-notcarried by AccountPage.jsx) — a filled pill with white on it, as the logger draws a picked line the dealer doesn't
   carry: amber text on a tint falls below 4.5:1, white on the fill reads about 5:1. */
.ap-screen .ap-chip--notcarried { background: var(--ap-notcarried); color: var(--white); font-weight: 600; }
.ap-screen .ap-addline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--hairline); }
.ap-screen .ap-addline select { flex: 1 1 180px; }
.ap-screen .ap-addline .ap-input--code { width: 160px; }

/* Tabs' panels */
.ap-screen .ap-tabpanel { display: flex; flex-direction: column; gap: var(--space-panel-gap); }
/* Notes and comments are read, not scanned: a reading column from the left gutter, never the record's full width. */
.ap-screen .ap-tabpanel--prose { max-width: 760px; }
.ap-screen .ap-tabhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ap-screen .ap-tabhead .ap-button--primary { margin-left: auto; }
.ap-screen .ap-tablewrap { overflow-x: auto; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.ap-screen .ap-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.ap-screen .ap-table th { padding: var(--space-record-row-y) 12px; text-align: left; border-bottom: 1px solid var(--hairline-strong); color: var(--ink-soft); font: 600 11px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ap-screen .ap-table td { padding: var(--space-record-row-y) 12px; border-top: 1px solid var(--hairline); vertical-align: middle; }
.ap-screen .ap-table tbody tr:first-child td { border-top: 0; }
.ap-screen .ap-th--num, .ap-screen .ap-td--num { text-align: right; white-space: nowrap; }
.ap-screen .ap-td--primary { font-weight: 600; min-width: 160px; }
.ap-screen .ap-rowlink { padding: 0; border: 0; background: none; color: var(--ink); font: 600 13px/1.35 var(--font-sans); text-align: left; cursor: pointer; }
.ap-screen .ap-rowlink:hover { color: var(--accent); }
/* A name that is a link (open in a new tab, landing 2): drawn as the button it was; a link's underline goes. */
.ap-screen .ap-rowlink { text-decoration: none; }
.ap-screen .ap-activity { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-panel-gap); align-items: start; }
.ap-screen .ap-rail { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.ap-screen .ap-railfield { display: flex; flex-direction: column; gap: 4px; }
.ap-screen .ap-railfield__label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.ap-screen .ap-rail p { margin: 0; padding: 0; }
.ap-screen .ap-months { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* The tasks' rows are the records' one TaskRows, with its own stylesheet (src/modules/revenue/features/records/). */

/* The files of the records merged into this dealer, under its own (DealerMerge.jsx MergedFiles) */
.ap-screen .ap-mergedfiles { display: flex; flex-direction: column; gap: 8px; margin: 24px 0 0; }

/* The edit drawer */
.ap-screen .ap-backdrop { position: fixed; inset: 0; z-index: 220; background: rgba(15, 42, 34, .35); }
.ap-screen .ap-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 221; box-sizing: border-box; width: min(480px, 100vw); display: flex; flex-direction: column; background: var(--white); box-shadow: var(--shadow-xl); }
.ap-screen .ap-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.ap-screen .ap-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 4px 20px 20px; }
.ap-screen .ap-drawer__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); }
.ap-screen .ap-fieldset { margin: 16px 0 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ap-screen .ap-legend { margin: 0 0 4px; padding: 0; font: 600 14px/1.3 var(--font-sans); color: var(--ink); }
.ap-screen .ap-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ap-screen .ap-field__label { font-size: 12px; font-weight: 600; color: var(--ink); }
.ap-screen .ap-checkfield { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.ap-screen .ap-checkfield input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.ap-screen .ap-customedit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ap-screen .ap-customedit:empty { display: none; }

/* The meta row (Ryan, 2026-10-19: "tight: items separated by a middot with a normal gap, flowing left, wrapping if it must"):
   values sized to their words, a middot between them, wrapping where the band runs out; on a phone's width each value is a
   line, its label beside it, with no middots. */
@container ap-band (max-width: 536px) {
  .ap-screen .ap-meta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ap-screen .ap-meta__item:not(:first-child)::before { content: none; }
  .ap-screen .ap-meta__item { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: baseline; gap: 10px; }
  .ap-screen .ap-meta__label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
}

/* The phone (ap-screen--phone): one column, a 16px gutter, the tabs scroll sideways, tables become cards, the drawer a full
   sheet. THE PHONE IS THE APP'S MOBILE SETTING, not the width alone: the record adds ap-screen--phone when useIsMobile says
   so (a narrow window, unless the platform's mobile_enabled is off), as the Classic lays itself out by that same answer —
   and the same answer puts the logger first (AccountPage.jsx, phoneFirst), so the one column and the logger's place agree.
   Three classes deep (0,3,0), so each outranks the rule it restates whatever its place. */
.ap-screen.ap-screen--phone .ap-wrap { padding: 0 16px 24px; }
.ap-screen.ap-screen--phone .ap-head__in { padding: 14px 16px 0; }
.ap-screen.ap-screen--phone .ap-h1 { font-size: var(--text-page-title-phone); }
.ap-screen.ap-screen--phone .ap-tabs { margin-right: -16px; padding-right: 16px; }
.ap-screen.ap-screen--phone .ap-body { padding-top: 14px; }
.ap-screen.ap-screen--phone .ap-overview { grid-template-columns: minmax(0, 1fr); }
.ap-screen.ap-screen--phone .ap-trio { grid-template-columns: minmax(0, 1fr); }
.ap-screen.ap-screen--phone .ap-card--activity { flex: 0 0 auto; height: 360px; }
.ap-screen.ap-screen--phone .ap-logcard { flex: 0 0 auto; }
.ap-screen.ap-screen--phone .ap-line__edit { grid-template-columns: minmax(0, 1fr); margin-left: 0; }
.ap-screen.ap-screen--phone .ap-activity { grid-template-columns: minmax(0, 1fr); }
.ap-screen.ap-screen--phone .ap-rail { position: static; }
.ap-screen.ap-screen--phone .ap-tablewrap { overflow: visible; }
.ap-screen.ap-screen--phone .ap-table thead { display: none; }
.ap-screen.ap-screen--phone .ap-table, .ap-screen.ap-screen--phone .ap-table tbody, .ap-screen.ap-screen--phone .ap-table tr, .ap-screen.ap-screen--phone .ap-table td { display: block; width: auto; }
.ap-screen.ap-screen--phone .ap-table tr { padding: 12px 14px; border-top: 1px solid var(--hairline); }
.ap-screen.ap-screen--phone .ap-table tbody tr:first-child { border-top: 0; }
.ap-screen.ap-screen--phone .ap-table td { padding: 1px 0; border: 0; text-align: left; }
.ap-screen.ap-screen--phone .ap-table td[data-label]::before { content: attr(data-label) " · "; color: var(--ink-faint); }
/* A card names only what the row holds: an empty cell (no title, no email) is not a bare label. */
.ap-screen.ap-screen--phone .ap-table td:empty { display: none; }
.ap-screen.ap-screen--phone .ap-table td.ap-td--primary::before { content: none; }
.ap-screen.ap-screen--phone .ap-td--primary { min-width: 0; margin-bottom: 3px; }
.ap-screen.ap-screen--phone .ap-drawer { width: 100vw; }
.ap-screen.ap-screen--phone .ap-input { font-size: 16px; }
/* src/modules/revenue/features/records/taskRows.css — a New record's task rows (TaskRows.jsx): the dealer, contact and
   order records' open tasks and Tasks tabs. Loaded by TaskRows.jsx alone (the registry lets one file load a stylesheet, so
   a withdrawal can find it); it and TaskRows.jsx stay accounts.record's next, shared like the lists' pieces.
   EVERY RULE IS SCOPED UNDER .rt-tasks, two classes deep: the switch's wrapper class starts with "cd-", and the global
   reset `[class^='cd-'] button { background: none; border: none; font: inherit }` (0,1,1) outranks a single-class rule on
   a button. The root's own `* { margin: 0; padding: 0 }` is why every margin and padding here is stated.
   Colour means something: the workspace's accent for the app's own (a tick, sent or done), amber for "look here"
   (overdue; a refused completion marked by an amber dot, its words ink — colour lands on one thing, never a sentence),
   nothing for decoration — a priority is ink, said in words, and a task due today is bold ink (not one of the spec's
   attention marks). Type is the app's own, by token: Geist throughout; a date is plain.
   BARE (rt-tasks--bare): rows inside a record's card draw no border, radius or ground of their own (never a card in a
   card); they keep the card's own padding at the sides.
   THE PHONE is the record's own (rt-tasks--phone, when its useIsMobile says so — the app's mobile setting, as the
   Classic laid itself out): a thumb-sized tick, the details in one column. */

.rt-tasks { margin: 0; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.rt-tasks .rt-task { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: var(--space-record-row-y) 14px; border-top: 1px solid var(--hairline); }
.rt-tasks .rt-task:first-child { border-top: 0; }
.rt-tasks .rt-check { width: 18px; height: 18px; flex-shrink: 0; margin: 0; padding: 0; border: 1.5px solid var(--hairline-strong); border-radius: 5px; background: var(--white); color: var(--white); font: 600 11px/1 var(--font-sans); cursor: pointer; }
.rt-tasks .rt-check--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* A done task's tick is a mark, not a button: it takes no click (a click completed the task again). */
.rt-tasks .rt-check--done { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; cursor: default; }
.rt-tasks .rt-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rt-tasks .rt-title { flex: 0 0 auto; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font: 600 13px/1.35 var(--font-sans); text-align: left; overflow-wrap: anywhere; cursor: pointer; text-decoration: none; }
.rt-tasks .rt-title:hover { color: var(--accent); }
.rt-tasks .rt-task--done .rt-title { color: var(--ink-soft); text-decoration: line-through; }
.rt-tasks .rt-sub { color: var(--ink-soft); font-size: 12px; }
/* On a touch phone the root lifts every button to 36px; the tick, the disclosure and a title keep their own size. */
.rt-tasks .rt-check, .rt-tasks .rt-disclose, .rt-tasks .rt-title { min-height: 0; }
.rt-tasks .rt-due { color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.rt-tasks .rt-due--today { color: var(--ink); font-weight: 600; }
.rt-tasks .rt-due--overdue { color: var(--amber); font-weight: 600; }
.rt-tasks .rt-done { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--hairline-strong); color: var(--ink-soft); font-size: 11px; font-weight: 600; white-space: nowrap; }
.rt-tasks .rt-disclose { flex-shrink: 0; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink-soft); font: 400 13px/1 var(--font-sans); cursor: pointer; }
.rt-tasks .rt-disclose:hover, .rt-tasks .rt-disclose:focus-visible { color: var(--ink); background: var(--parchment); }
.rt-tasks .rt-check:focus-visible, .rt-tasks .rt-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rt-tasks .rt-problem { flex: 1 1 100%; margin: 0; padding: 0; color: var(--ink); font-size: 12px; font-weight: 400; }
.rt-tasks .rt-problem::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.rt-tasks .rt-muted { color: var(--ink-soft); }
.rt-tasks .rt-detail { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin: 4px 0 2px; padding: 10px 12px; border-radius: 8px; background: var(--parchment); font-size: 13px; }
.rt-tasks .rt-detail dt { margin: 0; padding: 0; color: var(--ink-soft); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rt-tasks .rt-detail dd { margin: 0; padding: 0; overflow-wrap: anywhere; }
.rt-tasks .rt-detail__notes { grid-column: 1 / -1; }
.rt-tasks .rt-detail__notes dd { white-space: pre-wrap; }

.rt-tasks.rt-tasks--bare { border: 0; border-radius: 0; background: none; }
.rt-tasks.rt-tasks--bare .rt-task { padding-left: 0; padding-right: 0; }

/* The phone (rt-tasks--phone: the record's mobile setting, above). */
.rt-tasks.rt-tasks--phone .rt-check { width: 24px; height: 24px; }
.rt-tasks.rt-tasks--phone .rt-detail { grid-template-columns: minmax(0, 1fr); }
/* src/modules/revenue/features/records/sortHead.css — a New record's sortable column heading (SortHead.jsx): the dealer and
   order records' Contacts tabs. Loaded by SortHead.jsx alone (the registry lets one file load a stylesheet, so a withdrawal
   can find it); it and SortHead.jsx stay accounts.record's next, shared like the task rows.
   The heading cell is the record's own table's (its th rules: the size, the case, the colour); this is only its button,
   which reads as the heading's text. SCOPED UNDER .rs-head, two classes deep: the switch's wrapper class starts with
   "cd-", and the global reset `[class^='cd-'] button` (0,1,1) outranks a single-class rule on a button. On a touch phone
   the root lifts every button to 36px; a heading keeps its own size. */

.rs-head .rs-sort { min-height: 0; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.rs-head .rs-sort:hover, .rs-head .rs-sort:focus-visible { color: var(--ink); }
/* src/modules/revenue/features/profile/repCard.css — a person's card (RepCard.jsx): the profile's preview in Settings, the owner
   on a dealer record, the person picked on My Team. Loaded by RepCard alone. The look is the New records': a white card on the
   near-white content area, a hairline, colour only for a link and for "away". Type is Geist only, through the tokens; the
   name at --weight-heading (a card's heading level), the label an eyebrow.
   EVERY RULE IS TWO CLASSES DEEP (.rc-card and its part): the root's resets reach a single-class rule
   (`[class^='cd-'] button`, `* { margin: 0; padding: 0 }`), so every margin and padding is stated. */

.rc-card.rc-card { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 14px 16px; box-sizing: border-box; min-width: 0; background: var(--white); border: 1px solid var(--hairline); border-radius: 10px; color: var(--ink); font: 400 var(--text-sm)/1.45 var(--font-sans); }
.rc-card .rc-card__label { margin: 0; padding: 0; font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.rc-card .rc-card__who { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; padding: 0; }
.rc-card .rc-card__photo { flex: 0 0 auto; width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 999px; object-fit: cover; }
.rc-card .rc-card__photo--initials { display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--white); font-size: var(--text-sm); font-weight: 600; letter-spacing: .02em; }
.rc-card .rc-card__id { display: flex; flex-direction: column; gap: 1px; min-width: 0; margin: 0; padding: 0; }
.rc-card .rc-card__name { margin: 0; padding: 0; font: var(--weight-heading) var(--text-base)/1.3 var(--font-sans); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.rc-card .rc-card__name--link { background: none; border: 0; cursor: pointer; color: var(--ink); }
.rc-card .rc-card__name--link:hover { text-decoration: underline; }
.rc-card .rc-card__name--link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.rc-card .rc-card__role { margin: 0; padding: 0; font-size: var(--text-sm); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-card .rc-card__away { margin: 0; padding: 7px 10px; border-radius: 7px; background: #FBF1DE; color: #6B4A12; font-size: var(--text-sm); }
.rc-card .rc-card__lines { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.rc-card .rc-card__lines li { margin: 0; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.rc-card .rc-card__key { color: var(--ink-soft); }
.rc-card .rc-card__link { color: var(--accent); text-decoration: none; }
.rc-card .rc-card__link:hover { text-decoration: underline; }
.rc-card .rc-card__states { color: var(--ink-soft); white-space: normal; }
.rc-card .rc-card__note { margin: 0; padding: 0; font-size: var(--text-xs); color: var(--ink-soft); line-height: 1.5; }
/* src/modules/revenue/features/contacts/contactPage.css — the New contact record (docs/REFRESH_SPEC.md §5, "Contact").
   Loaded by ContactPage.jsx alone (the registry lets one file load a stylesheet, so a withdrawal can find it). The layout is
   the New dealer record's (accountPage.css), under this screen's own class: the two records share no stylesheet, because a
   New's stylesheet may be loaded by that New alone.
   EVERY RULE IS SCOPED UNDER .cp-screen, two classes deep, and that is load-bearing: the Classic/New wrapper's class starts
   with "cd-", so the global reset `[class^='cd-'] button { background: none; border: none; font: inherit }` (0,1,1) reaches
   every button in the record and outranks a single-class rule. Two classes (0,2,0) win (the New Reports found it).
   The root's own `* { margin: 0; padding: 0 }` is why every margin and padding here is stated.
   The rules that apply everywhere: colour means something — the workspace's accent for the app's own (active, links,
   confirmations), amber for "look here" (never touched, a line raised that their dealer doesn't carry, an order with no
   PO, a meeting nobody marked held, overdue, a write refused) and on one thing at a time: a word or a figure, never a
   sentence — a refusal is ink words after an amber dot, a read that failed is said in plain words (it isn't one of the
   spec's attention marks). Red only for destroying something, nothing for decoration; the content area near-white and
   the things on it white. Section headings in sentence case, as the spec names them ("Lines discussed", "Contact
   history"). Type is Geist only (Ryan, 2026-10-22): the
   name at --weight-title, Geist for everything else too — a figure (a count standing as a value, a history figure, an
   amount in a table) is Geist with tabular numerals (cp-num), never another face; a date, an age, a phone number or a
   number inside a sentence is plain Geist — and Geist Mono only for genuine code (cp-code: a PO number). Classes, not
   inline sizes: the root's phone rules rewrite inline grids. The logger keeps its own look — it is the app's one
   composer.
   THE WIDTH (Ryan, 2026-10-03: "tables and records should use the width they are given"): the band and the body fill the
   content area as the Classic record does — no maximum and no centring, the Classic's own 28px gutter — so the two columns
   and every tab's table take the width there is. A maximum sits only on prose: the Notes and Comments tabs (760px), an
   email's text (80ch) and an empty tab's why (72ch), each from the left gutter, never centred. */

.cp-screen { flex: 1 1 0; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; background: #FCFBF8; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.cp-screen .cp-wrap { padding: 0 var(--space-page-x) var(--space-page-bottom); box-sizing: border-box; }
.cp-screen .cp-head__in { padding: 18px var(--space-page-x) 0; box-sizing: border-box; }
.cp-screen button { font-family: inherit; }
.cp-screen .cp-num { font-variant-numeric: tabular-nums; }
.cp-screen .cp-code { font-family: var(--font-mono); font-size: 0.92em; }
.cp-screen .cp-muted { color: var(--ink-soft); }
.cp-screen .cp-small { font-size: 12px; }
.cp-screen .cp-attn { color: var(--amber); font-weight: 600; }
.cp-screen .cp-overdue { color: var(--amber); font-weight: 600; }
.cp-screen .cp-problem { flex-basis: 100%; margin: 6px 0 0; padding: 0; color: var(--ink); font-size: 12px; font-weight: 400; }
.cp-screen .cp-problem::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.cp-screen .cp-h2 { margin: 0; padding: 0; font: var(--weight-heading) 14px/1.3 var(--font-sans); color: var(--ink); }
.cp-screen .cp-h3 { margin: 0 0 6px; padding: 0; font: var(--weight-heading) 12px/1.3 var(--font-sans); color: var(--ink); }

/* Buttons, links, inputs */
.cp-screen .cp-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.cp-screen .cp-button:hover:not(:disabled) { border-color: var(--accent); }
.cp-screen .cp-button:disabled { opacity: .45; cursor: default; }
.cp-screen .cp-button:focus-visible, .cp-screen .cp-link:focus-visible, .cp-screen .cp-tab:focus-visible, .cp-screen .cp-rowlink:focus-visible, .cp-screen .cp-thread__head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cp-screen .cp-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cp-screen .cp-button--primary:hover:not(:disabled) { background: var(--accent-raised); }
.cp-screen .cp-button--danger { color: var(--danger); }
.cp-screen .cp-button--danger:hover:not(:disabled) { border-color: var(--danger); }
.cp-screen .cp-link { border: 0; background: none; padding: 0; color: var(--accent); font: 600 13px/1.3 var(--font-sans); cursor: pointer; text-decoration: none; text-underline-offset: 2px; text-align: left; }
.cp-screen .cp-link:hover { text-decoration: underline; }
.cp-screen .cp-link--plain { color: var(--ink); font-weight: 600; }
/* An expected zero is grey (Open work's "0 tasks open"). */
.cp-screen .cp-link--none { color: var(--ink-faint); font-weight: 400; }
.cp-screen .cp-input { box-sizing: border-box; min-width: 0; max-width: 100%; padding: 7px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.cp-screen .cp-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.cp-screen .cp-input--static { display: block; border-style: dashed; background: transparent; }
.cp-screen .cp-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 500 12px/18px var(--font-sans); white-space: nowrap; }
/* A status mark (primary contact, manufacturer staff) is information, not the app's own action: ink, never the accent.
   */
.cp-screen .cp-tag--mark { font-size: 11px; font-weight: 600; }
.cp-screen .cp-tag--quiet { background: transparent; border: 1px solid var(--hairline-strong); color: var(--ink-soft); }

/* The header band: the breadcrumb showing their dealer; the name, its badges and Edit and Delete at the right, on one line;
   the meta row; the tabs flush to its foot (the active tab's underline sits on the band's own bottom edge).
   THE META ROW (§4/§5: "on one line … separated by middots"; Ryan, 2026-10-03: "On the contact record a title field with
   seven roles pushes owner, email and mobile to the far right and forces source onto its own line. ... Give it a fixed grid
   rather than letting fields size to their content, truncate long values with the full text on hover"): one line of six
   equal columns — the spec's six — the values filling them in order with a middot between, so seven roles in a title stay
   in their own cell; what the Classic also showed (LinkedIn, source, address) carries on in a second line under the first
   columns (no middot opening a line). No labels, as the mock draws none: each is its value's
   dt, kept for a screen reader, and the value's hover says "Title: Buyer". A value is one line, cut with an ellipsis, and a
   cut one takes the keyboard's focus and opens to its full text there (MetaValue). Where the band is narrower the values
   wrap two to a line, and on a phone one to a line with its label beside it. The band is its own container: the columns
   follow the band's width, which the rail's collapse changes, not the window's. */
.cp-screen .cp-head { display: block; background: var(--white); border-bottom: 1px solid var(--hairline-strong); container: cp-band / inline-size; }
.cp-screen .cp-crumbs { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; color: var(--ink-soft); min-width: 0; }
.cp-screen .cp-crumbs__sep { color: var(--ink-faint); }
.cp-screen .cp-crumbs__here { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-screen .cp-titlerow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
/* The breadcrumb's dealer is a link that can be long: cut with an ellipsis, as the crumb's own words are. */
.cp-screen .cp-crumbs .cp-link { min-width: 0; max-width: 100%; }
.cp-screen .cp-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.cp-screen .cp-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; margin: 10px 0 0; padding: 0; min-width: 0; }
.cp-screen .cp-meta__item { display: flex; align-items: baseline; min-width: 0; max-width: 100%; }
.cp-screen .cp-meta__item:not(:first-child)::before { content: "·"; flex-shrink: 0; padding: 0 10px; color: var(--ink-faint); }
.cp-screen .cp-meta__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cp-screen .cp-meta__value { display: block; flex: 1 1 auto; margin: 0; padding: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink); }
/* A link or a button in a value is cut the same way, by its own ellipsis (a button is a box of its own, so the value's
   ellipsis can't reach its words), and keeps its line's height on a touch phone (the root lifts every button to 36px). */
.cp-screen .cp-meta__value .cp-link { display: inline-block; max-width: 100%; min-height: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }
.cp-screen .cp-meta__value:focus-within, .cp-screen .cp-meta__value:focus-visible { white-space: normal; overflow-wrap: anywhere; overflow: visible; }
.cp-screen .cp-meta__value:focus-within .cp-link { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.cp-screen .cp-meta__value:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.cp-screen .cp-head__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 0 0 0 auto; }
.cp-screen .cp-customs { margin: 8px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.cp-screen .cp-customs:empty { display: none; }
/* The tab row: it overlaps the band's border by 1px itself (margin-bottom), not each tab — a tab's own -1px made the row's
   content 1px taller than the row, and overflow-x: auto makes overflow-y auto too, so the row scrolled 1px under a
   trackpad even when every tab fit (Ryan, 2026-10-19: "sometimes scroll when they should not"). */
.cp-screen .cp-tabs { display: flex; gap: 2px; margin: var(--space-record-tabs-top) 0 -1px; padding: 0; overflow-x: auto; scrollbar-width: none; }
.cp-screen .cp-tab { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 9px 12px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-soft); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.cp-screen .cp-tab:hover { color: var(--ink); }
.cp-screen .cp-tab--on { color: var(--accent); border-bottom-color: var(--accent); }
.cp-screen .cp-tab__n { color: var(--ink-faint); font-weight: 500; }
.cp-screen .cp-tab--on .cp-tab__n { color: var(--accent); }

/* The body */
.cp-screen .cp-body { display: block; padding: var(--space-record-body-top) 0 0; }
.cp-screen .cp-card { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-record-card-gap); min-width: 0; padding: var(--space-record-card-y) var(--space-record-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.cp-screen .cp-card__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
/* Rows stretch, cards fill: whatever belongs at the bottom of a card sits there. */
.cp-screen .cp-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; padding: 8px 0 0; border-top: 1px solid var(--hairline); }
.cp-screen .cp-empty { margin: 0; padding: 6px 0; color: var(--ink-soft); font-size: 13px; }
.cp-screen .cp-empty--bad { color: var(--ink); }
.cp-screen .cp-empty--block { display: flex; flex-direction: column; gap: 4px; padding: 20px 16px; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.cp-screen .cp-empty__lead { margin: 0; padding: 0; color: var(--ink); font-weight: 600; }
.cp-screen .cp-empty__why { margin: 0; padding: 0; color: var(--ink-soft); max-width: 72ch; }

/* Overview: two equal columns, the rows stretched so both end level. */
.cp-screen .cp-overview { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-panel-gap); align-items: stretch; }
.cp-screen .cp-col { display: flex; flex-direction: column; gap: var(--space-panel-gap); min-width: 0; }
/* The logger stretches to the column's height; its own footer sits at the bottom (ActivityLoggerPanel's fill). Visible
   overflow: its pickers open over what is below. */
.cp-screen .cp-logcard { flex: 1 1 auto; padding: 0; gap: 0; overflow: visible; }
/* The other contacts at their dealer and the open work: two equal-height cards side by side (§5), a phone's one above the
   other. */
.cp-screen .cp-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-panel-gap); align-items: stretch; }
.cp-screen .cp-mini { gap: 8px; }
.cp-screen .cp-minilist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
/* Two lines per person, as the dealer record's cards: the name, then what is said about them — each one line, cut short
   with an ellipsis. (The brands card's rows keep one line: a brand, then its docs at the right.) */
.cp-screen .cp-minilist li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.cp-screen .cp-minilist li > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-screen .cp-minilist li > :not(:first-child) { flex-shrink: 0; white-space: nowrap; }
.cp-screen .cp-minilist--people li { flex-direction: column; align-items: flex-start; gap: 1px; }
.cp-screen .cp-minilist--people li > * { max-width: 100%; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-screen .cp-minilist__sub { color: var(--ink-soft); font-size: 12px; }
/* Open work reads as sentences, not a name and a date. */
.cp-screen .cp-minilist--words li { display: block; }
/* The activity: a fixed height that fills what the logger leaves, scrolling inside. */
.cp-screen .cp-card--activity { flex: 1 0 360px; min-height: 360px; overflow: hidden; padding-bottom: var(--space-record-card-y); }
.cp-screen .cp-feed { flex: 1 1 0; min-height: 0; overflow-y: auto; margin: 0 calc(-1 * var(--space-record-card-x)); padding: 0 4px; }
.cp-screen .cp-acticon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--parchment); flex-shrink: 0; }

/* Contact history: four figures, each with what it is */
.cp-screen .cp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-panel-gap); margin: 0; padding: 0; }
.cp-screen .cp-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; padding: 0; }
.cp-screen .cp-stat__label { margin: 0; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.cp-screen .cp-stat__value { margin: 0; padding: 0; font-size: 20px; line-height: 1.2; color: var(--ink); }
.cp-screen .cp-stat__sub { margin: 0; padding: 0; font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }

/* Lines discussed: their dealer's lines, then the lines raised that it doesn't carry */
.cp-screen .cp-linegroup { display: flex; flex-direction: column; gap: 4px; }
.cp-screen .cp-linegroup--notcarried { padding: 10px 0 0; border-top: 1px solid var(--hairline); }
/* The dealer's lines not raised with them since: grey, the spec's "nothing is there" (Ryan, 2026-10-09: "Grey. It is a fact
   about a field, not a problem with the contact.") — not muted ink, which is a count of a recording gap, nor amber. */
.cp-screen .cp-notraised { margin: 0; padding: 0; color: var(--ink-faint); }
.cp-screen .cp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cp-screen .cp-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 500 12px/18px var(--font-sans); white-space: nowrap; }
/* Not carried: the other half of the split, in the logger's own amber (NOT_CARRIED_AMBER, set on .cp-screen as
   --cp-notcarried by ContactPage.jsx) — a filled pill with white on it, as the logger draws a picked line the dealer doesn't
   carry: amber text on a tint falls below 4.5:1, white on the fill reads about 5:1. */
.cp-screen .cp-chip--notcarried { background: var(--cp-notcarried); color: var(--white); font-weight: 600; }

/* Tabs' panels */
.cp-screen .cp-tabpanel { display: flex; flex-direction: column; gap: var(--space-panel-gap); }
/* Notes and comments are read, not scanned: a reading column from the left gutter, never the record's full width. */
.cp-screen .cp-tabpanel--prose { max-width: 760px; }
.cp-screen .cp-tabhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cp-screen .cp-tabhead .cp-button--primary { margin-left: auto; }
.cp-screen .cp-tablewrap { overflow-x: auto; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.cp-screen .cp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.cp-screen .cp-table th { padding: var(--space-record-row-y) 12px; text-align: left; border-bottom: 1px solid var(--hairline-strong); color: var(--ink-soft); font: 600 11px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.cp-screen .cp-table td { padding: var(--space-record-row-y) 12px; border-top: 1px solid var(--hairline); vertical-align: middle; }
.cp-screen .cp-table tbody tr:first-child td { border-top: 0; }
.cp-screen .cp-th--num, .cp-screen .cp-td--num { text-align: right; white-space: nowrap; }
.cp-screen .cp-td--primary { font-weight: 600; min-width: 160px; }
.cp-screen .cp-rowlink { padding: 0; border: 0; background: none; color: var(--ink); font: 600 13px/1.35 var(--font-sans); text-align: left; cursor: pointer; }
.cp-screen .cp-rowlink:hover { color: var(--accent); }
/* A name that is a link (open in a new tab, landing 2): drawn as the button it was; a link's underline goes. */
.cp-screen .cp-rowlink { text-decoration: none; }
.cp-screen .cp-activity { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-panel-gap); align-items: start; }
.cp-screen .cp-rail { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.cp-screen .cp-railfield { display: flex; flex-direction: column; gap: 4px; }
.cp-screen .cp-railfield__label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.cp-screen .cp-rail p { margin: 0; padding: 0; }
.cp-screen .cp-months { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* The tasks' rows are the records' one TaskRows, with its own stylesheet (src/modules/revenue/features/records/). */
/* The cadence card is the app's own (shared with the lead record); its rows stay inside this card on a phone. */
.cp-screen .cp-cadence { overflow-x: hidden; }

/* Email threads */
.cp-screen .cp-threads { margin: 0; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.cp-screen .cp-thread { border-top: 1px solid var(--hairline); min-width: 0; }
.cp-screen .cp-thread:first-child { border-top: 0; }
.cp-screen .cp-thread__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: var(--space-record-row-y) 16px; border: 0; background: none; color: var(--ink); font: 400 13px/1.35 var(--font-sans); text-align: left; cursor: pointer; }
.cp-screen .cp-thread__head:hover { background: var(--parchment); }
.cp-screen .cp-dir { display: inline-block; min-width: 64px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.cp-screen .cp-thread__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-screen .cp-thread__subject { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-screen .cp-thread__preview { color: var(--ink-soft); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-screen .cp-thread__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--ink-soft); }
.cp-screen .cp-msgs { margin: 0; padding: 0 16px 12px 92px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cp-screen .cp-msg { padding: 10px 0 0; border-top: 1px solid var(--hairline); }
.cp-screen .cp-msg__head { font-size: 12px; overflow-wrap: anywhere; }
.cp-screen .cp-msg__body { margin: 4px 0 0; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); font-size: 13px; max-width: 80ch; }

/* The edit drawer */
.cp-screen .cp-backdrop { position: fixed; inset: 0; z-index: 220; background: rgba(15, 42, 34, .35); }
.cp-screen .cp-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 221; box-sizing: border-box; width: min(480px, 100vw); display: flex; flex-direction: column; background: var(--white); box-shadow: var(--shadow-xl); }
.cp-screen .cp-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.cp-screen .cp-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 4px 20px 20px; }
.cp-screen .cp-drawer__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); }
.cp-screen .cp-fieldset { margin: 16px 0 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cp-screen .cp-legend { margin: 0 0 4px; padding: 0; font: 600 14px/1.3 var(--font-sans); color: var(--ink); }
.cp-screen .cp-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cp-screen .cp-field__label { font-size: 12px; font-weight: 600; color: var(--ink); }
.cp-screen .cp-fieldpair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.cp-screen .cp-checkfield { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.cp-screen .cp-checkfield input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.cp-screen .cp-customedit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cp-screen .cp-customedit:empty { display: none; }

/* The meta row (Ryan, 2026-10-19: "tight: items separated by a middot with a normal gap, flowing left, wrapping if it must"):
   values sized to their words, a middot between them, wrapping where the band runs out; on a phone's width each value is a
   line, its label beside it, with no middots. */
@container cp-band (max-width: 536px) {
  .cp-screen .cp-meta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cp-screen .cp-meta__item:not(:first-child)::before { content: none; }
  .cp-screen .cp-meta__item { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: baseline; gap: 10px; }
  .cp-screen .cp-meta__label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
}

/* The phone (cp-screen--phone): one column, a 16px gutter, the tabs scroll sideways, tables become cards, the drawer a full
   sheet. THE PHONE IS THE APP'S MOBILE SETTING, not the width alone: the record adds cp-screen--phone when useIsMobile says
   so (a narrow window, unless the platform's mobile_enabled is off), as the Classic lays itself out by that same answer —
   and the same answer puts the logger first (ContactPage.jsx, phoneFirst), so the one column and the logger's place agree.
   A width query here laid a phone out in one column with the logger last whenever the setting was off. Three classes deep
   (0,3,0), so each outranks the rule it restates whatever its place. */
.cp-screen.cp-screen--phone .cp-wrap { padding: 0 16px 24px; }
.cp-screen.cp-screen--phone .cp-head__in { padding: 14px 16px 0; }
.cp-screen.cp-screen--phone .cp-h1 { font-size: var(--text-page-title-phone); }
.cp-screen.cp-screen--phone .cp-tabs { margin-right: -16px; padding-right: 16px; }
.cp-screen.cp-screen--phone .cp-body { padding-top: 14px; }
.cp-screen.cp-screen--phone .cp-overview { grid-template-columns: minmax(0, 1fr); }
.cp-screen.cp-screen--phone .cp-duo { grid-template-columns: minmax(0, 1fr); }
.cp-screen.cp-screen--phone .cp-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cp-screen.cp-screen--phone .cp-card--activity { flex: 0 0 auto; height: 360px; }
.cp-screen.cp-screen--phone .cp-logcard { flex: 0 0 auto; }
.cp-screen.cp-screen--phone .cp-activity { grid-template-columns: minmax(0, 1fr); }
.cp-screen.cp-screen--phone .cp-rail { position: static; }
.cp-screen.cp-screen--phone .cp-tablewrap { overflow: visible; }
.cp-screen.cp-screen--phone .cp-table thead { display: none; }
.cp-screen.cp-screen--phone .cp-table, .cp-screen.cp-screen--phone .cp-table tbody, .cp-screen.cp-screen--phone .cp-table tr, .cp-screen.cp-screen--phone .cp-table td { display: block; width: auto; }
.cp-screen.cp-screen--phone .cp-table tr { padding: 12px 14px; border-top: 1px solid var(--hairline); }
.cp-screen.cp-screen--phone .cp-table tbody tr:first-child { border-top: 0; }
.cp-screen.cp-screen--phone .cp-table td { padding: 1px 0; border: 0; text-align: left; }
.cp-screen.cp-screen--phone .cp-table td[data-label]::before { content: attr(data-label) " · "; color: var(--ink-faint); }
/* A card names only what the row holds: an empty cell is not a bare label. */
.cp-screen.cp-screen--phone .cp-table td:empty { display: none; }
.cp-screen.cp-screen--phone .cp-table td.cp-td--primary::before { content: none; }
.cp-screen.cp-screen--phone .cp-td--primary { min-width: 0; margin-bottom: 3px; }
.cp-screen.cp-screen--phone .cp-thread__head { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; }
.cp-screen.cp-screen--phone .cp-dir { grid-column: 1 / -1; }
.cp-screen.cp-screen--phone .cp-msgs { padding: 0 14px 12px; }
.cp-screen.cp-screen--phone .cp-fieldpair { grid-template-columns: minmax(0, 1fr); }
.cp-screen.cp-screen--phone .cp-drawer { width: 100vw; }
.cp-screen.cp-screen--phone .cp-input { font-size: 16px; }
/* src/modules/revenue/features/imports/importPage.css — the New Import Wizard (docs/REFRESH_SPEC.md §8).
   EVERY RULE IS SCOPED TWO CLASSES DEEP under .ip-screen: the Classic/New wrapper's class starts with "cd-", so the global
   reset `[class^="cd-"] button { background: none; border: none; font: inherit }` (0,1,1) reaches every button here and
   outranks a single-class rule. Two classes (0,2,0) win.
   The rules that apply everywhere: colour means something — the workspace's accent for the app's own (the step you're
   on, a choice made, the primary button), amber for "look here" (a row skipped or refused, a value that lands
   differently, a required field with no column), one thing at a time: an amber edge, a figure, a pill, a panel's ground
   with the words in ink, never a sentence in amber. A failed read, an instruction or a stopped import is not the file
   asking to be looked at: a plain notice, in ink (the look pass, 2026-10-05). A row that will be created is the ordinary
   case, so its pill is plain. Nothing is red, since nothing here destroys anything.
   Content near-white, cards white. Type is Geist only (Ryan, 2026-10-22): the page title at --weight-title,
   everything else the same face (--font-sans), and no other face named; a figure compared down a column or
   across the tiles (the counts, the Row numbers, the step numbers) in tabular numerals of the same face (.ip-num), a
   number inside a sentence plain. Classes, not inline sizes (the one inline style is the progress bar's length).
   THE WIDTH (Ryan, 2026-10-03): the screen fills the content area as the Classic does, with the Classic's own gutter (its
   step body is padded 28px 32px) — no maximum and no centring on the page, the tables and the tiles take the width there
   is. A maximum sits only on prose (72ch), from the left gutter. Phone: 16px gutters, nothing past the viewport. */

.ip-screen { flex: 1 1 0; min-height: 0; min-width: 0; display: flex; flex-direction: column; background: #FCFBF8; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.ip-screen .ip-body { flex: 1 1 0; min-height: 0; overflow-y: auto; }
.ip-screen .ip-wrap { padding: 28px 32px 40px; box-sizing: border-box; }
.ip-screen .ip-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ip-screen .ip-head__text { min-width: 0; }
.ip-screen .ip-h1 { margin: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); }
.ip-screen .ip-sub { margin: var(--space-page-sub) 0 0; color: var(--ink-soft); font-size: var(--text-page-sub); }
.ip-screen .ip-h2 { margin: 0 0 8px; font: 600 12px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.ip-screen .ip-h3 { margin: 22px 0 8px; font: var(--weight-heading) 14px/1.3 var(--font-sans); color: var(--ink); }
.ip-screen .ip-box .ip-h3 { margin-top: 0; }
.ip-screen .ip-section { margin-top: 26px; }
.ip-screen .ip-read { margin: 0 0 10px; max-width: 72ch; font-size: 14px; line-height: 1.55; }
.ip-screen .ip-summary { color: var(--ink-soft); }
.ip-screen .ip-muted { color: var(--ink-soft); }
.ip-screen .ip-small { font-size: 12.5px; }
.ip-screen .ip-num { font-variant-numeric: tabular-nums; }
.ip-screen .ip-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.ip-screen .ip-promise { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }

/* The steps */
.ip-screen .ip-steps { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; margin: 20px 0 0; padding: 0; }
.ip-screen .ip-step { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--white); border: 1px solid var(--hairline); color: var(--ink-soft); font-size: 13px; }
.ip-screen .ip-step__n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--parchment-dim); font: 600 12px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.ip-screen .ip-step--done { color: var(--ink); }
.ip-screen .ip-step--now { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.ip-screen .ip-step--now .ip-step__n { background: var(--accent); color: var(--on-accent); }
.ip-screen .ip-stepline { display: none; margin: 14px 0 0; font-size: 13px; font-weight: 600; color: var(--ink); }

/* Buttons, links, choices */
.ip-screen .ip-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.ip-screen .ip-button:hover:not(:disabled) { border-color: var(--accent); }
.ip-screen .ip-button:disabled { opacity: .45; cursor: default; }
.ip-screen .ip-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ip-screen .ip-button--primary:hover:not(:disabled) { background: var(--accent-raised); }
.ip-screen .ip-link { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-underline-offset: 2px; }
.ip-screen .ip-link:hover { text-decoration: underline; }
.ip-screen .ip-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; align-items: stretch; }
.ip-screen .ip-kind { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; cursor: pointer; color: var(--ink); font: inherit; }
.ip-screen .ip-kind:hover { border-color: var(--accent); }
.ip-screen .ip-kind--on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ip-screen .ip-kind__name { font-weight: var(--weight-heading); font-size: 15px; }
.ip-screen .ip-kind__meta { font-size: 12.5px; color: var(--ink-soft); }
.ip-screen .ip-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.ip-screen .ip-chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 500 13px/1.3 var(--font-sans); cursor: pointer; }
.ip-screen .ip-chip:hover { border-color: var(--accent); }
.ip-screen .ip-chip--on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.ip-screen .ip-help { margin-top: 12px; padding: 12px 16px; background: var(--white); border: 1px solid var(--hairline); border-radius: 10px; max-width: 72ch; }
.ip-screen .ip-help__title { margin: 0 0 6px; font-weight: var(--weight-heading); font-size: 13px; }
.ip-screen .ip-help__steps { margin: 0 0 4px; padding-left: 20px; font-size: 13px; line-height: 1.6; }
.ip-screen .ip-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 36px 20px; border: 2px dashed var(--hairline-strong); border-radius: 14px; background: var(--white); cursor: pointer; text-align: center; margin-bottom: 12px; }
.ip-screen .ip-drop:hover, .ip-screen .ip-drop--over { border-color: var(--accent); }
/* The ring only when the file box has the keyboard's focus. A click on the zone can focus the hidden box as well, and
   :focus-within would then keep the ring on after the file dialog closes. */
.ip-screen .ip-drop:has(:focus-visible) { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.ip-screen .ip-drop--off { cursor: default; opacity: .6; }
.ip-screen .ip-drop--off:hover { border-color: var(--hairline-strong); }
.ip-screen .ip-drop__main { font-weight: 600; font-size: 15px; }
.ip-screen .ip-drop__kinds { font-size: 12.5px; color: var(--ink-soft); }
/* A notice: a sentence in ink in a plain card; the amber panel's ground only where the file needs a look. */
.ip-screen .ip-notice { margin: 0 0 12px; padding: 10px 14px; max-width: 72ch; border: 1px solid var(--hairline); border-radius: 10px; background: var(--white); color: var(--ink); font-size: 13.5px; line-height: 1.5; }
.ip-screen .ip-notice p { margin: 0 0 8px; }
.ip-screen .ip-notice--attn { border-color: transparent; background: var(--amber-soft); }

/* The columns */
.ip-screen .ip-map { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; margin: 6px 0 14px; }
.ip-screen .ip-map th, .ip-screen .ip-map td { text-align: left; vertical-align: top; padding: var(--space-row-y) 12px; border-top: 1px solid var(--hairline); font-size: 13px; }
.ip-screen .ip-map thead th { border-top: 0; font: 600 11px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--hairline-strong); }
.ip-screen .ip-map tbody tr:first-child th, .ip-screen .ip-map tbody tr:first-child td { border-top: 0; }
.ip-screen .ip-map tbody th { font-weight: 400; width: 34%; }
.ip-screen .ip-map__field { display: block; font-weight: 600; }
.ip-screen .ip-map__note { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-soft); }
.ip-screen .ip-map__row--missing th { box-shadow: inset 3px 0 0 var(--amber); }
.ip-screen .ip-map__row--missing .ip-req { color: var(--amber); }
.ip-screen .ip-req { color: var(--ink-soft); }
.ip-screen .ip-map__sample { color: var(--ink); overflow-wrap: anywhere; }
.ip-screen .ip-select { box-sizing: border-box; width: 100%; max-width: 360px; padding: 6px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.ip-screen .ip-select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.ip-screen .ip-preview { overflow-x: auto; margin: 0 0 14px; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.ip-screen .ip-grid { min-width: 100%; border-collapse: separate; border-spacing: 0; }
.ip-screen .ip-grid th, .ip-screen .ip-grid td { text-align: left; vertical-align: top; padding: var(--space-row-y) 12px; font-size: 13px; white-space: nowrap; border-top: 1px solid var(--hairline); }
.ip-screen .ip-grid thead th { border-top: 0; border-bottom: 1px solid var(--hairline-strong); font: 600 11px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.ip-screen .ip-grid tbody tr:first-child td { border-top: 0; }
.ip-screen .ip-grid .ip-grid__n { width: 40px; color: var(--ink-soft); }
.ip-screen .ip-grid__v { display: block; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; }

/* The dry run: the centrepiece, and beside it the file, its columns and the match, each a card. */
.ip-screen .ip-dry { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-section-gap); align-items: stretch; }
.ip-screen .ip-dry__main { min-width: 0; }
.ip-screen .ip-dry__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ip-screen .ip-h2--lead { margin: 0 0 14px; font: var(--weight-heading) 18px/1.3 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.ip-screen .ip-card { padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.ip-screen .ip-card__h { margin: 0 0 8px; font: 600 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.ip-screen .ip-card .ip-read { margin: 0; }
.ip-screen .ip-cols { list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; }
.ip-screen .ip-cols__row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--hairline); }
.ip-screen .ip-cols__row:first-child { border-top: 0; }
.ip-screen .ip-cols__field { font-weight: 600; }
.ip-screen .ip-cols__col { color: var(--ink-soft); text-align: right; overflow-wrap: anywhere; }
.ip-screen .ip-match { margin: 0; }
.ip-screen .ip-match__label { margin: 0 0 6px; font-weight: 600; font-size: 13px; }
.ip-screen .ip-match .ip-small { margin: 6px 0 0; }
.ip-screen .ip-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--hairline-strong); border-radius: 9px; overflow: hidden; background: var(--white); }
.ip-screen .ip-seg__opt { padding: 7px 14px; border: 0; border-left: 1px solid var(--hairline); background: var(--white); color: var(--ink); font: 500 13px/1.2 var(--font-sans); cursor: pointer; }
.ip-screen .ip-seg__opt:first-child { border-left: 0; }
.ip-screen .ip-seg__opt--on { background: var(--accent); color: var(--on-accent); }
.ip-screen .ip-seg__opt:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.ip-screen .ip-seg__opt--on:focus-visible { outline-color: var(--white); }
.ip-screen .ip-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-panel-gap); align-items: stretch; margin: 6px 0 4px; }
.ip-screen .ip-tiles--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ip-screen .ip-tile { display: flex; flex-direction: column; gap: 2px; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.ip-screen .ip-tile__n { font-size: 26px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.ip-screen .ip-tile__label { font: 600 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.ip-screen .ip-tile__sub { margin-top: auto; font-size: 12px; color: var(--ink-soft); }
.ip-screen .ip-tile--attn { border-color: var(--amber); }
.ip-screen .ip-tile--attn .ip-tile__n { color: var(--amber); }
.ip-screen .ip-reasons, .ip-screen .ip-notes { list-style: none; margin: 0; padding: 0; }
.ip-screen .ip-reason { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; margin-bottom: 8px; background: var(--white); border: 1px solid var(--hairline); border-left: 3px solid var(--amber); border-radius: 8px; }
.ip-screen .ip-reason__text { font-weight: 600; }
.ip-screen .ip-reason__rows { font-size: 12.5px; color: var(--ink-soft); }
.ip-screen .ip-box { margin: var(--space-section-gap) 0 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 10px; }
.ip-screen .ip-box--attn { border-left: 3px solid var(--amber); }
.ip-screen .ip-box__line { margin: 0 0 4px; font-size: 13.5px; line-height: 1.5; }
.ip-screen .ip-note { font-size: 13.5px; line-height: 1.5; margin-bottom: 6px; }
.ip-screen .ip-rows { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.ip-screen .ip-rows th { text-align: left; padding: var(--space-row-y) 12px; font: 600 11px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--hairline-strong); }
.ip-screen .ip-rows td { padding: var(--space-row-y) 12px; font-size: 13px; border-top: 1px solid var(--hairline); vertical-align: top; }
.ip-screen .ip-rows tbody tr:first-child td { border-top: 0; }
.ip-screen .ip-rows .ip-rows__n { width: 56px; color: var(--ink-soft); }
.ip-screen .ip-rows__name { font-weight: 600; overflow-wrap: anywhere; }
.ip-screen .ip-out { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 600 11.5px/1.5 var(--font-sans); background: var(--parchment-dim); color: var(--ink); }
.ip-screen .ip-out--create { background: none; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.ip-screen .ip-out--skip, .ip-screen .ip-out--refuse { background: var(--amber-soft); color: var(--amber); }

/* The import */

/* The foot: Back, and Continue or Import, always in view */
.ip-screen .ip-foot { flex: none; border-top: 1px solid var(--hairline); background: var(--white); }
.ip-screen .ip-foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 32px; }
.ip-screen .ip-foot__go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* On a touch phone the root lifts every button to 36px (CadenceRepImpl.jsx, pointer: coarse); a link stays a line. */
.ip-screen .ip-link { min-height: 0; }

@media (max-width: 767px) {
  .ip-screen .ip-wrap { padding: 16px 16px 24px; }
  .ip-screen .ip-h1 { font-size: var(--text-page-title-phone); }
  .ip-screen .ip-steps { display: none; }
  .ip-screen .ip-stepline { display: block; }
  .ip-screen .ip-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-screen .ip-dry { grid-template-columns: minmax(0, 1fr); }
  .ip-screen .ip-tiles { grid-template-columns: 1fr; gap: 8px; }
  .ip-screen .ip-tiles--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-screen .ip-tiles:not(.ip-tiles--four) .ip-tile { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 10px 14px; }
  .ip-screen .ip-tiles:not(.ip-tiles--four) .ip-tile__sub { margin-top: 0; }
  .ip-screen .ip-tile__n { font-size: 22px; }
  .ip-screen .ip-map, .ip-screen .ip-rows { border: 0; background: none; border-radius: 0; overflow: visible; }
  .ip-screen .ip-map thead, .ip-screen .ip-rows thead { display: none; }
  .ip-screen .ip-map tbody, .ip-screen .ip-rows tbody { display: block; }
  .ip-screen .ip-map tr, .ip-screen .ip-rows tr { display: block; margin-bottom: 8px; padding: 10px 12px; background: var(--white); border: 1px solid var(--hairline); border-radius: 10px; }
  .ip-screen .ip-map th, .ip-screen .ip-map td, .ip-screen .ip-rows td { display: block; width: auto; padding: 2px 0; border: 0; }
  .ip-screen .ip-map tbody th { width: auto; }
  .ip-screen .ip-map__row--missing { box-shadow: inset 3px 0 0 var(--amber); }
  .ip-screen .ip-map__row--missing th { box-shadow: none; }
  .ip-screen .ip-map td[data-label]::before, .ip-screen .ip-rows td[data-label]::before { content: attr(data-label) " · "; color: var(--ink-faint); font-size: 11px; }
  .ip-screen .ip-map td .ip-select { max-width: 100%; margin-top: 4px; }
  .ip-screen .ip-rows td.ip-rows__n, .ip-screen .ip-rows td.ip-rows__name { display: inline; }
  .ip-screen .ip-rows td.ip-rows__n::before { content: "Row "; font-size: 12px; color: var(--ink-soft); }
  .ip-screen .ip-rows td.ip-rows__name::before { content: " · "; font-size: 12px; color: var(--ink-faint); }
  .ip-screen .ip-rows td.ip-rows__what { margin-top: 4px; }
  .ip-screen .ip-rows td.ip-rows__what::before { content: none; }
  .ip-screen .ip-foot__in { padding: 10px 16px; }
  .ip-screen .ip-foot__go { gap: 8px; }
  .ip-screen .ip-promise { font-size: 12px; }
}
/* src/modules/revenue/features/orders/orderPage.css — the New order record (docs/REFRESH_SPEC.md §5, "Order").
   Loaded by OrderPage.jsx alone (the registry lets one file load a stylesheet, so a withdrawal can find it).
   EVERY RULE IS SCOPED UNDER .op-screen, two classes deep: the switch's wrapper class starts with "cd-", and the global
   reset `[class^='cd-'] button { background: none; border: none; font: inherit }` outranks a single-class rule on a button.
   The root's own `* { margin: 0; padding: 0 }` is why every margin and padding here is stated.
   Colour means something: the workspace's accent for the app's own (the current status, links, the confirm), amber for
   "look here" (a status not reached yet, a line the dealer doesn't carry, an order with no PO, a write refused, a line row
   with no line picked, a task's "3d overdue" and the overdue count) and on one thing at a time — a word or a figure, never
   a sentence or a panel: a refusal, and the warning before a move, are ink words after an amber dot; a read that failed
   is said in plain words (it isn't one of the spec's attention marks), and so is when an order counts. Red only for what
   destroys: Delete, and cancelling an order (§ Colour: "Delete, remove, cancel an order"). Nothing for decoration — a
   status is ink, and so is a task's priority (said in words). Section headings in sentence case, as the spec names them
   ("Where it is", "Lines on this order"). Type is Geist only, by
   token: the name at --weight-title; Geist for everything else too; a figure (an amount, a count) Geist with
   tabular numerals (op-num); Geist Mono only for the PO number (op-code). A date is plain.
   THE WIDTH: the band and the body fill the content area as the Classic record does — no maximum, the Classic's 28px
   gutter (16px on a phone); a maximum sits only on prose (Notes, Comments, an empty tab's why).
   THE PHONE is the app's mobile setting, not the width alone: the record adds op-screen--phone when useIsMobile says so (the
   setting on and the window under 768px), as the Classic record laid itself out. The band's meta grid still follows the
   band's own width (a container query), at any setting. */

.op-screen { flex: 1 1 0; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; background: color-mix(in srgb, var(--parchment) 45%, var(--white)); color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.op-screen .op-wrap { padding: 0 var(--space-page-x) var(--space-page-bottom); box-sizing: border-box; }
.op-screen .op-head__in { padding: 18px var(--space-page-x) 0; box-sizing: border-box; }
.op-screen button, .op-screen select, .op-screen input { font-family: inherit; }
.op-screen .op-num { font-variant-numeric: tabular-nums; }
.op-screen .op-code { font-family: var(--font-mono); font-size: 0.92em; }
.op-screen .op-muted { color: var(--ink-soft); }
.op-screen .op-small { font-size: 12px; }
.op-screen .op-strong { margin: 0; padding: 0; font-weight: 600; color: var(--ink); }
.op-screen .op-attn { margin: 0; padding: 0; color: var(--amber); font-weight: 600; }
.op-screen .op-problem { display: block; margin: 6px 0 0; padding: 0; color: var(--ink); font-size: 12px; font-weight: 400; }
.op-screen .op-problem::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.op-screen .op-note { margin: 0; padding: 0; color: var(--ink-soft); font-size: 12px; }
.op-screen .op-note--quiet { color: var(--ink-soft); max-width: 72ch; }
.op-screen .op-h2 { margin: 0; padding: 0; font: var(--weight-heading) 14px/1.3 var(--font-sans); color: var(--ink); }
.op-screen .op-h3 { margin: 0; padding: 0; font: var(--weight-heading) 15px/1.3 var(--font-sans); color: var(--ink); }

/* Buttons, links, inputs */
.op-screen .op-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.op-screen .op-button:hover:not(:disabled) { border-color: var(--accent); }
.op-screen .op-button:disabled { opacity: .45; cursor: default; }
.op-screen .op-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.op-screen .op-button--primary:hover:not(:disabled) { background: var(--accent-raised); }
.op-screen .op-button--danger { color: var(--danger); }
.op-screen .op-button--danger:hover:not(:disabled) { border-color: var(--danger); }
.op-screen .op-button--small { padding: 4px 10px; font-size: 12px; }
.op-screen .op-button--quiet { color: var(--ink-soft); }
.op-screen .op-button:focus-visible, .op-screen .op-link:focus-visible, .op-screen .op-tab:focus-visible, .op-screen .op-pill:focus-visible, .op-screen .op-rowlink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.op-screen .op-link { border: 0; background: none; padding: 0; color: var(--accent); font: 600 13px/1.3 var(--font-sans); cursor: pointer; text-decoration: none; text-underline-offset: 2px; }
.op-screen .op-link:hover { text-decoration: underline; }
.op-screen .op-link:disabled { opacity: .5; cursor: default; }
.op-screen .op-link--plain { color: var(--ink); font-weight: 500; }
.op-screen .op-input { box-sizing: border-box; width: 100%; min-width: 0; padding: 7px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.op-screen .op-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.op-screen .op-input--code { font-family: var(--font-mono); font-size: 12px; }

/* The header band */
.op-screen .op-head { display: block; background: var(--white); border-bottom: 1px solid var(--hairline-strong); container: op-band / inline-size; }
.op-screen .op-crumbs { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; color: var(--ink-soft); min-width: 0; }
.op-screen .op-crumbs__sep { color: var(--ink-faint); }
.op-screen .op-crumbs__up { flex-shrink: 0; white-space: nowrap; }
.op-screen .op-crumbs__here { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The name, and Edit and Delete pushed to the end of its line. */
.op-screen .op-titlerow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.op-screen .op-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
/* "in flight" or "counts toward attainment" (§5: "Where it is"'s header): a fact in ink; counting is the one the eye looks
   for, so it takes the accent. */
.op-screen .op-status { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--hairline-strong); font: 600 12px/18px var(--font-sans); color: var(--ink); white-space: nowrap; }
.op-screen .op-status--counts { border-color: var(--accent); color: var(--accent); }
.op-screen .op-status--unknown { border-color: var(--amber); color: var(--amber); }
/* THE META ROW (§5: dealer, location, PO, ordered date, owner, project — on one line, as the dealer record's): six equal
   columns with a middot between, the Classic header's status and total carrying on in a second line under the first
   columns (no middot opening a line). No labels, as the mock draws none: each is its value's dt, kept for a screen reader,
   and the value's hover says "PO: PO-1182". Two to a line where the band is narrower, one on a phone, label beside value. */
.op-screen .op-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; margin: 10px 0 0; padding: 0; min-width: 0; }
.op-screen .op-meta__item { display: flex; align-items: baseline; min-width: 0; max-width: 100%; }
.op-screen .op-meta__item:not(:first-child)::before { content: "·"; flex-shrink: 0; padding: 0 10px; color: var(--ink-faint); }
.op-screen .op-meta__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.op-screen .op-meta__value { display: block; flex: 1 1 auto; margin: 0; padding: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink); }
.op-screen .op-meta__value .op-link { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }
.op-screen .op-customs { margin: 8px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.op-screen .op-customs:empty { display: none; }
.op-screen .op-head__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 0 0 0 auto; }
/* The tab row: it overlaps the band's border by 1px itself (margin-bottom), not each tab — a tab's own -1px made the row's
   content 1px taller than the row, and overflow-x: auto makes overflow-y auto too, so the row scrolled 1px under a
   trackpad even when every tab fit (Ryan, 2026-10-19: "sometimes scroll when they should not"). */
.op-screen .op-tabs { display: flex; gap: 2px; margin: var(--space-record-tabs-top) 0 -1px; padding: 0; overflow-x: auto; scrollbar-width: none; }
.op-screen .op-tab { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 9px 12px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-soft); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.op-screen .op-tab:hover { color: var(--ink); }
.op-screen .op-tab--on { color: var(--accent); border-bottom-color: var(--accent); }
.op-screen .op-tab__n { color: var(--ink-faint); font-weight: 500; }
.op-screen .op-tab--on .op-tab__n { color: var(--accent); }
.op-screen .op-tab__overdue { color: var(--amber); font-weight: 600; }
.op-screen .op-overdue { color: var(--amber); font-weight: 600; }

/* The body */
.op-screen .op-body { display: flex; flex-direction: column; gap: var(--space-panel-gap); padding: var(--space-record-body-top) 0 0; }
.op-screen .op-card { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-record-card-gap); min-width: 0; padding: var(--space-record-card-y) var(--space-record-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.op-screen .op-card--flush { padding: 0; gap: 0; overflow: hidden; }
.op-screen .op-card__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
/* Rows stretch, cards fill: whatever belongs at the bottom of a card sits there. */
.op-screen .op-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; padding: 8px 0 0; border-top: 1px solid var(--hairline); }
.op-screen .op-empty { margin: 0; padding: 6px 0; color: var(--ink-soft); font-size: 13px; }
.op-screen .op-empty--bad { color: var(--ink); }

/* The status track: pills, the counting ones underlined (§5). */
.op-screen .op-track__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.op-screen .op-pill { flex: 1 1 110px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink-soft); font: 500 12px/1.4 var(--font-sans); cursor: pointer; white-space: nowrap; }
.op-screen .op-pill:hover:not(:disabled) { border-color: var(--accent); color: var(--ink); }
.op-screen .op-pill:disabled { cursor: default; }
.op-screen .op-pill--counts { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.op-screen .op-pill--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.op-screen .op-pill--asked { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.op-screen .op-track__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.op-screen .op-ask { display: flex; flex-direction: column; gap: 6px; padding: 12px 0 0; border-top: 1px solid var(--hairline); }
.op-screen .op-ask__q { margin: 0; padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
/* Ryan's sentences, one to a line, in ink: what the move sends is information, not a warning. */
.op-screen .op-ask__body { margin: 0; padding: 0; font-size: 13px; color: var(--ink); max-width: 72ch; }
.op-screen .op-ask__reason { display: flex; flex-direction: column; gap: 4px; margin: 2px 0 0; }
.op-screen .op-ask__label { font-size: 12px; color: var(--ink); }
.op-screen .op-ask__text { resize: vertical; }
.op-screen .op-ask__foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

/* Overview: two equal columns, the rows stretched so both end level. */
.op-screen .op-overview { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-panel-gap); align-items: stretch; }
.op-screen .op-col { display: flex; flex-direction: column; gap: var(--space-panel-gap); min-width: 0; }
.op-screen .op-logcard { flex: 1 1 auto; padding: 0; gap: 0; overflow: visible; }
/* The three small cards side by side (§5: "Three small cards: Who, Dates, Counts toward"), ending level; a phone's one
   above another. Their facts stack a label over its value, so three fit the overview's half. */
.op-screen .op-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-panel-gap); align-items: stretch; }
.op-screen .op-mini { min-width: 0; gap: 8px; }
.op-screen .op-facts { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; font-size: 13px; }
.op-screen .op-facts > div { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.op-screen .op-facts dt { margin: 0; padding: 0; color: var(--ink-soft); font-size: 12px; }
.op-screen .op-facts dd { margin: 0; padding: 0; min-width: 0; overflow-wrap: anywhere; }
.op-screen .op-minilist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.op-screen .op-minilist li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.op-screen .op-minilist li > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-screen .op-card--activity { flex: 1 0 360px; min-height: 360px; overflow: hidden; padding-bottom: var(--space-record-card-y); }
.op-screen .op-feed { flex: 1 1 0; min-height: 0; overflow-y: auto; margin: 0 calc(-1 * var(--space-record-card-x)); padding: 0 4px; }
.op-screen .op-acticon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--parchment); flex-shrink: 0; }

/* The lines on the order */
.op-screen .op-lines { width: 100%; border-collapse: collapse; font-size: 13px; }
.op-screen .op-lines th { padding: 6px 8px 6px 0; text-align: left; color: var(--ink-soft); font: 600 11px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--hairline-strong); }
.op-screen .op-lines td { padding: var(--space-record-row-y) 8px var(--space-record-row-y) 0; border-top: 1px solid var(--hairline); vertical-align: baseline; }
.op-screen .op-lines tbody tr:first-child td { border-top: 0; }
.op-screen .op-lines tfoot th, .op-screen .op-lines tfoot td { padding-top: 8px; border-top: 1px solid var(--hairline-strong); border-bottom: 0; color: var(--ink); font: 600 13px/1.3 var(--font-sans); letter-spacing: 0; text-transform: none; }
.op-screen .op-th--num, .op-screen .op-td--num { text-align: right; white-space: nowrap; padding-right: 0; }
.op-screen .op-td--primary { font-weight: 600; }

/* Tabs */
.op-screen .op-tabpanel { display: flex; flex-direction: column; gap: var(--space-panel-gap); }
.op-screen .op-tabpanel--prose { max-width: 760px; }
.op-screen .op-tabhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.op-screen .op-tabhead .op-button--primary { margin-left: auto; }
.op-screen .op-month { display: flex; flex-direction: column; gap: 8px; }
.op-screen .op-tablewrap { overflow-x: auto; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.op-screen .op-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.op-screen .op-table th { padding: var(--space-record-row-y) 12px; text-align: left; border-bottom: 1px solid var(--hairline-strong); color: var(--ink-soft); font: 600 11px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.op-screen .op-table td { padding: var(--space-record-row-y) 12px; border-top: 1px solid var(--hairline); vertical-align: middle; }
.op-screen .op-table tbody tr:first-child td { border-top: 0; }
.op-screen .op-rowlink { padding: 0; border: 0; background: none; color: var(--ink); font: 600 13px/1.35 var(--font-sans); text-align: left; cursor: pointer; }
.op-screen .op-rowlink:hover { color: var(--accent); }
/* A name that is a link (open in a new tab, landing 2): drawn as the button it was; a link's underline goes. */
.op-screen .op-rowlink { text-decoration: none; }
.op-screen .op-histgroup { display: flex; flex-direction: column; gap: 8px; }
.op-screen .op-history { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.op-screen .op-history > li { display: flex; flex-direction: column; gap: 3px; padding: var(--space-record-row-y) 14px; border-top: 1px solid var(--hairline); }
.op-screen .op-history > li:first-child { border-top: 0; }
.op-screen .op-history__lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.op-screen .op-history__lines > li { margin: 0; padding: 0; overflow-wrap: anywhere; }
/* Which way an order date moved, in words and ink (the Classic's badge was red or green). */
.op-screen .op-histtag { align-self: flex-start; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--hairline-strong); color: var(--ink-soft); font-size: 11px; font-weight: 600; white-space: nowrap; }

/* The edit drawer */
.op-screen .op-backdrop { position: fixed; inset: 0; z-index: 220; background: rgba(15, 42, 34, .35); }
.op-screen .op-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 221; box-sizing: border-box; width: min(520px, 100vw); display: flex; flex-direction: column; background: var(--white); box-shadow: var(--shadow-xl); }
.op-screen .op-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.op-screen .op-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 4px 20px 20px; }
.op-screen .op-drawer__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); }
.op-screen .op-fieldset { margin: 16px 0 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.op-screen .op-legend { margin: 0 0 4px; padding: 0; font: 600 14px/1.3 var(--font-sans); color: var(--ink); }
.op-screen .op-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.op-screen .op-field__label { font-size: 12px; font-weight: 600; color: var(--ink); }
/* A required field's mark: ink, amber once it is missing (red is for destroying something). */
.op-screen .op-req { color: var(--ink-soft); font-weight: 600; }
.op-screen .op-req--missing { color: var(--amber); }
.op-screen .op-customedit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.op-screen .op-customedit:empty { display: none; }
.op-screen .op-lineedit { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; align-items: center; gap: 8px; }
.op-screen .op-input--money { text-align: right; font-variant-numeric: tabular-nums; }
/* A line row with no line picked: marked, and the guidance under the rows says what to do (Save waits for it). */
.op-screen .op-lineedit--missing select.op-input { border-color: var(--amber); }
.op-screen .op-line__remove { border: 0; background: none; padding: 2px 0; color: var(--ink-soft); font: 400 12px/1.3 var(--font-sans); cursor: pointer; text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 2px; }
.op-screen .op-line__remove:hover, .op-screen .op-line__remove:focus-visible { color: var(--ink); }
.op-screen .op-lineedit__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.op-screen .op-lineedit__foot .op-link:disabled { color: var(--ink-faint); }

/* The meta row (Ryan, 2026-10-19: "tight: items separated by a middot with a normal gap, flowing left, wrapping if it must"):
   values sized to their words, a middot between them, wrapping where the band runs out; on a phone's width each value is a
   line, its label beside it, with no middots. */
@container op-band (max-width: 536px) {
  .op-screen .op-meta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .op-screen .op-meta__item:not(:first-child)::before { content: none; }
  /* centred, not baseline: a linked value is an inline-block that clips, and such a box's baseline is its bottom edge */
  .op-screen .op-meta__item { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 10px; }
  .op-screen .op-meta__label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
}

/* The phone (op-screen--phone: the app's mobile setting, above): one column, a 16px gutter, the tabs scroll sideways, the
   contacts table becomes cards, the drawer a sheet, every field 16px (under that an iPhone zooms the page on a tap). */
.op-screen.op-screen--phone .op-wrap { padding: 0 16px 24px; }
.op-screen.op-screen--phone .op-head__in { padding: 14px 16px 0; }
.op-screen.op-screen--phone .op-h1 { font-size: var(--text-page-title-phone); }
.op-screen.op-screen--phone .op-tabs { margin-right: -16px; padding-right: 16px; }
.op-screen.op-screen--phone .op-body { padding-top: 14px; }
.op-screen.op-screen--phone .op-overview { grid-template-columns: minmax(0, 1fr); }
.op-screen.op-screen--phone .op-trio { grid-template-columns: minmax(0, 1fr); }
.op-screen.op-screen--phone .op-card--activity { flex: 0 0 auto; height: 360px; }
.op-screen.op-screen--phone .op-logcard { flex: 0 0 auto; }
.op-screen.op-screen--phone .op-pill { flex: 1 1 40%; }
.op-screen.op-screen--phone .op-tablewrap { overflow: visible; }
.op-screen.op-screen--phone .op-table thead { display: none; }
.op-screen.op-screen--phone .op-table, .op-screen.op-screen--phone .op-table tbody, .op-screen.op-screen--phone .op-table tr, .op-screen.op-screen--phone .op-table td { display: block; width: auto; }
.op-screen.op-screen--phone .op-table tr { padding: 12px 14px; border-top: 1px solid var(--hairline); }
.op-screen.op-screen--phone .op-table tbody tr:first-child { border-top: 0; }
.op-screen.op-screen--phone .op-table td { padding: 1px 0; border: 0; text-align: left; }
.op-screen.op-screen--phone .op-table td[data-label]::before { content: attr(data-label) " · "; color: var(--ink-faint); }
.op-screen.op-screen--phone .op-table td:empty { display: none; }
.op-screen.op-screen--phone .op-table td.op-td--primary::before { content: none; }
.op-screen.op-screen--phone .op-drawer { width: 100vw; }
.op-screen.op-screen--phone .op-input { font-size: 16px; }
.op-screen.op-screen--phone .op-lineedit { grid-template-columns: minmax(0, 1fr) 110px; }
.op-screen.op-screen--phone .op-lineedit .op-line__remove { grid-column: 1 / -1; justify-self: start; }
/* src/modules/revenue/features/home/home.css — the New home (docs/REFRESH_SPEC.md §2, "Home, three ways").
   Loaded by homeKit.jsx alone (the registry lets the New's own files load a stylesheet, so a withdrawal can find it).
   EVERY RULE IS SCOPED UNDER .hm-screen, two classes deep, and that is load-bearing: the Classic/New wrapper's class starts
   with "cd-", so the global reset `[class^='cd-'] button { background: none; border: none; font: inherit }` (0,1,1) reaches
   every button on the page and outranks a single-class rule. Two classes (0,2,0) win (the New Reports found it).
   The root's own `* { margin: 0; padding: 0 }` is why every margin and padding here is stated.
   The rules that apply everywhere: colour means something — the workspace's accent for the app's own (a link, a thing
   to press), amber for "look here" (going quiet, no estimate, no login, dormant, a read that failed, something missing,
   an overdue count), nothing for decoration; the content area near-white and the cards white on it. Type is the app's
   one family (Ryan, 2026-10-22: Geist only): the page's title at --weight-title, Geist for everything else too — a figure
   compared down a column (a tile, a table's number cell, a count by type, a seat) is Geist with tabular numerals, never
   another face, and a zero grey (nothing is there); a time, an age or a number inside a sentence is plain Geist. Colour
   lands on one thing at a time and never makes it bold: a tone is a colour, not a weight. Rows stretch, cards fill: a row
   of cards is a stretched grid, a column of cards a flex column whose last card takes the rest, each card a flex column
   with its foot pinned to the bottom. Classes, not inline sizes — a bar is a <meter>, styled here.
   THE WIDTH (Ryan, 2026-10-03: "tables and records should use the width they are given"): the home fills the content area
   as the Classic homes do — no maximum and no centring, each mount's Classic gutter (the rep home's 22px, the admin home's
   28px). A maximum sits only on prose (a card's sentence, 72ch), from the left, never centred.
   THE PHONE (under 768px): a 16px gutter, the tiles two across, every row of cards one column, and each table row a card of
   labelled lines — nothing wider than the screen. */

.hm-screen { flex: 1 1 0; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; background: #FCFBF8; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.hm-screen .hm-wrap { box-sizing: border-box; padding: 16px 22px 32px; }
.hm-screen.hm-screen--admin .hm-wrap { padding: var(--space-page-top) var(--space-page-x) var(--space-page-bottom); }
.hm-screen button { font-family: inherit; }
.hm-screen .hm-num { font-variant-numeric: tabular-nums; }
.hm-screen .hm-num--zero { color: var(--ink-faint); }
.hm-screen .hm-muted { color: var(--ink-soft); }
.hm-screen .hm-small { font-size: 12px; }
.hm-screen .hm-prose { margin: 0; padding: 0; max-width: 72ch; font-size: 13px; }

/* The header: the title, the line under it, the page's buttons at the right. */
.hm-screen .hm-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 var(--space-section-gap); padding: 0; }
.hm-screen .hm-head__text { min-width: 0; }
.hm-screen .hm-head__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.hm-screen .hm-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); }
.hm-screen .hm-sub { margin: var(--space-page-sub) 0 0; padding: 0; font-size: var(--text-page-sub); color: var(--ink-soft); }
.hm-screen .hm-h2 { margin: 0; padding: 0; font: 600 12px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.hm-screen .hm-h3 { margin: 0 0 6px; padding: 0; font: var(--weight-heading) 12px/1.3 var(--font-sans); color: var(--ink); }

/* The tiles: four across, each a white card; a tile with somewhere to go is a button. */
.hm-screen .hm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-panel-gap); margin: 0 0 var(--space-panel-gap); padding: 0; align-items: stretch; }
.hm-screen .hm-tile { box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; text-align: left; color: var(--ink); }
.hm-screen .hm-tile--go { cursor: pointer; font: inherit; }
.hm-screen .hm-tile--go:hover { border-color: var(--accent); }
.hm-screen .hm-tile--go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hm-screen .hm-tile__label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.hm-screen .hm-tile__value { font: 600 26px/1.15 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.hm-screen .hm-tile__sub { margin-top: auto; font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }

/* Rows of cards, ending level. */
.hm-screen .hm-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-panel-gap); margin: 0 0 var(--space-panel-gap); padding: 0; align-items: stretch; }
.hm-screen .hm-row--wide { grid-template-columns: minmax(0, 1fr); }
.hm-screen .hm-row:has(> .hm-card:only-child) { grid-template-columns: minmax(0, 1fr); }
/* Two columns of cards (the spec's left and right), ending level: the last card in each takes the rest. */
.hm-screen .hm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-panel-gap); margin: 0 0 var(--space-panel-gap); padding: 0; align-items: stretch; }
.hm-screen .hm-cols--lean { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.hm-screen .hm-col { display: flex; flex-direction: column; gap: var(--space-panel-gap); min-width: 0; margin: 0; padding: 0; }
.hm-screen .hm-col > .hm-card:last-child { flex: 1 1 auto; }
.hm-screen .hm-card { box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
/* The spec's amber panel: the one card whose whole job is a problem. */
.hm-screen .hm-card--attn { background: color-mix(in srgb, var(--amber) 5%, var(--white)); border-color: color-mix(in srgb, var(--amber) 22%, var(--white)); }
.hm-screen .hm-card__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.hm-screen .hm-card__sub { flex-basis: 100%; margin: 0; padding: 0; max-width: 72ch; font-size: 13px; color: var(--ink-soft); }
.hm-screen .hm-card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hm-screen .hm-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0 0; border-top: 1px solid var(--hairline); }

/* Lists: one line per thing — what it is on the left, what is said about it on the right. */
.hm-screen .hm-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.hm-screen .hm-item { margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.hm-screen .hm-item:first-child { border-top: 0; }
.hm-screen .hm-item__go, .hm-screen .hm-item__still { box-sizing: border-box; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; min-width: 0; margin: 0; padding: var(--space-row-y) 0; border: 0; background: none; color: var(--ink); font: 400 13px/1.35 var(--font-sans); text-align: left; }
.hm-screen .hm-item__go { cursor: pointer; }
.hm-screen .hm-item__go:hover .hm-item__main { color: var(--accent); }
.hm-screen .hm-item__go:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hm-screen .hm-item__main { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.hm-screen .hm-item__title { min-width: 0; }
.hm-screen .hm-item__sub { color: var(--ink-soft); font-size: 12px; font-weight: 400; }
.hm-screen .hm-item__aside { flex-shrink: 0; white-space: nowrap; text-align: right; }
.hm-screen .hm-sublist { margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid var(--hairline-strong); }
.hm-screen .hm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }

/* Empty states and notes say why. */
.hm-screen .hm-empty { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 6px 0; }
.hm-screen .hm-empty__lead { margin: 0; padding: 0; font-weight: 600; color: var(--ink); }
.hm-screen .hm-empty__why { margin: 0; padding: 0; max-width: 72ch; color: var(--ink-soft); font-size: 13px; }
.hm-screen .hm-empty--bad .hm-empty__lead { color: var(--amber); }
.hm-screen .hm-note { margin: 0; padding: 0; max-width: 72ch; font-size: 12px; color: var(--ink-soft); }
.hm-screen .hm-note--bad { color: var(--amber); }
.hm-screen .hm-foot { margin: 4px 0 0; padding: 0; max-width: 72ch; }

/* Links and buttons: the accent is the app's own. */
.hm-screen .hm-link { border: 0; background: none; margin: 0; padding: 0; color: var(--accent); font: 600 13px/1.3 var(--font-sans); cursor: pointer; text-underline-offset: 2px; }
.hm-screen .hm-link:hover { text-decoration: underline; }
.hm-screen .hm-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The links that were buttons (open in a new tab, landing 2: a tile, a row, a figure, a scheduled item, an "All …"): each
   class draws its box as it did; a link's underline is all a link adds, and it goes (a link's own hover underline stays). */
.hm-screen .hm-tile--go, .hm-screen .hm-item__go, .hm-screen .hm-sched__go, .hm-screen .hm-figure__go, .hm-screen .hm-link { text-decoration: none; }
.hm-screen .hm-link--plain { color: var(--ink); }
.hm-screen .hm-link--quiet { color: var(--ink-soft); font-weight: 500; }
/* Red is destructive only: a Remove. */
.hm-screen .hm-link--danger { color: var(--danger); font-weight: 500; }
.hm-screen .hm-button { display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.hm-screen .hm-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hm-screen .hm-button--primary:hover:not(:disabled) { background: var(--accent-raised); }
.hm-screen .hm-button:disabled { opacity: .45; cursor: default; }
.hm-screen .hm-input { box-sizing: border-box; flex: 1 1 auto; min-width: 0; max-width: 100%; margin: 0; padding: 8px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 13px/1.4 var(--font-sans); resize: vertical; }
.hm-screen .hm-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.hm-screen .hm-compose { display: flex; align-items: flex-end; gap: 10px; margin: 0; padding: 0; max-width: 72ch; }
.hm-screen .hm-file { display: none; }

/* A due chip: late and today amber, later grey. */
.hm-screen .hm-chip { display: inline-block; margin: 0; padding: 2px 8px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.hm-screen .hm-chip--attn { background: var(--amber-soft); color: var(--amber); }

/* This week: a tile per activity type the workspace logs; a type with something in it opens its list. */
.hm-screen .hm-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.hm-screen .hm-type { margin: 0; padding: 0; min-width: 0; }
.hm-screen .hm-type__go, .hm-screen .hm-type__still { box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; width: 100%; height: 100%; margin: 0; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--white); color: var(--ink); font: 400 12px/1.3 var(--font-sans); text-align: left; }
.hm-screen .hm-type__go { cursor: pointer; }
.hm-screen .hm-type__go:hover { border-color: var(--accent); }
.hm-screen .hm-type__go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hm-screen .hm-type__go--on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--white)); }
.hm-screen .hm-type__label { color: var(--ink-soft); overflow-wrap: anywhere; }
.hm-screen .hm-type__n { font: 600 20px/1.15 var(--font-sans); font-variant-numeric: tabular-nums; }

/* Coming up: what is scheduled, one row each — when, what, where. Never a calendar. */
.hm-screen .hm-sched { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.hm-screen .hm-sched__row { margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.hm-screen .hm-sched__row:first-child { border-top: 0; }
.hm-screen .hm-sched__go { box-sizing: border-box; display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; width: 100%; margin: 0; padding: var(--space-row-y) 0; border: 0; background: none; color: var(--ink); font: 400 13px/1.35 var(--font-sans); text-align: left; cursor: pointer; }
.hm-screen .hm-sched__go:hover .hm-sched__what { color: var(--accent); }
.hm-screen .hm-sched__go:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hm-screen .hm-sched__when { font-size: 12px; color: var(--ink-soft); }
.hm-screen .hm-sched__what { min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.hm-screen .hm-sched__where { font-size: 12px; color: var(--ink-soft); text-align: right; overflow-wrap: anywhere; }

/* Tables (the team, coverage, people): a row per thing; numbers right-aligned, tabular. */
.hm-screen .hm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hm-screen .hm-table th, .hm-screen .hm-table td { margin: 0; padding: var(--space-row-y) 10px; border-top: 1px solid var(--hairline); text-align: left; vertical-align: baseline; font-weight: 400; }
.hm-screen .hm-table thead th { border-top: 0; padding-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.hm-screen .hm-table tbody th { font-weight: 600; color: var(--ink); }
.hm-screen .hm-table th:first-child, .hm-screen .hm-table td:first-child { padding-left: 0; }
.hm-screen .hm-table th.hm-th--num, .hm-screen .hm-table td.hm-td--num { text-align: right; white-space: nowrap; }
.hm-screen .hm-table tr.hm-tr--inactive th, .hm-screen .hm-table tr.hm-tr--inactive td { color: var(--ink-soft); }
/* A person's cell: the name, and under it their email (the admin's) or "nothing logged this week" (the owner's). */
.hm-screen .hm-person { display: inline-flex; flex-direction: column; gap: 1px; min-width: 0; }
.hm-screen .hm-person__email { font-size: 12px; font-weight: 400; color: var(--ink-soft); overflow-wrap: anywhere; }
.hm-screen .hm-person__note { font-size: 12px; font-weight: 400; }
.hm-screen .hm-table tr.hm-tr--nothing th { color: var(--ink-soft); }
.hm-screen .hm-finding { display: flex; flex-direction: column; gap: 2px; max-width: 72ch; }
.hm-screen .hm-finding__line { margin: 0; padding: 0; font-size: 13px; }

/* Blocks naming what is missing. */
.hm-screen .hm-block { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0 0 8px; }
.hm-screen .hm-block__lead { margin: 0; padding: 0; max-width: 72ch; font-size: 13px; }
.hm-screen .hm-block__why { margin: 0; padding: 0; max-width: 72ch; font-size: 13px; color: var(--ink-soft); }
.hm-screen .hm-block__go { margin: 2px 0 0; padding: 0; }

/* Coverage by line: a bar per line — its name (when it was last talked about under it), the bar, "N of M". */
.hm-screen .hm-bars { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.hm-screen .hm-bar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; margin: 0; padding: var(--space-row-y) 0; border-top: 1px solid var(--hairline); }
.hm-screen .hm-bar:first-child { border-top: 0; }
.hm-screen .hm-bar__name { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.hm-screen .hm-bar__last { font-size: 12px; font-weight: 400; color: var(--ink-soft); }
/* The dealers a line hasn't been talked about at since, split: never spoken to (amber, .hm-tone--attn), spoken to without a
   line recorded (muted ink, .hm-muted) — Ryan, 2026-10-08. */
.hm-screen .hm-bar__split { font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.hm-screen .hm-bar__n { font-size: 13px; text-align: right; white-space: nowrap; }
.hm-screen .hm-meter { display: block; box-sizing: border-box; width: 100%; height: 8px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: var(--hairline); -webkit-appearance: none; appearance: none; }
.hm-screen .hm-meter::-webkit-meter-bar { height: 8px; border: 0; border-radius: 999px; background: var(--hairline); }
.hm-screen .hm-meter::-webkit-meter-optimum-value { border-radius: 999px; background: var(--ink-soft); }
.hm-screen .hm-meter::-moz-meter-bar { border-radius: 999px; background: var(--ink-soft); }
.hm-screen .hm-meter--low::-webkit-meter-optimum-value { background: var(--amber); }
.hm-screen .hm-meter--low::-moz-meter-bar { background: var(--amber); }

/* Set up for this firm: what it is and where it stands, its state in a word, and where to change it. */
.hm-screen .hm-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.hm-screen .hm-check { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; margin: 0; padding: var(--space-row-y) 0; border-top: 1px solid var(--hairline); }
.hm-screen .hm-check:first-child { border-top: 0; }
.hm-screen .hm-state { font-size: 12px; font-weight: 600; white-space: nowrap; }
.hm-screen .hm-state--set { color: var(--accent); }
.hm-screen .hm-check__main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hm-screen .hm-check__label { font-size: 13px; font-weight: 600; }
.hm-screen .hm-check__detail { font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }
.hm-screen .hm-check__go { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hm-screen .hm-logo { display: block; width: 36px; height: 36px; object-fit: contain; border: 1px solid var(--hairline); border-radius: 8px; background: var(--white); }

/* What changed: when, what happened and who, and its tag; a filter by tag over the rows read. */
.hm-screen .hm-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.hm-screen .hm-filter { margin: 0; padding: 4px 10px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--white); color: var(--ink); font: 500 12px/1.3 var(--font-sans); cursor: pointer; }
.hm-screen .hm-filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hm-screen .hm-filter--on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--white)); }
.hm-screen .hm-changes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.hm-screen .hm-change { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; margin: 0; padding: var(--space-row-y) 0; border-top: 1px solid var(--hairline); }
.hm-screen .hm-change:first-child { border-top: 0; }
.hm-screen .hm-change__when { font-size: 12px; color: var(--ink-soft); }
.hm-screen .hm-change__what { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.hm-screen .hm-change__main { font-size: 13px; font-weight: 500; }
.hm-screen .hm-change__sub { font-size: 12px; color: var(--ink-soft); }
.hm-screen .hm-tag { padding: 1px 6px; border: 1px solid var(--hairline-strong); border-radius: 4px; color: var(--ink-soft); font-size: 10px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }

/* Records nobody has touched: three figures, each opening what it counted. */
.hm-screen .hm-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.hm-screen .hm-figure { margin: 0; padding: 0; min-width: 0; }
.hm-screen .hm-figure__go, .hm-screen .hm-figure__still { box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font: 400 12px/1.3 var(--font-sans); text-align: left; }
.hm-screen .hm-figure__go { cursor: pointer; }
.hm-screen .hm-figure__go:hover .hm-figure__label { color: var(--accent); }
.hm-screen .hm-figure__go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hm-screen .hm-figure__n { font: 600 24px/1.1 var(--font-sans); font-variant-numeric: tabular-nums; }
.hm-screen .hm-figure__label { font-size: 13px; font-weight: 500; }
.hm-screen .hm-figure__of { color: var(--ink-soft); }

/* Seats */
.hm-screen .hm-seats { display: flex; gap: 28px; margin: 0; padding: 0; }
.hm-screen .hm-seat { display: flex; flex-direction: column; gap: 2px; }
.hm-screen .hm-seat__n { font: 600 24px/1.1 var(--font-sans); font-variant-numeric: tabular-nums; }
.hm-screen .hm-seat__label { font-size: 12px; color: var(--ink-soft); }

/* The tones, last, so they win over any rule above that sets a colour (a tile's value and sub set their own): amber is
   "look here", an overdue count among it — a colour, never a weight; and a zero that is a problem takes its tone's amber. */
.hm-screen .hm-tone--attn { color: var(--amber); }
.hm-screen .hm-tone--overdue { color: var(--amber); }
.hm-screen .hm-tone--attn .hm-num--zero, .hm-screen .hm-tone--overdue .hm-num--zero { color: var(--amber); }

/* Between a laptop and a tablet: two tiles across. */
@media (max-width: 1100px) {
  .hm-screen .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The phone. */
@media (max-width: 767px) {
  .hm-screen .hm-wrap, .hm-screen.hm-screen--admin .hm-wrap { padding: 12px 16px 24px; }
  .hm-screen .hm-h1 { font-size: var(--text-page-title-phone); }
  .hm-screen .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hm-screen .hm-tile { padding: 12px; }
  .hm-screen .hm-tile__value { font-size: 22px; }
  .hm-screen .hm-row, .hm-screen .hm-split { grid-template-columns: minmax(0, 1fr); }
  .hm-screen .hm-cols, .hm-screen .hm-cols--lean { grid-template-columns: minmax(0, 1fr); }
  .hm-screen .hm-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-screen .hm-sched__go, .hm-screen .hm-change { grid-template-columns: minmax(0, 1fr) auto; }
  .hm-screen .hm-sched__when, .hm-screen .hm-change__when { grid-column: 1 / -1; }
  .hm-screen .hm-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .hm-screen .hm-meter { grid-column: 1 / -1; grid-row: 2; }
  .hm-screen .hm-compose { flex-direction: column; align-items: stretch; }
  /* Each table row becomes a card of labelled lines. */
  .hm-screen .hm-table, .hm-screen .hm-table tbody, .hm-screen .hm-table tr { display: block; width: 100%; }
  .hm-screen .hm-table thead { display: none; }
  .hm-screen .hm-table tr { padding: 8px 0; border-top: 1px solid var(--hairline); }
  .hm-screen .hm-table tbody tr:first-child { border-top: 0; }
  .hm-screen .hm-table th, .hm-screen .hm-table td { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border-top: 0; }
  .hm-screen .hm-table th.hm-th--num, .hm-screen .hm-table td.hm-td--num { text-align: right; }
  .hm-screen .hm-table td::before { content: attr(data-label); color: var(--ink-soft); font-size: 12px; text-align: left; }
}
/* src/modules/revenue/features/requests/requests.css — the New Requests screen (docs/REFRESH_SPEC.md §8 "Requests").
   Loaded by Requests.jsx alone (the registry lets one file load a stylesheet, so a withdrawal can find it).
   EVERY RULE INSIDE THE SCREEN IS SCOPED UNDER .rq-screen, two classes deep, and that is load-bearing: the Classic/New
   wrapper's class starts with "cd-", so the global reset `[class^='cd-'] button { background: none; border: none; font:
   inherit }` (0,1,1) reaches every button here and outranks a single-class rule. Two classes (0,2,0) win.
   The root's own `* { margin: 0; padding: 0 }` is why every margin and padding here is stated, and its `select option
   { background: #111318 }` (the dark theme's) is why the options here are given the card's own.
   THE WIDTH (Ryan, 2026-10-03: "fill the content area the way Classic does … a sensible maximum for prose"): the screen runs
   edge to edge with the lists' 28px gutter (16px on a phone) — no maximum and no centring. The form first and the requests
   below it, one column, as the spec draws it and as the Classic's was (the rest of the look, 2026-10-05). A maximum sits
   only on what is read as prose — a request's why, its status line, a reply, an empty state's sentence — from the left,
   never centred.
   The rules that apply everywhere: colour means something — the workspace's accent for the app's own (a chosen chip,
   links, a filed request, a shipped one), amber for "look here" on one thing (a request holding someone up while it is
   still open: its tag), a notice and a read that failed in ink (neither is on the spec's amber list, and a sentence is never
   coloured whole), nothing for decoration and red for nothing (nothing here destroys anything); cards white on the
   near-white area. THE TYPE (Ryan, 2026-10-22: Geist only), only through the tokens: the page title at
   --weight-title; everything else Geist (--font-sans) too; a figure compared along the row — a chip's count — the same
   Geist with tabular numerals (rq-num, nothing else); Geist Mono (--font-mono) only for genuine code — a request's ref,
   which is an id, and a commit's SHA (rq-code). A date and the head's "N open · M shipped" are words in a sentence:
   plain Geist. Classes, not inline sizes: the root's phone rules rewrite inline ones. */

.rq-screen { flex: 1 1 0; min-height: 0; overflow-y: auto; background: #FCFBF8; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.rq-screen .rq-wrap { margin: 0; padding: var(--space-page-top) var(--space-page-x) var(--space-page-bottom); box-sizing: border-box; }
.rq-screen .rq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: 0 0 var(--space-section-gap); padding: 0; }
.rq-screen .rq-head__text { min-width: 0; }
.rq-screen .rq-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); }
.rq-screen .rq-sub { margin: var(--space-page-sub) 0 0; padding: 0; color: var(--ink-soft); font-size: var(--text-page-sub); }
.rq-screen .rq-counts { margin: 0; padding: 0; color: var(--ink-soft); font-size: 13px; }
.rq-screen .rq-h2 { margin: 0 0 12px; padding: 0; font: 600 12px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.rq-screen .rq-num { font-variant-numeric: tabular-nums; }
.rq-screen .rq-code { font-family: var(--font-mono); font-size: 0.92em; }
.rq-screen .rq-muted { color: var(--ink-soft); }
.rq-screen .rq-since { white-space: nowrap; }

/* The two blocks, one column: the form first, the requests below it (the spec's "Below, every request in the workspace"). */
.rq-screen .rq-layout { display: flex; flex-direction: column; gap: var(--space-section-gap); margin: 0; padding: 0; }
.rq-screen .rq-aside { min-width: 0; margin: 0; padding: 0; }
.rq-screen .rq-main { min-width: 0; margin: 0; padding: 0; }

/* The form: a card. */
.rq-screen .rq-form { display: flex; flex-direction: column; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--shadow-xs); }
.rq-screen .rq-label { display: block; margin: 14px 0 6px; padding: 0; font: 600 12px/1.3 var(--font-sans); color: var(--ink-soft); }
.rq-screen .rq-h2 + .rq-label { margin-top: 0; }
.rq-screen .rq-input { display: block; width: 100%; min-width: 0; margin: 0; padding: 9px 12px; box-sizing: border-box; background: var(--white); border: 1px solid var(--hairline-strong); border-radius: 8px; color: var(--ink); font: 400 14px/1.4 var(--font-sans); outline: none; }
.rq-screen .rq-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent); }
.rq-screen .rq-input:disabled { background: var(--parchment); color: var(--ink-soft); }
/* Where it lives: a row of chips, the pressed one the accent (the status chips' look, a step smaller). */
.rq-screen .rq-areas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.rq-screen .rq-area { display: inline-flex; align-items: center; margin: 0; padding: 4px 11px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--white); color: var(--ink); font: 500 13px/1.3 var(--font-sans); cursor: pointer; white-space: nowrap; }
.rq-screen .rq-area:hover:not(:disabled) { border-color: var(--accent); }
.rq-screen .rq-area[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rq-screen .rq-area:disabled { opacity: .6; cursor: default; }
.rq-screen .rq-textarea { min-height: 112px; resize: vertical; }
.rq-screen .rq-check { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 0; font-size: 14px; cursor: pointer; }
.rq-screen .rq-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.rq-screen .rq-hint { margin: 4px 0 0; padding: 0; color: var(--ink-soft); font-size: 12px; }
.rq-screen .rq-check + .rq-hint { margin-left: 24px; }
.rq-screen .rq-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--hairline); }
.rq-screen .rq-form__foot .rq-hint { margin: 0; flex: 1 1 160px; }
.rq-screen .rq-notice { margin: 12px 0 0; padding: 0; font-size: 13px; overflow-wrap: anywhere; }
.rq-screen .rq-notice--ok { color: var(--ink); }
.rq-screen .rq-notice--bad { padding-left: 10px; border-left: 3px solid var(--hairline-strong); color: var(--ink); }

/* Buttons and links */
.rq-screen .rq-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 9px 18px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 14px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.rq-screen .rq-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rq-screen .rq-button--primary:hover { background: var(--accent-raised); }
.rq-screen .rq-button:disabled { opacity: .6; cursor: default; }
.rq-screen .rq-link { border: 0; background: none; margin: 0; padding: 0; color: var(--accent); font: 600 13px/1.3 var(--font-sans); cursor: pointer; text-decoration: none; text-underline-offset: 2px; }
.rq-screen .rq-link:hover { text-decoration: underline; }
.rq-screen .rq-button:focus-visible, .rq-screen .rq-link:focus-visible, .rq-screen .rq-chip:focus-visible, .rq-screen .rq-area:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The chips: All and each status, each with its count. The chosen one is the app's own colour. */
.rq-screen .rq-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 var(--space-panel-gap); padding: 0; }
.rq-screen .rq-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 12px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--white); color: var(--ink); font: 500 13px/1.3 var(--font-sans); cursor: pointer; white-space: nowrap; }
.rq-screen .rq-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* The list: a card per request, the width of the column. */
.rq-screen .rq-list { display: flex; flex-direction: column; gap: var(--space-panel-gap); margin: 0; padding: 0; list-style: none; }
.rq-screen .rq-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--shadow-xs); }
.rq-screen .rq-item--sent { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.rq-screen .rq-item__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; }
.rq-screen .rq-ref { margin: 0 0 0 auto; padding: 0; color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.rq-screen .rq-item__title { margin: 2px 0 0; padding: 0; font: var(--weight-heading) 16px/1.35 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.rq-screen .rq-item__meta { margin: 0; padding: 0; color: var(--ink-soft); font-size: 12px; overflow-wrap: anywhere; }
.rq-screen .rq-item__why { max-width: 72ch; margin: 4px 0 0; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rq-screen .rq-item__status { max-width: 72ch; margin: 4px 0 0; padding: 0; font-size: 13px; }
.rq-screen .rq-item__back, .rq-screen .rq-item__reason { max-width: 72ch; margin: 0; padding: 0; font-size: 13px; }
.rq-screen .rq-item__back { color: var(--ink-soft); }
.rq-screen .rq-item__shipped { margin: 2px 0 0; padding: 0; font-size: 13px; }
.rq-screen .rq-reply { max-width: 72ch; margin: 6px 0 0; padding: 10px 12px; background: var(--parchment); border: 1px solid var(--hairline); border-radius: 8px; }
.rq-screen .rq-reply__text { margin: 0; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rq-screen .rq-reply__by { margin: 6px 0 0; padding: 0; color: var(--ink-soft); font-size: 12px; }

/* A status is information (ink on the card's own tint); shipped is a confirmation (the accent). Holding us up is amber
   only while the request is open — answered, it is a fact, not a call to look. */
.rq-screen .rq-status { display: inline-block; flex: none; margin: 0; padding: 1px 8px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 600 11px/18px var(--font-sans); white-space: nowrap; }
.rq-screen .rq-status--shipped { background: var(--accent); color: var(--on-accent); }
.rq-screen .rq-tag { display: inline-block; flex: none; margin: 0; padding: 1px 8px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink-soft); font: 600 11px/18px var(--font-sans); white-space: nowrap; }
.rq-screen .rq-tag--attn { background: var(--amber-soft); color: var(--amber); }
.rq-screen .rq-tag--sent { background: transparent; color: var(--ink); padding: 1px 0; }

/* Empty, waiting and failed states: a card holding a sentence, so it gets a measure; a failed read in ink, the rest quieter. */
.rq-screen .rq-empty { max-width: 72ch; margin: 0; padding: 20px; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; color: var(--ink-soft); font-size: 13px; }
.rq-screen .rq-empty--bad { color: var(--ink); }
.rq-screen .rq-loading { margin: 0; padding: 12px 0; }

/* A phone: the 16px gutter. */
@media (max-width: 767px) {
  .rq-screen .rq-wrap { padding: 20px 16px 48px; }
}
/* src/modules/revenue/features/insights/insights.css — the New Insights (docs/REFRESH_SPEC.md §7, "Insights").
   Loaded by InsightsPage.jsx alone (the registry lets one file load a stylesheet, so a withdrawal can find it).
   EVERY RULE IS SCOPED UNDER .in-screen, two classes deep, and that is load-bearing: the Classic/New wrapper's class starts
   with "cd-", so the global reset `[class^='cd-'] button { background: none; border: none; font: inherit }` (0,1,1) reaches
   every button on the page and outranks a single-class rule. Two classes (0,2,0) win. The root's own `* { margin: 0;
   padding: 0 }` is why every margin and padding here is stated.
   THE PLACE: a whole section of the root (its own scroller), so the page fills the content area — no maximum and no
   centring, the Classic's 28px gutter (16px on a phone); a measure only on prose (72ch), from the left. The screen is a
   container (insights): what fits is the content area's width, which the rail open or closed changes, not the window's.
   The rules that apply everywhere: colour means something — the workspace's accent for the app's own (a link, a thing
   to press, the share of a target met), amber for "look here" on one thing — a figure's phrase or a cell (nothing
   reported, no target, never contacted) — grey for nothing there (a line nobody has discussed), a read that failed and a
   note in ink, never a sentence coloured; nothing for decoration; the content area parchment and the cards white on it. Tokens only, never a colour
   typed in. Rows stretch and cards fill: a row of cards is a stretched grid, each card a flex column with its foot
   pinned to the bottom.
   THE FONTS (Ryan, 2026-10-22: Geist only), by token only, never a family named here: the page's title at --weight-title,
   the name of what is on show a level under it at --weight-heading; everything else in Geist (--font-sans) too; a figure read down a column or across the
   tiles — a KPI, a quarter, a table's money cell, a count — in Geist with tabular figures (.in-num); a date, an age or a
   number inside a sentence plain. No mono: nothing on this screen is code. */

.in-screen { flex: 1 1 0; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; container: insights / inline-size; background: var(--parchment); color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.in-screen .in-wrap { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-panel-gap); margin: 0; padding: var(--space-page-top) var(--space-page-x) var(--space-page-bottom); }
.in-screen .in-num { font-family: var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.in-screen .in-muted { color: var(--ink-soft); }
.in-screen .in-small { font-size: 12px; }
.in-screen .in-attn { color: var(--amber); }
.in-screen .in-ok { color: var(--ink); }

/* The head: the title, what the screen is for under it; Export on the right. */
.in-screen .in-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin: 0; padding: 0; }
.in-screen .in-head__text { min-width: 0; }
.in-screen .in-head__actions { display: flex; gap: 8px; }
.in-screen .in-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); }
.in-screen .in-sub { margin: var(--space-page-sub) 0 0; padding: 0; max-width: 72ch; font-size: var(--text-page-sub); color: var(--ink-soft); }

/* Buttons and links: the accent is the app's own. */
.in-screen .in-button { display: inline-flex; align-items: center; margin: 0; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.in-screen .in-button:hover:not(:disabled) { border-color: var(--accent); }
.in-screen .in-button:disabled { opacity: .45; cursor: default; }
.in-screen .in-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.35 var(--font-sans); cursor: pointer; text-align: left; text-underline-offset: 2px; }
.in-screen .in-link:hover { text-decoration: underline; }
.in-screen .in-link--plain { color: var(--ink); font-weight: 500; }
.in-screen .in-link--plain:hover { color: var(--accent); }
.in-screen .in-button:focus-visible, .in-screen .in-link:focus-visible, .in-screen .in-seg__btn:focus-visible, .in-screen .in-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The controls: Manufacturer / Dealer, the picker, the year and its quarters. */
.in-screen .in-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 0; padding: 0; }
.in-screen .in-seg { display: inline-flex; flex: none; margin: 0; padding: 2px; border: 1px solid var(--hairline-strong); border-radius: 10px; background: var(--white); }
.in-screen .in-seg--frames { margin-left: auto; }
.in-screen .in-seg__btn { margin: 0; padding: 6px 14px; border: 0; border-radius: 8px; background: none; color: var(--ink-soft); font: 500 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.in-screen .in-seg__btn:hover { color: var(--ink); }
.in-screen .in-seg__btn--on, .in-screen .in-seg__btn--on:hover { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.in-screen .in-pick { display: flex; flex-direction: column; gap: 3px; flex: 1 1 260px; min-width: 0; max-width: 420px; }
.in-screen .in-pick__label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.in-screen .in-select { box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 7px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 500 14px/1.3 var(--font-sans); }
.in-screen .in-select:disabled { color: var(--ink-soft); }

/* What is on show. */
.in-screen .in-entity { margin: 4px 0 0; padding: 0; }
.in-screen .in-h2 { margin: 0; padding: 0; font: var(--weight-heading) var(--text-section-title)/1.2 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.in-screen .in-entity__meta { margin: 3px 0 0; padding: 0; font-size: 13px; color: var(--ink-soft); }
.in-screen .in-note { margin: 0; padding: 0; max-width: 72ch; font-size: 13px; color: var(--ink-soft); }
.in-screen .in-note--bad { color: var(--ink); }
.in-screen .in-basis { margin: -4px 0 0; padding: 0; max-width: 72ch; font-size: 12px; color: var(--ink-soft); }

/* The five KPIs: a stretched row, each a white card; a missing figure is a phrase where the number would be. */
.in-screen .in-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-panel-gap); align-items: stretch; margin: 0; padding: 0; }
.in-screen .in-kpi { box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.in-screen .in-kpi__label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.in-screen .in-kpi__value { font: 600 24px/1.15 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.in-screen .in-kpi__value--why { font-size: 17px; line-height: 1.3; color: var(--ink-soft); }
.in-screen .in-kpi__value--why.in-attn { color: var(--amber); }
.in-screen .in-kpi__sub { margin-top: auto; font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }

/* Cards. */
.in-screen .in-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-panel-gap); align-items: stretch; margin: 0; padding: 0; }
.in-screen .in-card { box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.in-screen .in-card__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.in-screen .in-h3 { margin: 0; padding: 0; font: var(--weight-heading) 15px/1.3 var(--font-sans); color: var(--ink); }
/* A table wider than its card (a long status, a narrow window) scrolls inside the card rather than being cut at its edge or
   running over its neighbour; the 4px either side keeps a focused link's ring inside the scroller. */
.in-screen .in-card__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: -4px; padding: 4px; overflow-x: auto; }
/* The foot is one sentence; its hairline runs the card's width (a stacked card is wider than any measure). */
.in-screen .in-card__foot { margin: auto 0 0; padding: 10px 0 0; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--ink); }
.in-screen .in-card__foot.in-attn { color: var(--amber); }

/* Target against actual: the frame's bar, then the four quarters. */
.in-screen .in-goal { display: flex; flex-direction: column; gap: 6px; }
.in-screen .in-goal__line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.in-screen .in-goal__pct { font: 600 15px/1.2 var(--font-sans); color: var(--ink); }
.in-screen .in-bar { display: block; width: 100%; height: 10px; margin: 0; padding: 0; border: 0; border-radius: 5px; background: var(--parchment-dim); color: var(--accent); appearance: none; -webkit-appearance: none; overflow: hidden; }
.in-screen .in-bar::-webkit-progress-bar { background: var(--parchment-dim); border-radius: 5px; }
.in-screen .in-bar::-webkit-progress-value { background: var(--accent); border-radius: 5px; }
.in-screen .in-bar::-moz-progress-bar { background: var(--accent); border-radius: 5px; }
.in-screen .in-bar--thin { height: 4px; }
.in-screen .in-quarters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.in-screen .in-quarter { box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--parchment); }
.in-screen .in-quarter--on { border-color: var(--accent); background: var(--white); }
.in-screen .in-quarter__label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.in-screen .in-quarter__value { font: 600 17px/1.2 var(--font-sans); color: var(--ink); }
.in-screen .in-quarter__value--why { font-size: 14px; color: var(--ink-soft); }
.in-screen .in-quarter__value--why.in-attn { color: var(--amber); }
.in-screen .in-quarter__sub { margin-top: auto; font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }

/* Tables: a row per dealer, line or order; money right-aligned and tabular. */
.in-screen .in-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.in-screen .in-table th, .in-screen .in-table td { margin: 0; padding: var(--space-row-y) 10px; border-top: 1px solid var(--hairline); text-align: left; vertical-align: baseline; font-weight: 400; }
.in-screen .in-table thead th { border-top: 0; padding-top: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.in-screen .in-table tbody th { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.in-screen .in-table th:first-child, .in-screen .in-table td:first-child { padding-left: 0; }
.in-screen .in-table th:last-child, .in-screen .in-table td:last-child { padding-right: 0; }
.in-screen .in-table .in-th--num, .in-screen .in-table .in-td--num { text-align: right; white-space: nowrap; }
.in-screen .in-table .in-td--date { white-space: nowrap; }
.in-screen .in-cell { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.in-screen .in-cell__sub { font-size: 12px; font-weight: 400; color: var(--ink-soft); }
/* A row's month and months so far, under its share: they wrap, so the figures' column is not as wide as the words. */
.in-screen .in-td--num .in-cell__sub { min-width: 24ch; white-space: normal; }
/* Why the list's empty figures are empty: each short phrase once, with its reason, under the table. */
.in-screen .in-whys { display: flex; flex-direction: column; gap: 3px; max-width: 72ch; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--ink-soft); }
.in-screen .in-why__short { font-weight: 600; color: var(--ink); }
.in-screen .in-tag { display: inline-block; margin: 0 0 0 6px; padding: 0 6px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 600 11px/17px var(--font-sans); vertical-align: baseline; }

/* The people card is the app's own (it brings its own box); the activity is the record's own read-only list, each entry
   with its type's icon on a tile. */
.in-screen .in-people { margin: 0; padding: 0; min-width: 0; }
.in-screen .in-log { margin: 0; padding: 0; min-width: 0; }
.in-screen .in-acticon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 0; padding: 0; border-radius: 8px; background: var(--parchment); color: var(--ink-soft); }

/* Under 1280px of content area (a laptop with the rail open — windows to about 1500px): the two cards of a row stack, so
   neither table is cut at its card's edge or run over its neighbour, and an order's name keeps a column it can be read in
   (measured with the rail open, second round: side by side at 1100px of content the orders' name column was 89px and a name
   ran to four lines; at 1220px, 143px; stacked, the card's full width). Under 1100px the five KPIs sit three over two, wide
   enough that a figure never breaks (a figure never wraps inside: .in-num). Under 600px (a narrow window with the rail
   open), two across, as on a phone. */
@container insights (max-width: 1279px) {
  .in-screen .in-row { grid-template-columns: minmax(0, 1fr); }
}
@container insights (max-width: 1099px) {
  .in-screen .in-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .in-screen .in-kpi { grid-column: span 2; }
  .in-screen .in-kpi:nth-child(n+4) { grid-column: span 3; }
}
@container insights (max-width: 599px) {
  .in-screen .in-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .in-screen .in-kpi, .in-screen .in-kpi:nth-child(n+4) { grid-column: auto; }
}

/* The phone (under 768px): a 16px gutter, the KPIs and quarters two across, every row of cards one column, the frames on a
   line of their own, and each table row a card of labelled lines — nothing wider than the screen. */
@media (max-width: 767px) {
  .in-screen .in-wrap { padding: 16px 16px 32px; gap: 14px; }
  .in-screen .in-h1 { font-size: var(--text-page-title-phone); }
  .in-screen .in-head__actions { width: 100%; }
  .in-screen .in-controls { gap: 10px; }
  .in-screen .in-seg--frames { margin-left: 0; }
  .in-screen .in-seg__btn { padding: 6px 11px; }
  .in-screen .in-pick { flex: 1 1 100%; max-width: none; }
  .in-screen .in-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .in-screen .in-kpi, .in-screen .in-kpi:nth-child(n+4) { grid-column: auto; padding: 12px; }
  .in-screen .in-kpi__value { font-size: 20px; }
  .in-screen .in-kpi__value--why { font-size: 15px; }
  .in-screen .in-row { grid-template-columns: minmax(0, 1fr); }
  .in-screen .in-quarters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .in-screen .in-card { padding: 14px; }
  .in-screen .in-table thead { display: none; }
  .in-screen .in-table, .in-screen .in-table tbody, .in-screen .in-table tr { display: block; width: 100%; }
  .in-screen .in-table tr { padding: 8px 0; border-top: 1px solid var(--hairline); }
  .in-screen .in-table tbody tr:first-child { border-top: 0; }
  .in-screen .in-table th, .in-screen .in-table td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 0; border-top: 0; text-align: right; }
  .in-screen .in-table th::before, .in-screen .in-table td::before { content: attr(data-label); flex: none; color: var(--ink-soft); font-size: 12px; font-weight: 500; text-align: left; }
  .in-screen .in-table tbody th { font-weight: 600; }
  .in-screen .in-table .in-td--num, .in-screen .in-table .in-td--date { white-space: normal; }
  .in-screen .in-cell { align-items: flex-end; text-align: right; }
}
/* cadenceChart.css — the cadence chart (CadenceChart.jsx). Tokens only (src/styles/tokens.css); the card's surface, border,
   text and link follow the record's theme when it hands them in (--cc-*), else the tokens.
   The status colours: the rhythm --success, gone quiet --amber (amber for what is genuinely wrong, as My Team and the lists
   use it), never spoken to --ink-faint. A row is one colour, from the one quiet rule; the right-hand column says it in words
   too, so color is never the only signal. A mark is a week with a conversation (Ryan, 2026-11-08: "A mark is a
   conversation"). The track's empty weeks are its own background, one short tick a week. */
.cc-card {
  --cc-weeks: 52;
  box-sizing: border-box; margin: 0 0 16px; padding: 16px; border-radius: 12px;
  background: var(--cc-card, var(--white)); border: 1px solid var(--cc-border, var(--hairline-strong)); color: var(--cc-text, var(--ink));
  font: 400 13px/1.4 var(--font-sans);
}
.cc-card .cc-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 4px; }
.cc-card .cc-title { margin: 0; font: 700 12px/1.3 var(--font-sans); color: var(--cc-text, var(--ink)); }
.cc-card .cc-count { font-size: 12px; color: var(--cc-muted, var(--ink-soft)); }
.cc-card .cc-count--quiet { color: var(--amber); font-weight: 600; }
.cc-card .cc-key { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; font-size: 11.5px; color: var(--cc-muted, var(--ink-soft)); }
.cc-card .cc-swatch { display: inline-block; width: 4px; height: 12px; border-radius: 1px; background: var(--success); }
.cc-card .cc-note { margin: 6px 0; font-size: 13px; color: var(--cc-muted, var(--ink-soft)); }
.cc-card .cc-link { margin: 0; padding: 0; border: 0; background: none; color: var(--cc-link, var(--accent)); font: 600 13px/1.3 var(--font-sans); cursor: pointer; }
.cc-card .cc-more { margin-top: 10px; }
.cc-card .cc-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 8px; font-size: 12px; color: var(--cc-muted, var(--ink-soft)); }
.cc-card .cc-check, .cc-card .cc-sort { display: inline-flex; align-items: center; gap: 6px; }
.cc-card .cc-sort select { font: 400 12px/1.3 var(--font-sans); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--cc-border, var(--hairline-strong)); background: var(--cc-card, var(--white)); color: var(--cc-text, var(--ink)); }
.cc-card .cc-link:focus-visible, .cc-card select:focus-visible, .cc-card input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The rows: who, their rep, the track, the right-hand column. */
.cc-card .cc-grid { display: flex; flex-direction: column; }
.cc-card .cc-row { display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(90px, 0.6fr) minmax(260px, 4fr) 96px; align-items: center; gap: 12px; padding: 5px 0; border-top: 1px solid var(--cc-border, var(--hairline)); }
.cc-card .cc-row--axis { border-top: 0; padding: 0 0 2px; }
.cc-card .cc-who { display: flex; flex-direction: column; min-width: 0; }
.cc-card .cc-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-card .cc-place { font-size: 11.5px; color: var(--cc-muted, var(--ink-soft)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-card .cc-rep { font-size: 12px; color: var(--cc-muted, var(--ink-soft)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-card .cc-rep[data-cc-rep="none"] { color: var(--ink-faint); }
.cc-card .cc-last { font-size: 12px; text-align: right; white-space: nowrap; color: var(--cc-ink); font-weight: 600; }

/* The row's colour. */
.cc-card .cc-row--rhythm { --cc-ink: var(--success); }
.cc-card .cc-row--quiet { --cc-ink: var(--amber); }
.cc-card .cc-row--never { --cc-ink: var(--ink-faint); }

/* The track: --cc-weeks columns, the newest at the right. A mark sits in its week's column (--i: 0 the oldest week drawn of
   the 52, 51 this week); on a phone the first 52 - --cc-weeks columns fall off the left and are clipped. */
.cc-card .cc-track {
  position: relative; display: block; height: 22px; overflow: hidden;
  background-image: linear-gradient(to right, transparent 0 35%, var(--hairline-strong) 35% 65%, transparent 65%);
  background-size: calc(100% / var(--cc-weeks)) 5px; background-repeat: repeat-x; background-position: left bottom;
}
.cc-card .cc-track--axis { height: 14px; background: none; }
.cc-card .cc-mark {
  position: absolute; bottom: 0; height: 100%; box-sizing: border-box;
  left: calc((var(--i) - (52 - var(--cc-weeks))) * 100% / var(--cc-weeks));
  width: calc(100% / var(--cc-weeks));
}
.cc-card .cc-mark::after {
  content: ""; position: absolute; left: 22%; right: 22%; top: 0; bottom: 0; box-sizing: border-box; border-radius: 1px;
  background: var(--cc-ink);
}
.cc-card .cc-tick {
  position: absolute; top: 0; font-size: 10.5px; line-height: 14px; color: var(--cc-muted, var(--ink-soft)); white-space: nowrap;
  left: calc((var(--i) - (52 - var(--cc-weeks))) * 100% / var(--cc-weeks));
}

/* A phone: the name and the right-hand column on one line, the last 13 weeks under them, the rep left out. */
@media (max-width: 640px) {
  .cc-card { --cc-weeks: 13; padding: 14px 12px; }
  .cc-card .cc-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .cc-card .cc-rep { display: none; }
  .cc-card .cc-track { grid-column: 1 / -1; grid-row: 2; }
  .cc-card .cc-row--axis .cc-who, .cc-card .cc-row--axis .cc-last { display: none; }
  .cc-card .cc-row--axis .cc-track { grid-row: 1; }
}
/* calendarRail.css — the calendar panel (CalendarRail.jsx), down the right of Home and the record pages. Tokens only
   (src/styles/tokens.css), Geist through them. A white column with a hairline at its left, its own scroll. Busy is muted
   ink (it is information, not a fault); the accent for actions and links; today's day name in the accent.
   Every rule two classes deep under .cr-rail, as the New screens' are, so the root's resets don't reach in. */
.cr-rail.cr-rail { flex: 0 0 300px; width: 300px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 18px 16px 24px;
  overflow-y: auto; background: var(--white); border-left: 1px solid var(--hairline); color: var(--ink); font: 400 13px/1.45 var(--font-sans); }
.cr-rail .cr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 0; }
.cr-rail .cr-title { margin: 0; padding: 0; font: 600 15px/1.3 var(--font-sans); color: var(--ink); }
/* The top: the title on one row, the week on its own under it (2026-11-10). */
.cr-rail .cr-top { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.cr-rail .cr-nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; min-width: 0; }
.cr-rail .cr-week { flex: 1 1 auto; min-width: 0; text-align: center; font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-rail .cr-step { margin: 0; padding: 2px 7px; border: 1px solid var(--hairline-strong); border-radius: 6px; background: var(--white); color: var(--ink); font: 600 13px/1 var(--font-sans); cursor: pointer; }
.cr-rail .cr-section { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--hairline); }
.cr-rail .cr-h3 { margin: 0; padding: 0; font: 600 12px/1.3 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.cr-rail .cr-sub, .cr-rail .cr-note { margin: 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
.cr-rail .cr-ask { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; padding: 0; }
.cr-rail .cr-button { margin: 0; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: var(--white); font: 600 12px/1.3 var(--font-sans); cursor: pointer; }
.cr-rail .cr-button:disabled { opacity: .5; cursor: default; }
.cr-rail .cr-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 12px/1.3 var(--font-sans); cursor: pointer; }
.cr-rail .cr-day { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; }
.cr-rail .cr-day__name { font-size: 12px; font-weight: 600; color: var(--ink); }
.cr-rail .cr-day__name--today { color: var(--accent); }
.cr-rail .cr-event { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 0 8px; margin: 0; padding: 0; font-size: 12px; }
.cr-rail .cr-event__time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cr-rail .cr-event__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-rail .cr-event__title a, .cr-rail .cr-event__meta a { color: inherit; text-decoration: none; }
.cr-rail .cr-event__meta { grid-column: 2; color: var(--ink-soft); font-size: 11px; }
.cr-rail .cr-event__meta a { color: var(--accent); font-weight: 600; }
.cr-rail .cr-days { display: flex; gap: 4px; margin: 0; padding: 0; }
.cr-rail .cr-tab { flex: 1 1 0; margin: 0; padding: 3px 0; border: 1px solid var(--hairline-strong); border-radius: 6px; background: var(--white); color: var(--ink-soft); font: 600 11px/1.3 var(--font-sans); cursor: pointer; }
.cr-rail .cr-tab--on { border-color: var(--accent); color: var(--accent); }
.cr-rail .cr-person { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 4px 0; }
.cr-rail .cr-person__line { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.cr-rail .cr-person__name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-rail .cr-person__words { color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }
.cr-rail .cr-bar { position: relative; height: 6px; margin: 0; padding: 0; border-radius: 3px; background: var(--parchment-dim); overflow: hidden; }
.cr-rail .cr-bar__busy { position: absolute; top: 0; bottom: 0; background: var(--ink-soft); border-radius: 3px; }
.cr-rail .cr-step:focus-visible, .cr-rail .cr-tab:focus-visible, .cr-rail .cr-button:focus-visible, .cr-rail .cr-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The button that opens the pane and puts it away is the top bar's (CalendarPaneButton.jsx, 2026-11-10); put away, the pane
   takes no room at all. */
/* src/modules/revenue/features/trackers/trackers.css — one tracker (TrackerPage.jsx), its row panel (TrackerPanel.jsx) and
   Where it stands (TrackerProgress.jsx). Loaded by TrackerPage.jsx alone.
   EVERY RULE IS SCOPED UNDER .tk-screen, two classes deep: the global reset `[class^='cd-'] button { background: none;
   border: none; font: inherit }` (0,1,1) reaches every button on the page and outranks a single-class rule. Two classes
   (0,2,0) win. The root's own `* { margin: 0; padding: 0 }` is why every margin and padding here is stated.
   THE PLACE: the Projects hub's Trackers tab, whose body is already the padded, scrolling area, so no gutter or scroller here.
   The table is as wide as the file: it scrolls sideways inside its card, the dealer column held at the left.
   COLOR MEANS SOMETHING: the accent for the app's own (a link, Export, a pad's count, a bar in Where it stands); amber on
   three things — a note that wasn't saved, the dot on a pad whose row has an open task, and a due date past and still open
   (the attention token); an
   unmatched row is a gray tag, not a warning (the row still holds its notes). Tokens only, never a color typed in.
   THE PANEL sits to the right of the table at about 430px (the page becomes two columns while it is open); on a phone it is
   a full-width sheet over the page (.tk-panel--sheet, set by the app's mobile setting, never a media query).
   THE FONTS (Ryan, 2026-10-22: Geist only), by token only: the title at --weight-title; everything else in Geist
   (--font-sans) too; a figure in a cell in Geist with tabular figures (.tk-td--num, .tk-num). */

/* The review's line when it couldn't be drawn (TrackerWithFallback.jsx): outside .tk-screen, so one class of its own. */
.tk-fell { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: var(--amber-soft); color: var(--ink); font: 400 13px/1.4 var(--font-sans); }
/* The review's own line when it couldn't be drawn, with the way back to the tracker (TrackerWithFallback.jsx). */
.tk-fell .tk-fell__back { margin: 0 0 0 4px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.4 var(--font-sans); cursor: pointer; }

.tk-screen { display: flex; flex-direction: column; gap: var(--space-section-gap); min-width: 0; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.tk-screen .tk-main { display: flex; flex-direction: column; gap: var(--space-section-gap); min-width: 0; }
.tk-screen.tk-screen--panel { display: grid; grid-template-columns: minmax(0, 1fr) 430px; align-items: start; gap: 16px; }
.tk-screen .tk-num { font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.tk-screen .tk-muted { color: var(--ink-soft); }
.tk-screen .tk-attn { color: var(--amber); }
.tk-screen .tk-small { font-size: 12px; }
.tk-screen .tk-file { overflow-wrap: anywhere; }

.tk-screen .tk-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin: 0; padding: 0; }
.tk-screen .tk-head__text { min-width: 0; }
.tk-screen .tk-head__actions { display: flex; gap: 8px; flex: none; }
/* The tracker's own fields under its title (TrackerFields.jsx): who completed it and when, its due date (amber when it is
   past due and still open: the attention token), and management's Complete, Rename and due date. */
.tk-screen .tk-fields { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tk-screen .tk-fields .tk-fields__line { margin: 0; }
.tk-screen .tk-fields .tk-fields__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.tk-screen .tk-fields .tk-fields__edit { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tk-screen .tk-fields .tk-fields__name { min-width: 18ch; }
.tk-screen .tk-fields .tk-fields__who, .tk-screen .tk-fields .tk-fields__state { margin: 0; }
/* Delete, asked first (item 10): the words, then Delete and Cancel, on parchment as the column manager asks. */
.tk-screen .tk-fields .tk-fields__ask { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; max-width: 72ch; padding: 8px 10px; border-radius: 8px; background: var(--parchment); }
.tk-screen .tk-fields .tk-fields__ask p { flex-basis: 100%; margin: 0; }
.tk-screen .tk-fields .tk-remind { flex-basis: 100%; }
.tk-screen .tk-fields .tk-remind .tk-remind__list { flex-basis: 100%; margin: 0; padding-left: 20px; }
/* A deleted tracker's own address (TrackerDeleted.jsx): its name, who deleted it and when, and Restore. */
.tk-screen .tk-deleted { display: flex; flex-direction: column; gap: 8px; max-width: 72ch; }
.tk-screen .tk-deleted .tk-sub, .tk-screen .tk-deleted__actions { margin: 0; }
.tk-screen .tk-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.tk-screen .tk-sub { margin: var(--space-page-sub) 0 0; padding: 0; max-width: 90ch; font-size: var(--text-page-sub); color: var(--ink-soft); }
.tk-screen .tk-tally { color: var(--ink); font-variant-numeric: tabular-nums; }
.tk-screen .tk-fresh { margin: var(--space-page-sub) 0 0; padding: 0; max-width: 90ch; font-size: var(--text-page-sub); color: var(--ink-soft); }
.tk-screen .tk-note { margin: 0; padding: 0; max-width: 72ch; font-size: 13px; color: var(--ink-soft); }
.tk-screen .tk-note--bad { color: var(--ink); }
.tk-screen .tk-empty { margin: 0; padding: var(--space-card-y) var(--space-card-x); max-width: 72ch; background: var(--white); border: 1px solid var(--hairline); border-radius: 11px; color: var(--ink-soft); }
.tk-screen .tk-empty--bad { color: var(--ink); }

.tk-screen .tk-button { display: inline-flex; align-items: center; margin: 0; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.tk-screen .tk-button--primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.tk-screen .tk-button--primary:hover:not(:disabled) { background: var(--accent-raised); }
.tk-screen .tk-button:disabled { opacity: .45; cursor: default; }
.tk-screen .tk-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.35 var(--font-sans); cursor: pointer; text-align: left; text-underline-offset: 2px; }
.tk-screen .tk-link:hover { text-decoration: underline; }
.tk-screen .tk-link--plain { align-self: flex-start; color: var(--ink-soft); font-weight: 500; }
.tk-screen .tk-button:focus-visible, .tk-screen .tk-link:focus-visible, .tk-screen .tk-input:focus-visible,
.tk-screen .tk-textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The table: a white card, the table inside it scrolling sideways; the dealer column held at the left as it scrolls. */
.tk-screen .tk-card { box-sizing: border-box; min-width: 0; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 11px; }
.tk-screen .tk-card__body { min-width: 0; overflow-x: auto; }
.tk-screen .tk-table { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tk-screen .tk-table th, .tk-screen .tk-table td { margin: 0; padding: 6px 10px; border-top: 1px solid var(--hairline); text-align: left; vertical-align: top; font-weight: 400; white-space: nowrap; background: var(--white); }
.tk-screen .tk-table thead th { border-top: 0; padding-top: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.tk-screen .tk-table .tk-th--num, .tk-screen .tk-table .tk-td--num { text-align: right; font-variant-numeric: tabular-nums; }
.tk-screen .tk-table .tk-col--dealer { position: sticky; left: 0; z-index: 1; min-width: 180px; max-width: 260px; padding-left: 0; white-space: normal; border-right: 1px solid var(--hairline); }
.tk-screen .tk-table tbody .tk-col--dealer { font-weight: 500; color: var(--ink); }
.tk-screen .tk-table .tk-col--notes { padding-right: 0; text-align: center; }
/* A line's sheet (252): each row's number in place of the dealer, held at the left as the dealer is, narrow. */
.tk-screen .tk-table .tk-col--row { position: sticky; left: 0; z-index: 1; width: 1%; padding-left: 0; white-space: nowrap; border-right: 1px solid var(--hairline); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tk-screen .tk-table tbody tr.tk-row--open th, .tk-screen .tk-table tbody tr.tk-row--open td { background: var(--parchment); }

.tk-screen .tk-unmatched { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.tk-screen .tk-raw { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.tk-screen .tk-tag { display: inline-block; margin: 0; padding: 0 6px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink-soft); font: 500 11px/17px var(--font-sans); }
.tk-screen .tk-match { display: flex; flex-direction: column; gap: 6px; padding: 2px 0 4px; }
.tk-screen .tk-match__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tk-screen .tk-match__name { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.tk-screen .tk-match__head .tk-link--plain { flex-shrink: 0; }
/* Add a row (230): the button under the table; open, the dealer to add it for, in a card as wide as a note. */
.tk-screen .tk-add { margin: 0; }
.tk-screen .tk-add--open { display: flex; flex-direction: column; gap: 6px; max-width: 420px; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 11px; }
.tk-screen .tk-add__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; }
.tk-screen .tk-add__title { color: var(--ink); font-weight: var(--weight-heading); }
.tk-screen .tk-add__head .tk-link--plain { flex-shrink: 0; }
.tk-screen .tk-add--open p { margin: 0; }
.tk-screen .tk-add__waiting { margin: 0; }
.tk-screen .tk-input { box-sizing: border-box; width: 100%; margin: 0; padding: 5px 8px; border: 1px solid var(--hairline-strong); border-radius: 7px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.tk-screen .tk-textarea { box-sizing: border-box; width: 100%; margin: 0; padding: 5px 8px; border: 1px solid var(--hairline-strong); border-radius: 7px; background: var(--white); color: var(--ink); font: 400 13px/1.4 var(--font-sans); resize: vertical; }
.tk-screen .tk-textarea::placeholder { color: var(--ink-faint); }

/* The notepad on each row: the count in a badge (the accent), a dot for an open task (amber), a plain pad with neither; a
   "?" when the notes couldn't be read. */
.tk-screen .tk-pad { position: relative; display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 4px 6px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--ink-soft); font: 600 11px/1 var(--font-sans); cursor: pointer; }
.tk-screen .tk-pad:hover { border-color: var(--hairline-strong); color: var(--ink); }
.tk-screen .tk-pad:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tk-screen .tk-pad.tk-pad--open { border-color: var(--accent); color: var(--accent); }
.tk-screen .tk-pad.tk-pad--plain { color: var(--ink-faint); }
.tk-screen .tk-pad .tk-pad__icon { display: block; flex: none; }
.tk-screen .tk-pad .tk-pad__count { min-width: 16px; padding: 2px 4px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-variant-numeric: tabular-nums; text-align: center; }
.tk-screen .tk-pad .tk-pad__count--unknown { background: var(--parchment-dim); color: var(--ink-soft); }
.tk-screen .tk-pad .tk-pad__dot { position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 999px; background: var(--amber); }

/* The panel: the row's notes. */
.tk-screen .tk-panel { box-sizing: border-box; position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; max-height: calc(100vh - 32px); overflow-y: auto; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 11px; box-shadow: var(--shadow-sm); }
.tk-screen .tk-panel.tk-panel--sheet { position: fixed; inset: 0; z-index: 40; max-height: none; border-radius: 0; border: 0; }
.tk-screen .tk-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tk-screen .tk-panel__dealer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; padding: 0; font: var(--weight-heading) 16px/1.3 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.tk-screen .tk-panel__dealer .tk-panel__dealer-link { font: inherit; }
.tk-screen .tk-panel__close { flex: none; margin: 0; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--ink-soft); font: 400 20px/1 var(--font-sans); cursor: pointer; }
.tk-screen .tk-panel__close:hover { color: var(--ink); background: var(--parchment); }
.tk-screen .tk-panel__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tk-screen .tk-panel__where { margin: 0; padding: 0; font-size: 13px; color: var(--ink-soft); }
.tk-screen .tk-panel__file summary { cursor: pointer; color: var(--ink-soft); }
.tk-screen .tk-panel__fields { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 6px 0 0; padding: 0; font-size: 12px; }
.tk-screen .tk-panel__fields div { display: contents; }
.tk-screen .tk-panel__fields dt { margin: 0; color: var(--ink-soft); }
.tk-screen .tk-panel__fields dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
/* The row's tasks (landing B), above its notes: the records' own task rows (taskRows.css, bare: no card in the card) and the
   app's one task form (taskForm.css), each styled by its own sheet; here only the section, its head and what it says. */
.tk-screen .tk-panel__tasks { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid var(--hairline); }
.tk-screen .tk-panel__tasks-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tk-screen .tk-panel__unread { margin: 0; color: var(--ink); }
.tk-screen .tk-panel__assign { margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--hairline-strong); }
.tk-screen .tk-panel__notes { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid var(--hairline); }
.tk-screen .tk-panel__h3 { margin: 0; padding: 0; font: var(--weight-heading) 13px/1.3 var(--font-sans); color: var(--ink); }
.tk-screen .tk-panel__box { display: flex; flex-direction: column; gap: 6px; }
.tk-screen .tk-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tk-screen .tk-panel__rule { margin: 0; }
.tk-screen .tk-panel__state { margin: 0; color: var(--ink); }
.tk-screen .tk-thread { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tk-screen .tk-thread__note { margin: 0; padding: 0 0 10px; border-bottom: 1px solid var(--hairline); }
.tk-screen .tk-thread__note:last-child { border-bottom: 0; padding-bottom: 0; }
.tk-screen .tk-thread__by { margin: 0 0 2px; padding: 0; font-size: 12px; color: var(--ink-soft); }
.tk-screen .tk-thread__body { margin: 0; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.tk-screen .tk-thread__note--carried .tk-thread__body { color: var(--ink-soft); }

/* Typed columns (migration 215): the headers name each column's kind and type small; a column from the file reads in gray
   once the tracker has a filled-in-here one; a filled-in-here cell is a control. Yes and No are both ink (red is for
   destroying something); a cell that didn't save is outlined amber; a value that doesn't fit its type is a gray box. */
.tk-screen .tk-table .tk-th__name { display: block; }
.tk-screen .tk-table .tk-th__type { display: block; margin: 1px 0 0; font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-faint); }
.tk-screen .tk-table .tk-th--here { color: var(--ink-soft); }
.tk-screen .tk-table tbody .tk-td--file { color: var(--ink-soft); }
.tk-screen .tk-table .tk-td--here { min-width: 120px; white-space: normal; }
.tk-screen .tk-saved { align-self: center; font-size: 12px; color: var(--ink-soft); }
.tk-screen .tk-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.tk-screen .tk-cell { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; margin: 0; padding: 0; border-radius: 7px; }
.tk-screen .tk-cell.tk-cell--bad { outline: 2px solid var(--amber); outline-offset: 2px; }
.tk-screen .tk-cell.tk-cell--saving { opacity: .7; }
.tk-screen .tk-cell .tk-cell__mark { font-size: 12px; color: var(--ink-faint); }
.tk-screen .tk-cell .tk-cell__input { min-width: 96px; }
.tk-screen .tk-cell .tk-cell__problem { flex-basis: 100%; margin: 0; padding: 0; max-width: 32ch; font-size: 12px; line-height: 1.35; color: var(--ink); white-space: normal; }
.tk-screen .tk-cell .tk-cell__changed { flex-basis: 100%; margin: 0; padding: 0; max-width: 32ch; font-size: 12px; line-height: 1.35; color: var(--ink-soft); white-space: normal; }
.tk-screen .tk-cell .tk-cell__collision { flex-basis: 100%; display: flex; flex-direction: column; gap: 2px; }
.tk-screen .tk-cell .tk-cell__choices { display: flex; gap: 10px; }
.tk-screen .tk-unfit { display: inline-block; margin: 0; padding: 1px 6px; border-radius: 6px; background: var(--parchment-dim); color: var(--ink-soft); font-size: 12px; line-height: 1.4; white-space: normal; }
.tk-screen .tk-tick { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.tk-screen .tk-select { box-sizing: border-box; margin: 0; padding: 4px 6px; border: 1px solid var(--hairline-strong); border-radius: 7px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.tk-screen .tk-yn { display: inline-flex; align-items: center; gap: 2px; }
.tk-screen .tk-yn .tk-yn__opt { margin: 0; padding: 3px 9px; border: 1px solid var(--hairline-strong); border-radius: 7px; background: var(--white); color: var(--ink); font: 500 12px/1.3 var(--font-sans); cursor: pointer; }
.tk-screen .tk-yn .tk-yn__opt[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.tk-screen .tk-yn .tk-yn__clear { margin: 0 0 0 4px; padding: 0; border: 0; background: none; color: var(--ink-soft); font: 500 12px/1.3 var(--font-sans); cursor: pointer; }
.tk-screen .tk-yn .tk-yn__opt:focus-visible, .tk-screen .tk-yn .tk-yn__clear:focus-visible, .tk-screen .tk-select:focus-visible,
.tk-screen .tk-tick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* A cell's history: a small card under the cell, on hover, focus or a long press. */
.tk-screen .tk-hist { position: absolute; top: 100%; left: 0; z-index: 5; box-sizing: border-box; width: 300px; max-width: 80vw; margin: 4px 0 0; padding: 8px 10px; background: var(--white); border: 1px solid var(--hairline-strong); border-radius: 9px; box-shadow: var(--shadow-sm); color: var(--ink); font-size: 12px; line-height: 1.4; white-space: normal; text-align: left; }
.tk-screen .tk-hist .tk-hist__head { margin: 0 0 4px; padding: 0; font-weight: 600; color: var(--ink-soft); }
.tk-screen .tk-hist .tk-hist__list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tk-screen .tk-hist .tk-hist__bad { margin: 0; color: var(--ink); }

/* What the tracker is for: the firm's own words at the top, who set them beneath. */
.tk-screen .tk-context { box-sizing: border-box; max-width: 72ch; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 11px; }
.tk-screen .tk-context .tk-context__words { margin: 0; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.tk-screen .tk-context .tk-context__by, .tk-screen .tk-context .tk-context__empty { margin: 4px 0 0; padding: 0; }
.tk-screen .tk-context .tk-context__edit { display: flex; flex-direction: column; gap: 6px; }
.tk-screen .tk-context .tk-context__actions { display: flex; align-items: center; gap: 10px; }

/* What the tracker is for and Where it stands, side by side at the top (landing E); one above the other on a phone (the
   app's mobile setting, never a media query). */
.tk-screen .tk-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin: 0; padding: 0; min-width: 0; }
.tk-screen .tk-top > .tk-context, .tk-screen .tk-top > .tk-progress { flex: 1 1 320px; min-width: 0; }
.tk-screen .tk-top.tk-top--phone { flex-direction: column; align-items: stretch; }
.tk-screen .tk-top.tk-top--phone > .tk-context, .tk-screen .tk-top.tk-top--phone > .tk-progress { flex: none; max-width: none; }

/* Where it stands: a line per counted column, its bar the line's own figure drawn (the accent on parchment); a finding in
   ink; what wasn't counted in gray; who has nobody against them under a hairline. A failed read is words and Reload alone:
   no figure, no bar. */
.tk-screen .tk-progress { box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; max-width: 72ch; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 11px; }
.tk-screen .tk-progress .tk-progress__title { margin: 0; padding: 0; font: var(--weight-heading) 13px/1.3 var(--font-sans); color: var(--ink); }
.tk-screen .tk-progress .tk-progress__base, .tk-screen .tk-progress .tk-progress__empty, .tk-screen .tk-progress .tk-progress__state { margin: 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
.tk-screen .tk-progress .tk-progress__state--bad { color: var(--ink); }
.tk-screen .tk-progress .tk-progress__lines { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.tk-screen .tk-progress .tk-progress__line { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; }
.tk-screen .tk-progress .tk-progress__words { margin: 0; padding: 0; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tk-screen .tk-progress .tk-progress__bar { display: block; height: 4px; margin: 0; padding: 0; border-radius: 999px; background: var(--parchment-dim); overflow: hidden; }
.tk-screen .tk-progress .tk-progress__fill { display: block; height: 100%; margin: 0; padding: 0; border-radius: 999px; background: var(--accent); }
.tk-screen .tk-progress .tk-progress__finding { margin: 0; padding: 0; font-size: 12px; font-weight: 500; color: var(--ink); }
.tk-screen .tk-progress .tk-progress__uncounted, .tk-screen .tk-progress .tk-progress__gone { margin: 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
.tk-screen .tk-progress .tk-progress__nobody { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 0; padding: 8px 0 0; border-top: 1px solid var(--hairline); }
.tk-screen .tk-progress .tk-progress__who { margin: 0; padding: 0; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tk-screen .tk-progress .tk-progress__nobody--none .tk-progress__who { font-size: 12px; color: var(--ink-soft); }

/* The column manager: a card above the table, management's. */
.tk-screen .tk-manager { box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 11px; }
.tk-screen .tk-manager .tk-manager__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tk-screen .tk-manager .tk-manager__title { margin: 0; padding: 0; font: var(--weight-heading) 15px/1.3 var(--font-sans); color: var(--ink); }
.tk-screen .tk-manager .tk-manager__h3 { margin: 4px 0; padding: 0; font: var(--weight-heading) 13px/1.3 var(--font-sans); color: var(--ink); }
.tk-screen .tk-manager .tk-manager__list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tk-screen .tk-manager .tk-manager__col { display: flex; flex-direction: column; gap: 4px; padding: 0 0 8px; border-bottom: 1px solid var(--hairline); }
.tk-screen .tk-manager .tk-manager__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tk-screen .tk-manager .tk-manager__name { width: 220px; max-width: 100%; }
.tk-screen .tk-manager .tk-manager__count { display: inline-flex; align-items: center; gap: 4px; }
.tk-screen .tk-manager .tk-manager__moves { display: inline-flex; gap: 6px; }
.tk-screen .tk-manager .tk-manager__preview { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 8px; border-radius: 8px; background: var(--parchment); }
.tk-screen .tk-manager .tk-manager__preview p { margin: 0; }
.tk-screen .tk-manager .tk-manager__why { margin: 0; }
.tk-screen .tk-manager .tk-manager__choices { display: flex; flex-direction: column; gap: 4px; padding: 0 0 0 12px; }
.tk-screen .tk-manager .tk-manager__choice-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tk-screen .tk-manager .tk-manager__choice-list li { display: flex; align-items: center; gap: 8px; }
.tk-screen .tk-manager .tk-manager__choice--retired .tk-input { color: var(--ink-faint); }
.tk-screen .tk-manager .tk-manager__add { display: flex; flex-direction: column; gap: 6px; }

/* A tracker's task sets (242): a card under what the tracker is for. Each set a block (what it gives and to whom, its tasks,
   where it stands, who made it); the form a column of fields. */
.tk-screen .tk-sets { display: flex; flex-direction: column; gap: 10px; max-width: 72ch; }
.tk-screen .tk-sets .tk-sets__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tk-screen .tk-sets .tk-sets__title { margin: 0; padding: 0; font: var(--weight-heading) 13px/1.3 var(--font-sans); color: var(--ink); }
.tk-screen .tk-sets .tk-sets__list, .tk-screen .tk-sets .tk-sets__people { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tk-screen .tk-sets .tk-sets__people { gap: 4px; }
.tk-screen .tk-sets .tk-sets__set { padding: 8px 0 0; border-top: 1px solid var(--hairline); }
.tk-screen .tk-sets .tk-sets__set p { margin: 2px 0; padding: 0; }
.tk-screen .tk-sets .tk-sets__what { color: var(--ink); font-size: 13px; }
.tk-screen .tk-sets .tk-sets__items { margin: 4px 0; padding-left: 20px; font-size: 13px; color: var(--ink); }
.tk-screen .tk-sets .tk-sets__form { display: flex; flex-direction: column; gap: 8px; }
.tk-screen .tk-sets .tk-sets__field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink); }
.tk-screen .tk-sets .tk-sets__field--inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.tk-screen .tk-sets .tk-sets__field--inline .tk-input { width: auto; }
.tk-screen .tk-sets .tk-sets__days { width: 72px; }
.tk-screen .tk-sets .tk-sets__who { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink); }
.tk-screen .tk-sets .tk-sets__who legend { padding: 0; margin: 0 0 4px; }
.tk-screen .tk-sets .tk-sets__actions { display: flex; align-items: center; gap: 10px; }
/* 13b (243): a set that repeats, each run's done count, and Stop asked once more */
.tk-screen .tk-sets .tk-sets__runs { margin: 2px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.tk-screen .tk-sets .tk-sets__confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* src/modules/revenue/features/trackers/trackerReview.css — a tracker's review (TrackerReview.jsx), on screen and printed.
   Loaded by TrackerReview.jsx alone.
   EVERY RULE IS SCOPED UNDER .tr-review, two classes deep, as the tracker page's are (trackers.css says why: the global
   reset on buttons outranks a single class). Tokens only, never a color typed in; Geist (--font-sans) only.
   ON SCREEN: a sheet of paper's width inside the Projects hub's body, the bar above it (back, the three switches with a
   switch per column of the dealers' table under them, Print).
   On a phone (the app's mobile setting, .tr-review--phone, never a media query) the bar stacks and the sheet's margins
   narrow; a table wider than the phone scrolls sideways in its own box.
   THE FILE'S SECTION sits in a gray band (the hairline's ink over white), printed as drawn; the firm's sections are in ink.
   PRINTED (@media print below): on a page of its own, the named page tracker-review, Letter, portrait, with margins; a
   review whose dealers' table is past what portrait holds (.tr-review--landscape; trackerReviewModel.js REVIEW_TABLE_MAX)
   prints on tracker-review-wide, the same page turned landscape. Only the review prints on those pages, so opening a review
   changes how no other page of the app prints. A long value in a table wraps inside its cell; printed, a word too long for
   its column (a link) breaks inside it rather than widen the dealers' table past the page (on screen the words stay whole
   and a table too wide scrolls sideways in its own box). Every section
   avoids splitting at a page's foot, so one that wouldn't fit starts a new page; a dealer's line, block or group of notes never splits; a heading stays with what follows
   it. The dealer list's and the tasks' header rows repeat on each page (a real <thead>, a table-header-group). The
   tracker's name runs at the top of every page, in the page's top margin (the named page's top-left margin box: the
   review sets its words while it is open, trackerReviewModel.js runningHead; this sets how they look). The switches, the buttons and
   the bar don't print, and neither does the app around the review: every element holding the review prints as a plain
   block that clips nothing, and everything beside it is left out. */

.tr-review { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-section-gap); max-width: 860px; min-width: 0; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }

/* The bar: back to the tracker, the switches, Print. */
.tr-review .tr-bar { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.tr-review .tr-bar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.tr-review .tr-bar__switches { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tr-review .tr-switches { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.tr-review .tr-switches__legend { margin: 0 0 4px; padding: 0; font: 600 11px/1.3 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.tr-review .tr-switch { display: inline-flex; align-items: center; gap: 6px; margin: 0 18px 0 0; padding: 2px 0; font-size: 13px; color: var(--ink); cursor: pointer; }
.tr-review .tr-switch input { margin: 0; accent-color: var(--accent); }
.tr-review .tr-hint { margin: 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
.tr-review .tr-button { display: inline-flex; align-items: center; margin: 0; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.tr-review .tr-button--primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.tr-review .tr-button--primary:hover { background: var(--accent-raised); }
.tr-review .tr-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.35 var(--font-sans); cursor: pointer; text-align: left; text-underline-offset: 2px; }
.tr-review .tr-link:hover { text-decoration: underline; }
.tr-review .tr-link--plain { align-self: flex-start; color: var(--ink-soft); font-weight: 500; }
.tr-review .tr-button:focus-visible, .tr-review .tr-link:focus-visible, .tr-review .tr-switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The sheet. */
.tr-review .tr-doc { box-sizing: border-box; display: flex; flex-direction: column; gap: 22px; min-width: 0; margin: 0; padding: 28px 32px; background: var(--white); border: 1px solid var(--hairline); border-radius: 11px; }
.tr-review .tr-section, .tr-review .tr-foot { min-width: 0; margin: 0; padding: 0; }
.tr-review .tr-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.tr-review .tr-h2 { margin: 0 0 8px; padding: 0; font: var(--weight-heading) var(--text-base)/1.3 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.tr-review .tr-h3 { margin: 0 0 4px; padding: 0; font: var(--weight-heading) var(--text-sm)/1.35 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.tr-review .tr-facts { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 8px 0 0; padding: 0; font-size: 13px; }
.tr-review .tr-fact { display: flex; gap: 6px; min-width: 0; }
.tr-review .tr-fact dt { margin: 0; color: var(--ink-soft); }
.tr-review .tr-fact dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
/* A due date past and still open: the attention token (the tracker's own fields). */
.tr-review .tr-attn { color: var(--amber); font-weight: 600; }
.tr-review .tr-separation { max-width: 80ch; margin: 14px 0 0; padding: 10px 0 0; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--ink-soft); }
.tr-review .tr-foot .tr-separation { margin: 0; }
.tr-review .tr-purpose { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tr-review .tr-by { margin: 2px 0 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
.tr-review .tr-state { margin: 0; padding: 0; color: var(--ink-soft); }
.tr-review .tr-failed { margin: 0 0 8px; padding: 0; color: var(--ink); }

/* Where it stands, and the file's figures: a line each. */
.tr-review .tr-base { margin: 0 0 6px; padding: 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tr-review .tr-lines, .tr-review .tr-sums { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tr-review .tr-line, .tr-review .tr-sum { margin: 0; padding: 0; }
.tr-review .tr-line__words, .tr-review .tr-sum__words { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tr-review .tr-line__finding { margin: 2px 0 0; color: var(--ink); font-weight: 500; }
.tr-review .tr-line__uncounted { margin: 2px 0 0; font-size: 12px; color: var(--ink-soft); }
.tr-review .tr-nobody { margin: 8px 0 0; padding: 0; }
.tr-review .tr-nobody p { margin: 0; }

/* The file's section: a gray band under the line's name. */
.tr-review .tr-band { margin: 0 -14px; padding: 14px; border-radius: 8px; background: var(--hairline); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tr-review .tr-band__file { margin: -4px 0 8px; padding: 0; font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }

/* The dealers: a table while their columns fit across the page, a block each past that; the open tasks, a table. */
.tr-review .tr-scroll { min-width: 0; overflow-x: auto; }
.tr-review .tr-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tr-review .tr-table th, .tr-review .tr-table td { margin: 0; padding: 5px 8px; border-top: 1px solid var(--hairline); text-align: left; vertical-align: top; font-weight: 400; overflow-wrap: break-word; }
.tr-review .tr-table th:first-child, .tr-review .tr-table td:first-child { padding-left: 0; }
.tr-review .tr-table thead th { border-top: 0; padding-top: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.tr-review .tr-table tbody th { font-weight: 500; color: var(--ink); }
.tr-review .tr-unfit { color: var(--ink-soft); font-style: italic; }
.tr-review .tr-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tr-review .tr-block { margin: 0; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 8px; }
.tr-review .tr-block__name { margin: 0 0 4px; font-weight: 500; overflow-wrap: anywhere; }
/* A dealer added here (230): who added it and when, small, on its own line under the name. */
.tr-review .tr-added { display: block; margin: 1px 0 0; font-size: 11.5px; font-weight: 400; color: var(--ink-soft); }
.tr-review .tr-block__values { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 0; padding: 0; font-size: 12.5px; }
.tr-review .tr-block__value { display: contents; }
.tr-review .tr-block__value dt { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.tr-review .tr-block__value dd { margin: 0; overflow-wrap: anywhere; }

/* What we've said: each dealer's notes, newest first. */
.tr-review .tr-group { margin: 0 0 14px; padding: 0; }
.tr-review .tr-notes { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tr-review .tr-note { margin: 0; padding: 0 0 0 10px; border-left: 2px solid var(--hairline-strong); }
.tr-review .tr-note__body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* A phone: the bar stacks, the sheet's margins narrow. */
.tr-review.tr-review--phone .tr-bar__row { flex-direction: column; align-items: flex-start; }
.tr-review.tr-review--phone .tr-doc { gap: 18px; padding: 18px 16px; }
.tr-review.tr-review--phone .tr-h1 { font-size: var(--text-page-title-phone); }
.tr-review.tr-review--phone .tr-band { margin: 0 -8px; padding: 12px 8px; }
.tr-review.tr-review--phone .tr-facts { flex-direction: column; }

/* ── Printed ─────────────────────────────────────────────────────────────────────────────────────────────────────────── */
@media print {
  /* The review's own page; the tracker's name at the top of each, in its margin: the words are the review's (runningHead),
     the look is here. */
  @page tracker-review { size: letter portrait; margin: 0.8in 0.6in 0.6in;
    @top-left { font: 500 8.5pt/1.2 var(--font-sans); color: var(--ink-soft); vertical-align: bottom; padding-bottom: 0.2in; } }
  /* The same page turned landscape, for a dealers' table past what portrait holds: the review chooses it. */
  @page tracker-review-wide { size: letter landscape; margin: 0.8in 0.6in 0.6in;
    @top-left { font: 500 8.5pt/1.2 var(--font-sans); color: var(--ink-soft); vertical-align: bottom; padding-bottom: 0.2in; } }
  /* The app around the review: every element holding it a plain block that clips nothing; everything beside it left out. */
  :has(.tr-review) { display: block !important; position: static !important; overflow: visible !important; height: auto !important; min-height: 0 !important;
    max-height: none !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
    box-shadow: none !important; transform: none !important; background: var(--white) !important; }
  :has(.tr-review) > :not(:has(.tr-review)):not(.tr-review) { display: none !important; }
  .tr-review { display: block; max-width: none; font-size: 10.5pt; page: tracker-review; }
  .tr-review.tr-review--landscape { page: tracker-review-wide; }
  .tr-review .tr-noprint { display: none !important; }
  .tr-review .tr-doc { display: block; padding: 0; border: 0; border-radius: 0; }
  .tr-review .tr-doc > .tr-section, .tr-review .tr-doc > .tr-foot { margin-top: 18px; }
  .tr-review .tr-doc > .tr-head { margin-top: 0; }
  /* A section that would split at a page's foot starts a new page; a heading stays with what follows it. */
  .tr-review .tr-section, .tr-review .tr-foot { break-inside: avoid; page-break-inside: avoid; }
  .tr-review .tr-h2, .tr-review .tr-h3 { break-after: avoid; page-break-after: avoid; }
  /* A long list breaks between dealers, never inside one; the header row repeats on each page. */
  .tr-review .tr-table thead { display: table-header-group; }
  .tr-review .tr-table tr, .tr-review .tr-block, .tr-review .tr-group, .tr-review .tr-note, .tr-review .tr-line, .tr-review .tr-sum { break-inside: avoid; page-break-inside: avoid; }
  .tr-review .tr-scroll { overflow: visible; }
  /* A dealer's value: a word too long for its column breaks inside its cell, never widening the table past the page. */
  .tr-review .tr-table--dealers td { overflow-wrap: anywhere; }
  .tr-review .tr-band { margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* src/modules/revenue/features/campaigns/campaigns.css — the New list of trackers (Campaigns are Trackers, Jon 10-12).
   Loaded by CampaignsList.jsx alone (the registry lets one file load a stylesheet, so a withdrawal can find it).
   EVERY RULE INSIDE THE SCREEN IS SCOPED UNDER .cg-screen, two classes deep, and that is load-bearing: the Classic/New
   wrapper's class starts with "cd-", so the global reset `[class^='cd-'] button { background: none; border: none; font:
   inherit }` (0,1,1) reaches every button here and outranks a single-class rule. Two classes (0,2,0) win.
   The root's own `* { margin: 0; padding: 0 }` is why every margin and padding here is stated.
   THE PLACE: the Trackers tab of the Projects hub, whose body is already the padded, scrolling area (28px gutter, as the
   Classic sits in it) — so this screen adds no gutter and no scroller of its own, and fills the width it is given: the
   cards are a grid across the whole area, a maximum only on the prose (Ryan, 2026-10-03).
   The rules that apply everywhere: colour means something — the workspace's accent for the app's own (links, the bar's
   noted share), amber for "look here" on two things — the unmatched rows, their figure, and a due date past and still
   open (the tracker's own fields) — and nothing else: a failed read
   is said in ink (a sentence is never coloured); nothing for decoration; cards white with a hairline on the near-white
   area, no shadow. Classes, not inline sizes: the root's phone rules rewrite inline ones.
   THE FONTS (Ryan, 2026-10-22: Geist only), by token only, never a family named here: the page title at
   --weight-title; everything else in Geist (--font-sans) too; a figure read down a column (a count, a share) in Geist with
   tabular figures (.cg-num) — no mono, since nothing on this screen is code. */

.cg-screen { color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.cg-screen .cg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 var(--space-section-gap); padding: 0; }
.cg-screen .cg-head__text { min-width: 0; }
.cg-screen .cg-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* The title the size of the hub's other tabs' (Projects, Dashboard: the page title token, src/styles/tokens.css), so it holds
   still between them. */
.cg-screen .cg-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); }
.cg-screen .cg-sub { max-width: 90ch; margin: var(--space-page-sub) 0 0; padding: 0; color: var(--ink-soft); font-size: var(--text-page-sub); }
.cg-screen .cg-note { color: var(--ink); }
.cg-screen .cg-num { font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.cg-screen .cg-muted { color: var(--ink-soft); }
.cg-screen .cg-attn { color: var(--amber); font-weight: 600; }
.cg-screen .cg-file { overflow-wrap: anywhere; }

/* Buttons and links */
.cg-screen .cg-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.cg-screen .cg-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cg-screen .cg-button--primary:hover { background: var(--accent-raised); }
.cg-screen .cg-link { border: 0; background: none; margin: 0; padding: 0; color: var(--accent); font: 600 13px/1.3 var(--font-sans); cursor: pointer; text-align: left; text-underline-offset: 2px; }
.cg-screen .cg-link:hover { text-decoration: underline; }
.cg-screen .cg-button:focus-visible, .cg-screen .cg-link:focus-visible, .cg-screen .cg-card__open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Empty and failed states: a card holding a sentence, so it gets a measure; a failed read in ink, the rest quieter. */
.cg-screen .cg-empty { max-width: 72ch; margin: 0; padding: 20px; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; color: var(--ink-soft); font-size: 13px; }
.cg-screen .cg-empty--bad { color: var(--ink); }

/* The import wizard, in place, as the Classic opens it. */
.cg-screen .cg-import { position: relative; height: 70vh; margin: 0 0 var(--space-panel-gap); padding: 0; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; background: var(--white); }

/* The cards: a grid across the whole width, rows stretched so cards in a row end level. One column on a phone, without a
   breakpoint (min() keeps a card inside a narrow area). */
/* Open, Completed and All (the tracker's own fields): three buttons in a row, the one shown pressed in ink, outlined. */
.cg-screen .cg-views { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--space-panel-gap); padding: 0; }
.cg-screen .cg-view { margin: 0; padding: 5px 12px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--white); color: var(--ink); font: 500 13px/1.3 var(--font-sans); cursor: pointer; }
.cg-screen .cg-view--on { border-color: var(--ink); font-weight: 600; }
.cg-screen .cg-view:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Deleted trackers (item 10, DeletedTrackers.jsx): the way in, a quiet link under the views; the place, a heading the size of a
   card's name, its cards the list's own. */
.cg-screen .cg-deleted-way { margin: 0 0 var(--space-panel-gap); padding: 0; font-size: 13px; color: var(--ink-soft); }
.cg-screen .cg-deleted { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.cg-screen .cg-deleted .cg-sub { margin: 0; }
.cg-screen .cg-h2 { margin: 0; padding: 0; font: var(--weight-heading) 16px/1.3 var(--font-sans); color: var(--ink); }
.cg-screen .cg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: stretch; gap: var(--space-panel-gap); margin: 0; padding: 0; list-style: none; }
.cg-screen .cg-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.cg-screen .cg-card:hover { border-color: var(--hairline-strong); }
.cg-screen .cg-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cg-screen .cg-card__name { min-width: 0; margin: 0; padding: 0; font: var(--weight-heading) 16px/1.3 var(--font-sans); }
/* The card opens the tracker: its name is the button, stretched over the whole card. */
.cg-screen .cg-card__open { display: block; max-width: 100%; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.cg-screen .cg-card__open::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.cg-screen .cg-card__open:hover { text-decoration: underline; text-underline-offset: 2px; }
.cg-screen .cg-card__meta, .cg-screen .cg-card__when, .cg-screen .cg-card__rows { margin: 0; padding: 0; font-size: 12.5px; color: var(--ink-soft); }

/* Progress: the rows carrying a note, of every row, as the tracker page counts them. */
.cg-screen .cg-progress { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; padding: 0; }
.cg-screen .cg-progress p { margin: 0; padding: 0; }
.cg-screen .cg-progress__line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; padding: 0; font-size: 13px; }
.cg-screen .cg-bar { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: var(--parchment-dim); color: var(--accent); overflow: hidden; }
.cg-screen .cg-bar::-webkit-progress-bar { background: var(--parchment-dim); border-radius: 999px; }
.cg-screen .cg-bar::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.cg-screen .cg-bar::-moz-progress-bar { background: var(--accent); border-radius: 999px; }

/* New sheet (252, NewSheet.jsx): in place under the head, as the import wizard opens; a white card with a hairline, its two
   fields side by side where they fit, one over the other on a phone without a breakpoint. */
.cg-screen .cg-new { display: flex; flex-direction: column; gap: 10px; max-width: 72ch; margin: 0 0 var(--space-panel-gap); padding: var(--space-card-y) var(--space-card-x); border: 1px solid var(--hairline); border-radius: 12px; background: var(--white); }
.cg-screen .cg-new .cg-sub { margin: 0; }
.cg-screen .cg-new__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding: 0; }
.cg-screen .cg-new__title { font: var(--weight-heading) 16px/1.3 var(--font-sans); color: var(--ink); }
.cg-screen .cg-new__fields { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 0; padding: 0; }
.cg-screen .cg-new__field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 240px; min-width: 0; margin: 0; padding: 0; }
.cg-screen .cg-new__label { font-size: 12.5px; color: var(--ink-soft); }
.cg-screen .cg-input { width: 100%; box-sizing: border-box; margin: 0; padding: 7px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 14px/1.3 var(--font-sans); }
.cg-screen .cg-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cg-screen .cg-new__actions { margin: 0; padding: 0; }
/* src/modules/revenue/features/trackers/import/columnStep.css — the tracker import's column step (ColumnStep.jsx), "Set the
   columns". Loaded by ColumnStep.jsx alone, inside the Smart Import wizard's tracker review.
   EVERY RULE IS SCOPED UNDER .cs-step, two classes deep, as the trackers' own (trackers.css): the root's reset reaches every
   element, and one class would lose to it. The root's own `* { margin: 0; padding: 0 }` is why every margin and padding here
   is stated.
   A card of rows, one per column of the file, wrapping on a narrow screen (no media query: the rows wrap by themselves).
   COLOR MEANS SOMETHING: the accent for the app's own controls; amber for what needs the person (a list with no choices).
   Tokens only, never a color typed in. THE FONTS (Ryan, 2026-10-22: Geist only), by token only: --font-sans throughout, the
   title at --weight-heading, figures in tabular numerals. */

.cs-step { box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; padding: var(--space-card-y) var(--space-card-x);
  background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; color: var(--ink); font: 400 13px/1.45 var(--font-sans); min-width: 0; }
.cs-step .cs-step__head { margin: 0; padding: 0; }
.cs-step .cs-title { margin: 0; padding: 0; font: var(--weight-heading) 15px/1.3 var(--font-sans); color: var(--ink); }
.cs-step .cs-sub { margin: 2px 0 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
.cs-step .cs-note { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--parchment); color: var(--ink); }
.cs-step .cs-note--bad { background: var(--amber-soft); }
.cs-step .cs-summary { margin: 0; padding: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.cs-step .cs-muted { margin: 0; padding: 0; color: var(--ink-soft); font-size: 12px; }
.cs-step .cs-label { margin: 0; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }

.cs-step .cs-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.cs-step .cs-col { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 10px 0; border-top: 1px solid var(--hairline); min-width: 0; }
.cs-step .cs-col__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; padding: 0; }
.cs-step .cs-col__name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.cs-step .cs-col__counts { color: var(--ink-soft); font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cs-step .cs-col__controls { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; padding: 0; }
.cs-step .cs-field { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; }
.cs-step .cs-fixed { align-self: flex-end; margin: 0; padding: 6px 0; font-weight: 500; color: var(--ink-soft); }
.cs-step .cs-why { margin: 0; padding: 0; max-width: 90ch; color: var(--ink-soft); }
.cs-step .cs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }

.cs-step .cs-select, .cs-step .cs-input { box-sizing: border-box; margin: 0; padding: 6px 8px; min-width: 0; max-width: 100%; border: 1px solid var(--hairline-strong);
  border-radius: 8px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.cs-step .cs-input--year { width: 9ch; font-variant-numeric: tabular-nums; }
.cs-step .cs-button { display: inline-flex; align-items: center; margin: 0; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white);
  color: var(--ink); font: 600 12px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.cs-step .cs-button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.cs-step .cs-button:disabled { opacity: .45; cursor: default; }
.cs-step .cs-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 12px/1.35 var(--font-sans); cursor: pointer; text-align: left; }
.cs-step .cs-link:hover { text-decoration: underline; }
.cs-step .cs-x { margin: 0; padding: 0 6px; border: 0; background: none; color: var(--ink-soft); font: 400 16px/1 var(--font-sans); cursor: pointer; }
.cs-step .cs-select:focus-visible, .cs-step .cs-input:focus-visible, .cs-step .cs-button:focus-visible, .cs-step .cs-link:focus-visible,
.cs-step .cs-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cs-step .cs-offer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--parchment); }
.cs-step .cs-year { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--parchment); }
.cs-step .cs-year__q { margin: 0; padding: 0; color: var(--ink); }
.cs-step .cs-choices { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--parchment); min-width: 0; }
.cs-step .cs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cs-step .cs-chip { display: inline-flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.cs-step .cs-chip .cs-input { width: 18ch; }
.cs-step .cs-chip--new { gap: 6px; }
.cs-step .cs-map { border-collapse: collapse; margin: 0; max-width: 100%; }
.cs-step .cs-map th, .cs-step .cs-map td { margin: 0; padding: 3px 12px 3px 0; text-align: left; vertical-align: middle; font-weight: 400; overflow-wrap: anywhere; }
.cs-step .cs-map th { color: var(--ink); }
.cs-step .cs-problems { margin: 0; padding: 8px 12px 8px 28px; border-radius: 8px; background: var(--amber-soft); color: var(--ink); }
.cs-step .cs-problems li { margin: 0; padding: 0; }
/* src/modules/revenue/features/shell/shell.css — the New shell (docs/REFRESH_SPEC.md "The shell"): the top bar, the rail,
   the profile menu, the notification panel, and the phone's three bars. Loaded by shellKit.jsx alone.
   EVERY RULE IS TWO CLASSES DEEP under .sh-shell, which each piece's outermost element carries: the shell sits under every
   screen, beside the Classic screens' own global rules, and a single-class rule loses to them.
   The rules that apply everywhere (Part one): parchment for chrome, white for what floats on it (the search pill, the
   bell's pill, a menu, the panel); the workspace's accent for the active item, a selected tab, a link and an unread mark,
   never --pine; amber for the one thing to act on, the overdue chip; red nowhere — signing out and clearing notifications
   destroy nothing. Geist throughout (the one family: Ryan, 2026-10-22), no title weight in the chrome, a count in
   tabular figures. No colour is typed into the code; every one is a token here. */

/* ── The top bar ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
.sh-shell.sh-top { position: relative; z-index: 100; flex-shrink: 0; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; height: 54px; margin: 0; padding: 0 16px; background: var(--parchment); border-bottom: 1px solid var(--hairline); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.sh-shell .sh-top__left { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; padding: 0; }
.sh-shell .sh-top__lockup { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sh-shell .sh-top__mark { display: block; height: 20px; width: auto; }
.sh-shell .sh-top__word { display: block; height: 16px; width: auto; }
.sh-shell .sh-top__rule { display: block; flex-shrink: 0; width: 1px; height: 20px; background: var(--hairline-strong); }
.sh-shell .sh-top__ws { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sh-shell .sh-top__ws-logo { display: block; flex-shrink: 0; width: 24px; height: 24px; object-fit: contain; border-radius: 6px; }
.sh-shell .sh-top__ws-badge { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: var(--white); border: 1px solid var(--hairline); color: var(--ink-soft); font: 700 11px/1 var(--font-sans); }
.sh-shell .sh-top__ws-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.sh-shell .sh-top__center { display: flex; justify-content: center; min-width: 0; }
.sh-shell .sh-top__right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.sh-shell .sh-top__import { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 30px; margin: 0; padding: 0 12px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 12px/1 var(--font-sans); cursor: pointer; }
.sh-shell .sh-top__import:hover { border-color: var(--accent); }
/* The overdue chip: the one amber thing in the shell. */
.sh-shell .sh-top__overdue { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; height: 28px; margin: 0; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--amber) 24%, var(--white)); border-radius: 999px; background: color-mix(in srgb, var(--amber) 9%, var(--white)); color: var(--amber); font: 600 12px/1 var(--font-sans); white-space: nowrap; cursor: pointer; }
.sh-shell .sh-top__overdue:hover { border-color: var(--amber); }
.sh-shell .sh-top__pill { display: flex; align-items: center; gap: 2px; flex-shrink: 0; height: 34px; margin: 0; padding: 0 3px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--white); }
.sh-shell .sh-top__bell, .sh-shell .sh-top__me { position: relative; }
.sh-shell .sh-top__icon { position: relative; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink-soft); cursor: pointer; }
.sh-shell .sh-top__icon:hover, .sh-shell .sh-top__icon--on { color: var(--accent); }
/* A toggle held on (the calendar pane's button while the pane is open, 2026-11-10): filled, in the accent. */
.sh-shell .sh-top__icon--pressed { background: var(--parchment-dim); color: var(--accent); }
.sh-shell .sh-top__badge { position: absolute; top: 1px; right: 0; min-width: 15px; height: 15px; box-sizing: border-box; padding: 0 4px; border-radius: 999px; border: 1.5px solid var(--white); background: var(--accent); color: var(--on-accent); font: 700 9px/12px var(--font-sans); font-variant-numeric: tabular-nums; text-align: center; }
.sh-shell .sh-top__help { display: flex; align-items: center; }
.sh-shell .sh-top__drop { position: absolute; top: calc(100% + 8px); right: -36px; z-index: 600; }
.sh-shell .sh-top__me-btn { display: flex; margin: 0; padding: 0; border: 0; border-radius: 999px; background: none; cursor: pointer; }
/* The console's tabs, in the middle column. */
.sh-shell .sh-top__tabs { display: flex; align-items: stretch; height: 54px; min-width: 0; }
.sh-shell .sh-top__tab { height: 54px; margin: 0 0 -1px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-soft); font: 500 12px/1 var(--font-sans); white-space: nowrap; cursor: pointer; }
.sh-shell .sh-top__tab--on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

/* ── Search ──────────────────────────────────────────────────────────────────────────────────────────────────────────── */
.sh-shell .sh-search { position: relative; width: clamp(220px, 32vw, 420px); }
.sh-shell .sh-search__pill { box-sizing: border-box; display: flex; align-items: center; gap: 8px; height: 34px; margin: 0; padding: 0 8px 0 12px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--white); color: var(--ink-faint); cursor: text; }
.sh-shell .sh-search__pill:focus-within { border-color: var(--accent); }
.sh-shell .sh-search__icon { display: flex; flex-shrink: 0; }
.sh-shell .sh-search__input { flex: 1 1 auto; min-width: 0; height: 30px; margin: 0; padding: 0; border: 0; outline: none; background: none; color: var(--ink); font: 400 13px/1 var(--font-sans); }
.sh-shell .sh-search__input::placeholder { color: var(--ink-faint); }
.sh-shell .sh-search__kbd { flex-shrink: 0; margin: 0; padding: 1px 6px; border: 1px solid var(--hairline); border-radius: 6px; background: var(--parchment); color: var(--ink-faint); font: 500 11px/16px var(--font-sans); }
.sh-shell .sh-search__clear { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink-faint); cursor: pointer; }
.sh-shell .sh-search__clear:hover { color: var(--ink); }
.sh-shell .sh-search__results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 500; max-height: 400px; overflow-y: auto; margin: 0; padding: 4px 0; background: var(--white); border: 1px solid var(--hairline); border-radius: 11px; box-shadow: var(--shadow-md); }
.sh-shell .sh-search__item { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 8px 14px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sh-shell .sh-search__item:focus-visible { background: var(--parchment); outline: none; }
/* The row the keys are on, and the one under a moving mouse (it becomes the active one, so no second row lights on hover):
   parchment and the accent's edge — a selected state takes the accent. */
.sh-shell .sh-search__item--active { background: var(--parchment); box-shadow: inset 3px 0 0 var(--accent); }
/* Where one kind gives way to the next (the Classic's group headings are gone: every row says its kind). */
.sh-shell .sh-search__item--next { border-top: 1px solid var(--hairline); }
.sh-shell .sh-search__item-icon { display: flex; flex-shrink: 0; width: 14px; color: var(--ink-faint); }
.sh-shell .sh-search__item-main { display: flex; flex: 1 1 auto; flex-direction: column; gap: 1px; min-width: 0; }
.sh-shell .sh-search__item-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px/1.3 var(--font-sans); }
.sh-shell .sh-search__item-sub { color: var(--ink-soft); font: 400 11px/1.3 var(--font-sans); }
/* What the row is, in the workspace's words: grey, small, at the row's end — a label, not a signal. */
.sh-shell .sh-search__item-kind { flex-shrink: 0; margin: 0; padding: 1px 7px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--white); color: var(--ink-soft); font: 500 10px/14px var(--font-sans); white-space: nowrap; }
.sh-shell .sh-search__none { margin: 0; padding: 14px; color: var(--ink-soft); font-size: 13px; text-align: center; }
/* A projects read that failed at sign-in, said under the results: grey, as what isn't there is, never a match count. */
.sh-shell .sh-search__note { margin: 0; padding: 8px 14px; border-top: 1px solid var(--hairline); color: var(--ink-soft); font: 400 12px/1.4 var(--font-sans); }

/* ── Shared: a count, a figure, the avatar ───────────────────────────────────────────────────────────────────────────── */
.sh-shell .sh-num { font-variant-numeric: tabular-nums; }
.sh-shell .sh-count { display: inline-block; flex-shrink: 0; box-sizing: border-box; min-width: 18px; height: 18px; margin: 0 0 0 auto; padding: 0 5px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--white); color: var(--ink-soft); font: 600 10px/16px var(--font-sans); font-variant-numeric: tabular-nums; text-align: center; }
.sh-shell .sh-count--corner { position: absolute; top: 1px; right: 3px; min-width: 15px; height: 15px; padding: 0 3px; font-size: 9px; line-height: 13px; }
.sh-shell .sh-avatar { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, var(--white)); }
.sh-shell .sh-avatar--md { width: 28px; height: 28px; }
.sh-shell .sh-avatar--sm { width: 30px; height: 30px; }
.sh-shell .sh-avatar--lg { width: 40px; height: 40px; }
.sh-shell .sh-avatar__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sh-shell .sh-avatar__initials { color: var(--accent); font: 700 11px/1 var(--font-sans); }
/* The links that were buttons (open in a new tab, landing 2): a rail or drawer item, a bottom bar item, a bell row that
   opens something. Each class draws its box as it did; a link's underline is all a link adds, and it goes. */
.sh-shell .sh-rail__item, .sh-shell .sh-bottom__item, .sh-shell .sh-notifs__open { text-decoration: none; }

/* ── The rail ────────────────────────────────────────────────────────────────────────────────────────────────────────── */
.sh-shell.sh-rail { position: relative; flex-shrink: 0; box-sizing: border-box; display: flex; flex-direction: column; width: 220px; min-height: 0; margin: 0; padding: 0; background: var(--parchment); border-right: 1px solid var(--hairline); color: var(--ink); font: 400 13px/1.3 var(--font-sans); transition: width .2s ease; overflow: visible; }
/* 220px open, as the Classic's (the New screens measured their widths beside it); icons only at the spec's 62px. Not
   overflow: hidden — the profile menu opens upward from the foot and is wider than the rail (its items scroll on their own). */
.sh-shell.sh-rail.sh-rail--collapsed { width: 62px; }
.sh-shell .sh-rail__head { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 14px 12px 8px 20px; }
.sh-rail--collapsed .sh-rail__head { justify-content: center; padding: 14px 0 8px; }
.sh-shell .sh-rail__label { color: var(--ink-faint); font: 700 10px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.sh-shell .sh-rail__toggle { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0; padding: 0; border: 1px solid var(--hairline); border-radius: 7px; background: var(--white); color: var(--ink-soft); cursor: pointer; }
.sh-shell .sh-rail__toggle:hover { color: var(--ink); }
.sh-shell .sh-rail__items { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0; padding: 0 10px 8px; }
.sh-shell .sh-rail__block { margin: 0; padding: 0; list-style: none; }
.sh-shell .sh-rail__block + .sh-rail__block { margin-top: 12px; }
.sh-shell .sh-rail__li { margin: 0; padding: 0; }
.sh-shell .sh-rail__item { position: relative; display: flex; align-items: center; gap: 10px; box-sizing: border-box; width: 100%; height: 32px; margin: 0; padding: 0 8px 0 12px; border: 0; border-radius: 8px; background: none; color: var(--ink-soft); font: 500 13px/1 var(--font-sans); text-align: left; cursor: pointer; }
.sh-shell .sh-rail__item:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.sh-shell .sh-rail__item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sh-shell .sh-rail__item--on, .sh-shell .sh-rail__item--on:hover { background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--accent); font-weight: 600; }
.sh-shell .sh-rail__item--on::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--accent); }
.sh-shell .sh-rail__icon { display: flex; flex-shrink: 0; width: 16px; height: 16px; }
.sh-shell .sh-rail__text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-rail--collapsed .sh-rail__items { padding: 0 8px 8px; }
.sh-rail--collapsed .sh-rail__item { justify-content: center; width: 44px; padding: 0; }
.sh-shell .sh-rail__foot { position: relative; flex-shrink: 0; margin: 0; padding: 8px 10px; border-top: 1px solid var(--hairline); }
.sh-shell .sh-rail__me { display: flex; align-items: center; gap: 10px; box-sizing: border-box; width: 100%; margin: 0; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 600 13px/1.2 var(--font-sans); text-align: left; cursor: pointer; }
.sh-shell .sh-rail__me:hover, .sh-shell .sh-rail__me--on { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.sh-rail--collapsed .sh-rail__me { justify-content: center; padding: 6px 0; }
.sh-shell .sh-rail__me-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-shell .sh-rail__me-chev { display: flex; color: var(--ink-faint); }

/* ── The profile menu ────────────────────────────────────────────────────────────────────────────────────────────────── */
.sh-shell .sh-menu { position: absolute; z-index: 700; box-sizing: border-box; min-width: 248px; margin: 0; padding: 6px 0; background: var(--white); border: 1px solid var(--hairline); border-radius: 11px; box-shadow: var(--shadow-md); }
.sh-shell .sh-menu--down { top: calc(100% + 8px); right: 0; }
.sh-shell .sh-menu--up { bottom: calc(100% + 4px); left: 8px; }
.sh-shell .sh-menu__list { display: flex; flex-direction: column; margin: 0; padding: 0; }
.sh-shell .sh-menu__who { display: flex; flex-direction: column; gap: 2px; margin: 0 0 4px; padding: 8px 14px 10px; border-bottom: 1px solid var(--hairline); }
.sh-shell .sh-menu__name { color: var(--ink); font: 600 13px/1.3 var(--font-sans); }
.sh-shell .sh-menu__email { color: var(--ink-soft); font: 400 11px/1.3 var(--font-sans); overflow-wrap: anywhere; }
.sh-shell .sh-menu__item { display: flex; align-items: flex-start; gap: 10px; box-sizing: border-box; width: 100%; margin: 0; padding: 8px 14px; border: 0; background: none; color: var(--ink); font: 400 13px/1.3 var(--font-sans); text-align: left; text-decoration: none; cursor: pointer; }
.sh-shell .sh-menu__item:hover, .sh-shell .sh-menu__item:focus-visible { background: var(--parchment); outline: none; }
.sh-shell .sh-menu__icon { display: flex; flex-shrink: 0; padding-top: 1px; color: var(--ink-soft); }
.sh-shell .sh-menu__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sh-shell .sh-menu__sub { color: var(--ink-soft); font: 400 11px/1.3 var(--font-sans); }
.sh-shell .sh-menu__versions { margin: 4px 0 0; padding: 4px 6px; border-top: 1px solid var(--hairline); }
.sh-shell .sh-menu__versions:empty { display: none; }
.sh-shell .sh-menu__end { margin: 4px 0 0; padding: 4px 0 0; border-top: 1px solid var(--hairline); }

/* ── The notification panel ──────────────────────────────────────────────────────────────────────────────────────────── */
.sh-shell .sh-notifs { box-sizing: border-box; display: flex; flex-direction: column; width: 384px; max-width: calc(100vw - 32px); max-height: min(80vh, 640px); margin: 0; padding: 0; overflow: hidden; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--shadow-lg); color: var(--ink); font: 400 13px/1.35 var(--font-sans); }
.sh-shell .sh-notifs--sheet { width: 100%; max-width: none; max-height: calc(80vh - 16px); border: 0; border-radius: 0; box-shadow: none; }
.sh-shell .sh-notifs__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 0; padding: 14px 14px 8px 16px; }
.sh-shell .sh-notifs__title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sh-shell .sh-notifs__h { color: var(--ink); font: var(--weight-heading) 15px/1.2 var(--font-sans); }
.sh-shell .sh-notifs__sub { color: var(--ink-soft); font: 400 12px/1.3 var(--font-sans); }
.sh-shell .sh-notifs__tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sh-shell .sh-notifs__tool { height: 26px; margin: 0; padding: 0 10px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--white); color: var(--ink-soft); font: 600 12px/1 var(--font-sans); cursor: pointer; }
.sh-shell .sh-notifs__tool--on { border-color: var(--accent); color: var(--accent); }
.sh-shell .sh-notifs__x { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink-soft); cursor: pointer; }
.sh-shell .sh-notifs__x:hover { color: var(--ink); background: var(--parchment); }
.sh-shell .sh-notifs__tabs { display: flex; gap: 4px; flex-shrink: 0; margin: 0; padding: 0 12px; border-bottom: 1px solid var(--hairline); }
.sh-shell .sh-notifs__tab { margin: 0 0 -1px; padding: 8px 8px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-soft); font: 600 12px/1.2 var(--font-sans); cursor: pointer; }
.sh-shell .sh-notifs__tab--on { color: var(--ink); border-bottom-color: var(--accent); }
.sh-shell .sh-notifs__error { flex-shrink: 0; margin: 0; padding: 8px 16px; border-bottom: 1px solid var(--hairline); background: color-mix(in srgb, var(--amber) 6%, var(--white)); color: var(--amber); font: 600 12px/1.35 var(--font-sans); }
.sh-shell .sh-notifs__rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.sh-shell .sh-notifs__row { display: flex; align-items: stretch; margin: 0; padding: 0; border-bottom: 1px solid var(--hairline); }
.sh-shell .sh-notifs__row--unread { background: color-mix(in srgb, var(--accent) 5%, var(--white)); }
.sh-shell .sh-notifs__row--picked { background: color-mix(in srgb, var(--accent) 10%, var(--white)); }
.sh-shell .sh-notifs__open { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 auto; min-width: 0; margin: 0; padding: 12px 6px 12px 16px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sh-shell .sh-notifs__open:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.sh-shell .sh-notifs__open--still, .sh-shell .sh-notifs__open--still:hover { cursor: default; background: none; }
.sh-shell .sh-notifs__box { flex-shrink: 0; box-sizing: border-box; width: 15px; height: 15px; margin-top: 2px; border: 1.5px solid var(--hairline-strong); border-radius: 4px; }
.sh-shell .sh-notifs__box--on { background: var(--accent); border-color: var(--accent); }
.sh-shell .sh-notifs__icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: var(--parchment); color: var(--ink-soft); }
.sh-shell .sh-notifs__main { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.sh-shell .sh-notifs__msg { overflow-wrap: anywhere; color: var(--ink); font: 400 13px/1.35 var(--font-sans); }
.sh-shell .sh-notifs__row--unread .sh-notifs__msg { font-weight: 600; }
.sh-shell .sh-notifs__meta { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--ink-soft); font: 400 11px/1.3 var(--font-sans); }
.sh-shell .sh-notifs__kind { font-weight: 600; }
.sh-shell .sh-notifs__dot { flex-shrink: 0; width: 7px; height: 7px; margin: 6px 4px 0 0; border-radius: 999px; background: var(--accent); }
.sh-shell .sh-notifs__clear { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; margin: 0; padding: 0; border: 0; background: none; color: var(--ink-faint); cursor: pointer; }
.sh-shell .sh-notifs__clear:hover { color: var(--ink); }
.sh-shell .sh-notifs__empty { flex-shrink: 0; margin: 0; padding: 26px 22px; text-align: center; }
.sh-shell .sh-notifs__empty-line { margin: 0; padding: 0; color: var(--ink-soft); font: 400 13px/1.45 var(--font-sans); }
.sh-shell .sh-notifs__empty-note { margin: 6px 0 0; padding: 0; color: var(--ink-faint); font: 400 12px/1.45 var(--font-sans); }
.sh-shell .sh-notifs__foot { display: flex; gap: 8px; flex-shrink: 0; margin: 0; padding: 10px 12px; border-top: 1px solid var(--hairline); }
.sh-shell .sh-notifs__btn { flex: 1 1 0; height: 32px; margin: 0; padding: 0 10px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--white); color: var(--accent); font: 600 12px/1 var(--font-sans); cursor: pointer; }
.sh-shell .sh-notifs__btn--quiet { color: var(--ink-soft); }
.sh-shell .sh-notifs__btn:hover { border-color: var(--accent); }

/* ── The phone: the bar across the top, the sheet, the drawer, the bar along the bottom ──────────────────────────────── */
.sh-shell.sh-phone { position: sticky; top: 0; z-index: 100; box-sizing: content-box; display: flex; align-items: center; gap: 10px; height: 52px; margin: 0; padding: env(safe-area-inset-top) 16px 0; background: var(--parchment); border-bottom: 1px solid var(--hairline); color: var(--ink); font: 400 14px/1.3 var(--font-sans); }
.sh-shell .sh-phone__mark { display: block; height: 22px; width: auto; flex-shrink: 0; }
.sh-shell .sh-phone__back, .sh-shell .sh-phone__bell, .sh-shell .sh-phone__me { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 36px; min-height: 36px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink-soft); cursor: pointer; }
.sh-shell .sh-phone__title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font: var(--weight-heading) 15px/1.2 var(--font-sans); }
.sh-shell .sh-phone__dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.sh-shell.sh-sheet { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; margin: 0; padding: 0; background: color-mix(in srgb, var(--ink) 45%, transparent); }
.sh-shell .sh-sheet__card { box-sizing: border-box; display: flex; flex-direction: column; width: 100%; max-height: 80vh; margin: 0; padding: 0 0 env(safe-area-inset-bottom); border-radius: 16px 16px 0 0; background: var(--white); }
.sh-shell .sh-sheet__grip { align-self: center; width: 36px; height: 4px; margin: 10px 0 2px; border-radius: 2px; background: var(--hairline-strong); }
.sh-shell.sh-drawer { position: fixed; inset: 0; z-index: 500; display: flex; margin: 0; padding: 0; background: color-mix(in srgb, var(--ink) 45%, transparent); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.sh-shell .sh-drawer__panel { box-sizing: border-box; display: flex; flex-direction: column; width: 288px; max-width: 88vw; height: 100%; margin: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); overflow-y: auto; background: var(--parchment); border-right: 1px solid var(--hairline); box-shadow: var(--shadow-xl); }
.sh-shell .sh-drawer__who { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 12px 14px 18px; border-bottom: 1px solid var(--hairline); }
.sh-shell .sh-drawer__text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.sh-shell .sh-drawer__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font: 600 14px/1.3 var(--font-sans); }
.sh-shell .sh-drawer__email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font: 400 12px/1.3 var(--font-sans); }
.sh-shell .sh-drawer__x { display: flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 36px; min-height: 36px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink-soft); cursor: pointer; }
.sh-shell .sh-drawer__items { margin: 0; padding: 10px 10px 8px; }
.sh-shell .sh-drawer__items .sh-rail__item { height: 40px; min-height: 40px; }
.sh-shell .sh-drawer__menu { margin: auto 0 0; padding: 6px 0; border-top: 1px solid var(--hairline); }
.sh-shell .sh-drawer__menu .sh-menu__item { min-height: 40px; }
.sh-shell.sh-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; box-sizing: content-box; display: flex; height: 60px; margin: 0; padding: 0 0 env(safe-area-inset-bottom); background: var(--parchment); border-top: 1px solid var(--hairline); }
.sh-shell .sh-bottom__item { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 0; margin: 0; padding: 6px 0 4px; border: 0; background: none; color: var(--ink-soft); cursor: pointer; }
.sh-shell .sh-bottom__item--on { color: var(--accent); }
.sh-shell .sh-bottom__item--on::before { content: ""; position: absolute; top: 0; left: 50%; width: 24px; height: 2px; margin-left: -12px; border-radius: 2px; background: var(--accent); }
.sh-shell .sh-bottom__icon { position: relative; display: flex; align-items: center; justify-content: center; width: 28px; height: 22px; }
.sh-shell .sh-bottom__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 10px/1.2 var(--font-sans); }
.sh-shell .sh-bottom__item--on .sh-bottom__label { font-weight: 700; }
/* src/modules/revenue/features/cadences/cadences.css — the New Cadences screen (docs/REFRESH_SPEC.md §8 "Cadences").
   Loaded by CadencesPage.jsx alone (the registry lets one file load a stylesheet, so a withdrawal can find it).
   EVERY RULE INSIDE THE SCREEN IS SCOPED UNDER .sq-screen, two classes deep, and that is load-bearing: the Classic/New
   wrapper's class starts with "cd-", so the global reset `[class^='cd-'] button { background: none; border: none; font:
   inherit }` (0,1,1) reaches every button here and outranks a single-class rule. Two classes (0,2,0) win.
   The root's own `* { margin: 0; padding: 0 }` is why every margin and padding here is stated.
   THE PLACE: the root's /cadences, a screen of its own — it scrolls itself and runs edge to edge with the lists' 28px gutter
   (16px on a phone), no maximum and no centring. Wide: the sequences in a rail beside the steps and, under them, the people;
   narrow (by the screen's own width, a container query on the wrap): the rail above.
   The rules that apply everywhere: colour means something — the workspace's accent for the app's own (the open sequence,
   a pressed choice, the primary button, where someone is on their track); amber for "look here", on one thing: the panel
   saying which steps run (the spec's amber panel, its text in ink) and the SKIPPED tag on a step that won't (its chip);
   red only for what destroys (Delete, Remove); grey for what isn't there; a refused write and a failed draft in ink. A
   sequence's own colour is the person's label for it, a dot beside its name, nothing more. Cards white with a hairline on
   the near-white area. THE TYPE (Ryan, 2026-10-22: Geist only), only through the tokens: the page title at
   --weight-title and nothing else at it; everything else Geist (--font-sans) too; a figure set apart — a step's number, a
   group's count, "N on it now" — the same Geist with tabular numerals (sq-num); nothing here is code, so no mono. A date or
   a number inside a sentence is plain text. Classes, not inline sizes: the root's phone rules rewrite inline ones. */

.sq-screen { flex: 1 1 0; min-height: 0; overflow-y: auto; background: #FCFBF8; color: var(--ink); font: 400 14px/1.45 var(--font-sans);
  --sq-amber-panel: #fdf6ec; --sq-amber-line: #f0e2cd; --sq-amber-chip: #fbf0e3; --sq-amber-ink: #8a4f0c; --sq-red: #9f1239; --sq-grey: #a8a29e; }
.sq-screen .sq-wrap { container: sq / inline-size; margin: 0; padding: var(--space-page-top) var(--space-page-x) var(--space-page-bottom); box-sizing: border-box; }
.sq-screen .sq-num { font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.sq-screen .sq-muted { margin: 0; padding: 0; color: var(--ink-soft); font-size: 13px; }
.sq-screen .sq-grey { color: var(--sq-grey); }
.sq-screen .sq-line { margin: 0; padding: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.sq-screen .sq-bad { color: var(--ink); font-weight: 600; }
.sq-screen .sq-warn { color: var(--ink); }

/* The head: the title and the spec's subtitle; Draft with AI and New sequence on the right. */
.sq-screen .sq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 0 0 var(--space-section-gap); padding: 0; }
.sq-screen .sq-head__text { min-width: 0; }
.sq-screen .sq-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); }
.sq-screen .sq-sub { margin: var(--space-page-sub) 0 0; padding: 0; color: var(--ink-soft); font-size: var(--text-page-sub); }
.sq-screen .sq-head__acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }

/* The amber panel: the one thing on the screen whose whole job is to be read before anything else. */
.sq-screen .sq-panel { margin: 0 0 var(--space-panel-gap); padding: var(--space-card-y) var(--space-card-x); background: var(--sq-amber-panel); border: 1px solid var(--sq-amber-line); border-radius: 11px;
  color: var(--ink); font-size: 14px; line-height: 1.5; }
.sq-screen .sq-panel__lead { font-weight: 600; }
/* What the last action did: said in ink, a refusal no louder than a success. */
.sq-screen .sq-notice { margin: 0 0 12px; padding: 8px 12px; background: var(--white); border: 1px solid var(--hairline); border-radius: 8px; color: var(--ink); font-size: 13.5px; }
.sq-screen .sq-notice--ok { color: var(--ink); }

/* The frame: the rail beside the main column, stretched so the two end level. */
.sq-screen .sq-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); align-items: stretch; gap: var(--space-panel-gap); margin: 0; padding: 0; }
.sq-screen .sq-rail { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 14px 12px; background: var(--white); border: 1px solid #e6e2da; border-radius: 11px; }
.sq-screen .sq-rail__count { margin: 0; padding: 0 6px; color: var(--ink-soft); font-size: 12.5px; }
.sq-screen .sq-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sq-screen .sq-item { display: flex; flex-direction: column; gap: 2px; width: 100%; margin: 0; padding: 8px 10px; border: 0; border-left: 3px solid transparent; border-radius: 7px;
  background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sq-screen .sq-item:hover { background: var(--parchment-dim); }
.sq-screen .sq-item--on { background: color-mix(in srgb, var(--accent) 7%, var(--white)); border-left-color: var(--accent); }
.sq-screen .sq-item__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sq-screen .sq-item__name { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.sq-screen .sq-item--on .sq-item__name { color: var(--accent); }
.sq-screen .sq-item__meta { color: var(--ink-soft); font-size: 12.5px; padding-left: 16px; }
.sq-screen .sq-item__sub { color: var(--ink-soft); font-size: 12.5px; padding-left: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-screen .sq-dot { display: inline-block; flex: none; width: 8px; height: 8px; margin: 0 8px 0 0; border-radius: 50%; background: var(--sq-dot, var(--ink-faint)); vertical-align: middle; }
.sq-screen .sq-item__top .sq-dot { margin: 0; }
.sq-screen .sq-empty { margin: 0; padding: 4px 6px; color: var(--ink-soft); font-size: 13px; }

/* The main column: the steps card, then the people card. */
.sq-screen .sq-main { display: flex; flex-direction: column; gap: var(--space-panel-gap); min-width: 0; margin: 0; padding: 0; }
.sq-screen .sq-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid #e6e2da; border-radius: 11px; }
.sq-screen .sq-card__head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 0; padding: 0; }
.sq-screen .sq-card__title { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 240px; }
.sq-screen .sq-card__acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.sq-screen .sq-h2 { display: flex; align-items: center; margin: 0; padding: 0; font: var(--weight-heading) 17px/1.3 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.sq-screen .sq-h3 { display: flex; align-items: center; margin: 0; padding: 0; font: var(--weight-heading) 15px/1.3 var(--font-sans); color: var(--ink); }
.sq-screen .sq-caution { margin: 0; padding: 8px 12px; border: 1px solid var(--hairline); border-radius: 8px; color: var(--ink); font-size: 13px; line-height: 1.5; }
.sq-screen .sq-none { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; padding: 6px 0; }

/* The steps: a numbered list, each step its type, its day, its subject — and, where the executor won't run it, the tag. */
.sq-screen .sq-steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid #f5f2eb; }
.sq-screen .sq-step { margin: 0; padding: var(--space-row-y) 0; border-bottom: 1px solid #f5f2eb; }
.sq-screen .sq-step__row { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.sq-screen .sq-step__n { flex: none; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hairline-strong);
  border-radius: 50%; color: var(--ink-soft); font-size: 12px; }
.sq-screen .sq-step__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sq-screen .sq-step__top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.sq-screen .sq-step__type { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.sq-screen .sq-step--skipped .sq-step__type { color: var(--ink-soft); }
.sq-screen .sq-step__subject { margin: 0; padding: 0; font-size: 14px; overflow-wrap: anywhere; }
.sq-screen .sq-step__why { margin: 0; padding: 0; color: var(--ink-soft); font-size: 12.5px; }
.sq-screen .sq-step__reach { margin: 2px 0 0; padding: 0; color: var(--ink-soft); font-size: 12.5px; }
.sq-screen .sq-step__tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; flex: none; }
.sq-screen .sq-steps--small .sq-step { padding: 6px 0; }
/* The tag: the spec's SKIPPED, a chip — amber on the one word. */
.sq-screen .sq-tag { display: inline-block; flex: none; margin: 0; padding: 0 7px; border-radius: 5px; background: var(--sq-amber-chip); color: var(--sq-amber-ink);
  font: 600 10.5px/18px var(--font-sans); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }

/* A step's fields, open while editing. */
.sq-screen .sq-fields { display: flex; flex-wrap: wrap; gap: 12px 14px; margin: 10px 0 2px 36px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 9px; background: var(--white); }
.sq-screen .sq-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; padding: 0; }
.sq-screen .sq-field--day { flex: 0 0 140px; }
.sq-screen .sq-field--grow { flex: 1 1 240px; }
.sq-screen .sq-field--wide { flex: 1 1 100%; }
.sq-screen .sq-label { font: 600 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.sq-screen .sq-input { width: 100%; min-width: 0; margin: 0; padding: 8px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white);
  color: var(--ink); font: 400 14px/1.4 var(--font-sans); outline: none; box-sizing: border-box; }
.sq-screen .sq-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.sq-screen .sq-textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.sq-screen .sq-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sq-screen .sq-pill { margin: 0; padding: 4px 11px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--white); color: var(--ink); font: 500 13px/1.25 var(--font-sans); cursor: pointer; }
.sq-screen .sq-pill:hover { border-color: var(--accent); }
.sq-screen .sq-pill--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* The people: by contacts and leads, each with where they are on a track of the sequence's steps. */
.sq-screen .sq-toggle { display: inline-flex; align-self: flex-start; gap: 2px; margin: 0; padding: 2px; border-radius: 9px; background: var(--parchment-dim); }
.sq-screen .sq-toggle__b { margin: 0; padding: 5px 12px; border: 0; border-radius: 7px; background: none; color: var(--ink-soft); font: 600 13px/1.2 var(--font-sans); cursor: pointer; }
.sq-screen .sq-toggle__b--on { background: var(--white); color: var(--accent); box-shadow: var(--shadow-xs); }
.sq-screen .sq-group { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.sq-screen .sq-group__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; margin: 0; padding: 6px 0; border: 0; border-bottom: 1px solid #f5f2eb;
  background: none; color: var(--ink-soft); font: 600 11px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; text-align: left; cursor: pointer; }
.sq-screen .sq-people { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.sq-screen .sq-person { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: var(--space-row-y) 0; border-bottom: 1px solid #f5f2eb; }
.sq-screen .sq-person__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.sq-screen .sq-person__who { min-width: 0; }
.sq-screen .sq-person__name { margin: 0; padding: 0; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.sq-screen .sq-person__acts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; }
.sq-screen .sq-status { flex: none; margin: 0; padding: 1px 8px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 600 11px/18px var(--font-sans); white-space: nowrap; }
.sq-screen .sq-status--active { background: color-mix(in srgb, var(--accent) 10%, var(--white)); color: var(--accent); }
.sq-screen .sq-status--completed, .sq-screen .sq-status--unsubscribed, .sq-screen .sq-status--other { color: var(--ink-soft); }
.sq-screen .sq-track { display: flex; gap: 3px; margin: 0; padding: 0; list-style: none; max-width: 420px; }
.sq-screen .sq-track__s { flex: 1 1 0; height: 6px; margin: 0; padding: 0; border-radius: 3px; background: #f5f2eb; }
.sq-screen .sq-track__s--past { background: var(--ink-faint); }
.sq-screen .sq-track__s--now { background: var(--accent); }
.sq-screen .sq-confirm { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--ink); font-size: 13px; }
.sq-screen .sq-notes { margin: 0; padding: 0; }

/* Dialogs. */
.sq-screen .sq-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(21, 35, 30, 0.38); }
.sq-screen .sq-dialog { position: fixed; z-index: 901; top: 8vh; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 12px;
  width: min(560px, calc(100vw - 32px)); max-height: 84vh; overflow-y: auto; margin: 0; padding: 20px 22px; box-sizing: border-box;
  background: var(--white); border: 1px solid #e6e2da; border-radius: 12px; box-shadow: var(--shadow-lg); }
.sq-screen .sq-dialog__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sq-screen .sq-dialog__title { margin: 0; padding: 0; font: var(--weight-heading) 17px/1.3 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.sq-screen .sq-dialog__acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--hairline); }
.sq-screen .sq-why { margin: 0; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 8px; font-size: 13.5px; line-height: 1.55; }
.sq-screen .sq-picks { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; margin: 0; padding: 0; list-style: none; border: 1px solid var(--hairline); border-radius: 8px; }
.sq-screen .sq-pick { display: flex; flex-direction: column; gap: 1px; width: 100%; margin: 0; padding: 8px 12px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sq-screen .sq-pick:hover:not(:disabled) { background: var(--parchment-dim); }
.sq-screen .sq-pick--on { background: color-mix(in srgb, var(--accent) 8%, var(--white)); }
.sq-screen .sq-pick:disabled { cursor: not-allowed; }
.sq-screen .sq-pick__name { font-weight: 600; font-size: 14px; }
.sq-screen .sq-pick:disabled .sq-pick__name { color: var(--ink-soft); }
.sq-screen .sq-pick__why { color: var(--ink-soft); font-size: 12.5px; font-style: italic; }
.sq-screen .sq-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sq-screen .sq-swatch { width: 24px; height: 24px; margin: 0; padding: 0; border: 2px solid var(--white); border-radius: 50%; background: var(--sq-dot); box-shadow: 0 0 0 1px var(--hairline-strong); cursor: pointer; }
.sq-screen .sq-swatch--on { box-shadow: 0 0 0 2px var(--ink); }

/* Buttons and links. */
.sq-screen .sq-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--hairline-strong);
  background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.sq-screen .sq-button--small { padding: 4px 10px; font-size: 12.5px; }
.sq-screen .sq-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sq-screen .sq-button--primary:hover { background: var(--accent-raised); }
.sq-screen .sq-button--danger { color: var(--sq-red); border-color: color-mix(in srgb, var(--sq-red) 35%, var(--white)); }
.sq-screen .sq-button:disabled { opacity: .45; cursor: not-allowed; }
.sq-screen .sq-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.3 var(--font-sans); cursor: pointer; text-underline-offset: 2px; }
.sq-screen .sq-link:hover { text-decoration: underline; }
.sq-screen .sq-link:disabled { opacity: .45; cursor: not-allowed; }
.sq-screen .sq-link--danger { color: var(--sq-red); }
.sq-screen .sq-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: 0; padding: 0; border: 1px solid var(--hairline); border-radius: 6px;
  background: var(--white); color: var(--ink-soft); font: 600 14px/1 var(--font-sans); cursor: pointer; }
.sq-screen .sq-icon:disabled { opacity: .35; cursor: not-allowed; }
.sq-screen .sq-button:focus-visible, .sq-screen .sq-link:focus-visible, .sq-screen .sq-item:focus-visible, .sq-screen .sq-pill:focus-visible, .sq-screen .sq-icon:focus-visible,
.sq-screen .sq-toggle__b:focus-visible, .sq-screen .sq-group__h:focus-visible, .sq-screen .sq-pick:focus-visible, .sq-screen .sq-swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Narrow (the screen's own width — the container is the wrap, not the scroller, so a dialog's fixed position stays the
   window's): the rail above the steps. A phone: its gutter. */
@media (max-width: 767px) {
  .sq-screen .sq-wrap { padding: 18px 16px 48px; }
}
@container sq (max-width: 760px) {
  .sq-screen .sq-layout { grid-template-columns: minmax(0, 1fr); }
  .sq-screen .sq-fields { margin-left: 0; }
}
/* src/modules/revenue/features/create/create.css — the New create forms (which replaced the Classic CreateModal). Loaded
   by CreateRecord.jsx alone. Every rule is two classes deep under .cr-screen, as every New's stylesheet is: the global
   reset [class^="cd-"] button outranks any single-class rule on a button, and nothing here reaches the page under the
   dialog. Tokens only, and the accent is the workspace's own (--accent, --on-accent: Ryan, 2026-10-05 — never --pine).
   Amber means attention and lands on one thing: the count of look-alikes, the amber fields an update would overwrite, a
   problem; grey for what isn't there. The title is Geist at
   --weight-title (Geist only, 2026-10-22); everything else Geist (--font-sans) too; the order's amounts and total are Geist with tabular
   figures (cr-num); nothing here is code, so no mono. A dialog may have a width; the form inside is one column. */
.cr-screen .cr-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 52px 28px 28px; box-sizing: border-box; font: 400 14px/1.45 var(--font-sans); color: var(--ink); }
.cr-screen .cr-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 45%, transparent); }
.cr-screen .cr-box { position: relative; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; max-width: 640px; max-height: calc(100vh - 80px); background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); overflow: hidden; }
.cr-screen .cr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 18px 28px 14px; border-bottom: 1px solid var(--hairline); }
.cr-screen .cr-title { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); }
.cr-screen .cr-x { width: 32px; height: 32px; padding: 0; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--white); color: var(--ink-soft); font: 400 18px/1 var(--font-sans); cursor: pointer; }
.cr-screen .cr-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 28px 22px; }

/* the fields: one column */
.cr-screen .cr-group { margin: 18px 0 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cr-screen .cr-legend { margin: 0 0 2px; padding: 0; font: 600 11px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.cr-screen .cr-legend__aside { font-weight: 400; letter-spacing: 0; text-transform: none; }
.cr-screen .cr-pair { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cr-screen .cr-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cr-screen .cr-label { font: 500 12px/1.3 var(--font-sans); color: var(--ink-soft); }
.cr-screen .cr-need { font-weight: 400; color: var(--ink-faint); }
.cr-screen .cr-input { box-sizing: border-box; width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--hairline-strong); border-radius: var(--radius-md); background: var(--white); color: var(--ink); font: 400 14px/1.35 var(--font-sans); }
.cr-screen .cr-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.cr-screen .cr-input--static { display: block; border-style: dashed; background: transparent; }
.cr-screen .cr-input--area { resize: vertical; }
.cr-screen .cr-field--bad .cr-input { border-color: var(--amber); }
.cr-screen .cr-hint { font-size: 12px; line-height: 1.4; color: var(--ink-soft); }
.cr-screen .cr-problem { font: 600 12px/1.35 var(--font-sans); color: var(--amber); }
.cr-screen .cr-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.cr-screen .cr-check input { accent-color: var(--accent); }
.cr-screen .cr-tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: var(--radius-full); background: var(--parchment-dim); font: 500 11px/18px var(--font-sans); color: var(--ink-soft); }
.cr-screen .cr-note { margin: 0; font-size: 13px; line-height: 1.45; }
.cr-screen .cr-muted { color: var(--ink-soft); }
.cr-screen .cr-attn { color: var(--amber); }
.cr-screen .cr-linkbtn { padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.3 var(--font-sans); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cr-screen .cr-linkbtn:disabled { color: var(--ink-faint); cursor: default; text-decoration: none; }

/* an order's lines: the line, its amount, a running total */
.cr-screen .cr-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cr-screen .cr-line { display: grid; grid-template-columns: minmax(0, 1fr) 148px auto; gap: 8px; align-items: center; }
.cr-screen .cr-line__amount { text-align: right; }
.cr-screen .cr-lines__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.cr-screen .cr-total { font-size: 13px; color: var(--ink-soft); }
.cr-screen .cr-total__value { margin-left: 8px; font: 600 18px/1.2 var(--font-sans); color: var(--ink); }

/* the possible duplicate, docked above the buttons so it shows whichever field is being typed */
.cr-screen .cr-dock { flex: 0 1 auto; min-height: 0; max-height: 46vh; overflow-y: auto; padding: 14px 28px; border-top: 1px solid var(--hairline-strong); background: var(--parchment); }
.cr-screen .cr-dup__title { margin: 0; padding: 0; font: var(--weight-heading) 14px/1.3 var(--font-sans); color: var(--ink); }
.cr-screen .cr-dup__sub { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.cr-screen .cr-dup__ask { margin: 10px 0 0; font: 600 12px/1.3 var(--font-sans); color: var(--ink-soft); }
.cr-screen .cr-dup__acts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; }
.cr-screen .cr-dup__list { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cr-screen .cr-dup__item { margin: 0; padding: 0; }
.cr-screen .cr-cand { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px; padding: 8px 12px; border: 1px solid var(--hairline-strong); border-radius: var(--radius-md); background: var(--white); cursor: pointer; }
.cr-screen .cr-cand--on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cr-screen .cr-cand__radio { grid-row: 1 / span 2; margin: 3px 0 0; accent-color: var(--accent); }
.cr-screen .cr-cand__main { min-width: 0; font-size: 14px; line-height: 1.35; }
.cr-screen .cr-cand__name { font-weight: 600; color: var(--ink); }
.cr-screen .cr-cand__at { color: var(--ink); }
.cr-screen .cr-cand__why { color: var(--ink-soft); }
.cr-screen .cr-cand__meta { display: flex; flex-wrap: wrap; row-gap: 2px; font-size: 12px; line-height: 1.4; color: var(--ink-soft); }
.cr-screen .cr-cand__bit + .cr-cand__bit::before { content: "·"; margin: 0 6px; color: var(--ink-faint); }
.cr-screen .cr-cmp { margin-top: 14px; }
.cr-screen .cr-cmp__table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; background: var(--white); }
.cr-screen .cr-cmp__caption { caption-side: top; padding: 0 0 6px; text-align: left; font: 600 12px/1.3 var(--font-sans); color: var(--ink-soft); }
.cr-screen .cr-cmp__th { padding: 6px 10px; text-align: left; font: 500 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--hairline-strong); }
.cr-screen .cr-cmp__field { padding: 6px 10px; text-align: left; font-weight: 500; color: var(--ink-soft); border-bottom: 1px solid var(--hairline); }
.cr-screen .cr-cmp__cell { padding: 6px 10px; color: var(--ink); border-bottom: 1px solid var(--hairline); overflow-wrap: anywhere; }
.cr-screen .cr-cmp__row--diff { background: var(--amber-soft); }
.cr-screen .cr-cmp__row--diff .cr-cmp__field { color: var(--amber); font-weight: 600; }
.cr-screen .cr-cmp__row--diff .cr-cmp__cell:nth-of-type(1) { font-weight: 600; }
.cr-screen .cr-dup__line { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink); }
.cr-screen .cr-dup__note { margin: 6px 0 0; font-size: 12px; line-height: 1.4; }

/* the buttons say what they do */
.cr-screen .cr-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; flex-shrink: 0; padding: 12px 28px; border-top: 1px solid var(--hairline); background: var(--white); }
.cr-screen .cr-status { flex: 1 1 200px; min-width: 0; margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.cr-screen .cr-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cr-screen .cr-btn { padding: 8px 14px; border: 1px solid var(--hairline-strong); border-radius: var(--radius-md); background: var(--white); color: var(--ink); font: 500 13px/1.2 var(--font-sans); cursor: pointer; }
.cr-screen .cr-btn--primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.cr-screen .cr-btn:disabled { opacity: .55; cursor: default; }
.cr-screen .cr-btn:focus-visible, .cr-screen .cr-x:focus-visible, .cr-screen .cr-linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the crash fallback's notice (CreateWithFallback.jsx): a strip over the Classic's dialog (z-index 1000) and the scrim */
.cr-screen .cr-fell { position: fixed; top: 12px; left: 16px; right: 16px; z-index: 10000; box-sizing: border-box; display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border: 1px solid var(--amber); border-left-width: 4px; border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-xl); }
.cr-screen .cr-fell__text { flex: 1 1 auto; min-width: 0; margin: 0; font: 500 13px/1.45 var(--font-sans); color: var(--ink); }
.cr-screen .cr-fell__ok { flex: 0 0 auto; padding: 4px 12px; border: 1px solid var(--hairline-strong); border-radius: var(--radius-md); background: var(--white); color: var(--ink); font: 500 13px/1.2 var(--font-sans); cursor: pointer; }
.cr-screen .cr-fell__ok:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Last, on purpose: every font shorthand above (the total's, an input's) resets font-variant-numeric, so a figure's
   tabular numerals must come after them all or they never apply (the browser look of 2026-10-04 found the total plain). */
.cr-screen .cr-num { font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
  .cr-screen .cr-modal { align-items: flex-end; padding: 0; }
  .cr-screen .cr-box { max-width: 100%; max-height: 94vh; border-radius: 16px 16px 0 0; }
  .cr-screen .cr-head { padding: 14px 16px 12px; }
  .cr-screen .cr-title { font-size: var(--text-page-title-phone); }
  .cr-screen .cr-body { padding: 0 16px 16px; }
  .cr-screen .cr-dock { max-height: 42vh; padding: 12px 16px; }
  .cr-screen .cr-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .cr-screen .cr-input { font-size: 16px; }
  .cr-screen .cr-line { grid-template-columns: minmax(0, 1fr) 116px; }
  .cr-screen .cr-line__x { grid-column: 1 / -1; justify-self: start; }
  .cr-screen .cr-actions { width: 100%; }
  .cr-screen .cr-btn { flex: 1 1 auto; }
}
/* src/modules/revenue/features/targets/targets.css — the New Targets (docs/REFRESH_SPEC.md "Targets", cut to Jon's shape).
   Loaded by TargetsPage.jsx alone.
   EVERY RULE IS SCOPED UNDER .tg-screen, two classes deep: the global reset `[class^='cd-'] button { background: none;
   border: none; font: inherit }` (0,1,1) reaches every button on the page and outranks a single-class rule. Two classes
   (0,2,0) win. The root's own `* { margin: 0; padding: 0 }` is why every margin and padding here is stated.
   THE PLACE: a whole section of the root (its own scroller), so the page fills the content area at the New screens' page
   padding (the scale tokens); a measure only on prose (72ch).
   COLOUR MEANS SOMETHING: the workspace's accent for the app's own (a thing to press, a link, an open group); amber for "look
   here" on one thing — a line with no target (the words where its year would be), a row not saved, a saved year that isn't
   its quarters' sum; grey for nothing there (a retired line's or a total's none); a read that failed and every note in ink.
   Tokens only, never a colour typed in.
   THE FONTS (Ryan, 2026-10-22: Geist only), by token only: the page's title at --weight-title at the title scale;
   everything else in Geist (--font-sans); a figure read down a column in Geist with tabular figures (.tg-num, the inputs). */

/* The crash fallback's line over the Classic (TargetsWithFallback.jsx): outside .tg-screen, so one class of its own. */
.tg-fell { flex: none; margin: 0; padding: 10px 28px; background: var(--amber-soft); color: var(--ink); font: 400 13px/1.4 var(--font-sans); }

.tg-screen { flex: 1 1 0; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; background: var(--parchment); color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.tg-screen .tg-wrap { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-panel-gap); margin: 0; padding: var(--space-page-top) var(--space-page-x) var(--space-page-bottom); }
.tg-screen .tg-num { font-family: var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tg-screen .tg-muted { color: var(--ink-soft); }
.tg-screen .tg-attn { color: var(--amber); }
.tg-screen .tg-none { color: var(--ink-faint); }
.tg-screen .tg-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The head: the title, what the screen is for under it. */
.tg-screen .tg-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin: 0; padding: 0; }
.tg-screen .tg-head__text { min-width: 0; }
.tg-screen .tg-head__actions { display: flex; gap: 8px; flex: none; }
.tg-screen .tg-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); }
.tg-screen .tg-sub { margin: var(--space-page-sub) 0 0; padding: 0; max-width: 72ch; font-size: var(--text-page-sub); color: var(--ink-soft); }

/* Buttons and links: the accent is the app's own. */
.tg-screen .tg-button { display: inline-flex; align-items: center; margin: 0; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.tg-screen .tg-button:hover:not(:disabled) { border-color: var(--accent); }
.tg-screen .tg-button--primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.tg-screen .tg-button--primary:hover:not(:disabled) { background: var(--accent-raised); }
.tg-screen .tg-button:disabled { opacity: .45; cursor: default; }
.tg-screen .tg-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.35 var(--font-sans); cursor: pointer; text-align: left; text-underline-offset: 2px; }
.tg-screen .tg-link:hover { text-decoration: underline; }
.tg-screen .tg-link--plain { color: var(--ink-soft); font-weight: 500; }
.tg-screen .tg-button:focus-visible, .tg-screen .tg-link:focus-visible, .tg-screen .tg-group:focus-visible,
.tg-screen .tg-select:focus-visible, .tg-screen .tg-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The controls: the year, saving several lines at once. */
.tg-screen .tg-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 0; padding: 0; }
.tg-screen .tg-controls__end { margin-left: auto; }
.tg-screen .tg-pick { display: flex; flex-direction: column; gap: 3px; flex: none; margin: 0; padding: 0; }
.tg-screen .tg-pick__label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.tg-screen .tg-select { box-sizing: border-box; min-width: 96px; margin: 0; padding: 7px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 500 14px/1.3 var(--font-sans); }
.tg-screen .tg-note { margin: 0; padding: 0; max-width: 72ch; font-size: 13px; color: var(--ink-soft); }
.tg-screen .tg-note--bad { color: var(--ink); }

/* The grid: a white card, the table inside it scrolling sideways rather than past the card's edge. */
.tg-screen .tg-card { box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 11px; }
.tg-screen .tg-card__body { min-width: 0; margin: -4px; padding: 4px; overflow-x: auto; }
.tg-screen .tg-card__foot { display: flex; flex-direction: column; gap: 4px; margin: auto 0 0; padding: 10px 0 0; border-top: 1px solid var(--hairline); }
.tg-screen .tg-foot { margin: 0; padding: 0; max-width: 72ch; font-size: 13px; color: var(--ink); }
.tg-screen .tg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tg-screen .tg-table th, .tg-screen .tg-table td { margin: 0; padding: 6px 8px; border-top: 1px solid var(--hairline); text-align: left; vertical-align: middle; font-weight: 400; }
.tg-screen .tg-table thead th { border-top: 0; padding-top: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.tg-screen .tg-table tbody th { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; min-width: 140px; }
.tg-screen .tg-table th:first-child, .tg-screen .tg-table td:first-child { padding-left: 0; }
.tg-screen .tg-table th:last-child, .tg-screen .tg-table td:last-child { padding-right: 0; }
.tg-screen .tg-table .tg-th--num, .tg-screen .tg-table .tg-td--num { text-align: right; white-space: nowrap; }
.tg-screen .tg-table .tg-td--act, .tg-screen .tg-table .tg-th--act { width: 1%; white-space: nowrap; text-align: right; }
.tg-screen .tg-table tfoot th, .tg-screen .tg-table tfoot td { border-top: 2px solid var(--hairline-strong); font-weight: 600; }
.tg-screen .tg-table .tg-subrow td { border-top: 0; padding-top: 0; font-size: 12px; color: var(--ink-soft); white-space: normal; text-align: left; }
.tg-screen .tg-row--dirty th { color: var(--ink); }
.tg-screen .tg-input { box-sizing: border-box; width: 112px; margin: 0; padding: 6px 8px; border: 1px solid var(--hairline-strong); border-radius: 7px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); font-variant-numeric: tabular-nums; text-align: right; }
.tg-screen .tg-input::placeholder { color: var(--ink-faint); }
.tg-screen .tg-input--year { font-weight: 600; }
.tg-screen .tg-input--none::placeholder { color: var(--amber); }
.tg-screen .tg-input--grey::placeholder { color: var(--ink-faint); }
.tg-screen .tg-input:disabled { color: var(--ink-soft); background: var(--parchment); }
.tg-screen .tg-cell__sub { display: block; font-size: 11px; font-weight: 400; color: var(--ink-soft); white-space: nowrap; }
.tg-screen .tg-tag { display: inline-block; margin: 0 0 0 6px; padding: 0 6px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink-soft); font: 500 11px/17px var(--font-sans); vertical-align: baseline; }

/* Edit mode: each line's choice under its name, a small segmented switch; the selected side in the accent. */
.tg-screen .tg-line__name { display: block; }
.tg-screen .tg-seg { display: inline-flex; margin: 4px 0 0; padding: 2px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); }
.tg-screen .tg-seg__btn { margin: 0; padding: 2px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink-soft); font: 500 11px/1.4 var(--font-sans); cursor: pointer; white-space: nowrap; min-height: 0; }
.tg-screen .tg-seg__btn:hover:not(:disabled) { color: var(--ink); }
.tg-screen .tg-seg__btn--on, .tg-screen .tg-seg__btn--on:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.tg-screen .tg-seg__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tg-screen .tg-select:disabled { color: var(--ink-soft); background: var(--parchment); cursor: default; }

/* A brand group: its row on the parchment, its figures in ink (sums, never inputs); its lines indented under it. */
.tg-screen .tg-table .tg-row--group th, .tg-screen .tg-table .tg-row--group td { background: var(--parchment); font-weight: 600; }
.tg-screen .tg-group { display: inline-flex; align-items: baseline; gap: 6px; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font: 600 13px/1.35 var(--font-sans); cursor: pointer; text-align: left; }
.tg-screen .tg-group[aria-expanded="true"] .tg-group__caret { color: var(--accent); }
.tg-screen .tg-group__caret { flex: none; width: 1em; color: var(--ink-soft); }
.tg-screen .tg-group__count { font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.tg-screen .tg-table .tg-row--child > th:first-child, .tg-screen .tg-table .tg-subrow.tg-row--child td { padding-left: 22px; }

/* The phone (under 768px): a 16px gutter, and each line a card of labelled lines — nothing wider than the screen. */
@media (max-width: 767px) {
  .tg-screen .tg-wrap { padding: 16px 16px 32px; }
  .tg-screen .tg-h1 { font-size: var(--text-page-title-phone); }
  .tg-screen .tg-controls__end { margin-left: 0; }
  .tg-screen .tg-card { padding: 14px; }
  .tg-screen .tg-table thead { display: none; }
  .tg-screen .tg-table, .tg-screen .tg-table tbody, .tg-screen .tg-table tfoot, .tg-screen .tg-table tr { display: block; width: 100%; }
  .tg-screen .tg-table tr { padding: 8px 0; border-top: 1px solid var(--hairline); }
  .tg-screen .tg-table tbody tr:first-child { border-top: 0; }
  .tg-screen .tg-table .tg-subrow { padding-top: 0; border-top: 0; }
  .tg-screen .tg-table th, .tg-screen .tg-table td, .tg-screen .tg-table tfoot th, .tg-screen .tg-table tfoot td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0; border-top: 0; text-align: right; }
  .tg-screen .tg-table th::before, .tg-screen .tg-table td::before { content: attr(data-label); flex: none; color: var(--ink-soft); font-size: 12px; font-weight: 500; text-align: left; }
  .tg-screen .tg-table tbody th { font-weight: 600; min-width: 0; }
  .tg-screen .tg-table .tg-td--act { width: auto; justify-content: flex-end; }
  .tg-screen .tg-table .tg-subrow td { display: block; text-align: left; }
  .tg-screen .tg-table .tg-subrow td::before { content: none; }
  .tg-screen .tg-table .tg-row--group { padding: 8px 10px; background: var(--parchment); border-radius: 8px; }
  .tg-screen .tg-table .tg-row--group th, .tg-screen .tg-table .tg-row--group td { background: none; }
  .tg-screen .tg-table .tg-row--group th::before { content: none; }
  .tg-screen .tg-table .tg-row--child { padding-left: 12px; }
  .tg-screen .tg-table .tg-row--child > th:first-child, .tg-screen .tg-table .tg-subrow.tg-row--child td { padding-left: 0; }
  .tg-screen .tg-input { width: 140px; }
}
/* src/modules/revenue/features/analytics/analytics.css — the New Analytics (docs/REFRESH_SPEC.md "Analytics"). Loaded by
   AnalyticsPage.jsx and AnalyticsWithFallback.jsx.
   EVERY RULE IS SCOPED UNDER .an-screen, two classes deep, as Insights' are: the global reset `[class^='cd-'] button` (0,1,1)
   reaches every button and outranks one class; two (0,2,0) win. The root's `* { margin: 0; padding: 0 }` is why every
   margin and padding is stated.
   THE PLACE: the root's own scroller, the content area filled, the Classic's gutter; a measure only on prose (72ch). The
   screen is a container (analytics), so what fits follows the content area, not the window.
   COLOUR MEANS ONE THING (Part one): the workspace's accent for the app's own (a link, a thing to press, a share bar); amber
   for a dealer never contacted, a figure that is down, a stale or missing file, a money figure missing for a reason; muted
   ink for "not since 21 Sep" and the without-a-line count; a read that failed in ink. Tokens only, never a colour typed in.
   THE FONTS (Geist only): the page's title at --weight-title, card and section headings at --weight-heading; figures read
   down a column or across the row in tabular figures (.an-num). The figures row is one type size, figures and words alike;
   weight sets the figures apart, not size.
   THE RECORDS' SCALE (Ryan, 2026-10-23: "Bring the record-scale tokens to this screen or tell me why it needs its own"; it
   needs none): a card's padding and the gap inside it, a table row, the head to the tabs and the tabs to what follows are
   the --space-record-* tokens the New records take (src/styles/TOKENS.md). The figures row is a band on the page between two
   hairlines, not a card: one row of figures, not a box among boxes.
   A CELL NEVER CUTS ITS WORDS: each table's columns are no narrower than their widest words ("not since 21 Sep" is 100px
   in Geist at 13px, "Last spoke" and "couldn't read" under 80px, "$12,345,678" 76px), and a row is as wide as its columns'
   least, so a narrow card scrolls the table sideways rather than truncating a word; the cards sit side by side only where
   the dealer table fits beside the stack (scripts/analytics.test.mjs adds the columns up). */

.an-screen { flex: 1 1 0; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; container: analytics / inline-size; background: var(--parchment); color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.an-screen .an-wrap { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-panel-gap); margin: 0; padding: var(--space-page-top) var(--space-page-x) var(--space-page-bottom); }
.an-screen .an-num { font-family: var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-screen .an-muted { color: var(--ink-soft); }
.an-screen .an-faint { color: var(--ink-faint); }
.an-screen .an-attn { color: var(--amber); }
.an-screen .an-up { color: var(--success); }
.an-screen .an-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-screen .an-small { font-size: 12px; }
.an-screen .an-strong { font-weight: var(--weight-figure); }

/* The head: the title, the picker, the frames; the staleness chip on the right. */
.an-screen .an-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin: 0; padding: 0; }
.an-screen .an-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); }
.an-screen .an-head__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.an-screen .an-select { box-sizing: border-box; min-width: 200px; max-width: 320px; margin: 0; padding: 7px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 500 14px/1.3 var(--font-sans); }
.an-screen .an-select--inline { min-width: 160px; padding: 3px 8px; font-size: 13px; }
.an-screen .an-seg { display: inline-flex; flex: none; margin: 0; padding: 2px; border: 1px solid var(--hairline-strong); border-radius: 10px; background: var(--white); }
.an-screen .an-seg__btn { margin: 0; padding: 6px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink-soft); font: 500 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.an-screen .an-seg__btn:hover { color: var(--ink); }
.an-screen .an-seg__btn--on, .an-screen .an-seg__btn--on:hover { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.an-screen .an-seg__select { margin: 0 2px; padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; cursor: pointer; }
.an-screen .an-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-full); border: 1px solid var(--hairline-strong); background: var(--white); font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.an-screen .an-chip--attn { color: var(--amber); border-color: var(--amber-soft); }
.an-screen .an-button, .an-dialog .an-button { display: inline-flex; align-items: center; margin: 0; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.an-screen .an-button:hover:not(:disabled), .an-dialog .an-button:hover:not(:disabled) { border-color: var(--accent); }
.an-screen .an-button:disabled, .an-dialog .an-button:disabled { opacity: .45; cursor: default; }
.an-screen .an-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.35 var(--font-sans); cursor: pointer; text-align: left; }
.an-screen .an-link:hover { text-decoration: underline; }
.an-screen .an-link--row { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.an-screen .an-link--row:hover { color: var(--accent); }
.an-screen .an-button:focus-visible, .an-screen .an-link:focus-visible, .an-screen .an-seg__btn:focus-visible, .an-screen .an-select:focus-visible, .an-screen .an-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The tabs, each with its count in grey. */
.an-screen .an-tabs { display: flex; gap: 20px; flex-wrap: wrap; margin: calc(var(--space-record-tabs-top) - var(--space-panel-gap)) 0 calc(var(--space-record-body-top) - var(--space-panel-gap)); padding: 0; border-bottom: 1px solid var(--hairline); }
.an-screen .an-tab { margin: 0 0 -1px; padding: 0 0 9px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-soft); font: 500 14px/1.3 var(--font-sans); cursor: pointer; }
.an-screen .an-tab--on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.an-screen .an-tab__count { margin-left: 6px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* The figures row (FiguresRow), as the AnalyticsBoth2 and AnalyticsRank boards draw it: money left, a rule, effort right, a
   note at the far end; each figure large over its words (the boards' 26-27px, tabular and tight; its words 12px under it);
   a band on the page, closed by a hairline, never a box. */
/* The figures row is one band (Ryan, 2026-10-24): every figure over its words, the sentence on the right, on one baseline; it wraps only
   where the screen is narrower than the band (below), and then the sentence takes a line of its own, never a corner. */
.an-screen .an-figures { box-sizing: border-box; display: flex; flex-wrap: nowrap; align-items: baseline; gap: var(--space-record-card-gap) 0; margin: 0; padding: 2px 0 var(--space-record-body-top); background: none; border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; }
.an-screen .an-figures__side { display: flex; flex-wrap: nowrap; align-items: baseline; gap: var(--space-record-card-gap) 28px; flex: 0 1 auto; min-width: 0; }
.an-screen .an-figures__rule { width: 1px; margin: 0 26px; background: var(--hairline-strong); align-self: stretch; }
/* The number takes the room it needs (Ryan, 2026-11-01: "$1,797,726" ran out of a 150px figure into the next one's "—"); its
   words are what is capped, and a figure never shrinks below its number. */
.an-screen .an-fig { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; min-width: 0; }
.an-screen .an-fig--words .an-fig__label { max-width: 360px; }
.an-screen .an-fig__value { font: var(--weight-figure) 26px/1 var(--font-sans); letter-spacing: -0.012em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.an-screen .an-fig__label { font-size: 12px; line-height: 1.35; color: var(--ink-soft); max-width: 150px; }
.an-screen .an-fig--attn .an-fig__value, .an-screen .an-fig--attn .an-fig__label { color: var(--amber); }
.an-screen .an-fig--muted .an-fig__value { color: var(--ink-soft); }
.an-screen .an-fig--up .an-fig__value { color: var(--success); }
.an-screen .an-fig-group { display: flex; min-width: 0; }
.an-screen .an-fig-group__figs { display: flex; flex-wrap: nowrap; align-items: baseline; gap: var(--space-record-card-gap) 22px; }
.an-screen .an-figures__note { margin: 0 0 0 auto; padding: 0 0 0 26px; flex: 0 1 240px; min-width: 180px; max-width: 260px; font-size: 12px; line-height: 1.5; color: var(--ink-soft); }

/* Cards and the rows they sit in. */
.an-screen .an-row { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--space-panel-gap); align-items: start; margin: 0; padding: 0; }
.an-screen .an-stack { display: flex; flex-direction: column; gap: var(--space-panel-gap); min-width: 0; }
.an-screen .an-card { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-record-card-gap); min-width: 0; margin: 0; padding: var(--space-record-card-y) var(--space-record-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.an-screen .an-card--attn { background: var(--amber-soft); border-color: var(--amber-soft); }
.an-screen .an-card__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.an-screen .an-h3 { margin: 0; padding: 0; font: var(--weight-heading) 15px/1.3 var(--font-sans); color: var(--ink); }
.an-screen .an-card__sub { margin: 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
.an-screen .an-card__foot { margin: auto 0 0; padding: 0; max-width: 72ch; font-size: 12px; color: var(--ink-soft); }
.an-screen .an-note { margin: 0; padding: 0; max-width: 72ch; font-size: 13px; color: var(--ink-soft); }
.an-screen .an-note--bad { color: var(--ink); }
/* Build a review's "What we need from you" step */
.an-screen .an-button--primary, .an-dialog .an-button--primary { background: var(--accent); border-color: var(--accent); color: var(--white); }
.an-screen .an-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-record-row-y); }
.an-screen .an-list__item { margin: 0; padding: 0; font-size: 13px; color: var(--ink); line-height: 1.45; }

/* Tables: a grid row per dealer, scrolling inside the card when it is wider. */
.an-screen .an-table { display: flex; flex-direction: column; min-width: 0; overflow-x: auto; }
.an-screen .an-tr { display: grid; gap: 8px; align-items: center; padding: var(--space-record-row-y) 0; border-bottom: 1px solid var(--hairline); font-size: 13px; }
.an-screen .an-tr--head { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.an-screen .an-tr--total { font-weight: 600; border-bottom: 0; }
.an-screen .an-tr--sub { padding-left: 16px; color: var(--ink-soft); }
.an-screen .an-td { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-screen .an-td--num { text-align: right; font-variant-numeric: tabular-nums; }
.an-screen .an-td--name { display: flex; align-items: center; gap: 8px; }
/* Each row's least width is its columns' least plus the gaps between them. */
.an-screen .an-cols-dealers { min-width: 674px; grid-template-columns: minmax(150px, 2fr) repeat(2, minmax(76px, .9fr)) minmax(56px, .6fr) minmax(80px, .8fr) minmax(108px, 1fr) minmax(80px, .7fr); }
.an-screen .an-cols-deep { min-width: 670px; grid-template-columns: minmax(150px, 2fr) repeat(3, minmax(76px, .9fr)) minmax(56px, .6fr) minmax(108px, 1fr) minmax(80px, .7fr); }
.an-screen .an-cols-pipe { min-width: 650px; grid-template-columns: minmax(150px, 2fr) minmax(120px, 1.4fr) minmax(90px, 1fr) minmax(80px, .9fr) minmax(80px, .9fr) minmax(90px, 1fr); }
/* The rankings' tables (AnalyticsRank): #, dealer (its key mark), this year, on last year, moved, Mth, Qtr, last touch, who. */
.an-screen .an-cols-rank { min-width: 634px; grid-template-columns: 24px minmax(150px, 2.1fr) minmax(76px, .95fr) minmax(84px, 1fr) minmax(48px, .7fr) minmax(32px, .5fr) minmax(32px, .5fr) minmax(80px, .85fr) minmax(44px, .55fr); }
/* Target dealers (145): the dealer, this year, Mth, Qtr, last touch, who, and the state (its menu for a manager) */
.an-screen .an-cols-target { min-width: 568px; grid-template-columns: minmax(150px, 2.1fr) minmax(76px, .95fr) minmax(32px, .5fr) minmax(32px, .5fr) minmax(80px, .85fr) minmax(44px, .55fr) minmax(98px, .9fr); }
.an-screen .an-targets__line + .an-targets__line { margin-top: var(--space-record-card-gap); }
.an-screen .an-targets__head { margin: 0 0 4px; color: var(--ink-soft); }
.an-screen .an-targets__add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: var(--space-record-card-gap); }
/* Add a target (Ryan, 2026-10-30): the key tab's search box over one line's dealers; its matches below, each a button, the
   chosen one marked; on a pick of more than one line, the line first and its count beside it */
.an-screen .an-targets__matches { display: flex; flex-direction: column; max-width: 440px; margin: 6px 0 0; padding: 0; list-style: none; border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; }
.an-screen .an-targets__matches > li { margin: 0; padding: 0; border-bottom: 1px solid var(--hairline); }
.an-screen .an-targets__matches > li:last-child { border-bottom: 0; }
.an-screen .an-targets__match { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 6px 10px; border: 0; background: var(--white); color: var(--ink); font: 500 13px/1.35 var(--font-sans); text-align: left; cursor: pointer; }
/* The match the keys or the mouse are on, in parchment; the one picked, with the accent's edge and its weight. */
.an-screen .an-targets__match:hover, .an-screen .an-targets__match--active { background: var(--parchment); }
.an-screen .an-targets__match[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.an-screen .an-targets__match:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.an-screen .an-targets__match:disabled { cursor: default; color: var(--ink-soft); }
.an-screen .an-note--attn { padding: 10px 12px; border: 1px solid var(--amber-soft); border-radius: 10px; background: var(--amber-soft); color: var(--ink); margin-bottom: var(--space-record-card-gap); max-width: none; }
.an-screen .an-carry__lead { margin: 0 0 8px; }
.an-screen .an-carry__acts { display: inline-flex; gap: 10px; align-items: center; }
.an-screen .an-select--small { min-width: 0; max-width: 120px; padding: 3px 6px; font-size: 12px; }
/* last year unknown across the pick: on last year and moved aren't drawn (the band says why, once) */
.an-screen .an-cols-rank--now { min-width: 486px; grid-template-columns: 24px minmax(150px, 2.1fr) minmax(76px, .95fr) minmax(32px, .5fr) minmax(32px, .5fr) minmax(80px, .85fr) minmax(44px, .55fr); }
.an-screen .an-cols-every { min-width: 594px; grid-template-columns: minmax(170px, 2fr) repeat(2, minmax(76px, .9fr)) minmax(56px, .6fr) repeat(2, minmax(70px, .9fr)) 28px; }
.an-screen .an-share { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.an-screen .an-share__bar { width: 36px; height: 6px; border-radius: 3px; background: var(--parchment-dim); overflow: hidden; flex: none; }
.an-screen .an-share__fill { display: block; height: 100%; background: var(--accent); }
.an-screen .an-dot { width: 7px; height: 7px; border-radius: 999px; flex: none; background: transparent; }
.an-screen .an-dot--up { background: var(--success); }
.an-screen .an-dot--down { background: var(--amber); }
.an-screen .an-views { display: flex; gap: 6px; flex-wrap: wrap; }
/* the key tab's search: it fills the filter row, as on the lists, the pick and chips beside it */
.an-screen .an-search { flex: 1 1 240px; min-width: 0; box-sizing: border-box; margin: 0; padding: 7px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 14px/1.3 var(--font-sans); }
.an-screen .an-search:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.an-screen .an-mark { width: 7px; height: 7px; border-radius: var(--radius-full); flex: none; background: transparent; }
.an-screen .an-mark--key { background: var(--accent); }
.an-screen .an-row--rank { grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); }
.an-screen .an-list__item--row { display: grid; grid-template-columns: minmax(0, 1.7fr) auto minmax(64px, .8fr); gap: 10px; align-items: baseline; }
.an-screen .an-list__item--row > .an-num { text-align: right; }
.an-screen .an-list__item--mover { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.an-screen .an-mover__right { display: flex; gap: 10px; align-items: baseline; flex: none; }
.an-screen .an-mover { min-width: 42px; text-align: right; font-weight: 600; }
.an-screen .an-chipbtn { margin: 0; padding: 4px 10px; border-radius: var(--radius-full); border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink-soft); font: 500 12px/1.3 var(--font-sans); cursor: pointer; }
.an-screen .an-chipbtn--on { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.an-screen .an-caret { margin: 0; padding: 0; border: 0; background: none; color: var(--ink-soft); font: 600 14px/1 var(--font-sans); cursor: pointer; }

/* The dealer view (AnalyticsDealer.jsx): Back over the head, the dealer's facts under it, and its seven tabs' tables. */
.an-screen .an-dealer { display: flex; flex-direction: column; gap: var(--space-panel-gap); min-width: 0; }
.an-screen .an-dealer__crumbs { margin: 0; padding: 0; }
.an-screen .an-dealer__meta { margin: 0; padding: 0; font-size: 13px; color: var(--ink-soft); }
.an-screen .an-list__item--pair { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.an-screen .an-cols-dbig { min-width: 380px; grid-template-columns: minmax(130px, 2fr) minmax(76px, .9fr) minmax(56px, .6fr) minmax(84px, .8fr); }
.an-screen .an-cols-dlines { min-width: 800px; grid-template-columns: minmax(130px, 1.8fr) minmax(84px, .9fr) minmax(64px, .7fr) repeat(2, minmax(76px, .85fr)) minmax(56px, .6fr) minmax(56px, .6fr) minmax(100px, .9fr) minmax(84px, .8fr); }
.an-screen .an-cols-dcontacts { min-width: 710px; grid-template-columns: minmax(140px, 1.6fr) minmax(100px, 1.1fr) minmax(150px, 1.5fr) minmax(100px, 1fr) minmax(84px, .8fr) minmax(90px, .9fr); }
.an-screen .an-cols-dactivity { min-width: 640px; grid-template-columns: minmax(80px, .8fr) minmax(180px, 2fr) minmax(110px, 1.1fr) minmax(84px, .8fr) minmax(90px, .9fr); }
.an-screen .an-cols-dprojects { min-width: 700px; grid-template-columns: minmax(150px, 1.8fr) minmax(90px, 1fr) minmax(84px, .8fr) minmax(90px, .9fr) minmax(84px, .8fr) minmax(90px, .9fr); }
.an-screen .an-cols-dorders { min-width: 700px; grid-template-columns: minmax(150px, 1.8fr) minmax(110px, 1.2fr) minmax(84px, .8fr) minmax(90px, .9fr) minmax(84px, .8fr) minmax(90px, .9fr); }
.an-screen .an-cols-lpeople { min-width: 438px; grid-template-columns: minmax(140px, 1.6fr) minmax(100px, 1.2fr) minmax(84px, .8fr) minmax(90px, .9fr); }
/* Per line's "Who we know at" card (AnalyticsLinePeople.jsx): each company its own block, its people then what was last logged. */
.an-screen .an-company { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.an-screen .an-company + .an-company { margin-top: var(--space-panel-gap); }
.an-screen .an-company__name { font-weight: 600; color: var(--ink); }
.an-screen .an-cols-dlocations { min-width: 600px; grid-template-columns: minmax(130px, 1.4fr) minmax(170px, 1.8fr) minmax(120px, 1.2fr) minmax(56px, .5fr) minmax(84px, .8fr); }

/* Bars: the quarters, how much of it we are working, by stage, by rep. The quarters fill their card (Ryan, 2026-10-23: "taller
   bars, less padding, labels closer in"): each quarter's bars take all the height its two labels leave, the tallest bar
   reaching the figure above it. */
.an-screen .an-quarters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; align-items: stretch; height: 176px; }
.an-screen .an-q { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 0; font-size: 11px; color: var(--ink-soft); }
.an-screen .an-q__bars { flex: 1 1 0; min-height: 0; width: 100%; display: flex; gap: 4px; align-items: flex-end; justify-content: center; }
.an-screen .an-q__bar { flex: 0 1 26px; border-radius: 3px 3px 0 0; background: var(--accent); }
.an-screen .an-q__bar--prior { background: var(--hairline-strong); }
.an-screen .an-bar { display: flex; flex-direction: column; gap: 4px; }
.an-screen .an-bar__label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; }
.an-screen .an-bar__track { height: 7px; border-radius: 4px; background: var(--parchment-dim); overflow: hidden; display: flex; }
.an-screen .an-bar__fill { display: block; height: 100%; background: var(--accent); }
.an-screen .an-bar__fill--attn { background: var(--amber); }
.an-screen .an-bar__fill--muted { background: var(--ink-faint); }
.an-screen .an-band--up { color: var(--success); }
.an-screen .an-band--dip { color: var(--ink-soft); }
.an-screen .an-band--down { color: var(--amber); }
.an-screen .an-band--none { color: var(--ink-faint); }

.an-fell { margin: 12px 28px 0; padding: 10px 14px; border-radius: 10px; background: var(--amber-soft); color: var(--ink); font: 400 13px/1.45 var(--font-sans); }

/* Side by side only where the dealer table fits beside the stack: its least (674px), a card's sides and border, at 1.75 to 1, with the gap and the page's gutter — 1,168px; 1,180 for a scrollbar. */
@container analytics (max-width: 1180px) {
  .an-screen .an-row { grid-template-columns: minmax(0, 1fr); }
  .an-screen .an-figures, .an-screen .an-figures__side { flex-wrap: wrap; row-gap: 14px; }
  .an-screen .an-figures__note { flex: 1 0 100%; max-width: 640px; margin: 0; padding: 0; }
}
@container analytics (max-width: 900px) {
  .an-screen .an-figures__rule { display: none; }
  .an-screen .an-head__right { margin-left: 0; }
}

/* Build a review's dialog (ReviewDialog.jsx; the BuildReview board). Beside .an-screen, not in it: .an-screen is a size
   container and scrolls, so a fixed dialog inside it would be placed by it and scroll away. Tokens only. */
.an-dialog-scrim { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-start; justify-content: center; padding: 34px 16px; box-sizing: border-box; background: color-mix(in srgb, var(--ink) 16%, transparent); overflow-y: auto; }
.an-dialog { width: min(1052px, 100%); display: flex; flex-direction: column; background: var(--parchment); border: 1px solid var(--hairline-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); font-family: var(--font-sans); color: var(--ink); outline: none; }
.an-dialog__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 22px 15px; border-bottom: 1px solid var(--hairline); }
.an-dialog__title { margin: 0; font: var(--weight-heading) 18px/1.3 var(--font-sans); }
.an-dialog__sub { margin: 3px 0 0; font-size: 13px; color: var(--ink-soft); }
.an-dialog__chip { padding: 5px 11px; border-radius: var(--radius-full); border: 1px solid var(--hairline-strong); background: var(--white); font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.an-dialog__chip--attn { color: var(--amber); border-color: var(--amber-soft); background: color-mix(in srgb, var(--amber) 6%, var(--white)); }
.an-dialog__body { padding: 16px 22px 4px; }
.an-dialog__what { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.an-dialog__label { display: block; font: 600 13px/1.3 var(--font-sans); color: var(--ink); }
.an-dialog__count { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.an-dialog__list { list-style: none; margin: 0 0 14px; padding: 0; }
.an-dialog__row { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.an-dialog__tick { display: inline-flex; align-items: center; gap: 11px; margin: 0; padding: 0; border: 0; background: none; font: 500 14px/1.3 var(--font-sans); color: var(--ink-soft); cursor: pointer; text-align: left; }
.an-dialog__tick--on { color: var(--ink); }
.an-dialog__box { width: 17px; height: 17px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; border-radius: 5px; border: 1px solid var(--hairline-strong); background: var(--white); font-size: 11px; font-weight: 700; color: var(--on-accent); }
.an-dialog__tick--on .an-dialog__box { background: var(--accent); border-color: var(--accent); }
.an-dialog__info { position: relative; display: inline-flex; align-items: center; justify-self: start; color: var(--ink-faint); cursor: help; border-radius: var(--radius-full); }
.an-dialog__tip { display: none; position: absolute; left: 22px; top: -6px; z-index: 5; width: 310px; padding: 9px 12px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 12px; line-height: 1.5; box-shadow: var(--shadow-xl); }
.an-dialog__info:hover .an-dialog__tip, .an-dialog__info:focus .an-dialog__tip { display: block; }
.an-dialog__holds { grid-column: 1 / -1; margin: 2px 0 0 28px; font-size: 12px; line-height: 1.45; color: var(--ink-soft); }
.an-dialog__holds--none { color: var(--amber); }
.an-dialog__text { display: block; width: 100%; box-sizing: border-box; margin: 7px 0 6px; padding: 10px 12px; min-height: 74px; border: 1px solid var(--hairline-strong); border-radius: 9px; background: var(--white); font: 400 13px/1.5 var(--font-sans); color: var(--ink); resize: vertical; }
.an-dialog__note { margin: 0 0 4px; font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
/* A note beside a dealer (2026-10-31): the pack's dealer rows, each with its field beside it, in a box that scrolls */
.an-dialog__notes { margin: 0 0 14px; }
.an-dialog__dealers { max-height: 18rem; overflow-y: auto; margin-top: 8px; border: 1px solid var(--hairline); border-radius: 9px; background: var(--white); }
.an-dialog__group { padding: 4px 12px 6px; }
.an-dialog__group + .an-dialog__group { border-top: 1px solid var(--hairline); }
.an-dialog__group-name { display: block; padding: 8px 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.an-dialog__group .an-dialog__holds { margin: 0 0 4px; }
.an-dialog__dealer { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr); gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.an-dialog__dealer:last-child { border-bottom: 0; }
.an-dialog__dealer-name { display: flex; flex-direction: column; font-size: 13px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.an-dialog__dealer-fig { font-size: 11px; font-weight: 400; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.an-dialog__line { width: 100%; box-sizing: border-box; padding: 7px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); font: 400 13px/1.4 var(--font-sans); color: var(--ink); }
.an-dialog__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; padding: 15px 22px 18px; border-top: 1px solid var(--hairline); }
.an-dialog__file { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.an-dialog__buttons { display: flex; gap: 9px; flex-shrink: 0; }
.an-dialog__tick:focus-visible, .an-dialog__info:focus-visible, .an-dialog__text:focus-visible, .an-dialog__line:focus-visible, .an-dialog .an-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .an-dialog__foot { flex-direction: column; align-items: stretch; } .an-dialog__buttons { justify-content: flex-end; } .an-dialog__tip { width: min(310px, 70vw); left: auto; right: 0; top: 22px; } .an-dialog__dealer { grid-template-columns: 1fr; gap: 6px; } }
/* src/modules/revenue/features/profile/profile.css — the New "Your profile" page (ProfilePage.jsx). Loaded by the page and its
   crash boundary alone. The look is the New records' (contactPage.css, accountPage.css): a white header band, the content area
   near-white and the cards on it white, sentence-case headings, colour only where it means something — the workspace's
   accent for the app's own actions and links, amber for a write refused, grey for a field with nothing in it. Type is Geist
   only (Ryan, 2026-10-22), through the tokens: the name at --weight-title, headings at --weight-heading, a count in tabular
   numerals (pf-num). Classes, never inline sizes.
   EVERY RULE IS SCOPED UNDER .pf-screen, two classes deep, as the records' are: the root's global resets reach a single-class
   rule (`[class^='cd-'] button`, the root's `* { margin: 0; padding: 0 }`), so every margin and padding is stated.
   THE PHONE IS A MODIFIER CLASS, never a width query: the page adds pf-screen--phone when the app's mobile setting says so
   (useIsMobile), as the records do, so the layout and the app's own answer to "is this a phone" can't disagree. */

/* The crash fallback's line over the Classic (ProfileWithFallback.jsx): outside .pf-screen, so one class of its own. */
.pf-fell { flex: none; margin: 0; padding: 10px 22px; background: var(--amber-soft); color: var(--ink); font: 400 13px/1.4 var(--font-sans); }

.pf-screen { flex: 1 1 0; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; background: #FCFBF8; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.pf-screen .pf-head__in { padding: 18px var(--space-page-x) 18px; box-sizing: border-box; }
.pf-screen .pf-body { display: block; padding: var(--space-record-body-top) var(--space-page-x) var(--space-page-bottom); box-sizing: border-box; }
.pf-screen button { font-family: inherit; }
.pf-screen .pf-num { font-variant-numeric: tabular-nums; }
.pf-screen .pf-muted { color: var(--ink-soft); }
.pf-screen .pf-small { font-size: 12px; }
.pf-screen .pf-none { color: var(--ink-faint); }
.pf-screen .pf-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.pf-screen .pf-h2 { margin: 0; padding: 0; font: var(--weight-heading) 14px/1.3 var(--font-sans); color: var(--ink); }
.pf-screen .pf-h3 { margin: 0 0 4px; padding: 0; font: var(--weight-heading) 12px/1.3 var(--font-sans); color: var(--ink); }

/* Buttons and links */
.pf-screen .pf-button { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.pf-screen .pf-button:hover:not(:disabled) { border-color: var(--accent); }
.pf-screen .pf-button:disabled { opacity: .45; cursor: default; }
.pf-screen .pf-button--small { padding: 4px 10px; font-size: 12px; }
.pf-screen .pf-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pf-screen .pf-button--primary:hover:not(:disabled) { background: var(--accent-raised); }
.pf-screen .pf-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.3 var(--font-sans); cursor: pointer; text-align: left; text-underline-offset: 2px; }
.pf-screen .pf-link:hover { text-decoration: underline; }
.pf-screen .pf-link--meta { font-size: 11px; font-weight: 600; }
.pf-screen .pf-button:focus-visible, .pf-screen .pf-link:focus-visible, .pf-screen .pf-count__pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The header band: the breadcrumb (another person's page), the avatar, the name and its tags, and — yours — the way to the
   fields Settings owns, at the right. */
.pf-screen .pf-head { display: block; background: var(--white); border-bottom: 1px solid var(--hairline-strong); }
.pf-screen .pf-crumbs { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 13px; color: var(--ink-soft); }
.pf-screen .pf-titlerow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; }
.pf-screen .pf-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.pf-screen .pf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-screen .pf-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 600 11px/18px var(--font-sans); white-space: nowrap; }
.pf-screen .pf-tag--quiet { background: transparent; border: 1px solid var(--hairline-strong); color: var(--ink-soft); }
.pf-screen .pf-head__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 0 auto; }
.pf-screen .pf-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--parchment-dim); border: 1px solid var(--hairline); }
.pf-screen .pf-avatar__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-screen .pf-avatar__initials { font: 600 16px/1 var(--font-sans); color: var(--ink); }

/* The body: the person's column, then the activity's, wider. */
.pf-screen .pf-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-panel-gap); align-items: start; }
.pf-screen .pf-col { display: flex; flex-direction: column; gap: var(--space-panel-gap); min-width: 0; }
.pf-screen .pf-card { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-record-card-gap); min-width: 0; margin: 0; padding: var(--space-record-card-y) var(--space-record-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.pf-screen .pf-card__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pf-screen .pf-card__head .pf-h2 { margin-right: auto; }
.pf-screen .pf-card__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--hairline); }
.pf-screen .pf-card__foot--actions { justify-content: flex-end; }
.pf-screen .pf-empty { margin: 0; padding: 6px 0; color: var(--ink-soft); font-size: 13px; }
.pf-screen .pf-empty--bad { color: var(--ink); }
/* A refused save: ink words after an amber dot — the amber on the mark, never the sentence. */
.pf-screen .pf-problem { margin: 0; padding: 0; color: var(--ink); font-size: 12px; }
.pf-screen .pf-problem::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--amber); vertical-align: middle; }

/* Details: a label and its value per line */
.pf-screen .pf-rows { display: flex; flex-direction: column; margin: 0; padding: 0; }
.pf-screen .pf-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: baseline; gap: 10px; margin: 0; padding: 7px 0; border-top: 1px solid var(--hairline); }
.pf-screen .pf-row:first-child { border-top: 0; }
.pf-screen .pf-row__label { margin: 0; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.pf-screen .pf-row__value { margin: 0; padding: 0; font-size: 13px; overflow-wrap: anywhere; }
.pf-screen .pf-about { margin: 0; padding: 10px 0 0; border-top: 1px solid var(--hairline); }
.pf-screen .pf-about__text { margin: 0; padding: 0; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-screen .pf-figure { margin: 0; padding: 0; font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }

/* The edit: the three fields and the about-me, then Cancel and Save */
.pf-screen .pf-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pf-screen .pf-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-screen .pf-field__label { font-size: 12px; font-weight: 600; color: var(--ink); }
.pf-screen .pf-input { box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 7px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 13px/1.35 var(--font-sans); }
.pf-screen .pf-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.pf-screen .pf-input--area { resize: vertical; min-height: 96px; }
.pf-screen .pf-form p { margin: 0; padding: 0; }

/* This week: the counts, Total first, then each kind the workspace logs. Yours are buttons: a count lists its rows. */
.pf-screen .pf-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 0; padding: 0; }
.pf-screen .pf-count { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 10px; background: #FCFBF8; }
.pf-screen .pf-count--on { border-color: var(--accent); }
.pf-screen .pf-count__label { margin: 0; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-screen .pf-count__n { margin: 0; padding: 0; font-size: 20px; line-height: 1.2; color: var(--ink); }
.pf-screen .pf-count__pick { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.pf-screen .pf-count__pick:hover { color: var(--accent); }
.pf-screen .pf-count--on .pf-count__pick { color: var(--accent); }

/* Recent activity: the records' own rows (ActivityList), each row's record a link where the app opens it. */
.pf-screen .pf-feed { min-width: 0; }
.pf-screen .pf-acticon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--parchment); flex-shrink: 0; }

/* The phone (pf-screen--phone): one column, the details first, a 16px gutter, the counts two to a row, the header's action a
   full line under the name, inputs at 16px so the phone doesn't zoom into them. Three classes deep (0,3,0), so each
   outranks the rule it restates whatever its place. */
.pf-screen.pf-screen--phone .pf-head__in { padding: 14px 16px 14px; }
.pf-screen.pf-screen--phone .pf-body { padding: 14px 16px 24px; }
.pf-screen.pf-screen--phone .pf-h1 { font-size: var(--text-page-title-phone); }
.pf-screen.pf-screen--phone .pf-avatar { width: 44px; height: 44px; }
.pf-screen.pf-screen--phone .pf-head__actions { flex-basis: 100%; margin: 0; }
.pf-screen.pf-screen--phone .pf-head__actions .pf-button { flex: 1 1 auto; justify-content: center; }
.pf-screen.pf-screen--phone .pf-overview { grid-template-columns: minmax(0, 1fr); }
.pf-screen.pf-screen--phone .pf-counts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pf-screen.pf-screen--phone .pf-row { grid-template-columns: 88px minmax(0, 1fr); }
.pf-screen.pf-screen--phone .pf-input { font-size: 16px; }
.pf-screen.pf-screen--phone .pf-card__foot--actions .pf-button { flex: 1 1 0; justify-content: center; }
/* src/modules/revenue/features/team/myTeam.css — the New My Team on a channel firm (MyTeamPage.jsx). Loaded by the page and its
   crash boundary alone. The look is the New records' and Home's: a white header band, the content area near-white and the
   cards on it white, sentence-case headings, colour only where it means something — the workspace's accent for the app's own
   actions and links; amber for what is genuinely wrong (a dealer gone quiet, never touched or never spoken to, a last touch
   past a month, an overdue task, nothing logged this week); muted ink for line conversations, never amber (Ryan, 2026-10-22);
   grey for nothing there. Type is Geist only, through the tokens: the title at --weight-title, headings at --weight-heading,
   figures in tabular numerals (mt-num). Classes, never inline sizes.
   EVERY RULE IS SCOPED UNDER .mt-screen, two classes deep, as the records' are: the root's global resets reach a single-class
   rule, so every margin and padding is stated.
   THE PHONE IS A MODIFIER CLASS, never a width query: the page adds mt-screen--phone when the app's mobile setting says so
   (useIsMobile), so the layout and the app's own answer to "is this a phone" can't disagree. */

/* The crash fallback's line over the Classic (MyTeamWithFallback.jsx): outside .mt-screen, so one class of its own. */
.mt-fell { flex: none; margin: 0; padding: 10px 22px; background: var(--amber-soft); color: var(--ink); font: 400 13px/1.4 var(--font-sans); }

.mt-screen { flex: 1 1 0; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; background: #FCFBF8; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.mt-screen .mt-head { display: block; background: var(--white); border-bottom: 1px solid var(--hairline-strong); }
.mt-screen .mt-head__in { padding: var(--space-page-top) var(--space-page-x) 16px; box-sizing: border-box; }
.mt-screen .mt-body { display: flex; flex-direction: column; gap: var(--space-panel-gap); padding: var(--space-record-body-top) var(--space-page-x) var(--space-page-bottom); box-sizing: border-box; }
.mt-screen button, .mt-screen select { font-family: inherit; }
.mt-screen .mt-num { font-variant-numeric: tabular-nums; }
.mt-screen .mt-muted { color: var(--ink-soft); }
.mt-screen .mt-none { color: var(--ink-faint); }
.mt-screen .mt-small { margin: 0; padding: 0; font-size: 12px; }
.mt-screen .mt-tone--attn { color: var(--amber); }
.mt-screen .mt-prose { margin: 0; padding: 0; font-size: 13px; line-height: 1.55; }
.mt-screen p { margin: 0; padding: 0; }
.mt-screen .mt-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); }
.mt-screen .mt-sub { margin: var(--space-page-sub) 0 0; padding: 0; font-size: var(--text-page-sub); color: var(--ink-soft); }
.mt-screen .mt-h2 { margin: 0; padding: 0; font: var(--weight-heading) 14px/1.3 var(--font-sans); color: var(--ink); }
.mt-screen .mt-h2--person { font: var(--weight-heading) var(--text-section-title)/1.25 var(--font-sans); }

/* Buttons, links, tags */
.mt-screen .mt-button { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.mt-screen .mt-button:hover { border-color: var(--accent); }
.mt-screen .mt-button--small { padding: 4px 10px; font-size: 12px; }
.mt-screen .mt-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.3 var(--font-sans); cursor: pointer; text-align: left; text-underline-offset: 2px; }
.mt-screen .mt-link:hover { text-decoration: underline; }
.mt-screen .mt-link--meta { font-size: 11px; }
.mt-screen .mt-link--plain { color: var(--ink); font-weight: 400; }
.mt-screen .mt-link--plain:hover { color: var(--accent); }
.mt-screen .mt-button:focus-visible, .mt-screen .mt-link:focus-visible, .mt-screen .mt-pick:focus-visible, .mt-screen .mt-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mt-screen .mt-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 600 11px/18px var(--font-sans); white-space: nowrap; }
.mt-screen .mt-tag--quiet { background: transparent; border: 1px solid var(--hairline-strong); color: var(--ink-soft); }

/* The announcements this browser keeps (the Classic's banner): a white card, one line each, Dismiss at the right. */
.mt-screen .mt-news { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 4px var(--space-record-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.mt-screen .mt-news__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px; margin: 0; padding: 8px 0; border-top: 1px solid var(--hairline); }
.mt-screen .mt-news__item:first-child { border-top: 0; }
.mt-screen .mt-news__text { grid-column: 1; font-size: 13px; overflow-wrap: anywhere; }
.mt-screen .mt-news__by { grid-column: 1; font-size: 11px; color: var(--ink-soft); }
.mt-screen .mt-news__item .mt-link { grid-column: 2; grid-row: 1; }

/* Cards */
.mt-screen .mt-card { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-record-card-gap); min-width: 0; margin: 0; padding: var(--space-record-card-y) var(--space-record-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.mt-screen .mt-card__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mt-screen .mt-card__head .mt-h2 { margin-right: auto; }
.mt-screen .mt-card__sub { font-size: 12px; color: var(--ink-soft); }
.mt-screen .mt-card__foot { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin: auto 0 0; padding: 10px 0 0; border-top: 1px solid var(--hairline); font-size: 12px; }
.mt-screen .mt-finding { display: flex; flex-direction: column; gap: 2px; }
.mt-screen .mt-finding__line { font-size: 12px; color: var(--ink-soft); }
.mt-screen .mt-note { font-size: 13px; color: var(--ink-soft); }
.mt-screen .mt-note--bad { color: var(--ink); }
.mt-screen .mt-note--bad::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.mt-screen .mt-empty { font-size: 13px; color: var(--ink-soft); }
/* Nobody reports to you yet: plain ink on the card, no amber and no error mark — it is how a team starts, not a fault. */
.mt-screen .mt-alone { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--hairline); }
.mt-screen .mt-alone__lead { font-size: 13px; color: var(--ink); }
.mt-screen .mt-alone__ask { font-size: 13px; color: var(--ink-soft); }
.mt-screen .mt-foot { padding: 0 2px; }

/* The sort */
.mt-screen .mt-sort { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.mt-screen .mt-sort__label { font-size: 12px; color: var(--ink-soft); }
.mt-screen .mt-select { margin: 0; padding: 4px 8px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font-size: 12px; cursor: pointer; }

/* The team table: it scrolls inside its card when the window is narrower than its columns, never the page */
.mt-screen .mt-tablewrap { margin: 0; padding: 0; overflow-x: auto; }
.mt-screen .mt-cell { display: inline; }
.mt-screen .mt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mt-screen .mt-table th, .mt-screen .mt-table td { margin: 0; padding: var(--space-row-y) 10px; border-top: 1px solid var(--hairline); text-align: left; vertical-align: baseline; font-weight: 400; }
.mt-screen .mt-table thead th { border-top: 0; padding-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); white-space: normal; vertical-align: bottom; }
.mt-screen .mt-table th:first-child, .mt-screen .mt-table td:first-child { padding-left: 0; }
.mt-screen .mt-table th.mt-th--num, .mt-screen .mt-table td.mt-td--num { text-align: right; }
.mt-screen .mt-table td.mt-td--num, .mt-screen .mt-table td.mt-td--when { white-space: nowrap; }
.mt-screen .mt-table tr.mt-tr--on th, .mt-screen .mt-table tr.mt-tr--on td { background: var(--parchment); }
.mt-screen .mt-who { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.mt-screen .mt-who__role { font-size: 12px; color: var(--ink-soft); }
.mt-screen .mt-who__note { flex-basis: 100%; font-size: 12px; }
.mt-screen .mt-pick { margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font: 600 13px/1.3 var(--font-sans); cursor: pointer; text-align: left; }
.mt-screen .mt-pick:hover, .mt-screen .mt-pick[aria-pressed="true"] { color: var(--accent); }
.mt-screen .mt-table tr.mt-tr--nothing .mt-pick { color: var(--ink-soft); }

/* A person, opened under the table */
.mt-screen .mt-person { display: flex; flex-direction: column; gap: var(--space-panel-gap); min-width: 0; }
.mt-screen .mt-person__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; padding: 4px 2px 0; }
.mt-screen .mt-person__actions { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 0 auto; }
.mt-screen .mt-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-panel-gap); align-items: stretch; }
.mt-screen .mt-col { display: flex; flex-direction: column; gap: var(--space-panel-gap); min-width: 0; }

/* Lists inside a card: a dealer, an order, a task */
.mt-screen .mt-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.mt-screen .mt-item { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: 0; padding: var(--space-record-row-y) 0; border-top: 1px solid var(--hairline); font-size: 13px; }
.mt-screen .mt-item:first-child { border-top: 0; }
.mt-screen .mt-item__main { min-width: 0; overflow-wrap: anywhere; }
.mt-screen .mt-item__sub { font-size: 12px; }
.mt-screen .mt-item__aside { margin: 0 0 0 auto; font-size: 12px; white-space: nowrap; }

/* Coverage of their lines: a bar per line, muted ink (never amber); the split under it */
.mt-screen .mt-bars { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mt-screen .mt-bar { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto; align-items: center; gap: 4px 12px; margin: 0; padding: 0; font-size: 13px; }
.mt-screen .mt-bar__name { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.mt-screen .mt-bar__last { font-size: 11px; color: var(--ink-soft); }
.mt-screen .mt-bar__split { font-size: 11px; }
.mt-screen .mt-bar__n { white-space: nowrap; font-size: 12px; }
.mt-screen .mt-meter { display: block; box-sizing: border-box; width: 100%; height: 8px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: var(--hairline); -webkit-appearance: none; appearance: none; }
.mt-screen .mt-meter::-webkit-meter-bar { height: 8px; border: 0; border-radius: 999px; background: var(--hairline); }
.mt-screen .mt-meter::-webkit-meter-optimum-value { border-radius: 999px; background: var(--ink-soft); }
.mt-screen .mt-meter::-moz-meter-bar { border-radius: 999px; background: var(--ink-soft); }

/* This week: a count per kind the workspace logs, then the rows */
.mt-screen .mt-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 0; padding: 0; }
.mt-screen .mt-count { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 10px; background: #FCFBF8; }
.mt-screen .mt-count__label { margin: 0; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-screen .mt-count__n { margin: 0; padding: 0; font-size: 20px; line-height: 1.2; color: var(--ink); }
.mt-screen .mt-feed { min-width: 0; }
.mt-screen .mt-acticon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--parchment); flex-shrink: 0; }

/* Label and value rows (the orders' two figures) */
.mt-screen .mt-rows { display: flex; flex-direction: column; margin: 0; padding: 0; }
.mt-screen .mt-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: baseline; gap: 10px; margin: 0; padding: 6px 0; border-top: 1px solid var(--hairline); }
.mt-screen .mt-row:first-child { border-top: 0; }
.mt-screen .mt-row__label { margin: 0; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.mt-screen .mt-row__value { margin: 0; padding: 0; font-size: 13px; }

/* The phone (mt-screen--phone): one column, a 16px gutter, each person's row a block with its labels, the person's cards one
   above the other. Three classes deep (0,3,0) or more, so each outranks the rule it restates whatever its place. */
.mt-screen.mt-screen--phone .mt-head__in { padding: 14px 16px 14px; }
.mt-screen.mt-screen--phone .mt-body { padding: 14px 16px 24px; }
.mt-screen.mt-screen--phone .mt-h1 { font-size: var(--text-page-title-phone); }
.mt-screen.mt-screen--phone .mt-cols { grid-template-columns: minmax(0, 1fr); }
.mt-screen.mt-screen--phone .mt-table, .mt-screen.mt-screen--phone .mt-table tbody, .mt-screen.mt-screen--phone .mt-table tr { display: block; width: 100%; }
.mt-screen.mt-screen--phone .mt-table thead { display: none; }
.mt-screen.mt-screen--phone .mt-table tr { padding: 8px 0; border-top: 1px solid var(--hairline); }
.mt-screen.mt-screen--phone .mt-table tbody th, .mt-screen.mt-screen--phone .mt-table td { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border-top: 0; text-align: left; }
.mt-screen.mt-screen--phone .mt-table td::before { content: attr(data-label); font-size: 12px; color: var(--ink-soft); }
.mt-screen.mt-screen--phone .mt-tablewrap { overflow-x: visible; }
.mt-screen.mt-screen--phone .mt-table td .mt-cell { text-align: right; }
.mt-screen.mt-screen--phone .mt-bar { grid-template-columns: minmax(0, 1fr) auto; }
.mt-screen.mt-screen--phone .mt-bar .mt-meter { grid-column: 1 / -1; grid-row: 2; }
.mt-screen.mt-screen--phone .mt-person__actions { flex-basis: 100%; margin: 0; }
.mt-screen.mt-screen--phone .mt-row { grid-template-columns: 112px minmax(0, 1fr); }
/* src/modules/revenue/features/projects/pipelineReview.css — the pipeline dashboard's review (PipelineReview.jsx), on screen
   and printed. Loaded by PipelineReview.jsx alone.
   EVERY RULE IS SCOPED UNDER .pr-review, two classes deep, as the dashboard's are (pipelineDashboard.css says why: the
   switch's cd- reset on buttons outranks a single class). Tokens only, never a color typed in; Geist (--font-sans) only, a
   figure with tabular numerals. Nothing amber: it is a sheet of paper, read away from the app; "not estimated" is said, in
   the soft ink.
   ON SCREEN: a sheet of paper's width inside the Projects hub's body, the bar above it (back, the five switches, Print). A
   phone's width stacks the bar and narrows the sheet's margins, as the dashboard's phone rules do.
   PRINTED: the tracker review's print rules (trackerReview.css), on a page of this review's own — the named page
   pipeline-review, Letter, portrait, with margins — so opening the review changes how no other page of the app prints.
   Every section avoids splitting at a page's foot, so one that wouldn't fit starts a new page, and a long one (By rep, the
   dealers, the projects) breaks between rows, never inside one; a heading stays with what follows it; a table's header row
   repeats on each page. The tab's name runs at the top of every page, in the page's top margin (the words are the review's,
   pipelineReviewModel.js reviewRunningHead; this sets how they look). The bar, the switches and the buttons don't print,
   and neither does the app around the review: every element holding it prints as a plain block that clips nothing, and
   everything beside it is left out. The bars print in their color. */

.pr-review { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-section-gap); max-width: 860px; min-width: 0; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.pr-review .pr-num { font-variant-numeric: tabular-nums; }
.pr-review .pr-soft { color: var(--ink-soft); font-style: italic; }

/* The bar: back to the dashboard, the switches, Print. */
.pr-review .pr-bar { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.pr-review .pr-bar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.pr-review .pr-switches { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.pr-review .pr-switches__legend { margin: 0 0 4px; padding: 0; font: 600 11px/1.3 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.pr-review .pr-switch { display: inline-flex; align-items: center; gap: 6px; margin: 0 18px 0 0; padding: 2px 0; font-size: 13px; color: var(--ink); cursor: pointer; }
.pr-review .pr-switch input { margin: 0; accent-color: var(--accent); }
.pr-review .pr-hint { margin: 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
/* For a manufacturer (item 4): its switch, and what it leaves out said under it. */
.pr-review .pr-for { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--white); }
.pr-review .pr-for__switch { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; font: 600 13px/1.3 var(--font-sans); color: var(--ink); cursor: pointer; }
.pr-review .pr-for__switch input { margin: 0; accent-color: var(--accent); }
.pr-review .pr-for__switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pr-review .pr-button { display: inline-flex; align-items: center; margin: 0; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.pr-review .pr-button--primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.pr-review .pr-button--primary:hover { background: var(--accent-raised); }
.pr-review .pr-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.35 var(--font-sans); cursor: pointer; text-align: left; text-underline-offset: 2px; }
.pr-review .pr-link:hover { text-decoration: underline; }
.pr-review .pr-link--plain { align-self: flex-start; color: var(--ink-soft); font-weight: 500; }
.pr-review .pr-button:focus-visible, .pr-review .pr-link:focus-visible, .pr-review .pr-switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The sheet. */
.pr-review .pr-doc { box-sizing: border-box; display: flex; flex-direction: column; gap: 22px; min-width: 0; margin: 0; padding: 28px 32px; background: var(--white); border: 1px solid var(--hairline); border-radius: 11px; }
.pr-review .pr-section, .pr-review .pr-foot-sheet { min-width: 0; margin: 0; padding: 0; }
.pr-review .pr-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.pr-review .pr-h2 { margin: 0 0 6px; padding: 0; font: var(--weight-heading) var(--text-base)/1.3 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.pr-review .pr-firm { margin: 4px 0 0; padding: 0; font-size: 13px; color: var(--ink-soft); }
.pr-review .pr-note { margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--ink); }
.pr-review .pr-scope { margin: 8px 0 0; padding: 0; font-size: 13.5px; color: var(--ink); }
/* A brand group's moves (257), under what the review is of: in ink, as the scope is, a step smaller. */
.pr-review .pr-moves { max-width: 80ch; margin: 6px 0 0; padding: 0; font-size: 13px; color: var(--ink); }
.pr-review .pr-whose { max-width: 80ch; margin: 14px 0 0; padding: 10px 0 0; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--ink-soft); }
.pr-review .pr-foot-sheet .pr-whose { margin: 0; }
.pr-review .pr-lede { margin: 0 0 8px; padding: 0; font-size: 13px; color: var(--ink-soft); }
.pr-review .pr-foot { margin: 6px 0 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
.pr-review .pr-state { margin: 0; padding: 0; color: var(--ink-soft); }

/* The totals: four across. */
.pr-review .pr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.pr-review .pr-kpi { display: flex; flex-direction: column; gap: 3px; min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 8px; }
.pr-review .pr-kpi__label { margin: 0; padding: 0; font: 600 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); overflow-wrap: anywhere; }
.pr-review .pr-kpi__value { margin: 0; padding: 0; font-size: 20px; font-weight: 600; line-height: 1.2; }
.pr-review .pr-kpi__value .pr-soft { font-size: 14px; font-weight: 500; }
.pr-review .pr-kpi__sub { margin: auto 0 0; padding: 0; font-size: 12px; color: var(--ink-soft); }

/* The quarters: label, bar, amount, count — one bar color. */
.pr-review .pr-bars { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pr-review .pr-bar-row { display: grid; grid-template-columns: 6.5em minmax(48px, 1fr) 8.5em 7.5em; align-items: center; column-gap: 12px; margin: 0; padding: 0; font-size: 13px; }
.pr-review .pr-bar__label { white-space: nowrap; font-weight: 600; }
.pr-review .pr-bar__track { display: block; height: 10px; border-radius: 999px; background: var(--parchment-dim); overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pr-review .pr-bar__fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pr-review .pr-bar__value { text-align: right; white-space: nowrap; }
.pr-review .pr-bar__n { text-align: right; white-space: nowrap; font-size: 12px; color: var(--ink-soft); }

/* By rep, the dealers and the projects: tables. */
.pr-review .pr-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pr-review .pr-table th, .pr-review .pr-table td { margin: 0; padding: 5px 8px; border-top: 1px solid var(--hairline); text-align: left; vertical-align: top; font-weight: 400; overflow-wrap: break-word; }
.pr-review .pr-table th:first-child, .pr-review .pr-table td:first-child { padding-left: 0; }
.pr-review .pr-table thead th { border-top: 0; padding-top: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.pr-review .pr-table tbody th { font-weight: 500; color: var(--ink); }
.pr-review .pr-table .pr-num-col { text-align: right; white-space: nowrap; }
.pr-review .pr-held { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-soft); }
.pr-review .pr-unest { display: block; font-size: 11.5px; color: var(--ink-soft); }
.pr-review .pr-row--soft th, .pr-review .pr-row--soft td { color: var(--ink-soft); }

/* A phone's width: the bar stacks, the sheet's margins narrow, the totals two across. */
@media (max-width: 767px) {
  .pr-review .pr-bar__row { flex-direction: column; align-items: flex-start; }
  .pr-review .pr-doc { gap: 18px; padding: 18px 16px; }
  .pr-review .pr-h1 { font-size: var(--text-page-title-phone); }
  .pr-review .pr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-review .pr-bar-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "track track" "n n"; row-gap: 3px; }
  .pr-review .pr-bar__label { grid-area: label; }
  .pr-review .pr-bar__value { grid-area: value; }
  .pr-review .pr-bar__track { grid-area: track; }
  .pr-review .pr-bar__n { grid-area: n; text-align: left; }
}

/* ── Printed ─────────────────────────────────────────────────────────────────────────────────────────────────────────── */
@media print {
  /* The review's own page; the tab's name at the top of each, in its margin: the words are the review's
     (reviewRunningHead), the look is here. */
  @page pipeline-review { size: letter portrait; margin: 0.8in 0.6in 0.6in;
    @top-left { font: 500 8.5pt/1.2 var(--font-sans); color: var(--ink-soft); vertical-align: bottom; padding-bottom: 0.2in; } }
  /* The app around the review: every element holding it a plain block that clips nothing; everything beside it left out. */
  :has(.pr-review) { display: block !important; position: static !important; overflow: visible !important; height: auto !important; min-height: 0 !important;
    max-height: none !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
    box-shadow: none !important; transform: none !important; background: var(--white) !important; }
  :has(.pr-review) > :not(:has(.pr-review)):not(.pr-review) { display: none !important; }
  .pr-review { display: block; max-width: none; font-size: 10.5pt; page: pipeline-review; }
  .pr-review .pr-noprint { display: none !important; }
  .pr-review .pr-doc { display: block; padding: 0; border: 0; border-radius: 0; }
  .pr-review .pr-doc > .pr-section, .pr-review .pr-doc > .pr-foot-sheet { margin-top: 18px; }
  .pr-review .pr-doc > .pr-head { margin-top: 0; }
  /* A section that would split at a page's foot starts a new page; a long one breaks between rows; a heading stays with
     what follows it. */
  .pr-review .pr-section, .pr-review .pr-foot-sheet { break-inside: avoid; page-break-inside: avoid; }
  .pr-review .pr-section--long { break-inside: auto; page-break-inside: auto; }
  .pr-review .pr-h2, .pr-review .pr-lede { break-after: avoid; page-break-after: avoid; }
  .pr-review .pr-table thead { display: table-header-group; }
  .pr-review .pr-table tr, .pr-review .pr-kpi, .pr-review .pr-bar-row { break-inside: avoid; page-break-inside: avoid; }
  .pr-review .pr-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* src/modules/revenue/features/projects/pipelineDashboard.css — the New pipeline dashboard (docs/REFRESH_SPEC.md §6).
   Loaded by PipelineDashboard.jsx alone (the registry lets one file load a stylesheet, so a withdrawal can find it).
   EVERY RULE IS SCOPED UNDER .pd-screen, two classes deep, and that is load-bearing: the Classic/New wrapper's class starts
   with "cd-", so the global reset `[class^='cd-'] button { background: none; border: none; font: inherit }` (0,1,1) reaches
   every button here and outranks a single-class rule. Two classes (0,2,0) win. The root's `* { margin: 0; padding: 0 }` is
   why every margin and padding is stated.
   The rules that apply everywhere: colour means something — the workspace's accent for the app's own (the open brand, a
   filter that is on, a link, the bars: one bar colour), amber for "look here" on one thing at a time (no estimate, no
   dealer, a starred quarter or amount), grey for nothing there (no stage, a stage not here), nothing for decoration (a
   stage is ink, never its colour); an inactive rep dimmed, what they hold said, not flagged; a failed read and a note in
   ink — neither is on the spec's amber list; cards white on the content area. Type is Geist only (Ryan,
   2026-10-22): the page title at --weight-title, Geist for everything else too — a figure (an amount, a count) is
   Geist with tabular numerals (pd-num), never another face; a date or a number inside a sentence is plain Geist.
   Classes, not inline sizes — the root's phone rules rewrite inline grids; the one inline style is a bar's length.
   THE WIDTH: it lives in the Projects hub's padded body (the hub's 28px gutter, the Classic's own) and fills it — no maximum
   and no centring on the cards or the table. A maximum sits only on prose: the notes and the reconciliation sentence (90ch). */

/* position: relative is load-bearing: the screen is the containing block of its visually hidden labels (.pd-sr). Without it
   they take the page as theirs, escape the hub's scrolling body, and stretch the document — the whole app scrolls. */
.pd-screen { position: relative; display: block; min-width: 0; container: pd-screen / inline-size; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.pd-screen button { font-family: inherit; }
.pd-screen .pd-num { font-variant-numeric: tabular-nums; }
.pd-screen .pd-muted { color: var(--ink-soft); }
.pd-screen .pd-attn { color: var(--amber); font-weight: 600; }
.pd-screen .pd-star { color: var(--amber); font-weight: 700; margin: 0 0 0 1px; }
.pd-screen .pd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pd-screen .pd-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); }
.pd-screen .pd-sub { margin: var(--space-page-sub) 0 0; padding: 0; color: var(--ink-soft); font-size: var(--text-page-sub); }
.pd-screen .pd-h2 { margin: 0; padding: 0; font: 600 12px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.pd-screen .pd-lede { margin: 0; padding: 0; color: var(--ink-soft); font-size: 12.5px; }
.pd-screen .pd-empty { margin: 0; padding: 6px 0; color: var(--ink-soft); font-size: 13px; }
.pd-screen .pd-button { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; }
.pd-screen .pd-button:hover { border-color: var(--accent); }
.pd-screen .pd-button:disabled { opacity: .5; cursor: default; border-color: var(--hairline-strong); }
.pd-screen .pd-button:focus-visible, .pd-screen .pd-brand:focus-visible, .pd-screen .pd-seg__opt:focus-visible, .pd-screen .pd-th__sort:focus-visible,
.pd-screen .pd-rowlink:focus-visible, .pd-screen .pd-toggle:focus-visible, .pd-screen .pd-clear:focus-visible, .pd-screen .pd-back:focus-visible,
.pd-screen .pd-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Back to the dashboard, on the review's address while the review can't be drawn (loading, a failed read). */
.pd-screen .pd-back { display: inline-block; margin: 0 0 12px; padding: 0; border: 0; background: none; color: var(--ink-soft); font: 500 13px/1.35 var(--font-sans); cursor: pointer; }
.pd-screen .pd-back:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Loading, a failed read, nothing yet */
.pd-screen .pd-state { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; padding: 20px; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.pd-screen .pd-state--quiet { color: var(--ink-soft); font-size: 13px; }
.pd-screen .pd-state__text { margin: 0; padding: 0; max-width: 90ch; font-size: 14px; color: var(--ink); }

/* The head and the brand tabs */
.pd-screen .pd-head { margin: 0 0 var(--space-panel-gap); padding: 0; }
.pd-screen .pd-brands { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; }
.pd-screen .pd-brand { display: inline-flex; align-items: baseline; gap: 7px; margin: 0; padding: 6px 13px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 13px/1.25 var(--font-sans); cursor: pointer; white-space: nowrap; }
.pd-screen .pd-brand:hover { border-color: var(--accent); }
/* A brand group's tab: its lines' tabs follow it; its ring in ink, a step stronger than a line's (the open tab's is the accent). */
.pd-screen .pd-brand--group { border-color: var(--ink-soft); }
.pd-screen .pd-brand--on, .pd-screen .pd-brand--on:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pd-screen .pd-brand__n { color: var(--ink-soft); font-weight: 500; }
/* The open tab's count in the colour the accent's text takes (white or ink, whichever reads on it), a step softer. */
.pd-screen .pd-brand--on .pd-brand__n { color: var(--on-accent); opacity: .78; }
.pd-screen .pd-note { margin: 0 0 var(--space-panel-gap); padding: 8px 12px; max-width: 90ch; border-left: 3px solid var(--hairline-strong); background: var(--white); color: var(--ink); font-size: 13px; line-height: 1.5; }
/* Inside a group's tab: its lines as chips, each opening its line's tab, then what is said of the group, close under them. */
.pd-screen .pd-group { margin: 0 0 var(--space-panel-gap); padding: 0; }
.pd-screen .pd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; }
.pd-screen .pd-chip { display: inline-flex; align-items: baseline; gap: 6px; margin: 0; padding: 3px 10px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 500 12.5px/1.3 var(--font-sans); cursor: pointer; white-space: nowrap; }
.pd-screen .pd-chip:hover { border-color: var(--accent); }
.pd-screen .pd-chip__n { color: var(--ink-soft); }
.pd-screen .pd-note--group { margin: 0 0 8px; }
.pd-screen .pd-note--groups .pd-button--inline, .pd-screen .pd-note--group .pd-button--inline { margin: 0 0 0 6px; padding: 2px 10px; }
/* On a group's tab, a project's line beside its name. */
.pd-screen .pd-line { display: inline-block; margin: 0 0 0 8px; padding: 0 7px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink-soft); font: 500 11.5px/18px var(--font-sans); white-space: nowrap; vertical-align: 1px; }

/* The four KPIs: rows stretch, cards fill — the gaps line sits at each card's foot */
.pd-screen .pd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: var(--space-panel-gap); margin: 0 0 var(--space-panel-gap); padding: 0; }
.pd-screen .pd-kpi { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.pd-screen .pd-kpi__label { margin: 0; padding: 0; font: 600 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); overflow-wrap: anywhere; }
.pd-screen .pd-kpi__value { margin: 0; padding: 0; font-size: 24px; line-height: 1.15; color: var(--ink); }
.pd-screen .pd-kpi__value .pd-num { font-size: 1em; font-weight: 600; }
.pd-screen .pd-kpi__value .pd-attn { font-size: 15px; }
.pd-screen .pd-kpi__sub { margin: auto 0 0; padding: 0; font-size: 12px; color: var(--ink-soft); }

/* Panels */
.pd-screen .pd-pair { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: var(--space-panel-gap); margin: 0 0 var(--space-panel-gap); padding: 0; }
.pd-screen .pd-card { box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.pd-screen .pd-card--wide { margin: 0 0 var(--space-panel-gap); }
.pd-screen .pd-card__foot { margin-top: auto; padding: 8px 0 0; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 3px; }
.pd-screen .pd-foot { margin: 0; padding: 0; font-size: 12px; color: var(--ink-soft); max-width: 90ch; }
.pd-screen .pd-reconcile { margin: 0; padding: 0; max-width: 90ch; font-size: 13.5px; line-height: 1.5; color: var(--ink); }

/* Quarters as horizontal bars: label, bar, amount, count — one bar colour */
.pd-screen .pd-bars { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 2px 0 0; padding: 0; }
.pd-screen .pd-bar { display: grid; grid-template-columns: 6.5em minmax(48px, 1fr) 8.5em 7.5em; align-items: center; column-gap: 12px; margin: 0; padding: 0; font-size: 13px; }
.pd-screen .pd-bar__label { white-space: nowrap; color: var(--ink); font-weight: 600; }
.pd-screen .pd-bar--nodate .pd-bar__label { color: var(--ink-soft); font-weight: 500; }
.pd-screen .pd-bar__track { display: block; height: 12px; border-radius: 999px; background: var(--parchment-dim); overflow: hidden; }
.pd-screen .pd-bar__fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.pd-screen .pd-bar__value { text-align: right; white-space: nowrap; }
.pd-screen .pd-bar__value .pd-attn { font-size: 12px; }
.pd-screen .pd-bar__n { text-align: right; white-space: nowrap; color: var(--ink-soft); font-size: 12px; }

/* Ranked panels: By rep, Top dealers */
.pd-screen .pd-rank { width: 100%; border-collapse: collapse; margin: 0; font-size: 13px; }
.pd-screen .pd-rank th, .pd-screen .pd-rank td { padding: var(--space-row-y) 0; border-top: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.pd-screen .pd-rank thead th { padding: 0 0 6px; border-top: 0; font: 600 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.pd-screen .pd-rank .pd-rank__num { position: relative; text-align: right; white-space: nowrap; padding-left: 14px; }
.pd-screen .pd-rank__name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pd-screen .pd-rank .pd-rank__heldrow td { padding: 0 0 var(--space-row-y); border-top: 0; }
.pd-screen .pd-rank__held { display: block; font-size: 12px; font-weight: 500; color: var(--ink-soft); }
/* Someone who has left: dimmed, never dropped — what they still hold open said under them, in the line's own soft ink (the
   spec dims an inactive rep; their open work is not on its amber list). */
.pd-screen .pd-rank__row--dim .pd-rank__name, .pd-screen .pd-rank__row--dim .pd-rank__num { color: var(--ink-faint); }
.pd-screen .pd-rank__row--muted .pd-rank__name { font-style: italic; font-weight: 500; color: var(--ink-soft); }
/* How many projects a starred amount leaves out (the Classic's "k not estimated"), said once by the cell's own words: hidden
   but read out; a tip under the amount while a pointer is on it; drawn under it where nothing can hover — below. Its ink is
   a step softer than its row's amount, the dimmed rows' too (the amount there is already the faint ink). */
.pd-screen .pd-rank__unest { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; color: var(--ink-soft); }
.pd-screen .pd-rank__row--dim .pd-rank__unest { color: var(--ink-faint); }

/* The table */
.pd-screen .pd-card--table { padding: 0; gap: 0; }
.pd-screen .pd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
.pd-screen .pd-input { flex: 1 1 220px; min-width: 0; box-sizing: border-box; padding: 7px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.pd-screen .pd-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.pd-screen .pd-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.pd-screen .pd-seg__opt { margin: 0; padding: 5px 11px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 600 12px/1.25 var(--font-sans); cursor: pointer; }
.pd-screen .pd-seg__opt:hover { border-color: var(--accent); }
.pd-screen .pd-seg__opt--on, .pd-screen .pd-seg__opt--on:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pd-screen .pd-count { margin: 0 0 0 auto; padding: 0; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
/* Review and Export, after the count; then the four filters on a row of their own, the quarter rule under them when a date
   is set, and an export that failed, in ink. */
.pd-screen .pd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.pd-screen .pd-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; flex: 1 1 100%; margin: 0; padding: 0; }
.pd-screen .pd-filter { display: flex; flex-direction: column; gap: 3px; min-width: 0; margin: 0; padding: 0; }
.pd-screen .pd-filter__label { font: 600 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.pd-screen .pd-pick, .pd-screen .pd-date { box-sizing: border-box; min-width: 0; margin: 0; padding: 6px 8px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.pd-screen .pd-pick:focus, .pd-screen .pd-date:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.pd-screen .pd-clear { margin: 0 0 6px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.3 var(--font-sans); cursor: pointer; }
.pd-screen .pd-clear:hover { text-decoration: underline; text-underline-offset: 2px; }
.pd-screen .pd-hint { flex: 1 1 100%; margin: 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
.pd-screen .pd-problem { flex: 1 1 100%; margin: 0; padding: 0; font-size: 13px; color: var(--ink); }
.pd-screen .pd-tablewrap { overflow-x: auto; }
.pd-screen .pd-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.pd-screen .pd-table th { padding: 0; text-align: left; background: var(--parchment); border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.pd-screen .pd-th__sort { display: inline-flex; align-items: center; gap: 4px; width: 100%; margin: 0; padding: var(--space-row-y) 12px; border: 0; background: none; color: var(--ink-soft); font: 600 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.pd-screen .pd-th--num .pd-th__sort { justify-content: flex-end; }
.pd-screen .pd-th__dir { color: var(--accent); }
/* A header that sorts but isn't the sort: a faint ↕, as the Classic's, so every sortable column says it sorts. */
.pd-screen .pd-th__dir--off { color: var(--ink-faint); }
.pd-screen .pd-table td { padding: var(--space-row-y) 12px; border-top: 1px solid var(--hairline); vertical-align: top; color: var(--ink); }
.pd-screen .pd-table tbody tr:first-child td { border-top: 0; }
.pd-screen .pd-td--num { text-align: right; white-space: nowrap; }
.pd-screen .pd-td--toggle { width: 36px; padding: 6px 0 6px 8px; }
.pd-screen .pd-toggle { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink-soft); cursor: pointer; }
.pd-screen .pd-toggle:hover { background: var(--parchment-dim); color: var(--ink); }
.pd-screen .pd-chev { display: inline-block; font-size: 18px; line-height: 1; transition: transform 120ms; }
.pd-screen .pd-chev--open { transform: rotate(90deg); }
.pd-screen .pd-rowlink { margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font: 600 13.5px/1.35 var(--font-sans); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.pd-screen .pd-rowlink:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.pd-screen .pd-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 500 12px/18px var(--font-sans); white-space: nowrap; }
.pd-screen .pd-row--open td { background: var(--parchment); }
.pd-screen .pd-notes td { padding: 4px 16px 12px 44px; background: var(--parchment); border-top: 0; }
/* An open row's notes: as wide as the screen shows (its own width, a container unit), never the table's, and held in view
   when the table scrolls sideways — on a narrow pane each line ran off-screen until the table was scrolled. The 90ch first
   is for a browser with no container units (iOS 15), which drops the second and keeps the measure it had. */
.pd-screen .pd-notes td > * { position: sticky; left: 0; max-width: 90ch; max-width: min(90ch, calc(100cqi - 62px)); }
.pd-screen .pd-table__empty { padding: 22px 14px; text-align: center; color: var(--ink-soft); }
/* The phone's sort control: hidden where the headers show (they are the sort buttons); shown with the cards. */
.pd-screen .pd-sortpick { display: none; align-items: center; gap: 8px; margin: 0; padding: 0; }
.pd-screen .pd-sortpick__label { font: 600 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.pd-screen .pd-select { box-sizing: border-box; min-width: 0; margin: 0; padding: 6px 8px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.pd-screen .pd-select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

/* From 960px of the screen's own width (a container, so the rail open or closed decides it, not the window):
   THE PAIR — the quarters and By rep — side by side, in two equal halves their content can't move (minmax(0, 1fr)); stacked
   under it, and stacked wherever the screen's width can't be asked (no container queries: iOS 15), never overlapped. A
   quarter row holds 6.5em + 48px + 8.5em + 7.5em and three 12px gaps (377px at 13px), its card 30px more (the scale's
   padding and the border), and the pair's 12px gap, so two side by side need 825px; under that the rows ran under the By
   rep card and its white covered their counts and amounts
   (768–1,110px windows with the rail open).
   TOP DEALERS: the sentence and its footnote on the left, the ranked list on the right — a list of eight names and two
   figures read across 1,100px leaves the figures a long way from their names. */
@container pd-screen (min-width: 960px) {
  .pd-screen .pd-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pd-screen .pd-card--wide { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto auto 1fr; column-gap: 32px; row-gap: 10px; align-items: start; }
  .pd-screen .pd-card--wide > .pd-h2 { grid-column: 1; grid-row: 1; }
  .pd-screen .pd-card--wide > .pd-reconcile { grid-column: 1; grid-row: 2; }
  .pd-screen .pd-card--wide > .pd-rank { grid-column: 2; grid-row: 1 / span 3; }
  .pd-screen .pd-card--wide > .pd-card__foot { grid-column: 1; grid-row: 3; align-self: end; }
}
/* Where a pointer hovers, a starred amount's count is a tip under the amount while the pointer is on it (the Classic's title,
   without a second reading of the words). */
@media (hover: hover) {
  .pd-screen .pd-rank__num:hover > .pd-rank__unest { top: 100%; right: 0; z-index: 1; width: auto; height: auto; margin: 0; padding: 3px 7px; overflow: visible; clip: auto; border: 1px solid var(--hairline-strong); border-radius: 6px; background: var(--white); font-size: 11.5px; font-weight: 500; }
}
/* Where nothing can hover (a phone, a tablet), a starred amount's count is drawn under it: a tip is never reached by a tap. */
@media (hover: none) {
  .pd-screen .pd-rank__unest { position: static; display: block; width: auto; height: auto; margin: 2px 0 0; overflow: visible; clip: auto; font-size: 11.5px; font-weight: 500; }
}
/* Tablet: the KPIs two to a row */
@media (max-width: 1023px) {
  .pd-screen .pd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phone: each bar's amount beside its label and the bar under them; each project a card, sorted by the select */
@media (max-width: 767px) {
  .pd-screen .pd-h1 { font-size: var(--text-page-title-phone); }
  .pd-screen .pd-kpi { padding: 12px; }
  .pd-screen .pd-kpi__value { font-size: 20px; }
  .pd-screen .pd-bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "track track" "n n"; row-gap: 3px; }
  .pd-screen .pd-bar__label { grid-area: label; }
  .pd-screen .pd-bar__value { grid-area: value; }
  .pd-screen .pd-bar__track { grid-area: track; }
  .pd-screen .pd-bar__n { grid-area: n; text-align: left; }
  .pd-screen .pd-count { margin-left: 0; }
  .pd-screen .pd-tablewrap { overflow: visible; }
  .pd-screen .pd-table { min-width: 0; }
  .pd-screen .pd-table thead { display: none; }
  .pd-screen .pd-table, .pd-screen .pd-table tbody, .pd-screen .pd-table tr, .pd-screen .pd-table td { display: block; width: auto; }
  .pd-screen .pd-table tr { position: relative; padding: 10px 14px 10px 44px; border-top: 1px solid var(--hairline); }
  .pd-screen .pd-table tbody tr:first-child { border-top: 0; }
  .pd-screen .pd-table td { padding: 1px 0; border: 0; text-align: left; }
  .pd-screen .pd-table td.pd-td--toggle { position: absolute; left: 8px; top: 8px; width: auto; padding: 0; }
  .pd-screen .pd-table td[data-label] { font-size: 12.5px; }
  .pd-screen .pd-table td[data-label]::before { content: attr(data-label) " · "; color: var(--ink-faint); }
  .pd-screen .pd-table tr.pd-notes { padding: 0 14px 12px; border-top: 0; }
  .pd-screen .pd-notes td { padding: 0; }
  .pd-screen .pd-notes td > * { max-width: 90ch; }
  .pd-screen .pd-sortpick { display: flex; flex: 1 1 100%; }
  .pd-screen .pd-filter { flex: 1 1 40%; }
  .pd-screen .pd-select { flex: 1 1 auto; }
  .pd-screen .pd-table__empty { padding: 18px 0; }
}
/* src/modules/revenue/features/projects/projectsList.css — the New projects list (docs/REFRESH_SPEC.md §6, "Projects list").
   Loaded by ProjectsList.jsx alone (the registry lets one file load a stylesheet, so a withdrawal can find it).
   EVERY RULE IS SCOPED UNDER .pl-screen, two classes deep, and that is load-bearing: the Classic/New wrapper's class starts
   with "cd-", so the global reset `[class^='cd-'] button { background: none; border: none; font: inherit }` (0,1,1) reaches
   every button here and outranks a single-class rule. Two classes (0,2,0) win. The root's `* { margin: 0; padding: 0 }` is
   why every margin and padding is stated.
   The rules that apply everywhere: colour means something — the workspace's accent for the app's own (the primary
   action, a link, the sort that is on), amber for "look here" (no dealer, no estimate), and on one thing at a time — a
   word or a figure, never a sentence; grey for nothing there (no stage, nothing logged, an expected zero); a read that
   failed and a refusal in ink, since neither is on the spec's amber list and red is for destroying something; nothing for
   decoration (a stage is ink, never its colour); cards white on the content area. Type is Geist
   only (Ryan, 2026-10-22): the page title at --weight-title, Geist for everything else too — a figure compared
   down a column (an estimate, a count in the foot) is Geist with tabular numerals (pl-num), never another face; a date
   or an age is plain Geist. Classes, not inline sizes — the root's phone rules rewrite inline grids.
   THE WIDTH: it lives in the Projects hub's padded body (the hub's 28px gutter, the Classic's own) and fills it — no maximum
   and no centring on the card or the table. A maximum sits only on prose: the page's sentence, the notes, an empty state.
   THE PHONE is the app's mobile setting, not the width alone: the list adds pl-screen--phone when useIsMobile says so. */

.pl-screen { position: relative; display: block; min-width: 0; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.pl-screen button, .pl-screen input, .pl-screen select { font-family: inherit; }
.pl-screen .pl-num { font-variant-numeric: tabular-nums; }
.pl-screen .pl-muted { color: var(--ink-soft); }
.pl-screen .pl-attn { color: var(--amber); font-weight: 600; }
/* Read by a screen reader, not drawn: why Export waits (its title says it to a pointer). */
.pl-screen .pl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pl-screen .pl-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); }
.pl-screen .pl-sub { margin: var(--space-page-sub) 0 0; padding: 0; max-width: 90ch; color: var(--ink-soft); font-size: var(--text-page-sub); }

/* The head: the title and its sentence, the three actions opposite */
.pl-screen .pl-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin: 0 0 var(--space-section-gap); padding: 0; }
.pl-screen .pl-head__text { flex: 1 1 320px; min-width: 0; }
.pl-screen .pl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.pl-screen .pl-button { display: inline-flex; align-items: center; margin: 0; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.pl-screen .pl-button:hover { border-color: var(--accent); }
.pl-screen .pl-button:disabled { opacity: .55; cursor: default; }
.pl-screen .pl-button--primary, .pl-screen .pl-button--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pl-screen .pl-linkbtn { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.35 var(--font-sans); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.pl-screen .pl-button:focus-visible, .pl-screen .pl-linkbtn:focus-visible, .pl-screen .pl-th__sort:focus-visible, .pl-screen .pl-rowlink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Loading, a failed read, nothing yet, a note above the table — a failed read is a sentence in ink in a white card, and a
   refusal or a form's problem a sentence in ink beside a rule: neither is amber (not "look here" items) nor red. */
.pl-screen .pl-state { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; padding: 20px; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.pl-screen .pl-state--quiet { color: var(--ink-soft); font-size: 13px; }
.pl-screen .pl-state__text { margin: 0; padding: 0; max-width: 90ch; font-size: 14px; color: var(--ink); }
.pl-screen .pl-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 12px; padding: 8px 12px; max-width: 90ch; border-left: 3px solid var(--hairline-strong); background: var(--white); color: var(--ink); font-size: 13px; line-height: 1.5; }
.pl-screen .pl-error { margin: 0 0 12px; padding: 0 0 0 10px; max-width: 90ch; border-left: 3px solid var(--hairline-strong); color: var(--ink); font-size: 13px; }

/* The wizard, in a box of its own height (the Classic's 70vh) */
.pl-screen .pl-import { position: relative; height: 70vh; margin: 0 0 16px; padding: 0; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; background: var(--white); }

/* The New project form */
.pl-screen .pl-card { box-sizing: border-box; min-width: 0; margin: 0 0 var(--space-panel-gap); padding: var(--space-card-y) var(--space-card-x); background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.pl-screen .pl-create__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; margin: 0 0 12px; padding: 0; }
.pl-screen .pl-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; margin: 0; padding: 0; }
.pl-screen .pl-label { margin: 0; padding: 0; font: 600 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.pl-screen .pl-input { box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 7px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.pl-screen .pl-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.pl-screen .pl-input--auto { width: auto; }
.pl-screen .pl-when { display: flex; gap: 6px; min-width: 0; margin: 0; padding: 0; }
.pl-screen .pl-create__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }

/* The table: seven columns, the open count and its gaps at its foot, the ended projects' button beside them */
.pl-screen .pl-card--table { padding: 0; display: flex; flex-direction: column; }
.pl-screen .pl-tablewrap { overflow-x: auto; }
.pl-screen .pl-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 13px; }
.pl-screen .pl-table th { padding: 0; text-align: left; background: var(--parchment); border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.pl-screen .pl-th__sort { display: inline-flex; align-items: center; gap: 4px; width: 100%; margin: 0; padding: var(--space-row-y) 12px; border: 0; background: none; color: var(--ink-soft); font: 600 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.pl-screen .pl-th--num .pl-th__sort { justify-content: flex-end; }
.pl-screen .pl-th__dir { color: var(--accent); }
.pl-screen .pl-table td { padding: var(--space-row-y) 12px; border-top: 1px solid var(--hairline); vertical-align: top; color: var(--ink); }
.pl-screen .pl-table tbody tr:first-child td { border-top: 0; }
/* A row opens its project wherever it is clicked (a phone's card wherever it is tapped): said by the pointer and the hover. */
.pl-screen .pl-table tbody tr { cursor: pointer; }
.pl-screen .pl-table tbody tr:hover td { background: var(--parchment); }
.pl-screen .pl-td--num { text-align: right; white-space: nowrap; }
.pl-screen .pl-rowlink { margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font: 600 13.5px/1.35 var(--font-sans); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.pl-screen .pl-rowlink:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.pl-screen .pl-row--ended .pl-rowlink { color: var(--ink-soft); font-weight: 500; }
.pl-screen .pl-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 500 12px/18px var(--font-sans); white-space: nowrap; }
.pl-screen .pl-table__empty { margin: 0; padding: 22px 14px; text-align: center; color: var(--ink-soft); }
.pl-screen .pl-empty__title { margin: 0 0 4px; padding: 0; color: var(--ink); font-weight: var(--weight-heading); }
.pl-screen .pl-empty__text { margin: 0 auto; padding: 0; max-width: 60ch; }
.pl-screen .pl-table__empty .pl-button { margin-top: 12px; }
.pl-screen .pl-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin: 0; padding: 11px 14px; border-top: 1px solid var(--hairline); background: var(--parchment); font-size: 13px; color: var(--ink); }
.pl-screen .pl-foot__more { margin: 0 0 0 auto; padding: 5px 12px; font-size: 12.5px; }
/* Show all, while a search narrows the list (the lists' own, lists/ListScreen.jsx ListFoot): at the row's end, after the
   ended projects' button when there is one. */
.pl-screen .pl-foot__all { margin: 0 0 0 auto; }
.pl-screen .pl-foot__more + .pl-foot__all { margin-left: 0; }

/* THE SEARCH (Ryan, 2026-10-16: "Projects has no search. Add one, same as the other four lists."): the four lists' own toolbar
   (lists/ListToolbar.jsx), row one alone — this list has no views, filters or columns — and row two only to carry the count
   while a search narrows the list. THE SEARCH FILLS ROW ONE (Ryan, 2026-10-10). Its rules are lists.css's, declaration for
   declaration, scoped here: lists.css scopes every rule under .ls-screen, the lists' own frame, which this list doesn't sit
   in (its frame is the hub's padded body) — the proof holds each one equal to lists.css's. One differs, said: the area's
   top margin, which here the head's own 16px gives. */
.pl-screen .ls-toolbararea { position: relative; margin: 0 0 12px; }
.pl-screen .ls-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pl-screen .ls-toolbar--two { margin-top: 8px; }
.pl-screen .ls-search { flex: 1 1 240px; }
.pl-screen .ls-showing { margin: 0 0 0 auto; padding: 0; color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.pl-screen .ls-input { box-sizing: border-box; min-width: 0; max-width: 100%; padding: 7px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 13px/1.3 var(--font-sans); }
.pl-screen .ls-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

/* Tablet: the form two to a row */
@media (max-width: 1023px) {
  .pl-screen .pl-create__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* The phone (pl-screen--phone: the app's mobile setting, as the Classic's — useIsMobile, the setting on and the window under
   768px — never the width alone): the form one to a row; each project a card with its fields labelled; the foot's four
   numbers stacked. With the setting off a narrow window keeps the table, scrolling sideways (its 860px least). */
.pl-screen.pl-screen--phone .pl-h1 { font-size: var(--text-page-title-phone); }
.pl-screen.pl-screen--phone .pl-create__grid { grid-template-columns: minmax(0, 1fr); }
.pl-screen.pl-screen--phone .pl-when { flex-wrap: wrap; }
.pl-screen.pl-screen--phone .pl-tablewrap { overflow: visible; }
.pl-screen.pl-screen--phone .pl-table { min-width: 0; }
.pl-screen.pl-screen--phone .pl-table thead { display: none; }
.pl-screen.pl-screen--phone .pl-table, .pl-screen.pl-screen--phone .pl-table tbody, .pl-screen.pl-screen--phone .pl-table tr, .pl-screen.pl-screen--phone .pl-table td { display: block; width: auto; }
.pl-screen.pl-screen--phone .pl-table tr { padding: 10px 14px; border-top: 1px solid var(--hairline); }
.pl-screen.pl-screen--phone .pl-table tbody tr:first-child { border-top: 0; }
.pl-screen.pl-screen--phone .pl-table td { padding: 1px 0; border: 0; text-align: left; }
.pl-screen.pl-screen--phone .pl-table td.pl-td--name { padding: 0 0 3px; }
.pl-screen.pl-screen--phone .pl-table td[data-label] { font-size: 12.5px; }
.pl-screen.pl-screen--phone .pl-table td[data-label]::before { content: attr(data-label) " · "; color: var(--ink-faint); }
.pl-screen.pl-screen--phone .pl-table tbody tr:hover td { background: transparent; }
.pl-screen.pl-screen--phone .pl-foot { flex-direction: column; align-items: flex-start; gap: 3px; }
.pl-screen.pl-screen--phone .pl-foot__more { margin: 6px 0 0; }
.pl-screen.pl-screen--phone .pl-foot__all { margin: 6px 0 0; }
/* …and the search's two phone rules, lists.css's: the box takes the row, the count a row of its own from the left. */
.pl-screen.pl-screen--phone .ls-search { flex-basis: 100%; }
.pl-screen.pl-screen--phone .ls-showing { flex-basis: 100%; margin-left: 0; }
/* src/modules/revenue/features/settings/profileSettings.css — Settings › Account › Profile (ProfileSettings.jsx; 190). Loaded by
   that panel alone. The look is Ryan's mock "My profile" (2026-11-06) in the New screens' tokens: white cards on the frame's
   near-white content area, a hairline, an eyebrow per card, the form beside a rail with the person's card. Colour means
   something: the workspace's accent for Save, a link and a switch that is on; amber for "not saved"; nothing red.
   Type is Geist only, through the tokens.
   EVERY RULE IS TWO CLASSES DEEP under .ps-screen: the root's resets reach a single-class rule (`[class^='cd-'] button`,
   `* { margin: 0; padding: 0 }`), so every margin and padding is stated. The settings frame sets nothing inside its panel,
   so this sets its own face, size and colour on .ps-screen. Under 760 px of panel the rail drops under the form
   (a container query on the panel, as the frame lays itself out). */

.ps-screen.ps-screen { container: ps / inline-size; display: flex; flex-direction: column; gap: 20px; min-width: 0; margin: 0; padding: 0 0 24px; color: var(--ink); font: 400 var(--text-sm)/1.5 var(--font-sans); }
.ps-screen .ps-intro { margin: 0; padding: 0; color: var(--ink-soft); font-size: var(--text-sm); max-width: 720px; }
.ps-screen .ps-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin: 0; padding: 0; }
@container ps (max-width: 760px) { .ps-screen .ps-cols { grid-template-columns: minmax(0, 1fr); } }
.ps-screen .ps-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; margin: 0; padding: 0; }
.ps-screen .ps-rail { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; position: sticky; top: 0; }
.ps-screen .ps-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; padding: 20px 22px; box-sizing: border-box; background: var(--white); border: 1px solid var(--hairline); border-radius: 10px; }
.ps-screen .ps-eyebrow { margin: 0; padding: 0; font-size: var(--text-xs); letter-spacing: .07em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }

.ps-screen .ps-who { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; margin: 0; padding: 0; }
.ps-screen .ps-photo { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; margin: 0; padding: 0; }
.ps-screen .ps-photo__img { width: 78px; height: 78px; margin: 0; padding: 0; border-radius: 999px; object-fit: cover; }
.ps-screen .ps-photo__img--initials { display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--white); font-size: var(--text-lg); font-weight: 600; }
.ps-screen .ps-file { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

.ps-screen .ps-who .ps-grid { flex: 1 1 320px; }
.ps-screen .ps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; min-width: 0; margin: 0; padding: 0; }
.ps-screen .ps-grid--three { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ps-screen .ps-grid--off { opacity: .55; }
.ps-screen .ps-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; margin: 0; padding: 0; }
.ps-screen .ps-label { margin: 0; padding: 0; font-size: var(--text-xs); color: var(--ink-soft); }
.ps-screen .ps-input { width: 100%; min-width: 0; margin: 0; padding: 8px 10px; box-sizing: border-box; background: var(--white); border: 1px solid var(--hairline-strong); border-radius: 7px; color: var(--ink); font: 400 var(--text-sm)/1.3 var(--font-sans); outline: none; }
.ps-screen .ps-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 14%, transparent); }
.ps-screen .ps-input:disabled { background: var(--parchment); cursor: not-allowed; }
.ps-screen .ps-input--read { background: var(--parchment); color: var(--ink-soft); }
.ps-screen .ps-hint { margin: 0; padding: 0; font-size: var(--text-xs); color: var(--ink-soft); line-height: 1.5; }
.ps-screen .ps-problem { margin: 0; padding: 0; font-size: var(--text-xs); color: #8A5A0B; line-height: 1.5; }
.ps-screen .ps-quiet { margin: 0; padding: 0; color: var(--ink-soft); }

.ps-screen .ps-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.ps-screen .ps-chip { margin: 0; padding: 4px 11px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--white); font-size: var(--text-sm); }

.ps-screen .ps-switchrow { display: flex; align-items: flex-start; gap: 13px; margin: 0; padding: 0; }
.ps-screen .ps-switchrow__title { margin: 0 0 2px; padding: 0; font-size: var(--text-sm); font-weight: var(--weight-heading); color: var(--ink); }
.ps-screen .ps-switch { position: relative; flex: 0 0 auto; width: 38px; height: 22px; margin: 1px 0 0; padding: 0; border: 0; border-radius: 999px; background: var(--hairline-strong); cursor: pointer; }
.ps-screen .ps-switch--on { background: var(--accent); }
.ps-screen .ps-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ps-screen .ps-switch__knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; margin: 0; padding: 0; border-radius: 999px; background: var(--white); transition: left .15s ease; }
.ps-screen .ps-switch--on .ps-switch__knob { left: 18px; }

.ps-screen .ps-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; }
.ps-screen .ps-button { margin: 0; padding: 9px 18px; border: 1px solid var(--hairline-strong); border-radius: 7px; background: var(--white); color: var(--ink); font: 500 var(--text-sm)/1.2 var(--font-sans); cursor: pointer; }
.ps-screen .ps-button--primary { background: var(--accent); border-color: var(--accent); color: var(--white); font-weight: 600; }
.ps-screen .ps-button:disabled { opacity: .5; cursor: default; }
.ps-screen .ps-button:focus-visible, .ps-screen .ps-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ps-screen .ps-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 500 var(--text-xs)/1.3 var(--font-sans); cursor: pointer; }
.ps-screen .ps-link--quiet { color: var(--ink-soft); }
.ps-screen .ps-link:disabled { opacity: .6; cursor: default; }
.ps-screen .ps-notice { margin: 0; padding: 0; font-size: var(--text-sm); }
.ps-screen .ps-notice--ok { color: var(--ink-soft); }
.ps-screen .ps-notice--bad { color: #8A5A0B; }
/* src/modules/revenue/features/settings/signatureSettings.css — Settings › Signature and Settings › Organization › Signature
   (SignatureSettings.jsx, FirmSignature.jsx, SignaturePreview.jsx; Ryan's boards 2–4, 2026-11-07). On top of the profile
   panel's (profileSettings.css: cards, fields, switches, buttons), which both screens load with it: the route picker, the
   set bar, the segmented choices, the layout picker, the field rules, and the preview. Type is Geist only, through the
   tokens. EVERY RULE IS TWO CLASSES DEEP under .sg-screen, for the root's resets (profileSettings.css says why). */

.sg-screen .sg-a { color: var(--accent); text-decoration: none; }
.sg-screen .sg-routes { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; }
.sg-screen .sg-route { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 16px 18px; box-sizing: border-box; text-align: left; background: var(--white); border: 1px solid var(--hairline-strong); border-radius: 10px; color: var(--ink); font: 400 var(--text-sm)/1.5 var(--font-sans); cursor: pointer; }
.sg-screen .sg-route:hover { border-color: var(--ink-soft); }
.sg-screen .sg-route--on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sg-screen .sg-route:disabled { opacity: .6; cursor: not-allowed; }
.sg-screen .sg-route__name { margin: 0; padding: 0; font-size: var(--text-md); font-weight: var(--weight-heading); color: var(--ink); }
.sg-screen .sg-route__note { margin: 0; padding: 0; font-size: var(--text-sm); color: var(--ink-soft); }

.sg-screen .sg-setbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; background: var(--white); border: 1px solid var(--hairline); border-radius: 10px; }
.sg-screen .sg-setbar__pick { width: auto; min-width: 180px; }
.sg-screen .sg-setbar__name { width: 200px; }
.sg-screen .sg-setbar__confirm { display: inline-flex; gap: 8px; align-items: center; margin: 0; padding: 0; font-size: var(--text-xs); color: var(--ink); }
.sg-screen .sg-setbar__quiet { margin: 0; padding: 0; }
.sg-screen .sg-banner { margin: 0; padding: 12px 16px; background: var(--parchment); border: 1px solid var(--hairline); border-radius: 10px; color: var(--ink); font-size: var(--text-sm); }

.sg-screen .sg-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
@container ps (max-width: 860px) { .sg-screen .sg-cols { grid-template-columns: minmax(0, 1fr); } }
.sg-screen .sg-rows { display: flex; flex-direction: column; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.sg-screen .sg-row { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.sg-screen .sg-rows .sg-row:last-child { border-bottom: 0; }
.sg-screen .sg-row .ps-switch:disabled { opacity: .55; cursor: not-allowed; }

.sg-screen .sg-seg { display: flex; flex-wrap: wrap; gap: 3px; margin: 0; padding: 0; }
.sg-screen .sg-seg__b { margin: 0; padding: 6px 12px; background: none; border: 1px solid transparent; border-radius: 6px; color: var(--ink-soft); font: 400 var(--text-sm)/1.2 var(--font-sans); cursor: pointer; }
.sg-screen .sg-seg__b:hover { color: var(--ink); }
.sg-screen .sg-seg__b--on { background: var(--parchment); border-color: var(--hairline-strong); color: var(--ink); font-weight: 500; }
.sg-screen .sg-seg__b:disabled { opacity: .5; cursor: not-allowed; }
.sg-screen .sg-seg__b:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.sg-screen .sg-photo { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin: 0; padding: 0; }
.sg-screen .sg-photo__choices { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; padding: 0; }
.sg-screen .sg-photo__img { width: 72px; height: 72px; }
.sg-screen .sg-photo__img--rounded { border-radius: 18%; }
.sg-screen .sg-photo__img--square { border-radius: 0; }
.sg-screen .sg-look { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.sg-screen .sg-accent { display: flex; gap: 9px; align-items: center; margin: 0; padding: 0; }
.sg-screen .sg-accent__swatch { flex: 0 0 auto; width: 34px; height: 34px; margin: 0; padding: 0; border: 1px solid var(--hairline-strong); border-radius: 7px; }
.sg-screen .sg-accent__pick { flex: 0 0 auto; width: 40px; height: 34px; margin: 0; padding: 0; border: 1px solid var(--hairline-strong); border-radius: 7px; background: var(--white); cursor: pointer; }
.sg-screen .sg-px { display: flex; gap: 8px; align-items: center; margin: 0; padding: 0; }

.sg-screen .sg-cardfile { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0; padding: 16px; background: var(--parchment); border: 1px solid var(--hairline); border-radius: 9px; }
.sg-screen .sg-cardfile__img { display: block; width: 168px; max-height: 90px; margin: 0; padding: 0; object-fit: contain; border-radius: 6px; background: var(--white); }
.sg-screen .sg-cardfile__img--none { display: flex; align-items: center; justify-content: center; height: 66px; border: 1px dashed var(--hairline-strong); color: var(--ink-soft); font-size: var(--text-xs); }
.sg-screen .sg-cardfile__about { flex: 1 1 170px; display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; }
.sg-screen .sg-cardfile__name { margin: 0; padding: 0; font-size: var(--text-sm); font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.sg-screen .sg-cardfile__acts { display: flex; gap: 7px; flex-wrap: wrap; margin: 0; padding: 0; }
.sg-screen .sg-button--quiet { color: #8A3421; }

.sg-screen .sg-preview { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; padding: 0; }
.sg-screen .sg-preview__card { padding: 0; gap: 0; overflow: hidden; }
.sg-screen .sg-preview__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 13px 18px; border-bottom: 1px solid var(--hairline); }
.sg-screen .sg-preview__mail { margin: 0; padding: 22px 20px; background: #FFFFFF; overflow-x: auto; }
.sg-screen .sg-preview__words { margin: 0 0 4px; padding: 0; color: #8A8780; font-size: var(--text-sm); line-height: 1.6; }
/* No rule of its own: the signature draws its own (a card's line above, the built one's spacing), so the preview shows
   only what sends (Ryan, 2026-11-07: two rules above the card, one full width and one shorter). */
.sg-screen .sg-preview__sig { margin: 0; padding: 0; }
.sg-screen .sg-preview__caption { padding: 0 4px; }
.sg-screen .sg-test { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; padding: 0; }
.sg-screen .sg-who { width: auto; min-width: 150px; padding: 5px 8px; font-size: var(--text-xs); }

.sg-screen .sg-layouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 11px; margin: 0; padding: 0; }
.sg-screen .sg-layout { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 14px; text-align: left; background: var(--white); border: 1px solid var(--hairline-strong); border-radius: 9px; color: var(--ink); font: 400 var(--text-sm)/1.4 var(--font-sans); cursor: pointer; }
.sg-screen .sg-layout--on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sg-screen .sg-layout__name { margin: 0; padding: 0; font-weight: var(--weight-heading); }
.sg-screen .sg-layout__note { margin: 0; padding: 0; color: var(--ink-soft); font-size: var(--text-xs); }
.sg-screen .sg-layout__art { display: flex; gap: 7px; align-items: flex-start; height: 34px; margin: 0 0 8px; padding: 0; }
.sg-screen .sg-layout__dot { flex: 0 0 auto; width: 26px; height: 26px; margin: 0; padding: 0; border-radius: 999px; background: var(--hairline-strong); }
.sg-screen .sg-layout__logo { flex: 0 0 auto; width: 34px; height: 22px; margin: 0; padding: 0; border-radius: 3px; background: var(--hairline-strong); }
.sg-screen .sg-layout__lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0 0 0 7px; border-left: 2px solid var(--accent); }
.sg-screen .sg-layout__bar { display: block; height: 4px; margin: 0; padding: 0; border-radius: 2px; background: var(--hairline); }
.sg-screen .sg-layout__bar--strong { width: 70%; height: 5px; background: var(--hairline-strong); }
.sg-screen .sg-rule { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.sg-screen .sg-rule__fixed { margin: 0; padding: 4px 9px; background: var(--parchment); border-radius: 5px; color: var(--ink-soft); font-size: var(--text-xs); }
.sg-screen .sg-logo { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; margin: 0; padding: 0; }
.sg-screen .sg-logo__img { display: flex; align-items: center; justify-content: center; width: 92px; height: 44px; margin: 0; padding: 0; border: 1px dashed var(--hairline-strong); border-radius: 7px; color: var(--ink-soft); font-size: var(--text-xs); object-fit: contain; }

/* The sign-off (199): one line above the rest of the screen, as wide as a short line of text. */
.sg-screen .sg-signoff { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; padding: 0; max-width: 360px; }
.sg-screen .sg-signoff__input { width: 100%; }
/* src/modules/revenue/features/settings/permissionsTab.css — Settings › Permissions (PermissionsTab.jsx). The New screens'
   tokens, as Settings' other New tabs: white cards on the content area, a hairline, the accent for a switch that is on.
   A row the role decides is quieter, its answer in a pill, never a switch. EVERY RULE IS TWO CLASSES DEEP under
   .pm-screen: the root's resets reach a single-class rule. */
.pm-screen.pm-screen { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 760px; margin: 0; padding: 0 0 24px; color: var(--ink); font: 400 var(--text-sm)/1.5 var(--font-sans); }
.pm-screen .pm-lead { margin: 0; padding: 0; color: var(--ink-soft); }
.pm-screen .pm-held { margin: 0; padding: 10px 14px; border: 1px solid var(--hairline-strong); border-radius: 10px; background: var(--white); color: var(--ink); }
.pm-screen .pm-roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.pm-screen .pm-role { margin: 0; padding: 7px 14px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 13px/1.3 var(--font-sans); cursor: pointer; }
.pm-screen .pm-role--on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.pm-screen .pm-role--held { border-style: dashed; }
.pm-screen .pm-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding: 0; }
.pm-screen .pm-name__words { font-weight: 600; }
.pm-screen .pm-label { margin: 0; padding: 0; font-size: 12px; font-weight: 600; }
.pm-screen .pm-input { margin: 0; padding: 6px 10px; width: 220px; max-width: 100%; box-sizing: border-box; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 var(--text-sm)/1.4 var(--font-sans); }
.pm-screen .pm-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.3 var(--font-sans); cursor: pointer; }
.pm-screen .pm-quiet { color: var(--ink-soft); font-weight: 400; }
.pm-screen .pm-group { margin: 0; padding: 0; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.pm-screen .pm-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--hairline); }
.pm-screen .pm-group__name { font-weight: 600; }
.pm-screen .pm-row { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--hairline); }
.pm-screen .pm-row:first-of-type { border-top: 0; }
.pm-screen .pm-row__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pm-screen .pm-row__label { font-weight: 600; }
.pm-screen .pm-row__desc { color: var(--ink-soft); font-size: 12px; }
.pm-screen .pm-row--role .pm-row__label { color: var(--ink-soft); }
.pm-screen .pm-screen-only { color: var(--ink); }
.pm-screen .pm-switch { position: relative; flex: 0 0 auto; margin: 2px 0 0; padding: 0; width: 36px; height: 20px; border: 2px solid var(--hairline-strong); border-radius: 10px; background: var(--white); cursor: pointer; }
.pm-screen .pm-switch--on { border-color: var(--accent); background: var(--accent); }
.pm-screen .pm-switch:disabled { opacity: .5; cursor: default; }
.pm-screen .pm-switch__knob { position: absolute; top: 1px; left: 1px; width: 14px; height: 14px; border-radius: 7px; background: var(--hairline-strong); }
.pm-screen .pm-switch--on .pm-switch__knob { left: 17px; background: var(--white); }
.pm-screen .pm-switch:focus-visible, .pm-screen .pm-role:focus-visible, .pm-screen .pm-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pm-screen .pm-can { flex: 0 0 auto; margin: 2px 0 0; padding: 1px 8px; min-width: 36px; box-sizing: border-box; border: 1px solid var(--hairline-strong); border-radius: 999px; text-align: center; font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.pm-screen .pm-can--yes { color: var(--success); border-color: var(--success); }
.pm-screen .pm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: flex-end; margin: 4px 0 0; padding: 0; }
.pm-screen .pm-button { margin: 0; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.3 var(--font-sans); cursor: pointer; }
.pm-screen .pm-button--primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.pm-screen .pm-button:disabled { opacity: .5; cursor: default; }
.pm-screen .pm-notice { flex: 1 1 100%; margin: 0; padding: 0; text-align: right; }
.pm-screen .pm-notice--ok { color: var(--success); }
.pm-screen .pm-notice--bad { color: var(--amber); }
/* src/modules/revenue/features/settings/twoFactorSettings.css — Settings › Security › Two-Factor Auth (TwoFactorSettings.jsx).
   Loaded by that panel alone, in the New screens' tokens as Profile is (profileSettings.css): a white card on the frame's
   content area, a hairline, the accent for the one action and a link, --success for "on", amber for what didn't go through.
   EVERY RULE IS TWO CLASSES DEEP under .tf-screen, as Profile's are: the root's resets reach a single-class rule. */
.tf-screen.tf-screen { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 720px; margin: 0; padding: 0 0 24px; color: var(--ink); font: 400 var(--text-sm)/1.5 var(--font-sans); }
.tf-screen .tf-head { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; }
.tf-screen .tf-title { margin: 0; padding: 0; font: 600 16px/1.3 var(--font-sans); color: var(--ink); }
.tf-screen .tf-sub { margin: 0; padding: 0; color: var(--ink-soft); }
.tf-screen .tf-card { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 20px 22px; box-sizing: border-box; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; }
.tf-screen .tf-state { margin: 0; padding: 0; font-weight: 600; color: var(--ink-soft); }
.tf-screen .tf-state--on { color: var(--success); }
.tf-screen .tf-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.tf-screen .tf-item { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 9px 0; border-top: 1px solid var(--hairline); }
.tf-screen .tf-item__name { font-weight: 600; }
.tf-screen .tf-item__when { flex: 1 1 auto; color: var(--ink-soft); font-size: 12px; }
.tf-screen .tf-item__ask { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; flex: 1 1 100%; margin: 0; padding: 0; color: var(--ink); }
.tf-screen .tf-offer, .tf-screen .tf-setup { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; padding: 0; }
.tf-screen .tf-setup { padding: 14px 0 0; border-top: 1px solid var(--hairline); align-self: stretch; }
.tf-screen .tf-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 0; padding: 0; }
.tf-screen .tf-label { margin: 0; padding: 0; font-size: 12px; font-weight: 600; color: var(--ink); }
.tf-screen .tf-input { margin: 0; padding: 7px 10px; width: 260px; max-width: 100%; box-sizing: border-box; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 400 var(--text-sm)/1.4 var(--font-sans); }
/* The code, six boxes (src/auth/CodeBoxes.jsx): one digit each, the accent ring on the box with the cursor. */
.tf-screen .tf-digits { display: flex; gap: 8px; margin: 0; padding: 0; }
.tf-screen .tf-digit { margin: 0; padding: 0; width: 40px; height: 46px; box-sizing: border-box; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); color: var(--ink); font: 500 20px/1 var(--font-mono); text-align: center; font-variant-numeric: tabular-nums; }
.tf-screen .tf-digit:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.tf-screen .tf-qr { display: block; margin: 4px 0; padding: 8px; width: 180px; height: 180px; box-sizing: content-box; background: var(--white); border: 1px solid var(--hairline); border-radius: 8px; }
.tf-screen .tf-key { margin: 0; padding: 1px 6px; border-radius: 4px; background: var(--parchment-dim); font: 500 12px/1.6 var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: .04em; word-break: break-all; }
.tf-screen .tf-button { margin: 0; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--white); font: 600 13px/1.3 var(--font-sans); cursor: pointer; }
.tf-screen .tf-button:disabled { opacity: .5; cursor: default; }
.tf-screen .tf-button--bad { border-color: var(--amber); background: var(--white); color: var(--amber); }
.tf-screen .tf-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.3 var(--font-sans); cursor: pointer; }
.tf-screen .tf-quiet { margin: 0; padding: 0; color: var(--ink-soft); }
.tf-screen .tf-ok { margin: 0; padding: 0; color: var(--success); }
.tf-screen .tf-bad { margin: 0; padding: 0; color: var(--amber); }
.tf-screen .tf-foot { font-size: 12px; }
.tf-screen .tf-switch { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; cursor: pointer; }
.tf-screen .tf-button:focus-visible, .tf-screen .tf-link:focus-visible, .tf-screen .tf-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* src/modules/revenue/features/templates/templates.css — the New email templates (docs/REFRESH_SPEC.md §8 "Email templates").
   Loaded by EmailTemplates.jsx alone (the registry lets one file load a stylesheet, so a withdrawal can find it).
   EVERY RULE INSIDE THE SCREEN IS SCOPED UNDER .et-screen, two classes deep, and that is load-bearing: the Classic/New
   wrapper's class starts with "cd-", so the global reset `[class^='cd-'] button { background: none; border: none; font:
   inherit }` (0,1,1) reaches every button here and outranks a single-class rule. Two classes (0,2,0) win.
   The root's own `* { margin: 0; padding: 0 }` is why every margin and padding here is stated.
   THE PLACE: a tab of Settings, whose content area is already padded and scrolls — so this screen adds no gutter and no
   scroller of its own and fills the box it is given. It lays itself out by THAT BOX's width (a container query), not the
   window's: Settings keeps its own rail beside it, so a wide window can still hand it a narrow box. Wide: the template rail
   beside the editor; wider still, the merge fields beside the writing; narrow (a phone): the rail, or the editor, one at a
   time.
   The rules that apply everywhere: colour means something — the workspace's accent for the app's own (the open
   template, a field that fills, a category picked), amber for "look here" (a field that won't fill), one thing at a time:
   a chip, a field in the preview, the word "Amber" in the one line — never a sentence (the look pass, 2026-10-05: a failed
   read or write, a question about unsaved work and the Unsaved tag are said in ink); nothing for decoration (a campaign
   field is neutral: using one is right for a campaign template); cards white, and white inside them — the parchment is
   the chrome's, so the rail, the preview and the notices no longer wear it. Type is Geist only (Ryan, 2026-10-22), through its tokens, never a family
   named here: the template's title at --weight-heading (a heading in the page, under the settings' own title), Geist for everything else too — a figure in a column
   or a badge (a group's count, the archived count) is Geist with tabular numerals (et-num), never another face; a
   number inside a sentence is plain text. Nothing here is code, so Geist Mono is not used. Classes, not inline sizes:
   the root's phone rules rewrite inline ones. */

.et-screen { container: et / inline-size; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.et-screen .et-num { font-variant-numeric: tabular-nums; }
.et-screen .et-muted { color: var(--ink-soft); }
.et-screen .et-attn { color: var(--amber); }
.et-screen .et-line { font-size: 13px; line-height: 1.5; color: var(--ink); }
.et-screen .et-done { color: var(--ink); }
.et-screen .et-small { font-size: 12px; }

/* The frame: the rail beside the editor, stretched so the two end level. */
.et-screen .et-layout { display: grid; grid-template-columns: minmax(200px, 240px) minmax(0, 1fr); align-items: stretch; margin: 0; padding: 0; min-height: 560px;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--shadow-xs); overflow: hidden; }

/* The rail: the templates by category, the archived apart. */
.et-screen .et-rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; padding: 14px 12px; background: var(--white); border-right: 1px solid var(--hairline); }
.et-screen .et-rail__head { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; padding: 0; }
.et-screen .et-rail__count { font-size: 12.5px; color: var(--ink-soft); }
.et-screen .et-group { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; }
.et-screen .et-group__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; padding: 0 8px;
  font: 600 11px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.et-screen .et-group--archived { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--hairline); }
.et-screen .et-group__toggle { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; margin: 0; padding: 4px 8px; border: 0; background: none;
  color: var(--ink-soft); font: 600 12px/1.3 var(--font-sans); text-align: left; cursor: pointer; }
.et-screen .et-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.et-screen .et-item { display: flex; flex-direction: column; gap: 1px; width: 100%; margin: 0; padding: var(--space-row-y) 8px var(--space-row-y) 10px; border: 0; border-left: 2px solid transparent; border-radius: 6px;
  background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.et-screen .et-item:hover { background: var(--parchment-dim); }
.et-screen .et-item--open { background: color-mix(in srgb, var(--accent) 6%, var(--white)); border-left-color: var(--accent); }
.et-screen .et-item__name { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.et-screen .et-item--open .et-item__name { color: var(--accent); }
.et-screen .et-item__sub { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* An archived template's category, as the Classic's list showed it (the live ones sit under theirs). */
.et-screen .et-item__cat { align-self: flex-start; margin: 1px 0; padding: 0 6px; border: 1px solid var(--hairline-strong); border-radius: 5px;
  font: 600 10px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); overflow-wrap: anywhere; }

/* The editor: the writing, and the merge fields under it — or beside it when the box is wide enough. */
.et-screen .et-editor { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; min-width: 0; margin: 0; padding: 0; }
.et-screen .et-compose { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; padding: var(--space-card-y) var(--space-card-x); }
.et-screen .et-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 0; padding: 0; }
.et-screen .et-head__title { min-width: 0; flex: 1 1 220px; }
.et-screen .et-h2 { margin: 0; padding: 0; font: var(--weight-heading) var(--text-section-title)/1.2 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.et-screen .et-head__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.et-screen .et-back { display: none; flex-basis: 100%; }
.et-screen .et-tag { display: inline-block; margin: 0; padding: 1px 8px; border-radius: 999px; background: var(--parchment-dim); color: var(--ink); font: 600 11px/18px var(--font-sans); white-space: nowrap; }
.et-screen .et-pending, .et-screen .et-notice { margin: 0; padding: 8px 12px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--white); color: var(--ink); font-size: 13px; }

/* The category: its box, and a pill for each category in use beside it (the accent on the template's own). */
.et-screen .et-catrow { align-items: flex-end; }
.et-screen .et-cats { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 240px; min-width: 0; margin: 0; padding: 0 0 4px; }
.et-screen .et-cat { margin: 0; padding: 4px 10px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--white); color: var(--ink); font: 500 12.5px/1.25 var(--font-sans); cursor: pointer; }
.et-screen .et-cat:hover { border-color: var(--accent); }
.et-screen .et-cat--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* The merge fields' panel: "Drop in" while writing. */
.et-screen .et-dropin { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--hairline); }
.et-screen .et-dropin__h { margin: 0; padding: 0; font: var(--weight-heading) 14px/1.3 var(--font-sans); color: var(--ink); }
/* The footer under the writing: Archive on the left; Discard changes and Save on the right. */
.et-screen .et-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--hairline); }
.et-screen .et-foot__go { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

/* Fields */
.et-screen .et-form { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; margin: 0; padding: 0; }
.et-screen .et-form__row { display: flex; flex-wrap: wrap; gap: 12px; }
.et-screen .et-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; padding: 0; }
.et-screen .et-field--grow { flex: 1 1 240px; }
.et-screen .et-form__row > .et-field:not(.et-field--grow) { flex: 0 1 220px; }
.et-screen .et-label { font: 600 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.et-screen .et-label .et-muted { letter-spacing: 0; text-transform: none; font-weight: 400; }
.et-screen .et-input { width: 100%; min-width: 0; margin: 0; padding: 8px 10px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white);
  color: var(--ink); font: 400 14px/1.4 var(--font-sans); outline: none; box-sizing: border-box; }
.et-screen .et-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
/* The writing is short enough that the merge fields under it start in view; beside it (wide), it is taller. */
.et-screen .et-body { flex: 1; min-height: 240px; resize: vertical; line-height: 1.55; }

/* Body, and Write | Preview beside its label */
.et-screen .et-bodyhead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.et-screen .et-toggle { display: inline-flex; align-self: flex-start; gap: 2px; margin: 0; padding: 2px; border-radius: 9px; background: var(--parchment-dim); }
.et-screen .et-toggle__b { margin: 0; padding: 5px 14px; border: 0; border-radius: 7px; background: none; color: var(--ink-soft); font: 600 13px/1.2 var(--font-sans); cursor: pointer; }
.et-screen .et-toggle__b--on { background: var(--white); color: var(--accent); box-shadow: var(--shadow-xs); }

/* The preview: the email as it goes to that person. */
.et-screen .et-preview { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 240px; margin: 0; padding: 14px 16px; border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--white); }
.et-screen .et-preview__to, .et-screen .et-preview__subject { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; overflow-wrap: anywhere; }
.et-screen .et-preview__subject { padding-bottom: 10px; border-bottom: 1px solid var(--hairline); font-weight: 600; font-size: 14px; }
.et-screen .et-preview__body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.et-screen .et-merge { padding: 0 1px; border-radius: 3px; background: var(--parchment-dim); }
.et-screen .et-merge--fills { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.et-screen .et-merge--blank { color: var(--amber); background: var(--amber-soft); }
.et-screen .et-merge--campaign { color: var(--ink-soft); background: none; box-shadow: inset 0 0 0 1px var(--hairline-strong); }
/* The Classic's legend: the bracketed marks are markers, never sent. */
.et-screen .et-preview__legend { margin: auto 0 0; padding: 8px 0 0; border-top: 1px solid var(--hairline); color: var(--ink-soft); font-size: 12px; line-height: 1.5; white-space: normal; }

/* The merge fields: the person the preview is for, then every field coloured for them. */
.et-screen .et-fields { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; padding: 16px 20px 20px; border-top: 1px solid var(--hairline); background: var(--white); }
.et-screen .et-as { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.et-screen .et-as__row { display: flex; flex-wrap: wrap; gap: 10px; }
.et-screen .et-fields__group { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.et-screen .et-fields__h { margin: 0; padding: 0; font: 600 11px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.et-screen .et-fields__note { letter-spacing: 0; text-transform: none; font-weight: 400; }
.et-screen .et-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.et-screen .et-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; max-width: 100%; margin: 0; padding: 5px 10px; border: 1px solid var(--hairline-strong);
  border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: default; }
.et-screen button.et-chip { cursor: pointer; }
.et-screen button.et-chip:hover { border-color: var(--accent); }
.et-screen .et-chip__label { font: 600 12.5px/1.3 var(--font-sans); }
.et-screen .et-chip__used { font-weight: 400; color: var(--ink-soft); }
.et-screen .et-chip__value { max-width: 220px; font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.et-screen .et-chip--fills { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.et-screen .et-chip--fills .et-chip__value { color: var(--accent); }
.et-screen .et-chip--blank { border-color: rgba(180, 83, 9, 0.45); background: var(--amber-soft); }
.et-screen .et-chip--blank .et-chip__value { color: var(--amber); }
.et-screen .et-chip--campaign { border-style: dashed; background: none; }
.et-screen .et-caption { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.et-screen .et-why { font-size: 12.5px; line-height: 1.5; }
/* Under the writing: the Classic's name/title warning (amber) and its campaign note (neutral — not something to fix). */
.et-screen .et-risk, .et-screen .et-note { margin: 0; padding: 8px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.5; }
.et-screen .et-risk { background: var(--amber-soft); color: var(--ink); }
.et-screen .et-note { border: 1px solid var(--hairline); background: var(--white); color: var(--ink-soft); }

/* Buttons and links */
.et-screen .et-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--hairline-strong);
  background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.et-screen .et-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.et-screen .et-button--primary:hover { background: var(--accent-raised); }
.et-screen .et-button:disabled { opacity: .45; cursor: not-allowed; }
.et-screen .et-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.3 var(--font-sans); cursor: pointer; text-align: left; text-underline-offset: 2px; }
.et-screen .et-link:hover { text-decoration: underline; }
.et-screen .et-button:focus-visible, .et-screen .et-link:focus-visible, .et-screen .et-item:focus-visible, .et-screen .et-chip:focus-visible,
.et-screen .et-toggle__b:focus-visible, .et-screen .et-group__toggle:focus-visible, .et-screen .et-cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Empty and failed states: a sentence, so it gets a measure. */
.et-screen .et-empty { max-width: 60ch; margin: 0; padding: 14px 10px; border: 1px dashed var(--hairline-strong); border-radius: 10px; color: var(--ink-soft); font-size: 13px; }
.et-screen .et-why, .et-screen .et-pending, .et-screen .et-notice, .et-screen .et-risk, .et-screen .et-note, .et-screen .et-caption { max-width: 90ch; }

/* Wide: the merge fields beside the writing, stretched to its height. */
@container et (min-width: 1040px) {
  .et-screen .et-editor { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); }
  .et-screen .et-fields { border-top: 0; border-left: 1px solid var(--hairline); }
  .et-screen .et-body, .et-screen .et-preview { min-height: 340px; }
}
/* Narrow (a phone, or Settings handing it a narrow box): one column — the rail, or the open template with a way back. */
@container et (max-width: 640px) {
  .et-screen .et-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .et-screen .et-rail { border-right: 0; }
  .et-screen.et-screen--editor .et-rail { display: none; }
  .et-screen:not(.et-screen--editor) .et-editor { display: none; }
  .et-screen .et-back { display: inline-block; }
  .et-screen .et-compose, .et-screen .et-fields { padding-left: 14px; padding-right: 14px; }
  .et-screen .et-foot__go { width: 100%; }
  .et-screen .et-foot__go .et-button { flex: 1 1 auto; }
  .et-screen .et-form__row > .et-field:not(.et-field--grow) { flex: 1 1 100%; }
}
/* src/modules/revenue/features/settings/settingsPage.css — the New Settings frame (docs/REFRESH_SPEC.md "Settings").
   Loaded by SettingsPage.jsx alone (the registry lets one file load a stylesheet, so a withdrawal can find it).
   EVERY RULE IS SCOPED UNDER .sp-screen, two classes deep, and that is load-bearing: the Classic/New wrapper's class starts
   with "cd-", so the global reset `[class^='cd-'] button { background: none; border: none; font: inherit }` (0,1,1) reaches
   every button here and outranks a single-class rule. Two classes (0,2,0) win. The root's own `* { margin: 0; padding: 0 }`
   is why every margin and padding is stated, and its `select option { background: #111318 }` (the dark theme's) is why the
   tab list's options are given the card's own.
   THE PANELS ARE NOT THIS FILE'S. They are SettingsModal's, drawn in the Classic's inline styles, the same in both versions,
   so nothing here reaches inside .sp-panel: no element selector, and no font, size or colour set on the panel's box or an
   ancestor of it — what a panel inherits is what the Classic's frame let it inherit. The frame's own parts carry their type.
   THE PLACE: Settings is a page of its own over the app (SettingsModal's fixed box); the frame fills it — the top bar, the
   rail beside the panel, the footer — and lays itself out by its own width (a container query), not the window's: under
   760 px the rail's tabs become one list above the panel, which then gets the whole width (the Classic's rail left it about
   40 px on a phone). The panel fills the width it is given: no maximum (the Classic's 860 px cap kept the email templates'
   fields below the editor at any width).
   The rules that apply everywhere: colour means something — the workspace's accent for the app's own (the tab you are on,
   with its 3px bar, as the shell's rail marks it; the focus ring; Save), nothing amber (nothing here is waiting on anyone)
   and red for nothing (nothing here destroys anything): a save that failed is said in ink, its first words bold. Parchment
   for the chrome (the top bar, the rail, the footer), near-white for the content area. THE TYPE (Ryan, 2026-10-03), only
   through the tokens: Geist only (Ryan, 2026-10-22), the page title at --weight-title; everything else Geist (--font-sans). No figure
   lines up in a column here and nothing is code, so neither tabular numerals nor Geist Mono is used. */

.sp-screen { container: sp / inline-size; flex: 1 1 0; min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: #FCFBF8; }

/* The top bar */
.sp-screen .sp-top { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin: 0; padding: 8px var(--space-page-x); box-sizing: border-box; background: var(--parchment); border-bottom: 1px solid var(--hairline); color: var(--ink); font: 400 14px/1.4 var(--font-sans); }
.sp-screen .sp-top__title { display: flex; align-items: baseline; gap: 14px; min-width: 0; margin: 0; padding: 0; }
.sp-screen .sp-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); color: var(--ink); }
.sp-screen .sp-top__org { min-width: 0; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--hairline-strong); color: var(--ink-soft); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The body: the rail beside the panel */
.sp-screen .sp-body { flex: 1 1 0; min-height: 0; display: flex; margin: 0; padding: 0; overflow: hidden; }
.sp-screen .sp-rail { flex: 0 0 240px; display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 0; background: var(--parchment); border-right: 1px solid var(--hairline); color: var(--ink); font: 400 14px/1.4 var(--font-sans); }
.sp-screen .sp-rail__search { flex: 0 0 auto; margin: 0; padding: 14px 12px 10px; border-bottom: 1px solid var(--hairline); }
.sp-screen .sp-search { display: block; width: 100%; min-width: 0; margin: 0; padding: 8px 11px; box-sizing: border-box; background: var(--white); border: 1px solid var(--hairline-strong); border-radius: 8px; color: var(--ink); font: 400 13px/1.3 var(--font-sans); outline: none; }
.sp-screen .sp-search:focus { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 14%, transparent); }
.sp-screen .sp-rail__list { flex: 1 1 0; min-height: 0; overflow-y: auto; margin: 0; padding: 10px 10px 18px; }

/* The groups and their tabs — every group open */
.sp-screen .sp-group { margin: 0 0 14px; padding: 0; }
.sp-screen .sp-group__h { margin: 4px 0 4px; padding: 0 10px; font: 600 11px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.sp-screen .sp-tabs, .sp-screen .sp-hits { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; }
.sp-screen .sp-tab { display: block; width: 100%; margin: 0; padding: 7px 10px 7px 11px; box-sizing: border-box; border: 0; border-left: 3px solid transparent; border-radius: 0 7px 7px 0; background: transparent; color: var(--ink); font: 400 13.5px/1.3 var(--font-sans); text-align: left; cursor: pointer; }
.sp-screen .sp-tab:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.sp-screen .sp-tab--on { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); font-weight: 600; }
.sp-screen .sp-tab--on:hover { background: color-mix(in srgb, var(--accent) 11%, transparent); }

/* Search answers, in place of the groups */
.sp-screen .sp-hit { display: flex; flex-direction: column; gap: 2px; width: 100%; margin: 0; padding: 7px 10px; box-sizing: border-box; border: 0; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.sp-screen .sp-hit:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.sp-screen .sp-hit__title { font: var(--weight-heading) 13px/1.3 var(--font-sans); }
.sp-screen .sp-hit__where { font: 400 12px/1.3 var(--font-sans); color: var(--ink-soft); }
.sp-screen .sp-none { margin: 4px 0 0; padding: 4px 10px; color: var(--ink-soft); font-size: 13px; }

/* A narrow box's list of tabs (hidden while the rail is beside the panel) */
.sp-screen .sp-pick { display: none; align-items: center; gap: 10px; margin: 0; padding: 0 12px 12px; }
.sp-screen .sp-pick__label { flex: 0 0 auto; color: var(--ink-soft); font: 600 12px/1.3 var(--font-sans); }
.sp-screen .sp-pick__select { flex: 1 1 auto; min-width: 0; margin: 0; padding: 8px 10px; box-sizing: border-box; background: var(--white); border: 1px solid var(--hairline-strong); border-radius: 8px; color: var(--ink); font: 400 14px/1.3 var(--font-sans); }
.sp-screen .sp-pick__select option, .sp-screen .sp-pick__select optgroup { background: var(--white); color: var(--ink); }

/* The panel: SettingsModal's, filling the width; it scrolls, the frame doesn't */
.sp-screen .sp-panel { flex: 1 1 0; min-width: 0; min-height: 0; overflow: auto; margin: 0; padding: var(--space-page-top) var(--space-page-x) var(--space-page-bottom); box-sizing: border-box; }

/* The footer: what saving does, then the state and the buttons */
.sp-screen .sp-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin: 0; padding: 12px var(--space-page-x); box-sizing: border-box; background: var(--parchment); border-top: 1px solid var(--hairline); color: var(--ink); font: 400 13px/1.45 var(--font-sans); }
.sp-screen .sp-foot__says { flex: 1 1 360px; min-width: 0; max-width: 78ch; margin: 0; padding: 0; color: var(--ink-soft); font-size: 13px; }
.sp-screen .sp-foot__end { flex: 0 1 auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin: 0 0 0 auto; padding: 0; }
.sp-screen .sp-status { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 52ch; margin: 0; padding: 0; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.sp-screen .sp-status--error { padding-left: 10px; border-left: 3px solid var(--hairline-strong); }
.sp-screen .sp-status--saved, .sp-screen .sp-status--dirty { color: var(--ink); }
.sp-screen .sp-status__x { flex: 0 0 auto; margin: 0 0 0 4px; padding: 0 4px; border: 0; background: none; color: var(--ink-soft); font: 400 16px/1 var(--font-sans); cursor: pointer; }

/* Buttons */
.sp-screen .sp-button { display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.sp-screen .sp-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sp-screen .sp-button--primary:hover { background: var(--accent-raised); }
.sp-screen .sp-button:focus-visible, .sp-screen .sp-tab:focus-visible, .sp-screen .sp-hit:focus-visible, .sp-screen .sp-status__x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* A narrow box (a phone, or a narrow window): the tabs as one list above the panel; the search's answers in its place while
   searching; the panel the whole width. */
@container sp (max-width: 760px) {
  .sp-screen .sp-top { padding: 8px 16px; }
  .sp-screen .sp-body { flex-direction: column; }
  .sp-screen .sp-rail { flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .sp-screen .sp-rail__search { border-bottom: 0; padding: 12px 12px 10px; }
  .sp-screen .sp-rail__list { display: none; }
  .sp-screen .sp-rail--finding .sp-rail__list { display: block; flex: 0 1 auto; max-height: 50vh; padding-top: 0; }
  .sp-screen .sp-pick { display: flex; }
  .sp-screen .sp-rail--finding .sp-pick { display: none; }
  .sp-screen .sp-panel { padding: 20px 16px 32px; }
  .sp-screen .sp-foot { padding: 10px 16px; }
}
/* src/modules/revenue/features/settings/channelLists.css — the New Channel Setup tab (ChannelLists.jsx), in the New Settings'
   own look (settingsPage.css). Loaded by ChannelLists.jsx and its fallback boundary, nothing else.
   EVERY RULE INSIDE IS SCOPED UNDER .cl-screen, two classes deep, and that is load-bearing, as in settingsPage.css: inside
   the New Settings frame the Classic/New wrapper's class starts with "cd-", so the global reset `[class^='cd-'] button
   { background: none; border: none; font: inherit }` (0,1,1) reaches every button here and outranks a single-class rule. Two
   classes (0,2,0) win. The root's own `* { margin: 0; padding: 0 }` is why every margin and padding is stated.
   THE PLACE: a tab of Settings, whose panel is already padded and scrolls, and the Setup screen's tab body, padded the same
   way — so it adds no gutter and no scroller of its own, and lays itself out by the box it is given (a container query):
   the two lists side by side, ending level, above 640 px; one above the other under it.
   The rules that apply everywhere (docs/REFRESH_SPEC.md Part one): cards white with the spec's #e6e2da border and an 11px
   radius, hairlines inside a card #f5f2eb; the workspace's accent on Save alone and on the focus ring; nothing amber
   (nothing here is waiting on anyone) and red for nothing (a remove is undone by not saving): a refusal is said in ink, its
   first words bold. Geist through the tokens: the tab's heading and each list's at --weight-heading. */

.cl-screen { container: cl / inline-size; display: flex; flex-direction: column; gap: var(--space-panel-gap); min-width: 0; color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.cl-screen .cl-muted { color: var(--ink-soft); }
.cl-screen .cl-line { margin: 0; padding: 0; font-size: 13px; line-height: 1.5; color: var(--ink); }

/* The heading */
.cl-screen .cl-head { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; }
.cl-screen .cl-h2 { margin: 0; padding: 0; font: var(--weight-heading) 16px/1.3 var(--font-sans); color: var(--ink); }
.cl-screen .cl-intro { margin: 0; padding: 0; max-width: 78ch; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.cl-screen .cl-unread { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }

/* The two lists */
.cl-screen .cl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: var(--space-panel-gap); margin: 0; padding: 0; }
.cl-screen .cl-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: var(--space-card-y) var(--space-card-x); box-sizing: border-box; background: var(--white); border: 1px solid #e6e2da; border-radius: 11px; }
.cl-screen .cl-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; padding: 0; }
.cl-screen .cl-h3 { margin: 0; padding: 0; font: var(--weight-heading) 14px/1.3 var(--font-sans); color: var(--ink); }
.cl-screen .cl-count { flex: none; margin: 0; padding: 0; font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cl-screen .cl-items { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.cl-screen .cl-item { display: flex; align-items: center; gap: 8px; min-height: 34px; margin: 0; padding: 4px 0; border-top: 1px solid #f5f2eb; }
.cl-screen .cl-item:first-child { border-top: 0; }
.cl-screen .cl-item__name { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.cl-screen .cl-none { color: var(--ink-soft); }
.cl-screen .cl-add { display: flex; align-items: center; gap: 8px; margin: auto 0 0; padding: 8px 0 0; border-top: 1px solid #f5f2eb; }
.cl-screen .cl-problem { color: var(--ink); padding-left: 10px; border-left: 3px solid var(--hairline-strong); }

/* Fields and buttons, as Settings' own */
.cl-screen .cl-input { min-width: 0; margin: 0; padding: 7px 10px; box-sizing: border-box; background: var(--white); border: 1px solid var(--hairline-strong); border-radius: 8px; color: var(--ink); font: 400 13px/1.3 var(--font-sans); outline: none; }
.cl-screen .cl-input--grow { flex: 1 1 160px; }
.cl-screen .cl-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 14%, transparent); }
.cl-screen .cl-button { display: inline-flex; align-items: center; justify-content: center; flex: none; margin: 0; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font-sans); cursor: pointer; white-space: nowrap; }
.cl-screen .cl-button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cl-screen .cl-button--primary:hover { background: var(--accent-raised); }
.cl-screen .cl-button:disabled { opacity: .45; cursor: not-allowed; }
.cl-screen .cl-link { flex: none; margin: 0; padding: 2px 4px; border: 0; border-radius: 4px; background: none; color: var(--ink-soft); font: 400 12px/1.3 var(--font-sans); cursor: pointer; }
.cl-screen .cl-link:hover { color: var(--ink); text-decoration: underline; }
.cl-screen .cl-link:disabled { opacity: .45; cursor: not-allowed; }
.cl-screen .cl-button:focus-visible, .cl-screen .cl-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The line beside Save: what saving does, then the state and the button */
.cl-screen .cl-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--hairline); }
.cl-screen .cl-foot__says { flex: 1 1 320px; min-width: 0; max-width: 78ch; margin: 0; padding: 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.cl-screen .cl-foot__end { flex: 0 1 auto; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin: 0 0 0 auto; padding: 0; }
.cl-screen .cl-status { min-width: 0; max-width: 52ch; margin: 0; padding: 0; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.cl-screen .cl-status--error { padding-left: 10px; border-left: 3px solid var(--hairline-strong); }

/* The boundary's line over the Classic, for the one release it can show */
.cl-fell { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: var(--amber-soft); color: var(--ink); font: 400 13px/1.4 var(--font-sans); }

/* A narrow box (a phone, or Settings' panel on a narrow window): one list above the other */
@container cl (max-width: 640px) {
  .cl-screen .cl-cards { grid-template-columns: minmax(0, 1fr); }
  .cl-screen .cl-foot__end { margin: 0; justify-content: flex-start; }
}
/* src/modules/revenue/features/tasks/taskRecord.css — the task record (TaskRecordPage.jsx), loaded by it alone. Drawn on the
   activity record's page (activityRecord.css): two columns, the main one and a 352px rail, on the activity record's ground,
   with its edit bar, cards, labels and definition rows. Every rule is scoped two classes deep under .trp-screen (the root's
   [class^='cd-'] button reset outranks one class); every margin and padding is stated (the root's * reset). Geist only, by
   token; the title at --weight-title. Color means one thing at a time: amber for lateness and a problem's dot (its words
   ink), red only for Delete, a priority in words and ink.
   THE PHONE is the app's mobile setting (trp-screen--phone, from useIsMobile), never a width query: one column, a 16px
   gutter, the title at the phone's title size, Mark done full width, the definitions stacked. */

.trp-screen { flex: 1 1 0; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; background: #FAF9F7; color: var(--ink); font: 400 14px/1.5 var(--font-sans); }
.trp-screen .trp-wrap { padding: 20px var(--space-page-x) 48px; box-sizing: border-box; max-width: 1240px; }
.trp-screen .trp-muted { color: var(--ink-soft); }
.trp-screen .trp-small { margin: 0; padding: 0; font-size: 12px; }
.trp-screen .trp-strong { margin: 0; padding: 0; font-weight: 600; }
.trp-screen .trp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the breadcrumb: the list's name, which goes back */
.trp-screen .trp-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0 0 12px; padding: 0; font-size: 13px; color: var(--ink-soft); }
.trp-screen .trp-crumbs__back { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.35 var(--font-sans); cursor: pointer; }
.trp-screen .trp-crumbs__sep { color: var(--ink-faint); }
.trp-screen .trp-crumbs__here { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the head */
.trp-screen .trp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 0 0 20px; padding: 0; }
.trp-screen .trp-head__main { flex: 1 1 420px; min-width: 0; }
.trp-screen .trp-head__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 0; }
.trp-screen .trp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 5px; background: #0F2A22; color: #FFFFFF; font-size: 12px; font-weight: 600; }
.trp-screen .trp-state { font-size: 12.5px; color: var(--ink-soft); }
.trp-screen .trp-state--late { color: var(--amber); font-weight: 600; }
.trp-screen .trp-state--finished { color: var(--ink); font-weight: 600; }
.trp-screen .trp-tag { display: inline-block; padding: 0 7px; border: 1px solid var(--hairline-strong); border-radius: 999px; color: var(--ink); font: 500 11px/17px var(--font-sans); }
.trp-screen .trp-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.trp-screen .trp-sub { margin: 6px 0 0; padding: 0; font-size: var(--text-page-sub); color: var(--ink-soft); }
.trp-screen .trp-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 4px 0 0; }
.trp-screen .trp-label { display: block; margin: 0 0 6px; padding: 0; font-size: 13px; font-weight: 500; color: var(--ink); }
.trp-screen .trp-label--title { font-size: 12px; color: var(--ink-soft); }

/* buttons and links */
.trp-screen .trp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin: 0; padding: 8px 14px; border-radius: 7px; border: 1px solid var(--hairline-strong);
  background: var(--white); color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.trp-screen .trp-btn:disabled { opacity: 0.6; cursor: default; }
.trp-screen .trp-btn--dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 600; }
.trp-screen .trp-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.trp-screen .trp-btn--danger { align-self: flex-start; border-color: var(--hairline); background: transparent; color: var(--danger); }
.trp-screen .trp-btn--bar { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #FFFFFF; }
.trp-screen .trp-btn--save { background: #FFFFFF; border-color: #FFFFFF; color: #0F2A22; font-weight: 600; }
.trp-screen .trp-link { margin: 0; padding: 0; border: 0; background: none; color: var(--accent); font: 600 13px/1.35 var(--font-sans); text-decoration: none; cursor: pointer; text-align: inherit; }
.trp-screen .trp-link:hover { text-decoration: underline; }
.trp-screen .trp-link--quiet { margin: 0; padding: 0; border: 0; background: none; color: var(--ink-soft); font: 400 12px/1.4 var(--font-sans); text-decoration: underline; cursor: pointer; }

/* the editing bar */
.trp-screen .trp-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  min-height: 46px; margin: 0; padding: 8px var(--space-page-x); box-sizing: border-box; background: #0F2A22; color: #FFFFFF; font-size: 13px; font-weight: 500; }
.trp-screen .trp-bar__actions { display: inline-flex; gap: 8px; }

/* lateness: the days the one amber thing in it, the date in ink */
.trp-screen .trp-late { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -6px 0 20px; padding: 11px 16px;
  border: 1px solid color-mix(in srgb, var(--amber) 18%, var(--white)); border-radius: 10px; background: color-mix(in srgb, var(--amber) 7%, var(--white)); font-size: 13.5px; color: var(--ink); }
.trp-screen .trp-late__days { color: var(--amber); font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }

/* the two columns and their cards */
.trp-screen .trp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 24px; align-items: start; }
.trp-screen .trp-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.trp-screen .trp-card { margin: 0; padding: 20px 22px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--white); min-width: 0; }
.trp-screen .trp-card--quiet { opacity: 0.55; }
.trp-screen .trp-card--open { border-color: var(--accent); }
.trp-screen .trp-cardhead { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.trp-screen .trp-lbl { display: flex; align-items: center; margin: 0 0 10px; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); }
.trp-screen .trp-cardhead .trp-lbl { margin: 0; }
.trp-screen .trp-body { margin: 0; padding: 0; font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 80ch; }
.trp-screen .trp-p { margin: 0; padding: 0; font-size: 14px; line-height: 1.55; }
.trp-screen .trp-p + .trp-p { margin-top: 6px; }

/* where it came from: the activity quoted */
.trp-screen .trp-quote { margin: 10px 0 0; padding: 13px 15px; border: 1px solid var(--hairline); border-radius: 8px; background: #FCFBF8; }
.trp-screen .trp-quote__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; }
.trp-screen .trp-tchip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 5px; background: var(--parchment-dim); font-size: 12px; font-weight: 600; }
.trp-screen .trp-quote__who { font-size: 12.5px; color: var(--ink-soft); }
.trp-screen .trp-quote__subject { margin: 0 0 4px; padding: 0; font-size: 14.5px; font-weight: 600; }
.trp-screen .trp-quote__detail { margin: 0; padding: 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.trp-screen .trp-quote__line { margin: 12px 0 10px; padding: 1px 0 1px 12px; border-left: 3px solid var(--accent); }
.trp-screen .trp-quote__lname { display: flex; align-items: center; gap: 6px; margin: 0 0 3px; padding: 0; font-size: 12.5px; font-weight: 600; }
.trp-screen .trp-quote__lnote { margin: 0; padding: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); overflow-wrap: anywhere; }

/* when you finish it, and done */
.trp-screen .trp-inp { display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 9px 11px; border: 1px solid var(--hairline-strong); border-radius: 7px;
  background: var(--white); color: var(--ink); font: 400 14px/1.45 var(--font-sans); }
.trp-screen .trp-inp:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.trp-screen .trp-inp::placeholder { color: var(--ink-faint); }
.trp-screen .trp-inp--note { min-height: 74px; resize: vertical; }
.trp-screen .trp-inp--title { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; padding: 9px 12px; }
.trp-screen .trp-inp--body { min-height: 120px; font-size: 15px; line-height: 1.65; resize: vertical; }
.trp-screen .trp-finish { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0 0; }
.trp-screen .trp-help { flex: 1 1 260px; margin: 0; padding: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.trp-screen .trp-logged { margin: 12px 0 14px; padding: 11px 14px; border-radius: 8px; background: var(--parchment); }
.trp-screen .trp-problem { margin: 6px 0 0; padding: 0; font-size: 12.5px; color: var(--ink); }
.trp-screen .trp-problem::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.trp-screen .trp-fail { margin: 0; padding: 0; font-size: 13.5px; color: var(--ink); }
.trp-screen .trp-ro { margin: 0; padding: 0; font-size: 13.5px; color: var(--ink-soft); }

/* this task: definition rows */
.trp-screen .trp-dl { display: flex; flex-direction: column; gap: 13px; margin: 0; padding: 0; }
.trp-screen .trp-dl__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; }
.trp-screen .trp-dl__row dt { flex-shrink: 0; margin: 0; font-size: 13px; color: var(--ink-soft); }
.trp-screen .trp-dl__row dd { min-width: 0; margin: 0; font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.trp-screen .trp-dl__row--stack { flex-direction: column; align-items: stretch; gap: 6px; }
.trp-screen .trp-dl__row--stack dd { text-align: left; }
.trp-screen .trp-sub2 { display: block; color: var(--ink-soft); font-size: 12px; font-weight: 400; }
.trp-screen .trp-late-word { color: var(--amber); font-weight: 600; }
.trp-screen .trp-badge { display: inline-block; padding: 0 7px; border: 1px solid var(--ink-soft); border-radius: 999px; color: var(--ink); font: 500 12px/18px var(--font-sans); white-space: nowrap; }
.trp-screen .trp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; }
.trp-screen .trp-chipbtn { display: inline-flex; align-items: center; margin: 0; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--white);
  color: var(--ink); font: 500 12px/1.3 var(--font-sans); white-space: nowrap; cursor: pointer; }
.trp-screen .trp-chipbtn--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.trp-screen .trp-chipbtn:disabled { opacity: 0.6; cursor: default; }
.trp-screen .trp-pick { display: inline-flex; align-items: center; gap: 6px; }
.trp-screen .trp-pick .trp-inp { width: auto; padding: 4px 8px; font-size: 12.5px; }

/* the edit form's fields */
.trp-screen .trp-field { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; }
.trp-screen .trp-field + .trp-field { margin-top: 12px; }
.trp-screen .trp-field__name { font-size: 12.5px; color: var(--ink-soft); }
.trp-screen .trp-field__hint { font-size: 12px; color: var(--ink-soft); }

/* who made it, what changed */
.trp-screen .trp-audit { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 2px 4px; }
.trp-screen .trp-audit .trp-small { color: var(--ink-soft); }
.trp-screen .trp-history { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.trp-screen .trp-history__changes { margin: 4px 0 0; padding: 0 0 0 14px; font-size: 12.5px; }
.trp-screen .trp-history__changes li { margin: 2px 0 0; overflow-wrap: anywhere; }

/* the phone: the app's mobile setting (trp-screen--phone), never a width query */
.trp-screen.trp-screen--phone .trp-wrap { padding: 14px 16px 24px; }
.trp-screen.trp-screen--phone .trp-bar { padding: 8px 16px; }
.trp-screen.trp-screen--phone .trp-crumbs { display: none; }
.trp-screen.trp-screen--phone .trp-h1 { font-size: var(--text-page-title-phone); }
.trp-screen.trp-screen--phone .trp-head { gap: 12px; margin: 0 0 14px; }
.trp-screen.trp-screen--phone .trp-actions { padding: 0; }
.trp-screen.trp-screen--phone .trp-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.trp-screen.trp-screen--phone .trp-col { gap: 12px; }
.trp-screen.trp-screen--phone .trp-card { padding: 16px; }
.trp-screen.trp-screen--phone .trp-finish .trp-btn--primary { width: 100%; min-height: 44px; font-size: 14px; }
.trp-screen.trp-screen--phone .trp-dl__row { flex-direction: column; gap: 3px; }
.trp-screen.trp-screen--phone .trp-dl__row dd { width: 100%; text-align: left; }
/* src/modules/revenue/features/activities/activityRecord.css — the activity record (ActivityRecordPage.jsx), loaded by it alone.
   The mock's two boards: the record at rest, and the same page in edit mode under a dark bar. Every rule is scoped two
   classes deep under .arp-screen (the root's [class^='cd-'] button reset outranks one class); every margin and padding is
   stated (the root's * reset). Geist only; amber only for "look here" (a problem that stops a save); red only for Delete. */

.arp-screen { flex: 1 1 0; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; background: #FAF9F7; color: var(--ink); font: 400 14px/1.5 var(--font-sans); }
.arp-screen .arp-wrap { padding: 20px var(--space-page-x) 64px; box-sizing: border-box; max-width: 1240px; }
.arp-screen button { font-family: inherit; }
.arp-screen .arp-muted { color: var(--ink-soft); }
.arp-screen .arp-small { font-size: 12px; margin: 0; padding: 0; }
.arp-screen .arp-strong { font-weight: 600; margin: 0; padding: 0; }
.arp-screen .arp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the editing bar */
.arp-screen .arp-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  min-height: 46px; padding: 8px var(--space-page-x); box-sizing: border-box; background: #0F2A22; color: #FFFFFF; font-size: 13px; font-weight: 500; }
.arp-screen .arp-bar__actions { display: inline-flex; gap: 8px; }

/* buttons and links */
.arp-screen .arp-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 7px; border: 1px solid var(--hairline-strong);
  background: var(--white); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; }
.arp-screen .arp-btn:disabled { opacity: 0.6; cursor: default; }
.arp-screen .arp-btn--dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 600; }
.arp-screen .arp-btn--bar { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #FFFFFF; }
.arp-screen .arp-btn--save { background: #FFFFFF; border-color: #FFFFFF; color: #0F2A22; font-weight: 600; }
.arp-screen .arp-btn--danger { align-self: flex-start; border-color: var(--hairline); color: var(--danger); background: transparent; }
.arp-screen .arp-back { margin: 0 0 14px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; }
.arp-screen .arp-link { margin: 0; padding: 0; border: 0; background: none; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font-size: inherit; }
.arp-screen .arp-link--ink { color: var(--ink); text-decoration: none; font-weight: inherit; }
.arp-screen .arp-link--ink:hover { text-decoration: underline; }

/* the header */
.arp-screen .arp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin: 0 0 22px; padding: 0; flex-wrap: wrap; }
.arp-screen .arp-head__main { flex: 1 1 420px; min-width: 0; }
.arp-screen .arp-head__meta { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.arp-screen .arp-head__actions { display: flex; gap: 8px; flex-shrink: 0; padding-top: 4px; }
.arp-screen .arp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 5px; background: #0F2A22; color: #FFFFFF; font-size: 12px; font-weight: 600; }
.arp-screen .arp-h1 { margin: 0; padding: 0; font: var(--weight-title) var(--text-page-title)/var(--leading-page-title) var(--font-sans); letter-spacing: -0.02em; overflow-wrap: anywhere; }

/* problems that stop a save: ink words after an amber dot */
.arp-screen .arp-problems { margin: 0 0 16px; padding: 0; list-style: none; }
.arp-screen .arp-problem { margin: 4px 0 0; padding: 0; font-size: 12px; color: var(--ink); }
.arp-screen .arp-problem::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--amber); vertical-align: middle; }

/* the two columns */
.arp-screen .arp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 24px; align-items: start; }
.arp-screen .arp-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.arp-screen .arp-card { margin: 0; padding: 20px 22px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--white); min-width: 0; }
.arp-screen .arp-card--quiet { opacity: 0.6; }
.arp-screen .arp-card--open { border-color: var(--accent); }
.arp-screen .arp-cardhead { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.arp-screen .arp-lbl { margin: 0 0 10px; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); }
.arp-screen .arp-cardhead .arp-lbl { margin: 0; }
.arp-screen .arp-sub { display: block; margin: 0 0 5px; padding: 0; font-size: var(--text-page-sub); color: var(--ink-soft); }
.arp-screen .arp-body { margin: 0; padding: 0; font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 80ch; }

/* controls */
.arp-screen .arp-inp { display: block; width: 100%; box-sizing: border-box; margin: 0 0 12px; padding: 9px 11px; border: 1px solid var(--hairline-strong); border-radius: 7px;
  background: var(--white); color: var(--ink); font: 400 14px/1.4 var(--font-sans); }
.arp-screen .arp-inp:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.arp-screen .arp-inp--title { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; padding: 10px 12px; }
.arp-screen .arp-inp--body { font-size: 15px; line-height: 1.65; resize: vertical; min-height: 140px; }
.arp-screen .arp-dl .arp-inp { margin: 0; }

/* lines discussed */
.arp-screen .arp-lines { display: flex; flex-direction: column; gap: 10px; }
.arp-screen .arp-line { margin: 0; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 8px; }
.arp-screen .arp-line__name { margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.arp-screen .arp-line__note { margin: 0; padding: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); overflow-wrap: anywhere; }

/* the tabs */
.arp-screen .arp-tabs { display: flex; gap: 22px; margin: -4px 0 0; padding: 0; border-bottom: 1px solid var(--hairline); }
.arp-screen .arp-tab { margin: 0; padding: 0 2px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-soft); font-size: 14px; cursor: pointer; }
.arp-screen .arp-tab--on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.arp-screen .arp-tab__n { margin-left: 5px; color: var(--ink-soft); font-weight: 400; font-variant-numeric: tabular-nums; }
.arp-screen .arp-tabbody { padding: 16px 0 0; }
.arp-screen .arp-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.arp-screen .arp-list__row { display: flex; gap: 12px; align-items: flex-start; }
.arp-screen .arp-list__title { font-weight: var(--weight-heading); }
.arp-screen .arp-box { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; border: 1.6px solid var(--accent); border-radius: 4px; box-sizing: border-box; }
.arp-screen .arp-box--done { background: var(--accent); }
.arp-screen .arp-fu { margin: 0 0 16px; padding: 14px; border: 1px solid var(--hairline); border-radius: 8px; background: #FCFBF8; }
.arp-screen .arp-fu__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.arp-screen .arp-fu__row .arp-sub { flex: 1 1 160px; }
.arp-screen .arp-history { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.arp-screen .arp-history__changes { margin: 4px 0 0; padding: 0 0 0 14px; }
.arp-screen .arp-history__changes li { margin: 2px 0 0; overflow-wrap: anywhere; }

/* the people there */
.arp-screen .arp-tokens { position: relative; }
.arp-screen .arp-tokens__box { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding: 7px 9px; border: 1px solid var(--accent); border-radius: 7px; background: var(--white); }
.arp-screen .arp-tokens__box--read { padding: 0; border: 0; }
.arp-screen .arp-token { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--white); font-size: 13px; }
.arp-screen .arp-token__x { margin: 0; padding: 0 0 0 2px; border: 0; background: none; color: var(--ink-faint); font-size: 15px; line-height: 1; cursor: pointer; }
.arp-screen .arp-tokens__input { flex: 1 1 70px; min-width: 70px; margin: 0; padding: 4px 2px; border: 0; outline: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); }
.arp-screen .arp-tokens__menu { margin: 10px 0 0; border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; background: var(--white); }
.arp-screen .arp-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; box-sizing: border-box; margin: 0; padding: 9px 12px; border: 0;
  border-top: 1px solid var(--hairline); background: none; text-align: left; cursor: pointer; }
.arp-screen .arp-opt:first-child { border-top: 0; }
.arp-screen .arp-opt:hover, .arp-screen .arp-opt:focus { background: #F4F2EE; outline: none; }
.arp-screen .arp-opt__name { font-size: 14px; font-weight: 500; color: var(--ink); }
.arp-screen .arp-opt__sub { font-size: 12px; color: var(--ink-soft); }
.arp-screen .arp-opt--new { color: var(--accent); font-size: 14px; font-weight: 500; }

/* details */
.arp-screen .arp-dl { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.arp-screen .arp-dl__row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin: 0; }
.arp-screen .arp-dl__row dt { margin: 0; font-size: 13px; color: var(--ink-soft); flex-shrink: 0; }
.arp-screen .arp-dl__row dd { margin: 0; font-size: 14px; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.arp-screen .arp-audit { padding: 2px 4px; display: flex; flex-direction: column; gap: 4px; }

@media (max-width: 860px) {
  .arp-screen .arp-grid { grid-template-columns: minmax(0, 1fr); }
  .arp-screen .arp-head__actions { padding-top: 0; }
  .arp-screen .arp-dl__row { flex-direction: column; gap: 4px; }
  .arp-screen .arp-dl__row dd { text-align: left; width: 100%; }
}
/* Cadence Analytics module styles. All colors come from tokens.css variables. */

.az-module {
  font-family: var(--font-sans);
  color: var(--ink);
}

.az-error {
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.az-note {
  background: var(--brass-soft);
  border: 1px solid var(--brass);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin-bottom: var(--space-4);
}

/* ---------- Section header ---------- */
.az-section__head {
  margin-bottom: var(--space-5);
}

.az-section__title {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--weight-heading);
  color: var(--ink);
  margin: 0;
}

.az-section__sub {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin-top: var(--space-1);
}

/* ---------- KPI grid ---------- */
.az-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.az-kpi {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.az-kpi__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--space-2);
}

.az-kpi__value {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: var(--weight-figure);
  color: var(--ink);
  line-height: 1.1;
}

.az-kpi__hint {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  margin-top: var(--space-2);
}

.az-kpi__delta {
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- Panels ---------- */
.az-panel {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-5);
}

.az-panel__title {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.az-panel__sub {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  font-weight: 400;
  margin-left: var(--space-2);
}

.az-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
}

/* ---------- Toolbar / segmented control ---------- */
.az-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.az-segment {
  display: inline-flex;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.az-segment__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.az-segment__btn + .az-segment__btn {
  border-left: 1px solid var(--hairline);
}

.az-segment__btn--active {
  background: var(--pine);
  color: var(--white);
}

/* ---------- Filter bar ---------- */
.az-filterbar {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-5);
}

.az-filterbar__field {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.az-filterbar__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.az-select {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  transition: border-color var(--transition);
}

.az-select:hover { border-color: var(--brass); }
.az-select:focus {
  outline: none;
  border-color: var(--brass);
}

/* ---------- Tables ---------- */
.az-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.az-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--hairline-strong);
}

.az-table th.az-num,
.az-table td.az-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.az-table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}

.az-table tbody tr:hover {
  background: color-mix(in srgb, var(--pine) 3%, transparent);
}

.az-table tfoot td {
  font-weight: 600;
  border-top: 1px solid var(--hairline-strong);
  border-bottom: none;
}

.az-bar {
  height: 6px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--brass) 22%, transparent);
  position: relative;
  overflow: hidden;
}

.az-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--brass);
  border-radius: var(--radius-full);
}

/* ---------- Empty / muted ---------- */
.az-empty {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--ink-soft);
}

.az-empty__title {
  font-family: var(--font-sans);
  font-weight: var(--weight-heading);
  font-size: var(--text-lg);
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.az-empty__desc {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.az-muted {
  font-size: var(--text-sm);
  color: var(--ink-faint);
}

.az-delta--up { color: var(--success); }
.az-delta--down { color: var(--danger); }
.az-delta--flat { color: var(--ink-faint); }

/* ---------- Dashboard builder ---------- */
.az-builder__widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.az-widget-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink);
  transition: border-color var(--transition), background var(--transition);
}

.az-widget-pick:hover { border-color: var(--brass); }
.az-widget-pick--on {
  border-color: var(--brass);
  background: var(--brass-soft);
}

.az-widget-pick__check {
  font-size: var(--text-xs);
  color: var(--brass);
  font-weight: 600;
}

.az-dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--hairline);
}

.az-dash-row:last-child { border-bottom: none; }
.az-dash-row__name { font-weight: 600; color: var(--ink); }
.az-dash-row__meta { font-size: var(--text-xs); color: var(--ink-faint); }

/* ---------- Custom dashboard builder (table-backed) ---------- */

/* Dashboard list */
.az-dash-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

.az-dash-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: 0;
}

.az-dash-card__open {
  appearance: none;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
}

.az-dash-card__name {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-heading);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.az-dash-card__meta {
  font-size: var(--text-xs);
  color: var(--ink-faint);
  margin-top: var(--space-1);
}

.az-dash-card__open:hover .az-dash-card__name { color: var(--pine); }

/* Open-dashboard header */
.az-dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.az-dash-head__left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  flex: 1;
}

.az-dash-title-input {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--weight-title);
  color: var(--ink);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  min-width: 0;
  flex: 1;
  transition: border-color var(--transition), background var(--transition);
}

.az-dash-title-input:hover { border-color: var(--hairline-strong); }
.az-dash-title-input:focus {
  outline: none;
  border-color: var(--brass);
  background: var(--white);
}

/* Responsive widget grid */
.az-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.az-widget-cell {
  min-width: 0;
}

.az-widget-cell--dragging {
  opacity: 0.92;
}

/* Individual widget card */
.az-widget {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
}

.az-widget-cell--dragging .az-widget {
  border-color: var(--brass);
  box-shadow: var(--shadow-md);
}

.az-widget__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.az-widget__heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  cursor: grab;
}

.az-widget__heading:active { cursor: grabbing; }

.az-widget__grip {
  color: var(--ink-faint);
  font-size: var(--text-md);
  line-height: 1;
  user-select: none;
}

.az-widget__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.az-widget__meta {
  font-size: var(--text-xs);
  color: var(--ink-faint);
  margin-top: 2px;
}

.az-widget__body {
  flex: 1;
  min-height: 0;
}

.az-widget__kpi {
  padding: var(--space-2) 0 var(--space-3);
}

.az-widget__value {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: var(--weight-figure);
  color: var(--ink);
  line-height: 1.1;
}

.az-widget__hint {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  margin-top: var(--space-2);
}

.az-widget__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-size: var(--text-sm);
  color: var(--ink-faint);
  text-align: center;
}

.az-widget__table {
  margin-top: var(--space-1);
}

/* ---------- Widget picker modal ---------- */
.az-picker {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.az-picker__range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
