/* ==========================================================================
   OC EFM — design system.

   Oplo's system, tuned for a tool people sit in all day: near-monochrome,
   one accent, hairlines instead of boxes, and numbers that line up. Colour
   is kept for meaning — status, and the few series a chart needs — so that
   when something is red, it is worth reading.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --rail: #f7f7f8;
  --sunken: #f5f5f7;
  --hover: rgba(0, 0, 0, .035);
  --press: rgba(0, 0, 0, .06);
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, .78);

  --ink: #1d1d1f;
  --ink-2: #4a4a4f;
  --ink-3: #6e6e73;
  --ink-4: #a1a1a6;
  --line: #e8e8ed;
  --line-2: #d2d2d7;

  --accent: #0066cc;
  --accent-hi: #0071e3;
  --accent-wash: #eaf2fc;
  --on-accent: #ffffff;

  /* Status: text steps that read on white, and brighter dots beside them. */
  --good: #1a7f37;      --good-dot: #0ca30c;   --good-wash: #edf7ef;
  --warn: #8a5a00;      --warn-dot: #fab219;   --warn-wash: #fff7e6;
  --serious: #b04a17;   --serious-dot: #ec835a; --serious-wash: #fdf1eb;
  --bad: #c42b21;       --bad-dot: #d03b3b;    --bad-wash: #fdeeed;
  --info-dot: #8e8e93;

  /* Chart series, validated as a set (dataviz reference palette, slots 1–3). */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a;
  --s1-wash: rgba(42, 120, 214, .10);
  --grid: #ececf0;

  --r: 12px;
  --r-s: 8px;
  --r-xs: 6px;
  --shadow: 0 1px 1px rgba(0, 0, 0, .03), 0 2px 10px rgba(0, 0, 0, .04);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, .14), 0 2px 8px rgba(0, 0, 0, .06);
  --ease: cubic-bezier(.28, .11, .32, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --rail-w: 244px;
  --top-h: 52px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121214; --rail: #18181b; --sunken: #1f1f23; --surface: #18181b; --glass: rgba(18, 18, 20, .78);
    --hover: rgba(255, 255, 255, .05); --press: rgba(255, 255, 255, .08);
    --ink: #f5f5f7; --ink-2: #d1d1d6; --ink-3: #a1a1a6; --ink-4: #6e6e73;
    --line: #2a2a2e; --line-2: #3a3a3f;
    --accent: #2997ff; --accent-hi: #47a6ff; --accent-wash: rgba(41, 151, 255, .14); --on-accent: #ffffff;
    --good: #4cc36b; --good-wash: rgba(12, 163, 12, .14);
    --warn: #f5b945; --warn-wash: rgba(250, 178, 25, .12);
    --serious: #f29b74; --serious-wash: rgba(236, 131, 90, .14);
    --bad: #ff6961; --bad-wash: rgba(208, 59, 59, .16);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s1-wash: rgba(57, 135, 229, .16);
    --grid: #2a2a2e;
    --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 2px 10px rgba(0, 0, 0, .25);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121214; --rail: #18181b; --sunken: #1f1f23; --surface: #18181b; --glass: rgba(18, 18, 20, .78);
  --hover: rgba(255, 255, 255, .05); --press: rgba(255, 255, 255, .08);
  --ink: #f5f5f7; --ink-2: #d1d1d6; --ink-3: #a1a1a6; --ink-4: #6e6e73;
  --line: #2a2a2e; --line-2: #3a3a3f;
  --accent: #2997ff; --accent-hi: #47a6ff; --accent-wash: rgba(41, 151, 255, .14); --on-accent: #ffffff;
  --good: #4cc36b; --good-wash: rgba(12, 163, 12, .14);
  --warn: #f5b945; --warn-wash: rgba(250, 178, 25, .12);
  --serious: #f29b74; --serious-wash: rgba(236, 131, 90, .14);
  --bad: #ff6961; --bad-wash: rgba(208, 59, 59, .16);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s1-wash: rgba(57, 135, 229, .16);
  --grid: #2a2a2e;
  --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 2px 10px rgba(0, 0, 0, .25);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4);
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.43; letter-spacing: -.012em;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-wash); }
svg { display: block; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
.muted { color: var(--ink-3); }
.faint { color: var(--ink-4); }
.neg { color: var(--bad); }
.pos { color: var(--good); }
.nowrap { white-space: nowrap; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 4px; }
.sp { flex: 1; }
.hide { display: none !important; }
.ico { width: 16px; height: 16px; flex: none; }
.ico.sm { width: 14px; height: 14px; }
.ico.lg { width: 20px; height: 20px; }

/* ------------------------------------------------------------ App frame */
.app { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; position: relative; }
/* The rail's ground runs the full height of the page, however long it is. */
.app::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail-w); background: var(--rail); border-right: 1px solid var(--line); }
.rail { z-index: 1; }
.rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--rail); border-right: 1px solid var(--line); display: flex; flex-direction: column;
  padding: 12px 10px 14px; scrollbar-width: thin;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; color: var(--ink); text-decoration: none !important; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 16px; height: 16px; }
