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

/* sidebar — a desk's tabs as a left column (MD, 2026-11-26: "shouldnt it be like a sidebar?", "a non-sticky sidebar",
   "hideable sidebar", "should be cleaner"). For a desk with more tabs than fit one row of .tabs. It is NOT sticky: it
   is the page's first column, its Midnight runs the page's full height, and its links scroll away with the page. The
   toggle hides it completely: no rail, only one small Midnight button at the page's top-left brings it back. The
   choice is the viewer's own (localStorage "house.side", read before first paint).
   Markup:
     <body class="has-side">
     <aside class="side">
       <button class="side-toggle" type="button" onclick="houseSide()" aria-label="Hide or show the menu" title="Hide or show the menu">…panel icon…</button>
       <header>…the brand, as .top's contents…</header>
       <nav class="tabs"> <div class="grp"><span class="gl">Group</span> <button|a>Tab</button|a> … </div> … <div class="grp links">…↗</div> </nav>
     </aside>
     <script>try{if(localStorage.getItem("house.side")==="hidden")document.body.classList.add("side-hidden")}catch(e){}
       function houseSide(h){h=h??!document.body.classList.contains("side-hidden");document.body.classList.toggle("side-hidden",h);try{localStorage.setItem("house.side",h?"hidden":"shown")}catch(e){}}</script>
     <div class="side-page"> …the pages… </div>
   Groups are optional (a plain list of tabs works); .grp.links holds links to other pages. Under 900px it becomes the
   top band. The Ask pill sits bottom-left over the column; nothing else does. */
