/* RPV house UI — the cool skin, first built on Partners Desk (MD, 2026-09-15).
   This file is the reference. Every MD-owned desk copies it (or its rules) into
   its own stylesheet; each app is its own container, so nothing mounts it.
   Class names are the house vocabulary: .top .brand .mark .tabs .btn .card
   .stats .stat .chip .banner .toast .modal .tbl .spin .bar .ic .rise.
   Rules that are measured, not taste: text ink is 4.5:1+ on every surface,
   input borders are 3:1+ on white, a background refresh never replays the
   entrance (body.quiet), motion is off under prefers-reduced-motion, tables
   keep their header in view, and every page prints. */
:root {
  /* structural blues carry the page; Terracotta is the ONE primary action per page */
  --navy: #0D1B2A; --navy-2: #1C3A52; --steel: #2E5F80; --horizon: #4A90B8; --sand: #BFD6E8;
  --cta: #C4622D; --cta-hover: #A8521F;
  /* the pop: Ember, the brand's own secondary accent, one warm colour beside the navy, for the help box, live markers, a highlight — never body text (MD, 2026-09-15) */
  --pop: #E07B45; --pop-hover: #C4622D; --pop-bg: #FBECE2; --pop-soft: #F0C89A;
  /* shade steps of the navy, for depth without new hues: 50 is a tint for panels, 900 the ink */
  --navy-50: #F1F5F9; --navy-100: #E3EAF1; --navy-200: #C9D6E2; --navy-300: #9FB4C7; --navy-500: #4A6A85; --navy-700: #1C3A52; --navy-900: #0D1B2A;
  --bg: #F6F8FB; --card: #FFFFFF; --surface-2: #EEF2F5; --surface-hover: #E2E9EF;
  --ink: #1F2D3D; --ink-2: #566B7D; --ink-3: #5C7284; --ink-4: #8FA3B1; /* ink-4 is decoration only, never text */
  --line: #E1E8EE; --line-2: #D0DBE3; --line-input: #7F93A3;
  --good: #2D7A4F; --good-bg: #D4EDDF; --bad: #B83232; --bad-bg: #F5D4D4;
  --warn: #8B5A1A; --warn-bg: #F5E6D0; --info: #2E5F80; --info-bg: #D4E5F5;
  --radius: 14px; --radius-sm: 8px; --pill: 999px;
  --shadow-md: 0 2px 8px rgba(13,27,42,.06); --shadow-pop: 0 12px 36px rgba(13,27,42,.16); /* shadows are for things that float, nothing else */
  --ease: 160ms cubic-bezier(.32,.72,0,1);
  --fs-app: 15px; --fs-table: 13.5px; --fs-small: 12.5px; --fs-label: 12px; --fs-chip: 11px;
}
/* Geist (Vercel, OFL 1.1), self-hosted from fonts/ — no third-party request, nothing a CSP can block.
   One variable file each for sans and mono covers every weight; swap keeps first paint on the system stack. */