.brand b { font: 600 15px/1.1 var(--display); letter-spacing: -.02em; display: block; }
.brand small { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }

.ws {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; margin: 0 0 12px;
  border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ws:hover { border-color: var(--line-2); }
.ws-dot { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 600 10px/1 var(--font); background: var(--sunken); color: var(--ink-2); flex: none; }
.ws b { font-size: 13px; font-weight: 600; display: block; }
.ws small { font-size: 11.5px; color: var(--ink-3); display: block; }

.nav-group { margin: 10px 0 2px; }
.nav-label { font-size: 11px; font-weight: 600; color: var(--ink-4); padding: 6px 10px 4px; letter-spacing: .01em; }
.nav a {
  display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; border-radius: 7px;
  color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 450; position: relative;
}
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 560; box-shadow: var(--shadow); }
.nav a[aria-current="page"] .ico { color: var(--accent); }
.nav a .ico { color: var(--ink-3); }
.nav .badge { margin-left: auto; }
.rail-foot { margin-top: auto; padding: 14px 8px 0; font-size: 11.5px; color: var(--ink-4); line-height: 1.45; }
.rail-foot a { color: var(--ink-3); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); min-width: 0; }
.crumbs b { color: var(--ink); font-weight: 600; }
.crumbs .sep { color: var(--ink-4); }
.search {
  display: flex; align-items: center; gap: 8px; height: 32px; width: min(420px, 38vw); padding: 0 10px; margin-left: auto;
  border-radius: var(--r-s); background: var(--sunken); color: var(--ink-3); font-size: 13px; border: 1px solid transparent;
}
.search:hover { border-color: var(--line-2); }
.search span { flex: 1; text-align: left; }
.search .kbd { flex: none; }
.kbd { font: 500 11px/1 var(--font); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 5px; background: var(--surface); }
.top-tools { display: flex; align-items: center; gap: 6px; }
.sandbox { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--warn-wash); color: var(--warn); white-space: nowrap; }
.sandbox i { width: 6px; height: 6px; border-radius: 50%; background: var(--warn-dot); }
.iconbtn { width: 32px; height: 32px; border-radius: var(--r-s); display: grid; place-items: center; color: var(--ink-2); position: relative; }
.iconbtn:hover { background: var(--hover); color: var(--ink); }
.iconbtn .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad-dot); box-shadow: 0 0 0 2px var(--bg); }
.me { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 4px; border-radius: 999px; }
.me:hover { background: var(--hover); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--font); color: #fff; flex: none; background: #6e6e73; }
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; }
.me b { font-size: 12.5px; font-weight: 600; display: block; line-height: 1.1; }
.me small { font-size: 11px; color: var(--ink-3); display: block; line-height: 1.1; }