:root { --side-w: 248px; }
body.has-side { display: flex; align-items: stretch; min-height: 100vh; }
.side-page { flex: 1 1 auto; min-width: 0; }
.side { position: relative; flex: 0 0 var(--side-w); width: var(--side-w); display: flex; flex-direction: column; color: #fff;
        background: var(--navy, #0D1B2A); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 10px); }
.side > header, .side > .top { background: transparent; display: flex; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 8px; padding: 22px 52px 14px 20px; }
.side nav.tabs, .side .tabs { position: static; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 16px; padding: 8px 12px 28px; margin: 0; background: transparent; border: 0; overflow: visible; }
.side .tabs .grp { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 1px; padding: 0; margin: 0; background: transparent; border: 0; }
.side .tabs .grp.links { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.side .tabs .gl { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.5); padding: 0 12px 5px; white-space: nowrap; }
.side .tabs button, .side .tabs a { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 12px; margin: 0; border: 0; border-radius: var(--radius-sm, 8px);
        background: transparent; color: rgba(255,255,255,.78); font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transform: none; box-shadow: none; }
.side .tabs button:hover, .side .tabs a:hover { background: rgba(255,255,255,.08); color: #fff; }
.side .tabs button.on, .side .tabs a.on { background: var(--bg, #F6F8FB); color: var(--ink, #1F2D3D); font-weight: 600; box-shadow: inset 3px 0 0 var(--pop, #E07B45); }
.side .tabs button:focus-visible, .side .tabs a:focus-visible, .side-toggle:focus-visible { outline: 2px solid var(--horizon, #4A90B8); outline-offset: 2px; }
.side-toggle { position: absolute; top: 16px; right: 10px; z-index: 2; width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
        background: transparent; border: 0; border-radius: var(--radius-sm, 8px); color: rgba(255,255,255,.7); cursor: pointer; transform: none; }
.side-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }
.side-toggle svg { width: 18px; height: 18px; }
/* hidden: the column goes; one small button stays at the page's top-left, above the content */
body.has-side.side-hidden { display: block; }
body.side-hidden .side { position: absolute; top: 14px; left: 16px; width: auto; min-height: 0; background: none; z-index: 30; }
body.side-hidden .side > :not(.side-toggle) { display: none !important; }
body.side-hidden .side-toggle { position: static; width: 34px; height: 34px; background: var(--navy, #0D1B2A); color: #fff; box-shadow: 0 2px 8px rgba(13,27,42,.18); }
body.side-hidden .side-toggle:hover { background: var(--navy-2, #1C3A52); }
body.side-hidden .side-page { padding-top: 34px; }
@media (max-width: 900px) {
  body.has-side { display: block; }
  .side { width: auto; min-height: 52px; }
  .side > header, .side > .top { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 52px 10px 16px; }
  .side nav.tabs, .side .tabs { flex-direction: row; flex-wrap: wrap; gap: 6px 10px; padding: 4px 12px 10px; border-bottom: 2px solid var(--horizon, #4A90B8); }
  .side .tabs .grp { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 3px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; }
  .side .tabs .grp.links { padding: 3px; border: 1px dashed rgba(255,255,255,.2); background: transparent; }
  .side .tabs .gl { padding: 0 6px 0 7px; }
  .side .tabs button, .side .tabs a { width: auto; padding: 6px 10px; box-shadow: none; }
}
@media print { .side { display: none !important; } body.has-side { display: block; } }

/* ==== Behavior Lab (its own rules; class names lab-* or local, so the house block never fights them) ==== */
.lab-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 8px; }
.lab-flow .st { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.lab-flow .st .n { font-size: var(--fs-label); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.lab-flow .st b { display: block; font-weight: 600; margin: 2px 0 4px; }
.lab-flow .st p { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.lab-flow .st .ic { color: var(--pop); width: 20px; height: 20px; }
.stepper { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 22px; }
.stepper button { font: inherit; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: var(--pill); background: var(--card); color: var(--ink-2); font-size: 13px; font-weight: 500; border: 1px solid var(--line-2); cursor: pointer; }
.stepper button:hover { border-color: var(--steel); color: var(--ink); }
.stepper .d { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.stepper .done .d { background: var(--good); } .stepper .stale .d { background: var(--warn); }
.stepper .running .d { background: var(--pop); box-shadow: 0 0 0 0 rgba(224,123,69,.5); animation: pulse 1.8s ease-out infinite; }
.kv { display: grid; grid-template-columns: 190px 1fr; gap: 8px 18px; margin: 0; }
.kv dt { color: var(--ink-3); font-size: var(--fs-small); padding-top: 2px; }
.kv dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.trail { list-style: none; margin: 0; padding: 0; font-size: var(--fs-table); max-height: 360px; overflow: auto; }
.trail li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.trail li.err { color: var(--bad); }
.trail time { color: var(--ink-3); font-variant-numeric: tabular-nums; flex: 0 0 auto; font-size: var(--fs-label); padding-top: 2px; }
.trail .t { min-width: 0; overflow-wrap: anywhere; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--card); min-width: 0; }
.box h4 { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; }
.box p { margin: 6px 0; }
.box.off { opacity: .62; }
.comb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.comb .k { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .05em; color: var(--steel); font-weight: 600; }
.persona { display: flex; gap: 12px; align-items: flex-start; }
.persona b { display: block; }
.persona .voice { font-style: italic; color: var(--ink-2); font-size: var(--fs-small); margin-top: 4px; }
.seesay { border-left: 3px solid var(--pop); background: var(--pop-bg); padding: 10px 12px; border-radius: 0 6px 6px 0; margin: 8px 0; font-size: 14px; white-space: pre-wrap; }
.arms { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 6px; }
.arm { display: grid; grid-template-columns: minmax(140px, 230px) 1fr 130px; gap: 14px; align-items: center; }
.arm .nm { font-weight: 500; font-size: 14px; }
.arm .track { position: relative; height: 28px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.arm .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--steel); border-radius: 6px 0 0 6px; transition: width 400ms ease; }
.arm.asnow .fill { background: var(--navy-300); }
.arm.best .fill { background: var(--pop); }
.arm .band { position: absolute; top: 11px; height: 6px; background: rgba(13,27,42,.38); border-radius: 3px; }
.arm .base { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--navy); }
.arm .lbl { position: absolute; left: 9px; top: 4px; font-size: 13px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.arm .lift { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; font-size: 14px; }
.up { color: var(--good); } .down { color: var(--bad); }
.quote { font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.quote:last-child { border-bottom: 0; }
.redo { display: flex; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line-2); align-items: center; flex-wrap: wrap; }
.redo input { flex: 1 1 260px; width: auto; }
.meta { font-size: var(--fs-label); color: var(--ink-3); }
.sql { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; white-space: pre-wrap; background: var(--surface-2); padding: 10px 12px; border-radius: 6px; overflow-x: auto; margin: 6px 0; overflow-wrap: anywhere; }
details > summary { cursor: pointer; color: var(--steel); font-size: var(--fs-small); margin-top: 14px; }
.report { white-space: pre-wrap; font-size: 14px; line-height: 1.6; max-width: 84ch; margin-top: 10px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.head-row h2 { margin: 0 0 2px !important; }
.lead { font-size: 16px; line-height: 1.55; max-width: 76ch; margin: 0 0 18px; }
.quoteline { font-size: 19px; font-weight: 500; letter-spacing: -.01em; color: var(--navy); max-width: 72ch; margin: 0 0 18px; line-height: 1.4; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink); margin: 6px 0; cursor: pointer; }
.check input { width: auto; margin-top: 3px; }
.facts { margin: 0; padding-left: 18px; }
.facts li { margin: 6px 0; }
.facts .src { display: block; font-size: var(--fs-label); color: var(--ink-3); font-family: 'Geist Mono', ui-monospace, monospace; overflow-wrap: anywhere; }
.qa { margin: 12px 0; }
.qa label { color: var(--ink); font-size: 14px; }
.qa .why { font-size: var(--fs-label); color: var(--ink-3); margin: 0 0 6px; }
.running-card { border-color: var(--pop-soft); }
.signin { max-width: 640px; margin: 40px auto; }
.method { font-size: 24px; font-weight: 500; letter-spacing: -.015em; color: var(--navy); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.hint { font-size: var(--fs-label); color: var(--ink-3); margin: 4px 0 0; }
@media (max-width: 720px) {
  .lab-flow, .comb, .form-grid { grid-template-columns: 1fr; }
  .arm { grid-template-columns: 1fr; gap: 4px; }
  .arm .lift { text-align: left; }
  .kv { grid-template-columns: 1fr; }
}

.trail.live .sql { max-height: 3.4em; overflow: hidden; }  /* the running card previews; the full SQL is under 'How it found this' */

/* questions chat: the lab asks one at a time (MD 2026-11-28 "make this like a chatbox and i answer one at a time") */
.chat { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.chat .thread { max-height: 540px; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--navy-50); }
.msg { display: flex; gap: 10px; max-width: min(86%, 720px); align-items: flex-start; }
.msg.lab { align-self: flex-start; }
.msg.me { align-self: flex-end; justify-content: flex-end; }
.msg .av { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; margin-top: 2px; }
.msg .bubble { padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.lab .bubble { background: var(--card); border: 1px solid var(--line); border-top-left-radius: 4px; color: var(--ink); }
.msg.me .bubble { background: var(--navy-2); color: #fff; border-top-right-radius: 4px; }
.msg.me.skip .bubble { background: transparent; color: var(--ink-3); border: 1px dashed var(--line-2); }
.msg .why { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; white-space: normal; }
.msg .meta { margin-top: 4px; text-align: right; }
.link { font: inherit; background: none; border: 0; padding: 0; color: var(--steel); cursor: pointer; text-decoration: underline; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--card); align-items: flex-end; }
.composer textarea { flex: 1 1 auto; width: auto; resize: none; min-height: 44px; max-height: 160px; line-height: 1.45; }
.composer.done { justify-content: flex-start; }
.composer.done:empty { display: none; }
@media (max-width: 720px) { .msg { max-width: 94%; } .composer { flex-wrap: wrap; } .composer textarea { flex-basis: 100%; font-size: 16px; } }

/* === 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); }
/* sidebar — a desk's tabs as a left column (MD, 2026-11-26: "shouldnt it be like a sidebar?", "a non-sticky sidebar",
   "hideable sidebar", "should be cleaner"). For a desk with more tabs than fit one row of .tabs. It is NOT sticky: it
   is the page's first column, its Midnight runs the page's full height, and its links scroll away with the page. The
   toggle hides it completely: no rail, only one small Midnight button at the page's top-left brings it back. The
   choice is the viewer's own (localStorage "house.side", read before first paint).
   Markup:
     <body class="has-side">
     <aside class="side">
       <button class="side-toggle" type="button" onclick="houseSide()" aria-label="Hide or show the menu" title="Hide or show the menu">…panel icon…</button>
       <header>…the brand, as .top's contents…</header>
       <nav class="tabs"> <div class="grp"><span class="gl">Group</span> <button|a>Tab</button|a> … </div> … <div class="grp links">…↗</div> </nav>
     </aside>
     <script>try{if(localStorage.getItem("house.side")==="hidden")document.body.classList.add("side-hidden")}catch(e){}
       function houseSide(h){h=h??!document.body.classList.contains("side-hidden");document.body.classList.toggle("side-hidden",h);try{localStorage.setItem("house.side",h?"hidden":"shown")}catch(e){}}</script>
     <div class="side-page"> …the pages… </div>
   Groups are optional (a plain list of tabs works); .grp.links holds links to other pages. Under 900px it becomes the
   top band. The Ask pill sits bottom-left over the column; nothing else does. */
:root { --side-w: 248px; }
body.has-side { display: flex; align-items: stretch; min-height: 100vh; }
.side-page { flex: 1 1 auto; min-width: 0; }
.side { position: relative; flex: 0 0 var(--side-w); width: var(--side-w); display: flex; flex-direction: column; color: #fff;
        background: var(--navy, #0D1B2A); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 10px); }
.side > header, .side > .top { background: transparent; display: flex; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 8px; padding: 22px 52px 14px 20px; }
.side nav.tabs, .side .tabs { position: static; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 16px; padding: 8px 12px 28px; margin: 0; background: transparent; border: 0; overflow: visible; }
.side .tabs .grp { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 1px; padding: 0; margin: 0; background: transparent; border: 0; }
.side .tabs .grp.links { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.side .tabs .gl { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.5); padding: 0 12px 5px; white-space: nowrap; }
.side .tabs button, .side .tabs a { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 12px; margin: 0; border: 0; border-radius: var(--radius-sm, 8px);
        background: transparent; color: rgba(255,255,255,.78); font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transform: none; box-shadow: none; }
.side .tabs button:hover, .side .tabs a:hover { background: rgba(255,255,255,.08); color: #fff; }
.side .tabs button.on, .side .tabs a.on { background: var(--bg, #F6F8FB); color: var(--ink, #1F2D3D); font-weight: 600; box-shadow: inset 3px 0 0 var(--pop, #E07B45); }
.side .tabs button:focus-visible, .side .tabs a:focus-visible, .side-toggle:focus-visible { outline: 2px solid var(--horizon, #4A90B8); outline-offset: 2px; }
.side-toggle { position: absolute; top: 16px; right: 10px; z-index: 2; width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
        background: transparent; border: 0; border-radius: var(--radius-sm, 8px); color: rgba(255,255,255,.7); cursor: pointer; transform: none; }
.side-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }
.side-toggle svg { width: 18px; height: 18px; }
/* hidden: the column goes; one small button stays at the page's top-left, above the content */
body.has-side.side-hidden { display: block; }
body.side-hidden .side { position: absolute; top: 14px; left: 16px; width: auto; min-height: 0; background: none; z-index: 30; }
body.side-hidden .side > :not(.side-toggle) { display: none !important; }
body.side-hidden .side-toggle { position: static; width: 34px; height: 34px; background: var(--navy, #0D1B2A); color: #fff; box-shadow: 0 2px 8px rgba(13,27,42,.18); }
body.side-hidden .side-toggle:hover { background: var(--navy-2, #1C3A52); }
body.side-hidden .side-page { padding-top: 34px; }
@media (max-width: 900px) {
  body.has-side { display: block; }
  .side { width: auto; min-height: 52px; }
  .side > header, .side > .top { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 52px 10px 16px; }
  .side nav.tabs, .side .tabs { flex-direction: row; flex-wrap: wrap; gap: 6px 10px; padding: 4px 12px 10px; border-bottom: 2px solid var(--horizon, #4A90B8); }
  .side .tabs .grp { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 3px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; }
  .side .tabs .grp.links { padding: 3px; border: 1px dashed rgba(255,255,255,.2); background: transparent; }
  .side .tabs .gl { padding: 0 6px 0 7px; }
  .side .tabs button, .side .tabs a { width: auto; padding: 6px 10px; box-shadow: none; }
}
@media print { .side { display: none !important; } body.has-side { display: block; } }
/* === /house-ui standard === */