@font-face { font-family: 'Geist'; src: url('fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font: var(--fs-app)/1.5 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background-color: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--steel); }
.hidden { display: none !important; }
code, kbd, pre, .mono { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .93em; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-small); }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.measure { max-width: 68ch; }

/* header: Midnight, fine hatch, Horizon rule; tabs live in it */
.top { background: var(--navy); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 10px); color: #fff; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: .01em; }
.brand p { margin: 0; font-size: var(--fs-small); color: rgba(255,255,255,.7); }
.mark { background: var(--steel); color: #fff; font-weight: 600; font-size: 12px; border-radius: 4px; padding: 3px 10px; letter-spacing: .06em; }
.mark .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--horizon); margin-left: 3px; vertical-align: 2px; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: var(--fs-label); border-radius: var(--pill); padding: 3px 10px; background: rgba(255,255,255,.12); color: #fff; }
.pill.ok { background: rgba(45,122,79,.55); } .pill.bad { background: rgba(184,50,50,.65); } .pill.off { background: rgba(255,255,255,.12); color: rgba(255,255,255,.6); }
.asof { margin-left: auto; font-size: var(--fs-label); color: rgba(255,255,255,.6); }

.tabs { display: flex; gap: 4px; padding: 10px 28px 0; background: var(--navy); border-bottom: 2px solid var(--horizon); overflow-x: auto; scrollbar-width: none; scroll-padding: 0 18px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { font: inherit; font-size: 13.5px; font-weight: 500; border: 0; background: transparent; color: rgba(255,255,255,.72); padding: 11px 16px; border-radius: 6px 6px 0 0; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; flex: none; }
.tabs button:hover { color: #fff; }
.tabs button.on { background: var(--bg); color: var(--ink); border-bottom-color: var(--bg); }
.tabs .n { display: inline-block; min-width: 18px; text-align: center; font-size: var(--fs-chip); background: rgba(255,255,255,.18); border-radius: var(--pill); padding: 0 6px; margin-left: 4px; }
.tabs button.on .n { background: var(--surface-hover); color: var(--ink-2); }
.tabs .n.warn:not(:empty) { background: var(--horizon); color: #fff; }
.tabs button .ic { margin-right: 6px; width: 15px; height: 15px; opacity: .85; }
.tabs button.on .ic { color: var(--steel); opacity: 1; }
main { padding: 32px 32px 96px; max-width: 1240px; margin: 0 auto; }

/* buttons: outlined Slate; .primary is Terracotta and appears ONCE per page */
.btn { font: inherit; font-size: 13.5px; font-weight: 500; border: 1.5px solid var(--navy-2); background: transparent; color: var(--navy-2); border-radius: 6px; padding: 7px 14px; cursor: pointer; transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease); }
.btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .tabs button:focus-visible { outline: 2px solid var(--horizon); outline-offset: 2px; }
.btn.primary { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn.primary:hover { background: var(--cta-hover); box-shadow: 0 3px 10px rgba(196,98,45,.25); }
.btn.solid { background: var(--navy-2); color: #fff; }
.btn.solid:hover { background: var(--steel); border-color: var(--steel); }
.btn.good { color: var(--good); border-color: var(--good); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); } .btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.sm { font-size: var(--fs-small); padding: 4px 10px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
input, select, textarea { font: inherit; font-size: 14px; border: 1px solid var(--line-input); background: #fff; border-radius: 6px; padding: 8px 10px; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border: 1.5px solid var(--steel); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
label { display: block; font-size: var(--fs-small); color: var(--ink-2); margin-bottom: 4px; }
.field { margin-bottom: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 160px; }
.row.tight > * { flex: 0 0 auto; }

/* cards and stat tiles: hairlines, not shadows; a state is one variable (--c) */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; margin-bottom: 24px; transition: border-color var(--ease), box-shadow var(--ease); }
.card:hover { box-shadow: var(--shadow-md); }
.card h2 { font-size: 17px; font-weight: 600; margin: 0 0 16px; letter-spacing: -.01em; }
.card h3 { font-size: 15px; font-weight: 600; margin: 22px 0 10px; }
.card h2 .ic, .card h3 .ic { color: var(--horizon); margin-right: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { --c: var(--line-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; border-top: 3px solid var(--c); transition: transform var(--ease), border-color var(--ease); }
.stat:hover { transform: translateY(-2px); border-top-color: var(--horizon); }
.stat .k { font-size: var(--fs-label); color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.stat .v { font-size: 22px; font-weight: 500; margin-top: 2px; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.stat .s { font-size: var(--fs-label); color: var(--ink-3); }
.stat.due { --c: var(--steel); } .stat.paid, .stat.good { --c: var(--good); } .stat.bad { --c: var(--bad); } .stat.warn { --c: var(--warn); } .stat.held { --c: var(--horizon); background: var(--info-bg); }
.stats.band { display: flex; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); } /* one ruled instrument, when the numbers belong together */
.stats.band .stat { flex: 1; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; } .stats.band .stat:last-child { border-right: 0; }

/* tables: header stays in view */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-table); font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: var(--fs-label); color: var(--ink-2); font-weight: 500; padding: 10px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; position: sticky; top: 0; background: var(--card); z-index: 1; }
td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--surface-2); }
tr.stale td, tr.dim td { color: var(--ink-3); } /* inactive rows are dimmed, never hidden */
.sub { font-size: var(--fs-label); color: var(--ink-3); }

/* chips: small uppercase tags; .chip.on is a pressed filter */
/* ⓘ — fewer words on the page (MD, 2026-09-15). A line shows the fact; the reason, the rule, the caveat go behind
   an info icon and appear on hover or focus. <span class="info" tabindex="0" data-tip="…"><svg class="ic">…</svg></span>
   Keyboard reaches it (tabindex), a phone taps it (focus), a screen reader reads aria-label. Never hide the ONLY copy
   of something the MD must act on; the tip is for "why" and "how", not for the figure itself. */
.info { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; color: var(--ink-3); cursor: help; vertical-align: -3px; outline: none; }
.info .ic { width: 14px; height: 14px; }
.info:hover, .info:focus-visible { color: var(--steel); }
.info:focus-visible { box-shadow: 0 0 0 2px var(--sand); }
.info::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); width: max-content; max-width: min(300px, 80vw); padding: 8px 11px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; font-size: var(--fs-small); font-weight: 400; line-height: 1.45; letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transition: opacity var(--ease), transform var(--ease); z-index: 20; }
.info::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--navy); opacity: 0; transition: opacity var(--ease); }
.info:hover::after, .info:focus::after, .info:hover::before, .info:focus::before { opacity: 1; }
.info:hover::after, .info:focus::after { transform: translate(-50%, 0); }
.info.left::after { left: 0; transform: translate(0, 4px); } .info.left:hover::after, .info.left:focus::after { transform: none; } .info.left::before { left: 8px; }
.info.right::after { left: auto; right: 0; transform: translate(0, 4px); } .info.right:hover::after, .info.right:focus::after { transform: none; } .info.right::before { left: auto; right: 3px; }
.info.below::after { bottom: auto; top: calc(100% + 8px); } .info.below::before { bottom: auto; top: calc(100% + 3px); border-top-color: transparent; border-bottom-color: var(--navy); }
.on-dark .info, .top .info, .hero .info { color: rgba(255,255,255,.6); } .on-dark .info:hover, .top .info:hover, .hero .info:hover { color: #fff; }
.on-dark .info::after, .top .info::after, .hero .info::after { background: #fff; color: var(--ink); } .on-dark .info::before, .top .info::before, .hero .info::before { border-top-color: #fff; }

/* graphics — the page gets a face or a shape, not another sentence. .rings paints two concentric arcs in the pop colour
   off one corner of a dark panel (hero, header card); .face is a gradient avatar with initials, or an <img> when a
   photo is on file (Discord avatar), always round; .art-panel is a tinted panel for a heading + illustration slot. */
.rings { position: relative; overflow: hidden; }
.rings::before, .rings::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.rings::before { width: 420px; height: 420px; right: -140px; top: -180px; background: radial-gradient(circle, transparent 54%, var(--pop) 54.5%, var(--pop) 62%, transparent 62.5%); opacity: .55; }
.rings::after { width: 260px; height: 260px; right: -60px; top: -100px; background: radial-gradient(circle, var(--pop) 0 46%, transparent 47%); opacity: .35; }
.rings > * { position: relative; z-index: 1; }
.rings.soft::before { opacity: .22; } .rings.soft::after { opacity: .14; }
.face { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 16px; letter-spacing: .02em; background: linear-gradient(135deg, var(--navy-700), var(--pop)); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line-2); overflow: hidden; }
.face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face.lg { width: 72px; height: 72px; font-size: 24px; } .face.sm { width: 32px; height: 32px; font-size: 12px; box-shadow: none; }
.face.a { background: linear-gradient(135deg, #1C3A52, #4A90B8); } .face.b { background: linear-gradient(135deg, #2E5F80, #E07B45); } .face.c { background: linear-gradient(135deg, #E07B45, #F0C89A); } .face.d { background: linear-gradient(135deg, #0D1B2A, #2E5F80); }
.faces { display: flex; } .faces .face { margin-left: -10px; box-shadow: 0 0 0 2px #fff; } .faces .face:first-child { margin-left: 0; }
.art-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--pop-bg); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 24px; }
.art-panel.navy { background: var(--navy-50); }
.art-panel h2 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 6px; color: var(--navy-900); } .art-panel p { margin: 0; color: var(--ink-2); }
.art-panel .art { flex: 0 0 auto; width: 160px; height: 120px; }
.pop { color: var(--pop); } .bg-pop { background: var(--pop-bg); }
.btn.pop { background: var(--pop); border-color: var(--pop); color: #fff; } .btn.pop:hover { background: var(--pop-hover); border-color: var(--pop-hover); }
.chip.pop { background: var(--pop-bg); color: var(--pop-hover); }
.chip { display: inline-block; font-size: var(--fs-chip); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; border-radius: 4px; padding: 2px 8px; white-space: nowrap; background: var(--surface-hover); color: var(--ink-2); }
.chip.good, .chip.paid, .chip.approved { background: var(--good-bg); color: var(--good); }
.chip.info, .chip.due, .chip.accruing { background: var(--info-bg); color: var(--steel); }
.chip.warn, .chip.pending { background: var(--warn-bg); color: var(--warn); }
.chip.bad, .chip.void, .chip.rejected { background: var(--bad-bg); color: var(--bad); }
.chip.src { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
button.chip { cursor: pointer; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: var(--fs-chip); }
button.chip.on { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.chip .ic { width: 12px; height: 12px; vertical-align: -2px; margin-right: 2px; }

/* the reasons: a banner says what, a gate says why and whether it can be waived */
.banner { background: var(--info-bg); border: 1px solid var(--line-2); border-left: 3px solid var(--steel); color: var(--navy-2); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; }
.banner.bad { background: var(--bad-bg); border-left-color: var(--bad); color: var(--bad); }
.banner.warn { background: var(--warn-bg); border-left-color: var(--warn); color: var(--warn); }
.gate { border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: var(--radius-sm); padding: 8px 12px; margin: 6px 0; font-size: var(--fs-table); background: var(--card); }
.gate.ok { border-left-color: var(--good); } .gate.failed { border-left-color: var(--bad); } .gate.waived { border-left-color: var(--warn); color: var(--ink-3); }
.verdict { font-size: 28px; font-weight: 500; letter-spacing: -.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.empty { color: var(--ink-3); padding: 18px 4px; }
.empty.illo { display: flex; gap: 14px; align-items: center; padding: 22px 8px; }

/* modal & toast */
.modal { position: fixed; inset: 0; background: rgba(13,27,42,.45); display: flex; align-items: flex-start; justify-content: center; padding: 60px 14px; z-index: 20; overflow: auto; }
.modal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 20px 22px; width: min(100%, 640px); animation: rise 240ms ease-out both; }
.modal-card h2 { margin-top: 0; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; border-left: 3px solid var(--horizon); box-shadow: var(--shadow-pop); z-index: 30; font-size: 13.5px; max-width: 90vw; animation: rise 240ms ease-out both; }
.toast.bad { background: var(--bad); border-left-color: #F5D4D4; }

/* icons: one inline line set, 24-grid, 1.75 stroke, currentColor (see house.html) */
.ic { width: 1em; height: 1em; vertical-align: -0.15em; display: inline-block; flex: 0 0 auto; }
.ic.big { width: 40px; height: 40px; color: var(--horizon); opacity: .8; }

/* still working — every desk waits on the ERP, and silence reads as broken */
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--steel); border-radius: 50%; animation: spin 800ms linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--steel); transition: width 400ms ease; }
.bar.indef > i { width: 30%; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }

/* motion: short, eased out, once. A person's navigation animates; a timer's
   redraw does not — scripts add body.quiet around a background refresh. */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 360ms cubic-bezier(.22,.8,.3,1) both; }
.rise:nth-child(2) { animation-delay: 40ms; } .rise:nth-child(3) { animation-delay: 80ms; } .rise:nth-child(4) { animation-delay: 120ms; } .rise:nth-child(n+5) { animation-delay: 160ms; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(45,122,79,.4); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(45,122,79,0); } 100% { box-shadow: 0 0 0 0 rgba(45,122,79,0); } }
body.quiet .rise, body.quiet .modal-card, body.quiet .toast { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .rise, .modal-card, .toast, .live-dot { animation: none !important; }
  .btn, .card, .stat, .bar > i { transition: none; }
  .spin, .bar.indef > i { animation: fade 1.6s ease-in-out infinite; } /* still says "working": a pulse, not a spin */
  @keyframes fade { 50% { opacity: .3; } }
}
@media (hover: none) { .hover-only { opacity: 1 !important; visibility: visible !important; } }

