/* 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; }
}

/* ── skills: the app's own rules, on the house tokens (above) ── */
.head { margin-bottom: 24px; }
.head h2 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 4px; }
.lede { color: var(--ink-2); max-width: 68ch; margin: 0; }
.narrow { max-width: 420px; margin: 12vh auto 0; }
.narrow .card { display: flex; flex-direction: column; gap: 14px; }
.btn.discord { background: #5865F2; border-color: #5865F2; color: #fff; text-align: center; text-decoration: none; display: block; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input[type=search] { max-width: 320px; }
.toolbar .check { display: inline-flex; gap: 8px; align-items: center; margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.toolbar .check input { width: auto; }
.who { display: flex; align-items: center; gap: 10px; }
.who .face.sm { cursor: pointer; }
.who strong { font-weight: 500; }
.nogh { font-size: var(--fs-label); color: var(--ink-3); white-space: nowrap; }
.owners { display: flex; flex-direction: column; gap: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
td .chips { max-width: 340px; }
/* objectives: the MD's words for what a project must achieve */
.objs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; min-width: 260px; }
.objs li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.objs li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--pop); margin-top: 7px; }
.objs li .ot { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.objs li .also { font-size: var(--fs-label); color: var(--ink-3); }
.objs li .onote { font-size: var(--fs-small); color: var(--ink-2); }
.objs li .more { margin-left: auto; flex: none; border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 0 6px; border-radius: 6px; font-size: 18px; line-height: 1.2; }
.objs li .more:hover, .objs li .more.on { color: var(--ink); background: var(--line, rgba(0,0,0,.06)); }
.obj-menu { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.obj-menu button { border: 1px solid var(--line, #d9e0e6); background: none; border-radius: 999px; padding: 3px 10px; font-size: var(--fs-small); color: var(--ink); cursor: pointer; }
.obj-menu button:hover { border-color: var(--ink-3); }
.obj-menu button.bad { color: var(--bad); }
.obj-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.obj-sub input { width: auto; flex: 1 1 160px; padding: 4px 8px; font-size: var(--fs-small); }
.obj-share { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.obj-share .sp { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: center; font-size: var(--fs-small); }
.obj-share .sp input[type=checkbox] { width: auto; margin: 0; }
.obj-share .sp input[name^="note:"] { display: none; padding: 3px 8px; font-size: var(--fs-small); }
.obj-share .sp.on input[name^="note:"] { display: block; }
.obj-share .row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.obj-share .link { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: var(--fs-small); }
.obj-add { display: flex; gap: 6px; margin-top: 8px; }
.obj-add input { padding: 6px 9px; font-size: var(--fs-small); }
.none { color: var(--warn); font-size: var(--fs-small); }
/* People: a row opens into the person's labels */
.lrow { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lrow:last-child { border-bottom: 0; }
.lrow-s { display: flex; gap: 12px; align-items: flex-start; flex: 1 1 320px; }
.ico { font-size: 18px; width: 24px; text-align: center; flex: none; }
.ico.big { font-size: 30px; width: 40px; }
.lvls { display: flex; gap: 4px; }
.lv { width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--line-input); background: #fff; font: inherit; font-weight: 500; cursor: pointer; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lv:hover { border-color: var(--steel); color: var(--ink); }
.lv.on { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.pips { display: inline-flex; gap: 3px; } .pips i { width: 14px; height: 6px; border-radius: 3px; background: var(--navy-100); } .pips i.on { background: var(--pop); }
tr.open td { background: var(--navy-50); }
tr.detail td { background: var(--card); padding: 4px 18px 14px; }
/* Skills: the tree, in Kaleidoscope's pattern — Beginner → Master across */
.addsk { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.addsk input { flex: 1 1 200px; } .addsk .emoji { flex: 0 0 64px; text-align: center; }
.sk-scroll { overflow-x: auto; padding-bottom: 8px; }
.sk-grid { min-width: 980px; display: flex; flex-direction: column; gap: 12px; }
.sk-row { display: grid; grid-template-columns: 200px repeat(5, minmax(150px, 1fr)); gap: 0 22px; align-items: stretch; }
.sk-eras { position: sticky; top: 0; z-index: 2; background: var(--bg); padding-top: 4px; }
.sk-era { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 6px; }
.sk-era b { color: var(--ink); font-weight: 600; margin-right: 4px; font-variant-numeric: tabular-nums; }
.sk-head { cursor: pointer; border-radius: var(--radius-sm); padding: 10px; }
.sk-head:hover, .sk-row.sel .sk-head { background: var(--navy-50); }
.sk-name { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.sk-needs { font-size: var(--fs-label); color: var(--ink-3); margin-top: 4px; }
.sk-cell { position: relative; display: flex; }
.sk-cell + .sk-cell::before { content: ""; position: absolute; left: -22px; top: 26px; width: 22px; height: 2px; background: var(--line-2); }
.sk-node { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; transition: transform var(--ease), border-color var(--ease); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.sk-node:hover { transform: translateY(-1px); border-color: var(--navy-300); }
.sk-node.have { border-color: var(--pop-soft); background: linear-gradient(var(--pop-bg), var(--card) 70%); }
.sk-ladder { font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sk-who .faces .face.sm { width: 26px; height: 26px; font-size: 10px; margin-left: -7px; cursor: pointer; }
.sk-who .faces .face.sm:first-child { margin-left: 0; }
.sk-detail { grid-column: 1 / -1; margin: 10px 0 4px; }
.det-h { display: flex; gap: 14px; align-items: flex-start; }
.det-h h3 { margin: 0 0 4px; }
.det-h .row { margin-bottom: 8px; }
.rung { display: grid; grid-template-columns: 1fr 280px; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.rung-l { display: flex; gap: 12px; } .rung-l p { margin: 4px 0 0; }
.rung-l textarea { margin-top: 6px; min-height: 56px; font-size: var(--fs-table); }
.lvbadge { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-2); color: #fff; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.rung-who { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.lk { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-size: var(--fs-small); color: var(--ink); }
.lk select { width: auto; padding: 4px 8px; }
.det-actions { margin-top: 18px; display: flex; gap: 8px; }
@media (max-width: 720px) { .rung { grid-template-columns: 1fr; } .objs { min-width: 0; } }

/* === house-ui standard (2026-09-15) — appended by tools/house-ui/apply.py; re-run to refresh, do not edit inside === */
/* 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; }
:root {
  --pop: #E07B45;
  --pop-hover: #C4622D;
  --pop-bg: #FBECE2;
  --pop-soft: #F0C89A;
  --navy-50: #F1F5F9;
  --navy-100: #E3EAF1;
  --navy-200: #C9D6E2;
  --navy-300: #9FB4C7;
  --navy-500: #4A6A85;
  --navy-700: #1C3A52;
  --navy-900: #0D1B2A;
  --ink: #1F2D3D;
  --ink-2: #566B7D;
  --ink-3: #5C7284;
  --bg: #F6F8FB;
  --radius: 14px;
  --radius-sm: 8px;
  --pill: 999px;
  --line-input: #7F93A3;
}
body { font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-image: none; -webkit-font-smoothing: antialiased; }
code, kbd, pre, .mono { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .93em; }
table, .num, .stat .v, .hero-n, .verdict { font-variant-numeric: tabular-nums; }
.stat .v, .hero-n, .hero-stat b, .verdict { font-weight: 500; letter-spacing: -.015em; }
/* air */
main { padding: 32px 32px 96px; }
.card { padding: 26px 30px; margin-bottom: 24px; border-radius: var(--radius); }
.card h2 { font-size: 17px; margin-bottom: 16px; letter-spacing: -.01em; }
.stats { gap: 16px; margin-bottom: 24px; }
.stat { padding: 20px 22px; border-radius: var(--radius); }
td { padding: 12px 10px; } th { padding: 10px 10px; }
.top { padding: 18px 32px; } .tabs { padding-left: 28px; padding-right: 28px; } .tabs button { padding: 11px 16px; }
.live-dot { background: #F0A070; box-shadow: 0 0 0 0 rgba(240,160,112,.6); } .live-dot.dark { background: var(--pop); }
@media (max-width: 720px) { main { padding: 20px 16px 96px; } .card { padding: 18px 18px; } }
/* ⓘ — 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); }
/* === /house-ui standard === */