.page { padding: 28px 32px 64px; max-width: 1480px; width: 100%; margin: 0 auto; }
.page.wide { max-width: none; }
.ph { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ph h1 { font: 600 28px/1.15 var(--display); letter-spacing: -.022em; }
.ph p { color: var(--ink-3); margin-top: 4px; font-size: 14px; }
.ph .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.greet h1 { font-size: 30px; }

/* ------------------------------------------------------------ Controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-s);
  font-size: 13px; font-weight: 550; white-space: nowrap; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  transition: background .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { background: var(--sunken); text-decoration: none; }
.btn:active { background: var(--press); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-wash); }
.btn.danger { color: var(--bad); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.sm { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn.lg { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn .ico { width: 15px; height: 15px; }
.gate-why { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--ink-3); margin-top: 6px; max-width: 420px; }
.gate-why .ico { width: 13px; height: 13px; margin-top: 2px; color: var(--ink-4); }

.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--sunken); gap: 2px; }
.seg button { height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.input, select.input, textarea.input {
  height: 32px; padding: 0 10px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; min-width: 0;
}
textarea.input { height: auto; padding: 8px 10px; resize: vertical; }
select.input { padding-right: 28px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center; background-size: 16px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.input.num { text-align: right; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chipf { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); background: var(--surface); }
.chipf:hover { border-color: var(--ink-4); }
.chipf[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chipf .c { font-size: 11px; color: var(--ink-4); }
.chipf[aria-pressed="true"] .c { color: var(--ink-4); }

/* ---------------------------------------------------------- Status & tags */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.st i { width: 7px; height: 7px; border-radius: 50%; background: var(--info-dot); flex: none; }
.st.good i { background: var(--good-dot); } .st.good { color: var(--good); }
.st.warn i { background: var(--warn-dot); } .st.warn { color: var(--warn); }
.st.serious i { background: var(--serious-dot); } .st.serious { color: var(--serious); }
.st.bad i { background: var(--bad-dot); } .st.bad { color: var(--bad); }
.st.accent i { background: var(--accent); } .st.accent { color: var(--accent); }
.st.plain { color: var(--ink-2); }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 500; background: var(--sunken); color: var(--ink-2); white-space: nowrap; }
.tag.good { background: var(--good-wash); color: var(--good); }
.tag.warn { background: var(--warn-wash); color: var(--warn); }
.tag.serious { background: var(--serious-wash); color: var(--serious); }
.tag.bad { background: var(--bad-wash); color: var(--bad); }
.tag.accent { background: var(--accent-wash); color: var(--accent); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sunken); color: var(--ink-2); font: 600 11px/18px var(--font); text-align: center; }
.badge.hot { background: var(--bad-dot); color: #fff; }
.nav a[aria-current="page"] .badge { background: var(--sunken); }
.nav a[aria-current="page"] .badge.hot { background: var(--bad-dot); color: #fff; }
.sev { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.sev svg { width: 13px; height: 13px; }
.sev.critical { background: var(--bad-wash); color: var(--bad); }
.sev.serious { background: var(--serious-wash); color: var(--serious); }
.sev.attention { background: var(--warn-wash); color: var(--warn); }
.sev.info { background: var(--sunken); color: var(--ink-3); }
.lock { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); }

/* ------------------------------------------------------------------ Cards */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c9 { grid-column: span 9; } .c12 { grid-column: span 12; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column; }
.card > .card-b { flex: 1 1 auto; }
.card.flat { box-shadow: none; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px 0; min-height: 44px; }
.card-h h2, .card-h h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -.012em; }
.card-h .meta { font-size: 12px; color: var(--ink-3); }
.card-h .tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.card-b { padding: 14px 18px 18px; }
.card-b.flush { padding: 8px 0 6px; }
.card-f { border-top: 1px solid var(--line); padding: 10px 18px; font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.section-t { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
.note { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* KPI strip: one card, tiles split by hairlines. */
.kpis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 16px; }
.kpi { padding: 16px 18px 14px; min-width: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; position: relative; text-align: left; }
.kpi:first-child { border-left: 0; }
button.kpi:hover { background: var(--hover); }
button.kpi:first-child:hover { border-radius: var(--r) 0 0 var(--r); }
button.kpi:last-child:hover { border-radius: 0 var(--r) var(--r) 0; }
.kpi .l { font-size: 12.5px; color: var(--ink-3); font-weight: 500; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .l > span { overflow: hidden; text-overflow: ellipsis; }
.kpi .v { font: 600 26px/1.2 var(--display); letter-spacing: -.02em; margin-top: 4px; white-space: nowrap; }
.kpi .d { font-size: 12px; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-height: 17px; }
.kpi .spark { margin-top: 8px; height: 26px; }
.delta { font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--good); } .delta.down { color: var(--bad); } .delta.flat { color: var(--ink-3); }

/* ------------------------------------------------------------------ Tables */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th {
  position: sticky; top: 0; z-index: 1; background: var(--surface); text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-3);
  padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl th.num, .tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl th button { font-weight: inherit; color: inherit; display: inline-flex; align-items: center; gap: 3px; }
.tbl th button:hover { color: var(--ink); }
.tbl td { padding: 0 12px; height: 38px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child, .tbl th:first-child { padding-left: 18px; }
.tbl td:last-child, .tbl th:last-child { padding-right: 18px; }
.tbl tr.link { cursor: pointer; }
.tbl tr.link:hover td { background: var(--hover); }
.tbl tr.link:focus-visible { outline: none; }
.tbl tr.link:focus-visible td { background: var(--accent-wash); }
.tbl tr.sel td { background: var(--accent-wash); }
.tbl td .sub { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.tbl td.two { padding-top: 7px; padding-bottom: 7px; line-height: 1.3; }
.tbl tfoot td { font-weight: 600; border-top: 1px solid var(--line-2); border-bottom: 0; }
.tbl.dense td { height: 32px; }
.tbl .chk { width: 36px; }
.tbl input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); }
.tbl .amt-link { color: inherit; border-bottom: 1px dotted var(--ink-4); cursor: pointer; }
.tbl .amt-link:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }

/* Financial statements. */
.fs { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fs th { font-size: 12px; font-weight: 500; color: var(--ink-3); text-align: right; padding: 8px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.fs th:first-child { text-align: left; padding-left: 18px; }
.fs th small { display: block; font-weight: 400; color: var(--ink-4); }
.fs td { padding: 0 14px; height: 32px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fs td:first-child { text-align: left; padding-left: 18px; white-space: normal; }
.fs tr.head td { font-weight: 600; height: 40px; padding-top: 10px; color: var(--ink); }
.fs tr.line td:first-child { padding-left: 34px; color: var(--ink-2); }
.fs tr.total td { font-weight: 600; border-top: 1px solid var(--line); }
.fs tr.grand td { font-weight: 700; border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink-4); height: 38px; }
.fs tr.ratio td { color: var(--ink-3); font-size: 12.5px; height: 26px; }
.fs tr.ic td { color: var(--ink-3); font-style: italic; }
.fs td.drill { cursor: pointer; }
.fs td.drill:hover { color: var(--accent); background: var(--accent-wash); }
.fs td.sepcol, .fs th.sepcol { border-left: 1px solid var(--line); }

/* -------------------------------------------------------------- Attention */
.att { display: flex; flex-direction: column; }
.att-i { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); text-align: left; width: 100%; }
.att-i:first-child { border-top: 0; }
.att-i:hover { background: var(--hover); }
.att-i .t { font-size: 13.5px; font-weight: 550; color: var(--ink); line-height: 1.35; }
.att-i .x { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.att.clamp .att-i .x { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.att.clamp .att-i .t { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.att-i .a { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; align-self: center; }
.att-i .amt { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.area { font-size: 11px; color: var(--ink-4); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 2px; }

/* ----------------------------------------------------------------- Meters */
.meter { height: 6px; border-radius: 3px; background: var(--sunken); position: relative; overflow: hidden; }
.meter > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--s1); }
.meter.warn > i { background: var(--warn-dot); }
.meter.bad > i { background: var(--bad-dot); }
.meter .mark { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink-3); border-radius: 1px; }
.bva { display: grid; grid-template-columns: 150px minmax(0, 1fr) 92px 52px; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.bva:first-child { border-top: 0; }
.bva .nm { color: var(--ink); font-weight: 500; }
.bva .am { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.bva .pc { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
button.bva { width: 100%; text-align: left; }
button.bva:hover .nm { color: var(--accent); }

/* ------------------------------------------------------------------ Charts */
.chart { position: relative; width: 100%; }
.chart svg { overflow: visible; }
.chart .axis text, .chart text.axis { font: 11px var(--font); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart .gridl { stroke: var(--grid); stroke-width: 1; }
.chart .base { stroke: var(--line-2); stroke-width: 1; }
.chart .xhair { stroke: var(--ink-4); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.line { height: 2px; width: 14px; border-radius: 1px; }
.legend i.dash { height: 0; width: 14px; border-top: 2px dashed; background: none !important; }
.legend i.hatch { background: repeating-linear-gradient(135deg, var(--s1) 0 2px, transparent 2px 5px) !important; box-shadow: inset 0 0 0 1px var(--s1); }
.tip {
  position: absolute; z-index: 5; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 9px 11px; font-size: 12px; min-width: 150px; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.tip.on { opacity: 1; transform: none; }
.tip .th { color: var(--ink-3); margin-bottom: 5px; font-weight: 500; }
.tip .tr { display: flex; align-items: center; gap: 8px; line-height: 1.7; }
.tip .tr b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.tip .tr span { color: var(--ink-3); }
.tip .tr i { width: 10px; height: 2px; border-radius: 1px; flex: none; }
.ring { position: relative; flex: none; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 17px/1 var(--display); letter-spacing: -.02em; }

/* ------------------------------------------------------------------ Drawer */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .18); z-index: 60; opacity: 0; transition: opacity .25s var(--ease); }
.scrim.on { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 92vw); z-index: 61; background: var(--surface); box-shadow: var(--shadow-lg);
  border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(24px); opacity: 0;
  transition: transform .32s var(--ease-out), opacity .2s var(--ease);
}
.drawer.on { transform: none; opacity: 1; }
.drawer:focus, .drawer:focus-visible, main.page:focus, main.page:focus-visible { outline: none; }
.drawer.wide { width: min(860px, 94vw); }
.dr-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); min-height: 52px; }
.dr-crumbs { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-3); min-width: 0; flex-wrap: nowrap; overflow: hidden; }
.dr-crumbs button { color: var(--ink-3); padding: 2px 4px; border-radius: 5px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-crumbs button:hover { background: var(--hover); color: var(--ink); }
.dr-crumbs b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-b { flex: 1; overflow-y: auto; padding: 20px 22px 28px; overscroll-behavior: contain; }
.dr-f { border-top: 1px solid var(--line); padding: 12px 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--surface); }
.dr-f .sp { flex: 1; }
.doc-h { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.doc-h .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--sunken); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.doc-h h2 { font: 600 20px/1.2 var(--display); letter-spacing: -.02em; }
.doc-h .sub { color: var(--ink-3); font-size: 13px; margin-top: 3px; }
.doc-h .amount { margin-left: auto; text-align: right; }
.doc-h .amount b { font: 600 22px/1.2 var(--display); letter-spacing: -.02em; display: block; white-space: nowrap; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; padding: 14px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.kv div { min-width: 0; }
.kv dt { font-size: 11.5px; color: var(--ink-3); font-weight: 500; margin-bottom: 2px; }
.kv dd { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.dr-sec { margin-top: 22px; }
.dr-sec > h3 { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.dr-sec .tbl td:first-child, .dr-sec .tbl th:first-child { padding-left: 0; }
.dr-sec .tbl td:last-child, .dr-sec .tbl th:last-child { padding-right: 0; }
.flag { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--serious-wash); margin-bottom: 10px; }
.flag.critical { background: var(--bad-wash); }
.flag.done { background: var(--sunken); }
.flag .t { font-weight: 600; font-size: 13px; }
.flag .x { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.45; }
.flag .rule { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.flag .acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* Journal lines: the double entry, visibly balanced. */
.je { width: 100%; border-collapse: collapse; font-size: 13px; }
.je th { font-size: 11.5px; font-weight: 500; color: var(--ink-3); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.je th.num, .je td.num { text-align: right; font-variant-numeric: tabular-nums; width: 118px; }
.je td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.je td:first-child, .je th:first-child { padding-left: 0; }
.je td:last-child, .je th:last-child { padding-right: 0; }
.je td.cr-in { padding-left: 26px; }
.je .acct { font-weight: 550; }
.je .acct small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.je tfoot td { border-bottom: 0; font-weight: 600; padding-top: 10px; }
.balanced { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--good); }
.balanced.no { color: var(--bad); }
.dims { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

/* Timeline (history, audit). */
.tl { position: relative; }
.tl-i { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding-bottom: 14px; position: relative; }
.tl-i::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 1px; background: var(--line); }
.tl-i:last-child::before { display: none; }
.tl-i .t { font-size: 13px; line-height: 1.4; }
.tl-i .m { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.tl-i .h { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); margin-top: 2px; letter-spacing: 0; }

/* ------------------------------------------------------------------ Modal */
.modal-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .28); z-index: 80; display: grid; place-items: start center; padding-top: 12vh; opacity: 0; transition: opacity .18s; }
.modal-scrim.on { opacity: 1; }
.modal { width: min(560px, 92vw); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); transform: translateY(8px) scale(.99); transition: transform .25s var(--ease-out); max-height: 76vh; display: flex; flex-direction: column; }
.modal-scrim.on .modal { transform: none; }
.modal.wide { width: min(760px, 94vw); }
.modal-h { padding: 18px 20px 6px; }
.modal-h h2 { font: 600 17px/1.3 var(--display); letter-spacing: -.015em; }
.modal-h p { font-size: 13px; color: var(--ink-3); margin-top: 4px; line-height: 1.45; }
.modal-b { padding: 12px 20px; overflow-y: auto; }
.modal-f { padding: 12px 20px 16px; display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.modal-f .sp { flex: 1; }

/* Command palette. */
.pal { width: min(680px, 94vw); padding: 0; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pal-in input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; }
.pal-res { max-height: 56vh; overflow-y: auto; padding: 6px; }
.pal-g { font-size: 11px; font-weight: 600; color: var(--ink-4); padding: 10px 10px 4px; }
.pal-i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; width: 100%; text-align: left; font-size: 13.5px; }
.pal-i .ico { color: var(--ink-3); }
.pal-i small { margin-left: auto; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.pal-i[aria-selected="true"] { background: var(--accent-wash); }
.pal-i[aria-selected="true"] .ico { color: var(--accent); }
.answer { margin: 6px; padding: 14px 16px; border-radius: 10px; background: var(--sunken); font-size: 13.5px; line-height: 1.5; }
.answer h4 { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.answer ul { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.answer li { display: flex; gap: 10px; font-variant-numeric: tabular-nums; }
.answer li span:first-child { flex: 1; color: var(--ink-2); }
.answer .src { font-size: 11.5px; color: var(--ink-3); margin-top: 10px; }
.pal-foot { border-top: 1px solid var(--line); padding: 8px 14px; font-size: 11.5px; color: var(--ink-3); display: flex; gap: 14px; }

/* ------------------------------------------------------------------ Toasts */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 12px; background: rgba(29, 29, 31, .94); color: #f5f5f7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 13px; max-width: min(640px, 92vw); transform: translateY(8px); opacity: 0; transition: transform .28s var(--ease-out), opacity .2s;
}
.toast.on { transform: none; opacity: 1; }
.toast .ico { color: #4cc36b; }
.toast.err .ico { color: #ff6961; }
.toast button { color: #6cb4ff; font-weight: 600; font-size: 12.5px; }
.toast small { display: block; color: #a1a1a6; font-size: 11.5px; margin-top: 1px; }

/* ------------------------------------------------------------- Menus */
.menu { position: fixed; z-index: 70; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; transform: translateY(-4px); transition: opacity .12s, transform .15s var(--ease-out); }
.menu.on { opacity: 1; transform: none; }
.menu-l { font-size: 11px; font-weight: 600; color: var(--ink-4); padding: 8px 10px 4px; }
.menu-i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 7px; text-align: left; font-size: 13px; }
.menu-i:hover, .menu-i:focus-visible { background: var(--hover); outline: none; }
.menu-i .ico { color: var(--ink-3); }
.menu-i small { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.menu-i .ck { margin-left: auto; color: var(--accent); }
.menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }

/* ------------------------------------------------------------ Empty & gate */
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty .ico { width: 28px; height: 28px; margin: 0 auto 10px; color: var(--ink-4); }
.empty b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }

.gate { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.gate-l { padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.gate-l .brand { padding: 0; }
.gate h1 { font: 600 clamp(34px, 3.6vw, 52px)/1.06 var(--display); letter-spacing: -.03em; max-width: 12em; }
.gate h1 span { color: var(--ink-4); }
.gate .lede { font-size: 17px; line-height: 1.5; color: var(--ink-3); max-width: 34em; }
.gate .go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gate .fine { font-size: 12.5px; color: var(--ink-4); max-width: 36em; line-height: 1.5; }
.gate .err { color: var(--bad); font-size: 13px; min-height: 18px; }
.gate-r { background: var(--rail); border-left: 1px solid var(--line); padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 12px; overflow: hidden; }
.layer { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.layer .n { width: 26px; height: 26px; border-radius: 8px; background: var(--sunken); display: grid; place-items: center; font: 600 12px/1 var(--font); color: var(--ink-2); }
.layer b { font-size: 14px; font-weight: 600; display: block; }
.layer p { font-size: 13px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }
.flow { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); line-height: 1.8; margin-top: 8px; letter-spacing: 0; }
.flow b { color: var(--ink); font-weight: 500; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 100; transition: opacity .3s; }
.boot .brand-mark { width: 40px; height: 40px; border-radius: 12px; animation: breathe 1.6s var(--ease) infinite; }
.boot .brand-mark svg { width: 22px; height: 22px; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.96); } }

/* Search field with its icon inside. */
.searchf { position: relative; display: inline-flex; align-items: center; width: 260px; }
.searchf .ico { position: absolute; left: 10px; color: var(--ink-4); pointer-events: none; }
.searchf .input { width: 100%; padding-left: 30px; }
.searchf input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* A page arriving: a short rise and fade, never a slide across the screen. */
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
main.page.arrive > * { animation: arrive .38s var(--ease-out) both; }

/* A toolbar row above a table, inside a card. */
.bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bar .sp { flex: 1; }
.bulk { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--accent-wash); border-bottom: 1px solid var(--line); font-size: 13px; }
.bulk b { color: var(--accent); }
.subhead td { background: var(--sunken) !important; font-size: 12px; font-weight: 600; color: var(--ink-2); height: 30px !important; }
.card-b.flush .tbl td:first-child, .card-b.flush .tbl th:first-child { padding-left: 18px; }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--warn-wash); color: var(--warn); font-size: 13px; margin-bottom: 16px; }
.banner.info { background: var(--sunken); color: var(--ink-2); }
.banner.good { background: var(--good-wash); color: var(--good); }
.stat-row { display: flex; gap: 28px; flex-wrap: wrap; }
.stat-row > div { min-width: 0; }
.stat-row .l { font-size: 12px; color: var(--ink-3); }
.stat-row .v { font: 600 20px/1.3 var(--display); letter-spacing: -.02em; white-space: nowrap; }

/* Home's first-session guide. */
.tour { margin-bottom: 16px; }
.tour-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tour-step { display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 12px; border-radius: 10px; background: var(--sunken); border: 1px solid transparent; transition: border-color .15s var(--ease), background .15s var(--ease); }
.tour-step:hover { border-color: var(--line-2); background: var(--surface); }
.tour-step b { display: block; font-size: 13px; font-weight: 600; }
.tour-step small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.35; }
.tour-step.done b { color: var(--ink-3); }
.tour-n { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.tour-step .check { margin-top: 1px; }

/* ------------------------------------------------------------- Workspace */
.entity-card { display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 14px 16px; }
.entity-card:hover { border-color: var(--line-2); background: var(--hover); }
.entity-card .row { width: 100%; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.pipeline button { padding: 12px 16px; text-align: left; border-left: 1px solid var(--line); position: relative; }
.pipeline button:first-child { border-left: 0; }
.pipeline button:hover { background: var(--hover); }
.pipeline button[aria-pressed="true"] { background: var(--accent-wash); }
.pipeline button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.pipeline .l { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.pipeline .v { font: 600 20px/1.3 var(--display); letter-spacing: -.02em; }
.pipeline .s { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: transparent; }
.check.done { background: var(--good-dot); border-color: var(--good-dot); color: #fff; }
.check.prog { border-color: var(--accent); border-style: dashed; }
.check.blocked { border-color: var(--ink-4); background: var(--sunken); }
.check svg { width: 12px; height: 12px; }

@media (max-width: 1180px) {
  .tour-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c3, .c4, .c5 { grid-column: span 6; }
  .c7, .c8, .c9 { grid-column: span 12; }
  .kpis { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi:nth-child(3n+1) { border-left: 0; }
  .kpi { border-top: 1px solid var(--line); }
  .kpi:nth-child(-n+3) { border-top: 0; }
}
@media (max-width: 900px) {
  :root { --rail-w: 0px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .c6 { grid-column: span 12; }
  .page { padding: 20px 16px 48px; }
  .top { padding: 0 16px; }
  .search { width: auto; flex: 1; }
  .sandbox, .me div { display: none; }
  .gate { grid-template-columns: 1fr; }
  .gate-r { display: none; }
  .gate-l { padding: 40px 20px; }
  .split { grid-template-columns: 1fr; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
@media print {
  .rail, .top, .actions, .filters { display: none !important; }
  .app { display: block; }
  .card { box-shadow: none; }
}