/* phone: the MD approves from a Discord link; targets 44px, inputs 16px so iOS does not zoom */
@media (max-width: 720px) {
  .top { padding: 12px 14px; } .tabs { padding: 8px 10px 0; } main { padding: 14px 12px 60px; }
  .btn { min-height: 44px; padding: 10px 14px; } .btn.sm { min-height: 36px; }
  input, select, textarea { font-size: 16px; min-height: 44px; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .modal { padding: 14px; }
}

/* print: a statement or a card is handed over on paper */
@media print {
  body { background: #fff; font-size: 11pt; }
  .top, .tabs, .btn, .toast, .modal, .top-actions, nav { display: none !important; }
  main { max-width: none; padding: 0; }
  .card, .stat, tr { break-inside: avoid; }
  .card { border-color: #bbb; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
  th { position: static; }
}

/* ---- md-projections: its own rules, below the house block ---- */
main { max-width: 1240px; margin: 0 auto; padding: 24px 28px 80px; }
.narrow { max-width: 440px; margin: 60px auto; }
.narrow .card { display: flex; flex-direction: column; gap: 12px; }
.btn.discord { background: #5865F2; border-color: #5865F2; color: #fff; text-align: center; text-decoration: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.groups .card { margin: 0; cursor: pointer; }
.groups .card h2 { margin-bottom: 4px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: var(--fs-small); margin-top: 12px; }
.kv .k { color: var(--ink-3); }
table.sheet { width: 100%; border-collapse: collapse; font-size: var(--fs-table); }
table.sheet th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .04em; padding: 8px 8px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--card); z-index: 1; }
table.sheet td { padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.sheet tr.child td.label { padding-left: 28px; color: var(--ink-2); }
table.sheet tr.parent td { font-weight: 500; }
table.sheet tr.foot td { border-top: 2px solid var(--line-2); border-bottom: 0; font-weight: 600; background: var(--navy-50); }
table.sheet td.num, table.sheet th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.sheet input { font: inherit; width: 100%; min-width: 120px; padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 5px; text-align: right; background: #fff; font-variant-numeric: tabular-nums; }
table.sheet input.note { text-align: left; min-width: 160px; }
table.sheet input:hover { border-color: var(--line-input); }
table.sheet input.formula { color: var(--steel); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12.5px; }
table.sheet .val { display: block; font-size: var(--fs-small); color: var(--ink-3); text-align: right; margin-top: 2px; font-variant-numeric: tabular-nums; }
table.sheet .err { display: block; color: var(--bad); font-size: var(--fs-small); }
table.sheet td.neg, .neg { color: var(--bad); }
table.sheet tr.changed td { background: var(--pop-bg); }
table.sheet tr.added td { background: var(--good-bg); }
table.sheet tr.removed td { background: var(--bad-bg); text-decoration: line-through; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.dots { border: 0; background: transparent; cursor: pointer; color: var(--ink-3); font-size: 18px; padding: 0 6px; line-height: 1; }
.dots:hover { color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { font-size: var(--fs-label); color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line-input); border-radius: 6px; background: #fff; }
.field .hint { font-size: var(--fs-small); color: var(--ink-3); }
.subtabs { display: flex; gap: 6px; margin: 0 0 18px; flex-wrap: wrap; }
.subtabs button { font: inherit; font-size: 13.5px; border: 1px solid var(--line-2); background: var(--card); padding: 6px 14px; border-radius: var(--pill); cursor: pointer; color: var(--ink-2); }
.subtabs button.on { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.vlist { list-style: none; padding: 0; margin: 0; }
.vlist li { display: flex; gap: 14px; align-items: baseline; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.vlist li:hover { background: var(--surface-2); }
.vlist .no { font-weight: 600; min-width: 36px; }
.stickybar { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 12px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; z-index: 2; }
.backlink { background: none; border: 0; color: var(--steel); cursor: pointer; font: inherit; padding: 0; margin-bottom: 10px; }
@media (max-width: 720px) { main { padding: 14px 12px 60px; } table.sheet input { min-width: 96px; } }
.row > .btn, .row > select, .row.between > div { flex: none; width: auto; }
.kv span { overflow-wrap: anywhere; }

/* ===== Presentation finish (MD, 2026-11-13: "professional like a corporate presentation") ===== */
:root { --gold: #B08D57; --gold-soft: #F3ECDF; --rule: #CBD5DF; --paper: #FFFFFF; }
body { font-feature-settings: "tnum" 1, "ss01" 1; }
main { max-width: 1280px; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.backlink { font-size: 13px; color: var(--ink-3); }
.backlink:hover { color: var(--steel); }
.proj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.proj-title { font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin: 4px 0 2px; color: var(--navy); }
.proj-head .sub { margin: 0; }
.subtabs { display: inline-flex; gap: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin: 0 0 22px; }
.subtabs button { border: 0; background: transparent; border-radius: 7px; padding: 7px 16px; font-weight: 500; color: var(--ink-2); }
.subtabs button:hover { color: var(--ink); }
.subtabs button.on { background: var(--card); color: var(--navy); box-shadow: 0 1px 3px rgba(13,27,42,.12); }
.subtabs .count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--navy-100); font-size: 11px; color: var(--ink-2); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar select { font: inherit; font-size: 13.5px; padding: 6px 10px; border: 1px solid var(--line-input); border-radius: 6px; background: #fff; margin-left: 6px; }
.btn .ic { vertical-align: -3px; margin-right: 4px; }
.slide { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 40px 48px 28px; box-shadow: 0 1px 2px rgba(13,27,42,.04), 0 8px 28px rgba(13,27,42,.06); position: relative; overflow: hidden; }
.slide::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--navy) 0 72%, var(--gold) 72% 100%); }
.slide-head { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
.slide-head h1 { font-size: 38px; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; color: var(--navy); margin: 10px 0 8px; }
.slide-head .lede { font-size: 16px; color: var(--ink-2); margin: 0; max-width: 62ch; }
.slide-meta { display: grid; grid-template-columns: auto auto; gap: 6px 18px; margin: 4px 0 0; font-size: 12.5px; min-width: 260px; }
.slide-meta dt { color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; padding-top: 2px; }
.slide-meta dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.tag { font-size: 10.5px; letter-spacing: .08em; padding: 2px 8px; border-radius: 4px; background: var(--navy-100); color: var(--navy-2); }
.tag.max { background: var(--gold-soft); color: #7A5C2E; }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 0; margin: 26px 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.kpi { padding: 20px 22px; border-right: 1px solid var(--rule); background: var(--paper); }
.kpi:last-child { border-right: 0; }
.kpi .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.kpi .v { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.kpi.hero { background: var(--navy); }
.kpi.hero .k, .kpi.hero .s { color: rgba(255,255,255,.7); }
.kpi.hero .v { color: #fff; font-size: 34px; }
.kpi.good .v { color: var(--good); } .kpi.warn .v { color: var(--warn); }
.panel { border: 1px solid var(--rule); border-radius: 12px; padding: 22px 24px; background: var(--paper); }
.panel h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin: 0 0 4px; font-weight: 600; }
.panel > .sub { margin: 0 0 14px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
.legend .sw { display: inline-block; vertical-align: -1px; margin-right: 6px; }
.legend .sw.bar { width: 14px; height: 10px; border-radius: 0 3px 3px 0; background: var(--steel); }
.legend .sw.tick { width: 2px; height: 14px; background: var(--gold); vertical-align: -3px; }
.bullets { display: flex; flex-direction: column; gap: 14px; }
.bullet { display: grid; grid-template-columns: 170px 1fr 120px; gap: 14px; align-items: center; outline: none; border-radius: 6px; padding: 4px 6px; margin: 0 -6px; }
.bullet:hover, .bullet:focus-visible { background: var(--navy-50); }
.b-label b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.b-label span, .b-val span { font-size: 12px; color: var(--ink-3); }
.b-track { position: relative; height: 22px; background: var(--navy-50); border-radius: 0 4px 4px 0; }
.b-bar { position: absolute; left: 0; top: 4px; bottom: 4px; background: var(--steel); border-radius: 0 4px 4px 0; transition: width 400ms cubic-bezier(.32,.72,0,1); }
.b-bar.under { background: var(--horizon); }
.b-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--gold); }
.b-val { text-align: right; }
.b-val b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.tip { position: absolute; transform: translate(-50%, -100%); background: var(--navy); color: #fff; font-size: 12.5px; padding: 7px 10px; border-radius: 6px; pointer-events: none; z-index: 40; max-width: 320px; box-shadow: var(--shadow-pop); }
.assume { list-style: none; padding: 0; }
.assume li { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 9px 0; font-size: 13px; }
.assume b { font-weight: 600; color: var(--ink); }
.assume span { color: var(--ink-2); }
.stmt-wrap h2 { margin-bottom: 0; }
table.stmt { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 12px; }
table.stmt th { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--navy); }
table.stmt td { padding: 7px 10px; border-bottom: 1px solid var(--line); }
table.stmt .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.stmt th.n { text-align: right; }
table.stmt .strong { font-weight: 600; color: var(--ink); }
table.stmt .muted { color: var(--ink-3); }
table.stmt .down { color: var(--bad); } table.stmt .up { color: var(--good); }
table.stmt tr.sec td { padding-top: 22px; border-bottom: 1px solid var(--rule); font-weight: 700; color: var(--navy); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
table.stmt tr.sec td span { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-3); margin-left: 8px; font-size: 12px; }
table.stmt tr.sub td.ln { padding-left: 30px; color: var(--ink-2); }
table.stmt tr.parent td { font-weight: 600; }
table.stmt tr.total td { font-weight: 700; border-top: 1px solid var(--ink); border-bottom: 0; color: var(--navy); }
table.stmt tr.monthly td { font-size: 12.5px; color: var(--ink-2); border-bottom: 3px double var(--rule); }
table.stmt tr.grand td { font-weight: 700; font-size: 15px; color: #fff; background: var(--navy); border: 0; padding: 12px 10px; }
table.stmt tr.grand td.muted { color: rgba(255,255,255,.7); }
table.stmt tr.grand td.down { color: #F5B4B4; } table.stmt tr.grand td.up { color: #A8E0C0; }
table.stmt sup { font-size: 10px; color: var(--steel); margin-left: 2px; }
table.stmt .src { font-size: 9.5px; letter-spacing: .08em; color: var(--steel); border: 1px solid var(--navy-200); border-radius: 3px; padding: 0 4px; margin-left: 8px; vertical-align: 1px; }
.notes { margin: 18px 0 0; padding-left: 22px; font-size: 12px; color: var(--ink-2); columns: 2; column-gap: 32px; }
.notes li { margin-bottom: 4px; break-inside: avoid; }
.slide-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
table.sheet input { border-color: transparent; background: var(--navy-50); }
table.sheet input:hover { border-color: var(--line-2); }
table.sheet input:focus { border-color: var(--steel); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(74,144,184,.18); }
table.sheet tbody tr:hover td { background: #FAFBFD; }
table.sheet tr.foot td { background: var(--navy); color: #fff; }
table.sheet tr.foot td.neg { color: #F5B4B4; }
.card .sec-head h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.stickybar { box-shadow: 0 -6px 18px rgba(13,27,42,.06); padding: 12px 16px; border-radius: 12px 12px 0 0; }
.groups .card { border-radius: 14px; padding: 24px 26px; position: relative; overflow: hidden; transition: transform var(--ease), box-shadow var(--ease); }
.groups .card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--navy); }
.groups .card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(13,27,42,.10); }
.groups .card h2 { font-size: 20px; letter-spacing: -.01em; color: var(--navy); }
body.present .top, body.present .tabs, body.present .backlink, body.present .proj-head, body.present .subtabs, body.present .toolbar, body.present .banner, body.present #toast { display: none !important; }
body.present { background: #E9EEF3; }
body.present main { max-width: 1400px; padding: 28px 32px; }
body.present .slide { padding: 52px 64px 32px; }
body.present .slide-head h1 { font-size: 46px; }
.present-exit { position: fixed; right: 18px; top: 14px; z-index: 50; background: rgba(255,255,255,.92); }
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: #fff; }
  .no-print, .present-exit, .tip { display: none !important; }
  .backlink, .proj-head, .subtabs, .banner { display: none !important; }
  .slide { border: 0; box-shadow: none; padding: 0; border-radius: 0; }
  .slide::before { display: none; }
  .kpi.hero, table.stmt tr.grand td, table.sheet tr.foot td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .panel { break-inside: avoid; }
  table.stmt tbody.stmt-sec { break-inside: avoid; }
}
@media (max-width: 900px) {
  .slide { padding: 28px 18px 20px; }
  .slide-head { grid-template-columns: 1fr; }
  .slide-meta dd { text-align: left; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(2) { border-right: 0; } .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .bullet { grid-template-columns: 1fr 90px; } .b-track { grid-column: 1 / -1; grid-row: 2; }
  .notes { columns: 1; }
}

/* refinements after review */
.chart-panel { margin-bottom: 22px; }
.chart-panel .bullets { max-width: 980px; }
.assume-h { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 26px 0 8px; font-weight: 600; }
.assume { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.assume li { border-bottom: 1px dashed var(--rule); }
.notes { margin-top: 0; }
table.stmt tr.total td.down { color: var(--bad); } table.stmt tr.total td.up { color: var(--good); }
.slide, .panel, .slide-head > *, .kpi, .bullet > *, .two > * { min-width: 0; }
.slide-head h1, .slide-head .lede { overflow-wrap: anywhere; }
.stmt-wrap .tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) { .assume { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  main { padding: 12px 10px 60px; }
  .proj-title { font-size: 24px; }
  .subtabs { display: flex; overflow-x: auto; max-width: 100%; }
  .subtabs button { padding: 7px 12px; white-space: nowrap; }
  .slide { padding: 24px 14px 18px; border-radius: 12px; }
  .slide-head h1 { font-size: 28px; }
  .slide-meta { min-width: 0; grid-template-columns: 1fr; gap: 0; }
  .slide-meta dt { padding-top: 8px; }
  .kpis { grid-template-columns: 1fr; }
  .kpi { border-right: 0; border-bottom: 1px solid var(--rule); }
  .kpi .v { font-size: 22px; } .kpi.hero .v { font-size: 28px; }
  .panel { padding: 16px 14px; }
  .bullet { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .assume { grid-template-columns: 1fr; }
  table.stmt { font-size: 12.5px; min-width: 560px; }
  .toolbar label { flex: 1 1 100%; }
}
@media (max-width: 600px) { .bullet { margin: 0; padding: 4px 0; } .b-val b { font-size: 14px; } }
/* projected total column (MD 2026-11-13) and the statement first */
table.stmt th.pj, table.stmt td.pj { background: var(--navy-50); }
table.stmt tr.total td.pj { background: var(--navy-100); }
table.stmt tr.grand td { background: var(--navy); }
table.stmt tr.grand.second td { background: var(--navy-2); font-size: 14px; }
.slide-head + .stmt-wrap { margin-top: 26px; }
.stmt-wrap + .kpis { margin-top: 22px; }
table.sheet td.pjcol, table.sheet th.pjcol { background: var(--navy-50); white-space: nowrap; } table.sheet tr.foot td.pjcol { background: var(--navy-2); }
/* ⓘ on figures worked out by a formula or a share (MD 2026-11-13) */
.fx { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-right: 6px; padding: 0; border: 1px solid var(--horizon); border-radius: 50%; background: #fff; color: var(--steel); font: italic 600 10px/1 Georgia, 'Times New Roman', serif; cursor: help; vertical-align: 1px; }
.fx:hover, .fx:focus-visible { background: var(--steel); color: #fff; border-color: var(--steel); outline: none; }
.fxtip { max-width: 340px; text-align: left; font-style: normal; }
table.sheet .val .fx { margin-right: 4px; }
@media print { .fx { display: none; } }
@media (max-width: 600px) { .fx { width: 20px; height: 20px; font-size: 12px; } }
/* "as of" under So far (MD 2026-11-13) */
.asof-h { display: block; font-size: 9.5px; letter-spacing: .04em; text-transform: none; font-weight: 500; color: var(--ink-3); margin-top: 1px; }
table.stmt .asof-h { color: var(--ink-3); }
/* repo in charge and the ledger check (MD 2026-11-13) */
.repo { display: inline-block; margin-left: 8px; font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 3px; padding: 0 5px; vertical-align: 1px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.repo.none { color: var(--warn); border-color: var(--warn); background: var(--warn-bg); }
.ledger { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; font-size: 12.5px; border-left: 3px solid var(--good); background: var(--good-bg); color: var(--ink); }
.ledger.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.ledger div + div { margin-top: 4px; }
#ledger-check .ledger { margin: 0 0 16px; }
@media print { .repo { border: 0; padding: 0; } }
/* data reliability and workings (MD 2026-11-13) */
.tag.prov { background: var(--warn-bg); color: var(--warn); border: 1px solid #E2C48F; }
.reliab { margin-top: 14px; padding: 12px 16px; border: 1px solid #E2C48F; border-left: 3px solid var(--warn); background: #FFF9EE; border-radius: 8px; font-size: 12.5px; color: var(--ink); }
.reliab ul { margin: 6px 0 0; padding-left: 18px; } .reliab li { margin: 2px 0; }
.reliab.ok { border-color: var(--line-2); border-left-color: var(--good); background: var(--good-bg); }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; margin-right: 6px; }
.toggle input { width: 16px; height: 16px; accent-color: var(--steel); }
.appendix { margin-top: 22px; }
.appendix h3 { font-size: 13px; font-weight: 600; color: var(--navy); margin: 22px 0 2px; }
.appendix h3:first-of-type { margin-top: 12px; }
table.stmt.work { margin-top: 8px; }
table.stmt tr.muted-row td { color: var(--ink-3); font-style: italic; }
@media print { .appendix { break-before: page; } .toggle { display: none; } }
/* the MD formula press button (MD 2026-11-13) */
.btn.mdf.on { background: var(--gold-soft); border-color: var(--gold); color: #7A5C2E; }
table.stmt .src.mdsrc { color: #7A5C2E; border-color: var(--gold); background: var(--gold-soft); }
/* ask about a line (MD 2026-11-13) */
.asklink { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; border-bottom: 1px dotted transparent; }
.asklink:hover, .asklink:focus-visible { color: var(--steel); border-bottom-color: var(--horizon); outline: none; }
.askpanel { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--card); border-left: 1px solid var(--line); box-shadow: var(--shadow-pop); z-index: 45; display: flex; flex-direction: column; padding: 20px 22px; gap: 12px; overflow: auto; animation: rise 200ms ease-out both; }
.ask-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ask-head h2 { font-size: 20px; margin: 4px 0; color: var(--navy); }
.ask-head .dots { font-size: 22px; }
.ask-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chipq { font: inherit; font-size: 12.5px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.chipq:hover { background: var(--navy-100); color: var(--navy); }
.ask-form { display: flex; flex-direction: column; gap: 8px; }
.ask-form textarea { font: inherit; padding: 9px 11px; border: 1px solid var(--line-input); border-radius: 8px; resize: vertical; }
.ask-form .btn { align-self: flex-end; }
.qa { border-top: 1px solid var(--line); padding-top: 12px; }
.qa .q { font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.qa .a { font-size: 14px; line-height: 1.55; color: var(--ink); }
.qa .a p { margin: 0 0 8px; } .qa .a ul { margin: 0 0 8px; padding-left: 18px; }
.qa .copyans { margin-top: 4px; }
.ask-foot { margin-top: auto; font-size: 11.5px; }
@media print { .askpanel { display: none; } }
/* per month / per year switch (MD 2026-11-13) */
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; margin-right: 6px; }
.seg button { font: inherit; font-size: 12.5px; border: 0; background: var(--card); color: var(--ink-2); padding: 5px 11px; cursor: pointer; }
.seg button.on { background: var(--navy-2); color: #fff; }
/* the fund on Perpetual Operations (MD 2026-11-13) */
table.stmt tr.fund td { border-bottom: 0; padding: 4px 10px 10px; }
.fundbox { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--gold-soft); border: 1px solid #E6D6B8; border-radius: 10px; padding: 12px 16px; }
.fundbox > div { display: flex; flex-direction: column; gap: 1px; }
.fundbox .k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #7A5C2E; }
.fundbox b { font-size: 20px; color: var(--navy); font-variant-numeric: tabular-nums; }
.fundbox .s { font-size: 11.5px; color: var(--ink-3); }
.fundbox .arrow { font-size: 22px; color: var(--gold); }
.kpis { grid-template-columns: 1.3fr 1fr; } .kpi:nth-child(2) { border-right: 0; }
/* income pie (MD 2026-11-13) */
.pie { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.pie svg { width: 240px; height: 240px; flex: none; }
.pie .slice { cursor: default; outline: none; transition: opacity var(--ease); }
.pie .slice:hover, .pie .slice:focus-visible { opacity: .85; }
.pie .slice-pct { font-size: 11px; font-weight: 600; fill: #fff; text-anchor: middle; pointer-events: none; }
.pie .pie-k { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; fill: var(--ink-3); text-anchor: middle; }
.pie .pie-v { font-size: 18px; font-weight: 600; fill: var(--navy); text-anchor: middle; }
.pie-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 260px; flex: 1; }
.pie-legend li { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 4px 12px; align-items: baseline; font-size: 14px; }
.pie-legend i { width: 12px; height: 12px; border-radius: 3px; align-self: center; }
.pie-legend .lt { color: var(--ink); font-weight: 500; }
.pie-legend b { font-variant-numeric: tabular-nums; color: var(--navy); }
.pie-legend .lp { color: var(--ink-3); font-size: 12.5px; min-width: 70px; text-align: right; }
.pie-legend .lm { grid-column: 2 / -1; color: var(--ink-3); font-size: 12px; }
@media print { .pie .slice { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }
/* the tie to the ERP income statement (MD 2026-11-13) */
table.stmt tr.tie td { font-weight: 600; border-top: 2px solid var(--navy); background: var(--good-bg); }
table.stmt tr.tie.off td { background: var(--warn-bg); }
.fundbox .book { display: block; } .fundbox .book.noted { color: var(--warn); }
/* tidy ⓘ lists (MD 2026-11-13) */
.fxtip { white-space: pre-line; line-height: 1.55; }
.fxtip::first-line { font-weight: 600; }
.groups [hidden] { display: none !important; }

/* The board's Inquiry tab (MD 2026-11-14): question tabs, the checks as steps, then the answer. */
.askx { display: flex; flex-direction: column; gap: 12px; padding: 0; overflow: hidden; }
.ask-tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.atab { display: flex; align-items: center; max-width: 240px; border: 1px solid var(--line); border-bottom: none; border-radius: 8px 8px 0 0; background: var(--surface-2); flex-shrink: 0; }
.atab.on { background: var(--card); box-shadow: 0 1px 0 var(--card); position: relative; top: 1px; }
.atab > button { font: inherit; font-size: 13px; border: 0; background: none; color: var(--ink-2); padding: 8px 4px 8px 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.atab.on > button { color: var(--navy); font-weight: 600; }
.atab .x { padding: 6px 10px 6px 4px; font-size: 15px; color: var(--ink-3, var(--ink-2)); }
.atab .x:hover { color: var(--navy); }
.atab-new { font: inherit; font-size: 13px; border: 1px dashed var(--line-2); border-bottom: none; border-radius: 8px 8px 0 0; background: none; color: var(--steel); padding: 8px 12px; cursor: pointer; flex-shrink: 0; white-space: nowrap; }
.atab-new.on { background: var(--card); color: var(--navy); font-weight: 600; border-style: solid; }
.ask-body { padding: 4px 20px; min-height: 260px; max-height: 62vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.ask-empty { padding: 18px 0; } .ask-empty h2 { margin: 0 0 6px; font-size: 18px; }
.ask-empty .ask-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.turn .who { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.turn.you .bubble { background: var(--navy-100); color: var(--navy); border-radius: 10px; padding: 10px 14px; font-weight: 500; white-space: pre-wrap; }
.ask-steps { list-style: none; margin: 0 0 10px; padding: 8px 12px; border-left: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.ask-steps li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.ask-steps .st-what { color: var(--ink); }
.ask-steps .st-note, .ask-steps .st-ms { font-size: 12px; color: var(--ink-2); }
.ask-steps .st-ok { color: var(--good, #2e7d4f); font-weight: 700; } .ask-steps .st-bad { color: var(--bad, #b3261e); font-weight: 700; }
.ask-steps details { flex-basis: 100%; } .ask-steps summary { cursor: pointer; font-size: 12px; color: var(--steel); }
.ask-steps pre { margin: 4px 0 0; padding: 8px 10px; background: var(--surface-2); border-radius: 6px; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.thinking { font-size: 13px; color: var(--ink-2); }
.turn .answer { font-size: 14.5px; line-height: 1.6; color: var(--ink); } .turn .answer p { margin: 0 0 8px; } .turn .answer ul { margin: 0 0 8px; padding-left: 18px; }
.ask-compose { display: flex; gap: 10px; padding: 0 20px; align-items: flex-end; }
.ask-compose textarea { flex: 1; resize: vertical; min-height: 44px; }
.askx .ask-foot { padding: 0 20px 16px; margin: 0; }
@media (max-width: 640px) { .ask-body { padding: 4px 14px; max-height: none; } .ask-compose { padding: 0 14px; flex-direction: column; align-items: stretch; } .askx .ask-foot { padding: 0 14px 14px; } }
