/* Outreach (js/outreach.js). Loaded INSIDE the page's shadow root, so none of these rules (h1, .btn, .tabs, table…)
   reach the rest of Rocket and Rocket's rules don't reach in. Never add this file to index.html.
   Hubble restyle (2026-11-08): rebuilt on Rocket's role tokens (css/tokens.css; custom properties inherit into the
   shadow root), with Hubble's components re-created here because Rocket's stylesheets can't be loaded inside (46
   class names clash). No colour of its own: every colour is a Rocket role token.
   Status roles (owner-approved): not started = neutral outline; needs attention = --status-medium; in progress =
   --accent; done = --success; closed / parked = neutral; blocked = --danger. Ember (--live) is used only as the
   calendar's today tint. Events and programmes use the violet category role. */

[hidden]:not([hidden=until-found i]) { display: none !important; }
* { box-sizing: border-box; }
img { max-width: 100%; }
:host {
  display: block; color: var(--text-primary); font-family: var(--font-sans);
  font-size: var(--fs-md); line-height: var(--lh-body);
  --row-hover: var(--surface-hover);
}
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: var(--fw-semibold); letter-spacing: -.01em; text-wrap: balance; }
.wrap { display: flex; flex-direction: column; gap: var(--sp-5); }
.eyebrow { font: var(--fw-medium) var(--fs-xs)/1 var(--font-sans); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.small { font-size: var(--fs-xs); color: var(--text-muted); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- header: Rocket's page head carries the title; this is the sync line ---------- */
header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: var(--sp-3) var(--sp-5); }
header > div:first-child { display: none; }
.sync { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-1); font-size: var(--fs-sm); color: var(--text-secondary); }
.sync b { color: var(--text-primary); font-weight: var(--fw-medium); }
.sync-row { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sync-row.small { font-size: var(--fs-xs); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); display: inline-block; flex: none; }
.dot.ok { background: var(--success); }
.dot.stale { background: var(--status-medium); }

/* ---------- buttons (Rocket .btn / .btn-primary) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); height: 34px; padding: 0 var(--sp-4); border-radius: var(--r-pill); border: 1px solid var(--border-subtle); background: var(--surface-tile); color: var(--text-primary); font-weight: var(--fw-medium); font-size: var(--fs-sm); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background var(--dur-fast), border-color var(--dur-fast); }
.btn:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-tile-hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: var(--fw-semibold); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.icon { width: 34px; padding: 0; }
.arr { width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
.arr.back { transform: rotate(-135deg); }
.linkbtn { background: none; border: 0; padding: 0; font-size: var(--fs-xs); color: var(--text-secondary); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn:hover { color: var(--text-primary); }

/* ---------- scope switch (Rocket .seg) and tabs ---------- */
.scopebar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); }
.scope { display: inline-flex; gap: 2px; padding: var(--sp-1); border-radius: var(--r-pill); background: var(--surface-tile); max-width: 100%; overflow-x: auto; }
.scope button { border: 0; background: none; height: 32px; padding: 0 var(--sp-4); border-radius: var(--r-pill); color: var(--text-secondary); font-weight: var(--fw-medium); font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; display: inline-flex; gap: var(--sp-2); align-items: center; transition: background var(--dur-fast), color var(--dur-fast); }
.scope button:hover { color: var(--text-primary); }
.scope button[aria-checked="true"] { background: var(--surface-inverse); color: var(--text-inverse); }
.scope .c { font-size: var(--fs-xs); opacity: .7; font-variant-numeric: tabular-nums; }
#scopeSub { color: var(--text-secondary); font-size: var(--fs-sm); }

.tabs { display: flex; gap: var(--sp-4); border-bottom: 1px solid var(--border-subtle); overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: var(--sp-3) 0; color: var(--text-secondary); font-weight: var(--fw-medium); font-size: var(--fs-md); cursor: pointer; white-space: nowrap; display: inline-flex; gap: var(--sp-2); align-items: center; transition: color var(--dur-fast), border-color var(--dur-fast); }
.tab:hover { color: var(--text-primary); }
.tab[aria-selected="true"] { color: var(--text-primary); border-bottom-color: var(--accent); }
/* Rocket's count pill */
.tab .badge { font: var(--fw-medium) var(--fs-xs)/1.6 var(--font-sans); padding: 0 var(--sp-2); border-radius: var(--r-pill); background: var(--surface-tile); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] .badge { color: var(--text-secondary); }

.view { display: flex; flex-direction: column; gap: var(--sp-5); }

