/* Thorne portfolio monitoring · Your Cohort brand on Decision OS.
   Tokens from the Your Cohort website (cohort-website-a/app/globals.css): navy, steel, ink, crimson.
   Status colours are reserved for status and always ship with a text label.
   Radius rule: controls 10px, cards 14px, pills fully rounded. */

:root {
  --navy: #182853;
  --navy-2: #10203f;
  --navy-tint: #e9ecf3;
  --steel: #2b5672;
  --steel-tint: #e6eef4;
  --crimson: #b52546;
  --ink: #313030;
  --muted: #5d5b5b;
  --ground: #f7f7f7;
  --card: #ffffff;
  --line: #e1dfda;
  --line-soft: #efede9;
  --line-control: #6b7691;

  --good: #1b6a43;  --good-bg: #e4f2e9;
  --warn: #855000;  --warn-bg: #fcefd7;
  --bad: #a3202b;   --bad-bg: #fbe8e9;
  --neutral: #4a4949; --neutral-bg: #eeeeec;
  --bar-warn: #c98a1a;
  --bar-good: #2f8a5a;

  --r-control: 10px;
  --r-card: 14px;
  --shadow: 0 1px 2px rgba(24, 40, 83, 0.05);
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 14px/1.5 var(--font); }
.num, .metric .value, td, .kv dd, .count, .cov dd { font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--steel); }
h1, h2, h3 { color: var(--navy); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--r-control); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }

/* Shell */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 14px 18px; }
.side::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--crimson); }
.brand { display: block; padding: 4px 10px 0; text-decoration: none; }
.brand img { width: 108px; height: auto; }
.client { margin: 14px 10px 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--ground); }
.client b { display: block; color: var(--navy); font-weight: 600; font-size: 14px; }
.client span { color: var(--muted); font-size: 12.5px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 8px 10px; border-radius: var(--r-control); color: var(--ink); text-decoration: none; font-size: 14.5px; }
.nav a:hover { background: var(--ground); color: var(--navy); }
.nav a[aria-current="page"] { background: var(--navy-tint); color: var(--navy); font-weight: 600; box-shadow: inset 3px 0 0 var(--navy); }
.count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.count[data-zero] { background: var(--neutral-bg); color: var(--neutral); }
.side-foot { margin-top: auto; padding: 16px 10px 0; font-size: 12.5px; color: var(--muted); display: grid; gap: 2px; }
.side-foot .reset { margin-top: 10px; justify-self: start; }
.side .menu-btn { display: none; }

.main { min-width: 0; padding: 28px 36px 40px; max-width: 1320px; width: 100%; }
.foot-note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* Page header */
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--ink); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 650; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head .sub { margin-top: 6px; color: var(--muted); font-size: 15px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Tabs */
.tabs { border-bottom: 1px solid var(--line); margin: 0 0 22px; overflow-x: auto; scrollbar-width: none; }
.tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.tabs a { display: block; padding: 10px 10px 12px; color: var(--muted); text-decoration: none; font-size: 14.5px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--navy); }
.tabs a[aria-current="page"] { color: var(--navy); font-weight: 600; border-bottom-color: var(--navy); }

/* Layout */
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi { display: flex; flex-direction: column; }
.kpi .value { font-size: 24px; }
.kpi .delta { margin-bottom: 12px; }
.spark { display: block; width: 100%; height: 30px; margin-top: auto; }
.kpi-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; padding-top: 12px; font-size: 12px; color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line-soft); border-top: 1px solid var(--line-soft); border-radius: 0 0 var(--r-card) var(--r-card); overflow: hidden; }
.strip > div { background: var(--card); padding: 11px 16px 12px; }
.strip dt { font-size: 12px; color: var(--muted); }
.strip dd { margin: 3px 0 0; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.stack { display: grid; gap: 16px; }
.mt { margin-top: 16px; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px 14px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.card-head h2 { font-size: 15px; font-weight: 600; }
.card-head .hint { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card-head .aside { color: var(--muted); font-size: 12.5px; }
.card-body { padding: 16px 20px 18px; }
.card-body.flush { padding: 0; }

.metric { padding: 16px 18px 18px; }
.metric .label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.metric .value { margin-top: 6px; font-size: 26px; font-weight: 650; color: var(--navy); letter-spacing: -0.02em; line-height: 1.2; }
.metric .delta { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.tone-good { color: var(--good) !important; }
.tone-warn { color: var(--warn) !important; }
.tone-bad { color: var(--bad) !important; }

/* Definition toggletip */
.term { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: help; text-decoration: underline dotted var(--line-control); text-underline-offset: 3px; text-align: left; }
.tip { position: fixed; z-index: 60; max-width: 280px; background: var(--navy); color: #fff; font-size: 12.5px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; box-shadow: 0 6px 18px rgba(16, 32, 63, 0.25); pointer-events: none; }
.tip[hidden] { display: none; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1; letter-spacing: 0; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.neutral, .pill.info { background: var(--neutral-bg); color: var(--neutral); }
.pill.new { background: var(--steel-tint); color: var(--steel); height: 20px; font-size: 11px; padding: 0 7px; }
h1 .pill { font-size: 12.5px; height: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.red { background: var(--bad); }
.dot.amber { background: var(--bar-warn); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: var(--r-control); border: 1px solid var(--line-control); background: var(--card); color: var(--navy); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--navy-tint); color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); color: #fff; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.ghost { border-color: transparent; background: var(--ground); }
.btn.ghost:hover { border-color: var(--line-control); background: var(--navy-tint); }
.btn.small { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.link { border: 0; background: none; padding: 0; min-height: 0; color: var(--navy); text-decoration: underline; font-weight: 500; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 32px; padding: 4px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--line-control); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Lists */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.rows > li:first-child { border-top: 0; }
.rows .t { font-weight: 600; color: var(--navy); font-size: 14.5px; }
.rows .s { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.rows .v { font-weight: 600; white-space: nowrap; }
.rows .lead { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.rows .lead .dot { margin-top: 7px; }
.rows .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.bullets { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.bullets b { color: var(--navy); }
.status-line { margin-top: 10px; font-size: 13px; color: var(--muted); }
.status-line:empty { display: none; }

/* Tables */
.table-wrap { overflow-x: auto; position: relative; }
.table-wrap:focus-visible { outline-offset: -2px; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; }
th { font-weight: 500; color: var(--muted); text-align: left; font-size: 12.5px; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 500; color: var(--ink); text-align: left; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
table.fit th, table.fit td { white-space: normal; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td, tr.clickable:hover th { background: #fafaf8; }
.sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.sort:hover { color: var(--navy); }
.sort .arrow { width: 10px; display: inline-block; text-align: center; }
th[aria-sort] .sort { color: var(--navy); font-weight: 600; }
.co-link { font-weight: 600; text-decoration: none; }
.co-link:hover { text-decoration: underline; }
td.below { background: var(--bad-bg); color: var(--bad); font-weight: 600; }
td.below::before { content: "▾ "; font-size: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 12.5px; color: var(--muted); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }

/* Progress bars */
.bar { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--navy); }
.bar.good > span { background: var(--bar-good); }
.bar.warn > span { background: var(--bar-warn); }
.bar.bad > span { background: var(--bad); }
.cov-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cov-strip .row { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }

/* Covenant cards */
.cov .card-head { border: 0; padding-bottom: 6px; }
.cov dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 10px; gap: 2px 12px; }
.cov dt { color: var(--muted); font-size: 12.5px; }
.cov dd { margin: 0; font-size: 18px; font-weight: 650; color: var(--navy); }
.cov .room { display: flex; justify-content: space-between; font-size: 13px; }
.cov ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 13px; }

/* Bridge */
.bridge li { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.bridge li:first-child { border-top: 0; }
.bridge .bar { grid-column: 1; margin-top: 2px; }
.bridge .bar > span { background: var(--steel); }
.bridge .total .bar > span { background: var(--navy); }

/* Decisions */
.decision { padding: 16px 20px; border-top: 1px solid var(--line-soft); }
.decision:first-child { border-top: 0; }
.decision .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.decision h3 { font-size: 14.5px; font-weight: 600; }
.decision p { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.decision .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.decision[data-done] .acts { display: none; }

/* Charts */
.chart { position: relative; padding: 8px 20px 16px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { font-size: 12px; fill: var(--muted); }
.chart .lbl { font-size: 12.5px; font-weight: 600; fill: var(--navy); }
.chart .lbl-min { font-size: 12px; fill: var(--bad); }
.chart .lbl-line { font-size: 12px; fill: var(--ink); }
.exp-group { display: block !important; }
.exp-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--navy); }
.exp-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.exp-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-size: 13px; }
.exp-list .bar { margin-top: 0; display: block; }
.exp-list .bar > span { background: var(--navy); }
.chart-m .axis, .chart-m .lbl-min, .chart-m .lbl-line { font-size: 13.5px; }
.chart-m .lbl { font-size: 14px; }
.chart-tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -110%); }
.chart-tip[hidden] { display: none; }
.chart-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 20px 16px; }
.chart-table[hidden] { display: none; }
.chart-m { display: none; }
@media (max-width: 600px) { .chart-d { display: none; } .chart-m { display: block; } .chart { padding: 8px 12px 12px; } }
.legend svg { vertical-align: middle; margin-right: 5px; }
.chart-table { padding: 0 0 4px; }

/* Calendar */
.cal { table-layout: fixed; }
.cal th { text-align: center; padding: 8px 4px; }
.cal td { vertical-align: top; height: 104px; padding: 6px; border: 1px solid var(--line-soft); white-space: normal; }
.cal .day { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cal .today .day { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; }
.cal .out { background: #fbfbfa; }
.cal .out .day { color: #9a9898; }
.ev { display: block; margin-top: 4px; padding: 3px 6px; border-radius: 6px; font-size: 11.5px; line-height: 1.3; text-decoration: none; border-left: 3px solid var(--steel); background: var(--steel-tint); color: var(--navy); overflow-wrap: anywhere; }
.ev.compliance { border-left-color: var(--bar-warn); background: var(--warn-bg); color: var(--warn); }
.ev.committee { border-left-color: var(--navy); background: var(--navy-tint); }
.ev.payment { border-left-color: var(--bar-good); background: var(--good-bg); color: var(--good); }
.ev.company { border-left-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.ev.mine { border-left-color: var(--crimson); background: #f9e9ed; color: #8f1d37; }
.agenda { width: 116px; flex: none; }
.agenda .date { color: var(--muted); font-weight: 600; }
#activity li > .s { white-space: nowrap; }
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav h2 { min-width: 150px; text-align: center; font-size: 16px; }

/* Dialog */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(16, 32, 63, .28); color: var(--ink); }
dialog::backdrop { background: rgba(16, 32, 63, .45); }
.dlg-head { padding: 20px 22px 4px; }
.dlg-head h2 { font-size: 18px; }
.dlg-head p { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.dlg-body { padding: 14px 22px 4px; display: grid; gap: 14px; }
.dlg-foot { padding: 16px 22px 20px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 13.5px; color: var(--navy); }
.field .help { font-size: 12.5px; color: var(--muted); }
.field input[type="text"], .field input[type="date"], .field select, .field textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-control); border-radius: var(--r-control); background: #fff; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input[type="file"] { padding: 8px 0; }
.box { background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-control); padding: 12px 14px; font-size: 13.5px; }
.box dt { color: var(--muted); font-size: 12px; }
.box dd { margin: 0 0 8px; }
.box dd:last-child { margin-bottom: 0; }
.progress { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--navy); transition: width 1.2s ease; }

/* Toast */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(16, 32, 63, .3); font-size: 13.5px; }

/* Empty state */
.empty { padding: 22px 20px; color: var(--muted); text-align: center; font-size: 13.5px; }

/* Responsive */
@media (max-width: 1280px) {
  .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2-1, .g3 { grid-template-columns: minmax(0, 1fr); }
  .cov-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 859px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 0; z-index: 40; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand img { width: 84px; }
  .client { display: none; }
  .side .menu-btn { display: inline-flex; }
  .nav { display: none; flex-basis: 100%; padding-top: 10px; }
  .side.open .nav { display: block; }
  .side-foot { display: none; }
  .side.open .side-foot { display: grid; flex-basis: 100%; padding: 12px 10px 4px; }
  .main { padding: 20px 16px 32px; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { font-size: 22px; }
  .rows > li { flex-wrap: wrap; padding: 14px 16px; }
  .card-head, .card-body, .decision { padding-left: 16px; padding-right: 16px; }
  .cal td { height: 64px; padding: 4px; }
  .cal .ev { display: none; }
  .tabs { overflow: visible; }
  .tabs ul { flex-wrap: wrap; row-gap: 0; }
  .tabs a { padding: 8px 8px 10px; }
  .cal .has-ev .day::after { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); margin: 4px auto 0; }
}
@media (max-width: 520px) {
  .g4, .cov-strip { grid-template-columns: minmax(0, 1fr); }
  .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric .value { font-size: 24px; }
  .agenda { width: 88px; }
  th, td { padding-left: 10px; padding-right: 10px; }
  .rows > li:has(> .badge) { flex-wrap: nowrap; align-items: flex-start; }
  .rows > li > .badge { flex: none; }
  .g4.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .metric { padding: 14px 14px 16px; }
  .metric .value { font-size: 21px; }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .side, .head-actions, .chart-tools, .toasts, .skip, .no-print { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}