/* ---------- status pills (Rocket .pill: dot + word) ---------- */
.pill { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 24px; padding: 2px var(--sp-2) 2px var(--sp-2); border-radius: var(--r-pill); font: var(--fw-medium) var(--fs-xs)/1.25 var(--font-sans); white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.manual::after { content: "set by team"; font-weight: var(--fw-regular); opacity: .75; }
.st-new { color: var(--text-secondary); border-color: var(--border-subtle); }
.st-wait { color: var(--status-medium); background: var(--status-medium-soft); }
.st-progress { color: var(--accent); background: var(--accent-soft); }
.st-done { color: var(--success); background: var(--success-soft); }
.st-closed { color: var(--text-muted); background: var(--surface-tile); }
.st-parked { color: var(--text-secondary); background: var(--surface-tile); }
.st-blocked { color: var(--danger); background: var(--danger-soft); }
.st-key { color: var(--accent); border-color: var(--accent-line); }
.wait-us { color: var(--status-medium); font-weight: var(--fw-medium); }

/* ---------- summary stat card (was the gradient banner) ---------- */
.abanner { border-radius: var(--r-lg); padding: var(--sp-5); background: var(--surface-card); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4) var(--sp-6); }
.abanner-main { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: var(--sp-2) var(--sp-3); }
.abanner-main .eyebrow { grid-column: 1 / -1; }
.abig { font: var(--fw-semibold) var(--fs-4xl)/1 var(--font-sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.abig-l { font-size: var(--fs-sm); color: var(--text-secondary); }
.abanner-side { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.abanner-side > span { display: inline-flex; align-items: baseline; gap: var(--sp-1); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); background: var(--surface-tile); font-size: var(--fs-sm); color: var(--text-secondary); }
.abanner-side b { color: var(--text-primary); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
#tBanner:empty { display: none; }
/* the Meetings tab's "next meeting" version */
.mb-main { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.mb-main .eyebrow { margin-bottom: var(--sp-2); }
.mb-when { font: var(--fw-semibold) var(--fs-2xl)/var(--lh-tight) var(--font-sans); letter-spacing: -.02em; }
.mb-who { font-size: var(--fs-lg); font-weight: var(--fw-medium); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.mb-in { font: var(--fw-medium) var(--fs-xs)/1.6 var(--font-sans); padding: 0 var(--sp-2); border-radius: var(--r-pill); background: var(--surface-tile); color: var(--text-secondary); }
.mb-t { font-size: var(--fs-sm); color: var(--text-secondary); }

/* ---------- status tiles, grouped: Outreach | In conversation | Outcome ---------- */
.pipeline { display: flex; flex-direction: column; gap: var(--sp-3); }
.pgroup { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: var(--sp-4); }
.pgroup + .pgroup { border-top: 1px solid var(--border-subtle); padding-top: var(--sp-3); }
.pg-h { font: var(--fw-medium) var(--fs-xs)/1 var(--font-sans); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.pg-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--sp-2); }
.stage { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; padding: var(--sp-3) var(--sp-4); border: 1px solid transparent; border-radius: var(--r-md); background: var(--surface-card); text-align: left; cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast); }
.stage:hover { background: var(--surface-card-hover); }
.stage[aria-pressed="true"] { border-color: var(--accent); }
.stage .n { font: var(--fw-semibold) var(--fs-2xl)/1 var(--font-sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stage .l { display: flex; min-width: 0; }
.stage .l .pill { white-space: normal; }
.stage.total { border-color: var(--accent-line); }
.stage.total[aria-pressed="true"] { border-color: var(--accent); }

/* ---------- outreach results ---------- */
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: var(--sp-4); }
.rpanel { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; padding: var(--sp-5); border-radius: var(--r-lg); background: var(--surface-card); }
.rpanel h2 { font: var(--fw-medium) var(--fs-xs)/1.3 var(--font-sans); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.rpanel h2 b { color: var(--text-primary); font-weight: var(--fw-semibold); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: var(--sp-2); }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--sp-3); border-radius: var(--r-md); background: var(--surface-tile); border: 1px solid transparent; }
.stat.key { border-color: var(--accent-line); }
.stat .v { font: var(--fw-semibold) var(--fs-2xl)/1.1 var(--font-sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .k { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.stat .s { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- programmes: chips in the violet category role ---------- */
.rowline { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: center; font-size: var(--fs-sm); color: var(--text-secondary); }
.rowline .k { color: var(--text-muted); }
#programs { border-top: 1px solid var(--border-subtle); padding-top: var(--sp-4); }
.chipbtn { display: inline-flex; align-items: center; gap: var(--sp-2); height: 30px; padding: 0 var(--sp-3); border-radius: var(--r-pill); border: 1px solid var(--border-subtle); background: transparent; color: var(--text-secondary); font-weight: var(--fw-medium); font-size: var(--fs-sm); cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.chipbtn .c { opacity: .7; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.chipbtn.prog { border-color: transparent; background: var(--violet-soft); color: var(--violet-text); }
.chipbtn.prog:hover { border-color: var(--violet); }
.chipbtn[aria-pressed="true"] { background: var(--surface-inverse); color: var(--text-inverse); border-color: var(--surface-inverse); }
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); align-items: center; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--sp-2); border-radius: var(--r-pill); background: var(--surface-tile); font: var(--fw-medium) var(--fs-xs)/1 var(--font-sans); color: var(--text-secondary); white-space: nowrap; }
.tag.prog { background: var(--violet-soft); color: var(--violet-text); }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.filters input[type=search], .filters select, .teamform textarea, .teamform select, .teamform input[type=text], .mform input {
  height: 36px; padding: 0 var(--sp-3); border: 1px solid var(--border-subtle); border-radius: var(--r-sm); background: var(--surface-card); color: var(--text-primary); min-width: 0; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.filters input[type=search] { flex: 1 1 220px; }
.filters input:focus, .filters select:focus, .teamform :is(textarea, select, input):focus, .mform input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.toggle { display: inline-flex; gap: var(--sp-2); align-items: center; font-size: var(--fs-sm); color: var(--text-secondary); cursor: pointer; padding: 0 var(--sp-1); }
input[type=checkbox] { accent-color: var(--accent); }
.count { margin-left: auto; font-size: var(--fs-sm); color: var(--text-muted); }
.fhint { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- the firm table: Rocket list rows ---------- */
#body { display: flex; flex-direction: column; gap: var(--sp-3); }
.tablebox { background: var(--surface-card); border-radius: var(--r-lg); overflow-x: auto; }
table { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; font-size: var(--fs-md); }
th { text-align: left; font: var(--fw-medium) var(--fs-xs)/1.2 var(--font-sans); letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); padding: var(--sp-3); border-bottom: 1px solid var(--border-subtle); white-space: nowrap; cursor: pointer; user-select: none; }
th[aria-sort] { color: var(--text-primary); }
td { padding: var(--sp-3); border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tr.firm { cursor: pointer; }
tr.firm:hover td { background: var(--row-hover); }
tr.firm.open td { background: var(--surface-tile); border-bottom-color: transparent; }
tr.firm.open td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.fname { font-weight: var(--fw-semibold); }
.fsub { font-size: var(--fs-xs); color: var(--text-muted); overflow-wrap: anywhere; }
.next { max-width: 280px; color: var(--text-secondary); }
.meter { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: var(--sp-1); }
.meter i { width: 6px; height: 12px; border-radius: 2px; background: var(--border-strong); }
.meter.h i, .meter.m i:nth-child(-n+2), .meter.l i:first-child { background: var(--text-secondary); }
tr.dgap { display: none; }
.skel { height: 44px; background: var(--surface-tile); border-radius: var(--r-md); }

/* the opened firm (desktop): a notch card holding the detail summary card */
tr.detail td { background: var(--surface-tile); padding: 0 var(--sp-4) var(--sp-4); }
.sheethead { display: none; }
.notch { position: relative; margin-top: 30px; padding: var(--sp-4); border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg); background: var(--nc, var(--surface-card)); display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.notch-tab { position: absolute; left: 0; bottom: 100%; height: 30px; display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-3); border-radius: var(--r-md) var(--r-md) 0 0; background: var(--nc, var(--surface-card)); font: var(--fw-medium) var(--fs-xs)/1 var(--font-sans); color: var(--text-secondary); }
.notch-tab::after { content: ""; position: absolute; left: 100%; bottom: 0; width: 16px; height: 16px; background: radial-gradient(circle at 100% 0, transparent 15.5px, var(--nc, var(--surface-card)) 16px); }
.notch-tab .pill { min-height: 20px; }
.dsum { border-radius: var(--r-lg); background: var(--surface-tile); padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-4); }
.dsum-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.dsum-cols > div { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.dsum-cols b { font-weight: var(--fw-medium); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; }
.dsum-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border-subtle); font-size: var(--fs-sm); color: var(--text-secondary); }
.dsum-foot > :last-child:not(:first-child) { margin-left: auto; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--sp-5) var(--sp-6); }
.dgrid h3 { margin: 0 0 var(--sp-2); font: var(--fw-medium) var(--fs-xs)/1 var(--font-sans); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.dgrid p { margin: 0; max-width: 65ch; color: var(--text-secondary); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.timeline li { display: grid; grid-template-columns: 92px 64px minmax(0, 1fr); gap: var(--sp-2); font-size: var(--fs-sm); }
.timeline .d { font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.timeline .dir-in { color: var(--success); }
.timeline .dir-out { color: var(--text-secondary); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-1) var(--sp-3); font-size: var(--fs-sm); margin: 0; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.teamform { display: flex; flex-direction: column; gap: var(--sp-2); }
.teamform textarea { height: auto; min-height: 76px; padding: var(--sp-2) var(--sp-3); resize: vertical; width: 100%; }
.teamform .two { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.teamform select, .teamform input[type=text] { flex: 1 1 160px; }

.empty, .aempty { background: var(--surface-card); border-radius: var(--r-lg); padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); align-items: flex-start; color: var(--text-secondary); }
.empty h2 { font-size: var(--fs-xl); color: var(--text-primary); }
.empty p { margin: 0; max-width: 60ch; }

/* ---------- folded groups under the table ---------- */
.fold { background: var(--surface-card); border-radius: var(--r-lg); overflow: hidden; }
.foldhead { width: 100%; border: 0; background: none; padding: var(--sp-4) var(--sp-5); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-2) var(--sp-5); align-items: center; text-align: left; cursor: pointer; transition: background var(--dur-fast); }
.foldhead:hover { background: var(--surface-card-hover); }
.fbig { min-width: 56px; font: var(--fw-semibold) var(--fs-3xl)/1 var(--font-sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fmid { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.fmid .ft { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
.fold.tone-danger .fmid .ft { color: var(--danger); }
.fmid .fs { color: var(--text-secondary); font-size: var(--fs-sm); }
.fbtn { display: inline-flex; align-items: center; gap: var(--sp-2); height: 34px; padding: 0 var(--sp-4); border-radius: var(--r-pill); border: 1px solid var(--border-subtle); background: var(--surface-tile); font-weight: var(--fw-medium); font-size: var(--fs-sm); white-space: nowrap; transition: border-color var(--dur-fast); }
.foldhead:hover .fbtn { border-color: var(--border-strong); }
.chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-fast) var(--ease-out); }
.fold.open .fbtn .chev, .metitem.open .metrow .chev { transform: translateY(2px) rotate(-135deg); }
.foldbody { border-radius: 0; border-top: 1px solid var(--border-subtle); max-height: 520px; overflow: auto; }
.foldbody thead th, .popbody thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-card); }
/* age of the silence: neutral → due soon → overdue */
.agebar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; gap: 2px; max-width: 360px; margin-top: var(--sp-1); background: var(--border-subtle); }
.agebar i { display: block; height: 100%; }
.a1 { background: var(--text-faint); }
.a2 { background: var(--status-medium); }
.a3 { background: var(--status-high); }
.agelegend { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.agelegend span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.agelegend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ---------- Meetings held (bottom of the Tracker) ---------- */
.metsec { display: flex; flex-direction: column; gap: var(--sp-3); }
.metlist { border-top: 1px solid var(--border-subtle); }
.metitem { border-bottom: 1px solid var(--border-subtle); }
.metitem:last-child { border-bottom: 0; }
.metitem.open { background: var(--surface-tile); }
.metrow { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto 12px; gap: var(--sp-1) var(--sp-4); align-items: center; padding: var(--sp-3) var(--sp-5); transition: background var(--dur-fast); }
.metrow:hover { background: var(--row-hover); }
.metwhen { display: flex; flex-direction: column; gap: 1px; font-variant-numeric: tabular-nums; }
.metwhen b { font-weight: var(--fw-semibold); white-space: nowrap; }
.metwhen span { font-size: var(--fs-xs); color: var(--text-muted); }
.metwho { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.metname { font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.metrow .chev { color: var(--text-muted); }
.metdetail { padding: 0 var(--sp-5) var(--sp-4) 156px; display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
.metdetail .kv { width: 100%; max-width: 760px; }

/* ---------- pop-up list under a tapped status or programme ---------- */
.popwrap { width: 100%; flex: 1 1 100%; margin: var(--sp-1) 0 var(--sp-2); background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-popover); --nc: var(--surface-tile); }
.pophead { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border-subtle); }
.popt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.poptitle { font-weight: var(--fw-semibold); font-size: var(--fs-lg); }
.popx { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-tile); color: var(--text-secondary); cursor: pointer; font-size: var(--fs-xl); line-height: 1; display: grid; place-items: center; }
.popx:hover { color: var(--text-primary); background: var(--surface-tile-hover); }
.popbody { border-radius: 0; max-height: 480px; overflow: auto; }
.popbody th { cursor: default; }
.alist .popwrap, .day .popwrap, .metlist .popwrap { margin: 0; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }

/* ---------- Action plan ---------- */
.agrid { display: flex; flex-direction: column; gap: var(--sp-6); }
.atier { display: flex; flex-direction: column; gap: var(--sp-3); --tc: var(--text-secondary); --tt: var(--surface-tile); }
.atier.t-now { --tc: var(--status-medium); --tt: var(--status-medium-soft); }
.atier.t-week { --tc: var(--text-secondary); --tt: var(--surface-tile); }
.atier.t-later, .atier.t-up { --tc: var(--text-muted); --tt: var(--surface-tile); }
.atier-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); }
.atier-h h3 { font-size: var(--fs-xs); }
.atier-h > span { font-size: var(--fs-sm); color: var(--text-secondary); }
.tpill { display: inline-flex; align-items: center; gap: var(--sp-2); height: 24px; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--tt); color: var(--tc); font: var(--fw-medium) var(--fs-xs)/1 var(--font-sans); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.tpill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.apanel, .alist { background: var(--surface-card); border-radius: var(--r-lg); overflow: hidden; }
.arow { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--border-subtle); text-align: left; cursor: pointer; padding: var(--sp-4) var(--sp-5); display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 56px 12px; gap: var(--sp-2) var(--sp-5); align-items: center; transition: background var(--dur-fast); }
.arow:last-child { border-bottom: 0; }
.arow:hover { background: var(--surface-card-hover); }
.arow .arr { color: var(--text-muted); }
.arow:hover .arr { color: var(--text-primary); transform: translateX(2px) rotate(45deg); }
.arank { font-size: var(--fs-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.amid { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.atitle { font-size: var(--fs-lg); font-weight: var(--fw-semibold); display: inline-flex; align-items: center; gap: var(--sp-2); }
.adot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-faint); }
.ashort { font-size: var(--fs-sm); color: var(--text-secondary); }
.ameta { display: flex; gap: var(--sp-3); align-items: center; justify-content: flex-end; flex-wrap: wrap; font-size: var(--fs-xs); white-space: nowrap; }
.awhen, .adone { color: var(--text-muted); }
.atier .awhen { padding: 2px var(--sp-2); border-radius: var(--r-pill); background: var(--tt); color: var(--tc); font-weight: var(--fw-medium); }
.alate { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 2px var(--sp-2); border-radius: var(--r-pill); background: var(--status-high-soft); color: var(--status-high); font-weight: var(--fw-medium); }
.alate::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.acount { font: var(--fw-semibold) var(--fs-2xl)/1 var(--font-sans); letter-spacing: -.02em; text-align: right; font-variant-numeric: tabular-nums; }
.agroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-2); }
.agroup { background: var(--surface-card); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; }
.agroup:hover { background: var(--surface-card-hover); }
.agroup .n { font: var(--fw-semibold) var(--fs-2xl)/1.1 var(--font-sans); font-variant-numeric: tabular-nums; }
.agroup .l { font-size: var(--fs-xs); color: var(--text-muted); display: flex; gap: var(--sp-2); align-items: center; }
.agroup .l i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ahead { display: flex; flex-direction: column; gap: var(--sp-3); }
.aback { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--sp-2); height: 34px; padding: 0 var(--sp-4); border-radius: var(--r-pill); border: 1px solid var(--border-subtle); background: var(--surface-tile); cursor: pointer; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.aback:hover { border-color: var(--border-strong); }
.ahead-main { display: flex; gap: var(--sp-4); align-items: flex-start; }
.ahead-main .eyebrow { margin-bottom: var(--sp-1); display: block; }
.ahead-main h2 { font-size: var(--fs-xl); }
.ahead-main p { margin: var(--sp-1) 0 0; color: var(--text-secondary); max-width: 70ch; }
.ago { display: inline-flex; align-items: center; gap: var(--sp-2); height: 30px; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
#aGroups { order: 1; } #aFilters { order: 2; } #aBody { order: 3; }
.asec { display: flex; flex-direction: column; gap: var(--sp-3); scroll-margin-top: var(--sp-4); }
.asec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); }
.asec-h h2 { font-size: var(--fs-lg); display: flex; align-items: center; gap: var(--sp-2); }
.asec-h h2 i { width: 10px; height: 10px; border-radius: 50%; }
.asec-h .why { color: var(--text-secondary); font-size: var(--fs-sm); max-width: 70ch; }
.aitem { display: grid; grid-template-columns: 28px minmax(0, 1.1fr) minmax(0, 2fr) auto; gap: var(--sp-1) var(--sp-4); align-items: start; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border-subtle); }
.aitem:last-child { border-bottom: 0; }
.aitem.done { opacity: .5; }
.aitem.done .atext { text-decoration: line-through; }
.aitem input[type=checkbox] { width: 18px; height: 18px; margin: 2px 0 0; cursor: pointer; }
.aitem .atext { min-width: 0; color: var(--text-secondary); }
.aitem .meta { text-align: right; white-space: nowrap; font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.aitem .meta .late { color: var(--status-high); font-weight: var(--fw-medium); }
.firmlink { background: none; border: 0; padding: 0; color: var(--text-primary); font-weight: var(--fw-semibold); cursor: pointer; text-align: left; }
.firmlink:hover { color: var(--accent); }
.more { align-self: flex-start; }

/* ---------- Meetings tab ---------- */
.calexport { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.calexport .small { flex: 1 1 260px; max-width: 70ch; }
.calrow { display: grid; grid-template-columns: 130px minmax(0, 1fr) 96px; gap: var(--sp-3) var(--sp-4); align-items: center; min-height: 64px; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border-subtle); }
.calrow:last-child { border-bottom: 0; }
.calwhen { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.calwhen b { font-weight: var(--fw-semibold); white-space: nowrap; }
.calwhen span { font-size: var(--fs-xs); color: var(--text-muted); }
.calwhat { min-width: 0; overflow-wrap: anywhere; }
.calbtn { width: 96px; }
.day { display: flex; flex-direction: column; gap: var(--sp-2); }
.mcard { background: var(--surface-card); border-radius: var(--r-lg); padding: var(--sp-4); display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: var(--sp-1) var(--sp-4); align-items: start; }
.mcard .t { font-size: var(--fs-lg); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.mcard .t span { display: block; font-size: var(--fs-xs); color: var(--text-muted); font-weight: var(--fw-regular); }
.mcard .who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mcard .side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-2); }
.mcard.past { background: transparent; border: 1px solid var(--border-subtle); }
.mcard.past .t { color: var(--text-muted); }
.owed { align-self: flex-start; margin-top: var(--sp-1); padding: 2px var(--sp-2); border-radius: var(--r-pill); background: var(--status-medium-soft); color: var(--status-medium); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.mform { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.mform #mFirm { flex: 1 1 200px; } .mform #mNote { flex: 2 1 240px; }

/* month calendar: today is the live tint and nothing else */
.calwrap { background: var(--surface-card); border-radius: var(--r-lg); padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-3); }
.calbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); padding: var(--sp-1) var(--sp-2) 0; }
.calbar h2 { font-size: var(--fs-lg); }
.calnav { display: flex; gap: var(--sp-1); }
.legend { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-xs); color: var(--text-muted); }
.legend span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.wd { font: var(--fw-medium) var(--fs-xs)/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); padding: 0 var(--sp-2) var(--sp-1); }
.cday { min-height: 84px; background: var(--surface-sunken); border: 1px solid transparent; border-radius: var(--r-sm); padding: var(--sp-1); display: flex; flex-direction: column; gap: var(--sp-1); text-align: left; cursor: pointer; min-width: 0; color: inherit; transition: border-color var(--dur-fast), background var(--dur-fast); }
.cday:hover { border-color: var(--border-strong); }
.cday.today { background: var(--live-tint); }
.cday.sel { border-color: var(--accent); }
.cday.pastday { opacity: .45; }
.dnrow { display: flex; align-items: center; gap: var(--sp-1); }
.cday .dn { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-muted); font-variant-numeric: tabular-nums; width: 24px; height: 24px; display: grid; place-items: center; }
.cday.has .dn, .cday.today .dn { color: var(--text-primary); }
.cday.today .dn { font-weight: var(--fw-semibold); }
.mlabel { font: var(--fw-medium) var(--fs-xs)/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); }
.chip { display: block; font-size: var(--fs-xs); line-height: 1.3; padding: 3px var(--sp-2) 4px; border-radius: var(--r-xs); overflow-wrap: break-word; color: var(--text-primary); background: var(--surface-tile); box-shadow: inset 2px 0 0 var(--cc, var(--text-faint)); }
.chip b { display: block; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; opacity: .8; }
.chipmore { font-size: var(--fs-xs); color: var(--text-muted); padding: 0 var(--sp-1); }
.dots { display: none; gap: 3px; flex-wrap: wrap; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--cc); }
.c-ok { --cc: var(--accent); }
.c-tbc { --cc: var(--status-medium); }
.c-held { --cc: var(--text-faint); }
.c-owed { --cc: var(--status-medium); }
.c-miss { --cc: var(--danger); text-decoration: line-through; }
.legend i { background: var(--cc); }
.dtag { display: inline-block; margin-right: var(--sp-2); border-radius: var(--r-pill); padding: 1px var(--sp-2); font-size: var(--fs-xs); background: var(--surface-tile); color: var(--text-secondary); }

/* ---------- toast (clear of Rocket's floating nav) ---------- */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); background: var(--surface-tile); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-popover); font-size: var(--fs-sm); }

/* ---------- Rocket access ---------- */
:host([data-readonly]) input[data-done], :host([data-readonly]) input[data-pdone] { visibility: hidden; }
:host([data-labs-only]) .scope { display: none; }

/* ---------- laptop narrower ---------- */
@media (max-width: 900px) {
  .dgrid { grid-template-columns: minmax(0, 1fr); }
  .pgroup { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
}

/* ---------- phones: notch cards, bottom sheets ---------- */
@keyframes or-sheet-up { from { transform: translateY(100%); } }
@keyframes or-fade-in { from { opacity: 0; } }
@media (max-width: 640px) {
  .wrap { gap: var(--sp-4); }
  header { justify-content: flex-start; }
  .sync { align-items: flex-start; font-size: var(--fs-xs); }
  .sync-row { justify-content: flex-start; }
  .scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .scope button { justify-content: center; padding: 0 var(--sp-1); min-width: 0; }
  .scope .c { display: none; }
  .tabs { gap: var(--sp-4); }
  .count { margin-left: 0; width: 100%; }

  .abanner { padding: var(--sp-4); }
  .abig { font-size: var(--fs-3xl); }
  .abanner-side { width: 100%; }

  .pg-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-3); }
  .stage .n { font-size: var(--fs-xl); }

  /* the firm list: one notch card per firm, the status in the tab */
  #body .tablebox { background: transparent; overflow: visible; }
  #body .foldbody { max-height: none; overflow: visible; padding: 0 var(--sp-3) var(--sp-3); background: var(--surface-card); }
  #body table, .popwrap table { min-width: 0; display: block; }
  #body thead, .popwrap thead { display: none; }
  #body tbody, .popwrap tbody { display: flex; flex-direction: column; gap: var(--sp-3); }
  #body .foldbody tbody { --nc: var(--surface-tile); }
  #body tr.firm, .popwrap tr.firm { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2) var(--sp-3); margin-top: 30px; padding: var(--sp-4); border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg); background: var(--nc, var(--surface-card)); }
  #body tr.firm td, .popwrap tr.firm td { display: block; padding: 0; border: 0; background: none; min-width: 0; box-shadow: none; }
  #body tr.firm:hover td, #body tr.firm.open td, .popwrap tr.firm.open td { background: none; }
  #body tr.firm td:nth-child(1), .popwrap tr.firm td:nth-child(1) { grid-column: 1 / -1; }
  #body tr.firm .fname, .popwrap tr.firm .fname { font-size: var(--fs-lg); }
  #body tr.firm td:nth-child(2), .popwrap tr.firm td:nth-child(2) { position: absolute; left: 0; bottom: 100%; height: 30px; display: flex; align-items: center; padding: 0 var(--sp-3); border-radius: var(--r-md) var(--r-md) 0 0; background: var(--nc, var(--surface-card)); }
  #body tr.firm td:nth-child(2)::after, .popwrap tr.firm td:nth-child(2)::after { content: ""; position: absolute; left: 100%; bottom: 0; width: 16px; height: 16px; background: radial-gradient(circle at 100% 0, transparent 15.5px, var(--nc, var(--surface-card)) 16px); }
  #body tr.firm td:nth-child(2) .small, .popwrap tr.firm td:nth-child(2) .small { display: none; }
  #body tr.firm td:nth-child(2) .pill, .popwrap tr.firm td:nth-child(2) .pill { min-height: 20px; }
  #body tr.firm td:nth-child(3), .popwrap tr.firm td:nth-child(3) { grid-column: 1; font-size: var(--fs-sm); color: var(--text-secondary); }
  #body tr.firm td:nth-child(5), .popwrap tr.firm td:nth-child(5) { grid-column: 2; grid-row: 2; text-align: right; font-size: var(--fs-xs); color: var(--text-muted); }
  #body tr.firm td:nth-child(4), .popwrap tr.firm td:nth-child(4) { grid-column: 1 / -1; }
  #body tr.firm td:nth-child(4) .small, .popwrap tr.firm td:nth-child(4) .small { display: none; }
  #body tr.firm td:nth-child(6), .popwrap tr.firm td:nth-child(6) { grid-column: 1 / -1; max-width: none; padding-top: var(--sp-2); border-top: 1px solid var(--border-subtle); }
  #body tr.firm td:nth-child(6):empty, .popwrap tr.firm td:nth-child(6):empty { display: none; }
  #body tr.firm.open, .popwrap tr.firm.open { box-shadow: inset 0 0 0 1px var(--accent); }
  #body tbody tr:not(.firm):not(.detail) td { display: block; border: 0; }

  /* an opened firm from the main list: a bottom sheet over a scrim */
  #body tr.detail { position: fixed; z-index: 80; inset: auto 0 0 0; width: auto; height: auto; margin: 0; padding: 0; border: 0; color: var(--text-primary); display: block; max-height: 88vh; overflow: auto; overscroll-behavior: contain; background: var(--surface-card); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-dialog); animation: or-sheet-up var(--dur-slow) var(--ease-spring); }
  /* the scrim is the top layer's own backdrop, so the sheet's slide-up transform can't clip it; a tap on it closes */
  #body tr.detail::backdrop, .popwrap::backdrop { background: var(--scrim); animation: or-fade-in var(--dur-base) var(--ease-out); }
  #body tr.detail td { display: block; padding: 0 var(--sp-4) calc(var(--sp-5) + env(safe-area-inset-bottom, 0px)); border: 0; background: var(--surface-card); --nc: var(--surface-tile); }
  #body .sheethead { display: flex; align-items: center; gap: var(--sp-3); position: sticky; top: 0; z-index: 2; margin: 0 calc(-1 * var(--sp-4)); padding: var(--sp-5) var(--sp-4) var(--sp-3); background: var(--surface-card); border-bottom: 1px solid var(--border-subtle); }
  #body .sheethead::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: var(--r-xs); background: var(--border-strong); }
  #body .sheethead > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  #body .sheethead b { font-size: var(--fs-lg); font-weight: var(--fw-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sheetx { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-tile); color: var(--text-secondary); display: grid; place-items: center; cursor: pointer; }
  .sheetx svg { width: 18px; height: 18px; }

  /* a firm opened inside a pop-up list stays inline, inside the sheet */
  .popwrap tr.detail { display: block; margin-top: calc(-1 * var(--sp-3)); }
  .popwrap tr.detail td { display: block; padding: 0; border: 0; background: none; }

  /* the pop-up list itself: a bottom sheet */
  .popwrap { position: fixed; z-index: 80; inset: auto 0 0 0; width: auto; height: auto; padding: 0; color: var(--text-primary); margin: 0; max-height: 88vh; display: flex; flex-direction: column; border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-dialog); animation: or-sheet-up var(--dur-slow) var(--ease-spring); }
  .pophead { position: relative; padding-top: var(--sp-5); }
  .pophead::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: var(--r-xs); background: var(--border-strong); }
  .popbody { flex: 1; max-height: none; padding: 0 var(--sp-3) calc(var(--sp-4) + env(safe-area-inset-bottom, 0px)); }

  .notch { padding: var(--sp-3); }
  .dsum-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
  .timeline li { grid-template-columns: 78px 58px minmax(0, 1fr); }

  .foldhead { grid-template-columns: auto minmax(0, 1fr); padding: var(--sp-4); gap: var(--sp-2) var(--sp-4); }
  .fbtn { grid-column: 1 / -1; justify-self: start; }
  .fbig { min-width: 0; font-size: var(--fs-2xl); }

  .arow { grid-template-columns: minmax(0, 1fr) auto 12px; padding: var(--sp-3) var(--sp-4); }
  .arank { display: none; }
  .ameta { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .acount { grid-row: 1 / span 2; grid-column: 2; }
  .arow .arr { grid-row: 1 / span 2; grid-column: 3; }
  .aitem { grid-template-columns: 28px minmax(0, 1fr); }
  .aitem .atext, .aitem .meta { grid-column: 2; text-align: left; }

  .mcard { grid-template-columns: minmax(0, 1fr); }
  .mcard .side { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .calrow { grid-template-columns: minmax(0, 1fr) 80px; }
  .calwhen { grid-column: 1; flex-direction: row; gap: var(--sp-2); }
  .calwhat { grid-column: 1; }
  .calbtn { grid-column: 2; grid-row: 1 / span 2; width: 80px; }
  .calwrap { padding: var(--sp-2); }
  .legend { margin-left: 0; width: 100%; }
  .cday { min-height: 54px; align-items: center; padding: var(--sp-1) 2px; }
  .cday .dn { width: 22px; height: 22px; font-size: var(--fs-xs); }
  .mlabel, .chip, .chipmore { display: none; }
  .dots { display: flex; justify-content: center; }
  .wd { padding: 0; text-align: center; }

  .metrow { grid-template-columns: minmax(0, 1fr) 12px; padding: var(--sp-3) var(--sp-4); }
  .metwhen { grid-column: 1; flex-direction: row; gap: var(--sp-2); }
  .metwho, .metnow { grid-column: 1; }
  .metrow .chev { grid-column: 2; grid-row: 1 / span 3; }
  .metdetail { padding: 0 var(--sp-4) var(--sp-4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
