/* RPV brand tokens — Forward · Responsible.
   Cool palette (MD, 2026-09-15, first on Partners Desk): the structural blues
   carry the page; Terracotta is kept for the one primary action only. */
:root {
  --midnight:#0D1B2A; --slate:#1C3A52; --steel:#2E5F80; --horizon:#4A90B8;
  --terracotta:#C4622D; --ember:#E07B45; --sand:#BFD6E8;
  --cream:#F3F6F9; --mist:#EEF2F5; --stone:#5C7284; --stone-2:#8FA3B1; /* stone passes 4.5:1 for text; stone-2 is decoration only */ --charcoal:#2C3E4A; --white:#fff;
  --ink-2:#5A7080; --surface-hover:#E2E9EF; --line-2:#D0DBE3; --line-input:#7F93A3; --info-bg:#D4E5F5;
  --action-hover:#A8521F;
  --border:#E1E8EE;
  --ok:#2D7A4F; --warn:#B87333; --danger:#B83232;
  --r-sm:4px; --r-md:6px; --r-lg:10px; --pill:6px;
  --sh-sm:none;
  --sh-md:0 2px 8px rgba(13,27,42,.06);
  --sh-pop:0 12px 36px rgba(13,27,42,.16);
  --ease:160ms cubic-bezier(.32,.72,0,1);
}
*{box-sizing:border-box}
body{
  margin:0; background-color:var(--cream); color:var(--charcoal);
  background-image:linear-gradient(rgba(44,62,74,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(44,62,74,.045) 1px, transparent 1px);
  background-size:28px 28px;
  font:400 15px/1.6 'Geist','DM Sans',system-ui,-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--steel)}
h1,h2,h3{margin:0; letter-spacing:.01em; font-weight:600}
h2{font-size:22px; font-weight:500}
h3{font-size:18px; font-weight:500}

/* ---- chrome ---- */
header{
  background:var(--midnight); color:var(--white);
  background-image:repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 10px);
  padding:0 32px; height:56px; display:flex; align-items:center; justify-content:space-between;
}
.brand{display:flex; align-items:baseline; gap:10px}
.brand .mark{font-weight:600; letter-spacing:.02em}
.brand .mark i{color:var(--horizon); font-style:normal}
.brand .name{font-size:15px; font-weight:500}
.brand .tag{font-size:11px; color:var(--stone-2); letter-spacing:.1em; text-transform:uppercase}
.head-right{display:flex; align-items:center; gap:10px; font-size:13px; color:var(--stone)}
.head-right input{
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); color:var(--white);
  border-radius:var(--r-sm); padding:5px 9px; font:inherit; font-size:13px; width:140px;
}
.head-right input::placeholder{color:var(--stone)}

nav.tabs{
  display:flex; gap:2px; padding:0 32px; background:var(--midnight);
  overflow-x:auto; border-top:1px solid rgba(255,255,255,.07); border-bottom:2px solid var(--horizon);
}
nav.tabs button{
  background:none; border:none; color:var(--stone); font:inherit; font-size:14px;
  padding:11px 14px; cursor:pointer; border-bottom:2px solid transparent; white-space:nowrap;
}
nav.tabs button:hover{color:var(--white)}
nav.tabs button.on{color:var(--white); border-bottom-color:var(--horizon)}
nav.tabs .n{color:var(--stone); font-size:11px; margin-left:5px}

main{max-width:1200px; margin:0 auto; padding:24px 32px 80px}
.lede{color:var(--stone); font-size:14px; max-width:76ch; margin:0 0 20px}

/* ---- cards, stats ---- */
.cards{display:flex; gap:16px; flex-wrap:wrap; margin-bottom:24px}
.stat{background:var(--mist); border:1px solid var(--border); border-top:3px solid var(--line-2); border-radius:var(--r-lg); padding:14px 18px; min-width:120px}
.stat b{display:block; font-size:26px; font-weight:600; color:var(--midnight); line-height:1.2}
.stat b.accent{color:var(--steel)}
.stat span{font-size:11px; color:var(--stone); text-transform:uppercase; letter-spacing:.06em}

.card{
  background:var(--white); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:20px 24px; margin-bottom:16px;
}
.card h3{margin-bottom:4px}
.card .meta{font-size:12px; color:var(--stone)}

/* ---- pipeline board ---- */
.board{display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; align-items:start}
.col{background:var(--mist); border-radius:var(--r-lg); padding:12px; min-height:80px}
.col > h4{
  margin:0 0 4px; font-size:11px; text-transform:uppercase; letter-spacing:.08em;
  color:var(--slate); font-weight:600; display:flex; justify-content:space-between;
}
.col > .means{font-size:11px; color:var(--stone); line-height:1.45; margin-bottom:10px}
.chip{
  background:var(--white); border:1px solid var(--border); border-radius:var(--r-md);
  padding:9px 11px; margin-bottom:8px; cursor:pointer; box-shadow:var(--sh-sm);
}
.chip:hover{border-color:var(--steel)}
.chip b{display:block; font-weight:500; font-size:14px}
.chip .sub{font-size:11px; color:var(--stone)}
.chip .age{font-size:10px; color:var(--stone); float:right}
.chip .age.stale{color:var(--warn)}

/* ---- tables ---- */
table{width:100%; border-collapse:collapse; font-size:14px; background:var(--white);
  border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden}
th{
  position:sticky; top:0; z-index:1; text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.06em;
  color:var(--stone); font-weight:500; padding:10px 12px; background:var(--mist);
  border-bottom:1px solid var(--border); white-space:nowrap;
}
td{padding:10px 12px; border-bottom:1px solid var(--border); vertical-align:top}
tr:last-child td{border-bottom:none}
tbody tr.clickable{cursor:pointer}
tbody tr.clickable:hover{background:var(--mist)}
td.num{text-align:right; font-variant-numeric:tabular-nums}
.muted{color:var(--stone)}
.small{font-size:12px}

/* ---- pills ---- */
.pill{
  display:inline-block; border-radius:var(--pill); padding:2px 9px;
  font-size:11px; font-weight:500; letter-spacing:.02em; white-space:nowrap;
}
.pill.ok{background:#D4EDDF; color:#2D7A4F}
.pill.pend{background:var(--info-bg); color:var(--steel)}
.pill.bad{background:#F5D4D4; color:#8B2020}
.pill.draft{background:#EEF2F5; color:#5A7080}
.pill.info{background:var(--info-bg); color:var(--slate)}

/* ---- buttons, forms ---- */
button.primary{
  background:var(--terracotta); color:var(--white); border:none; border-radius:6px;
  padding:10px 20px; font:inherit; font-size:14px; font-weight:500; cursor:pointer;
}
button.primary:hover{background:var(--action-hover)}
button.ghost{
  background:transparent; color:var(--slate); border:1.5px solid var(--slate); border-radius:6px;
  padding:9px 19px; font:inherit; font-size:14px; font-weight:500; cursor:pointer;
}
button.ghost:hover{background:var(--mist)}
button.text{background:none; border:none; color:var(--steel); font:inherit; font-size:13px; cursor:pointer; padding:2px 0}
button.text:hover{text-decoration:underline}
button:disabled{opacity:.45; cursor:not-allowed}
.row-actions{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.bar{display:flex; gap:10px; align-items:center; margin-bottom:16px; flex-wrap:wrap}
.bar .spacer{flex:1}

label{display:block; font-size:13px; color:var(--stone); margin-bottom:6px}
input,select,textarea{
  width:100%; background:var(--white); border:1px solid var(--line-input); border-radius:6px;
  padding:9px 11px; font:inherit; font-size:14px; color:var(--charcoal);
}
input:focus,select:focus,textarea:focus{outline:none; border:1.5px solid var(--steel)}
textarea{min-height:70px; resize:vertical; line-height:1.55}
.field{margin-bottom:14px}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:0 16px}
.grid3{display:grid; grid-template-columns:1fr 1fr 1fr; gap:0 16px}
.hint{font-size:12px; color:var(--stone); margin-top:-8px; margin-bottom:14px; line-height:1.5}

/* ---- modal / drawer ---- */
.scrim{position:fixed; inset:0; background:rgba(13,27,42,.45); display:flex; z-index:40}
.modal{
  background:var(--white); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--sh-pop);
  width:min(640px,94vw); max-height:88vh; overflow:auto; margin:auto; padding:24px 28px;
}
.drawer{
  background:var(--cream); width:min(760px,96vw); margin-left:auto; height:100%;
  overflow:auto; padding:24px 28px 60px; box-shadow:var(--sh-pop); border-left:1px solid var(--border);
}
.modal h3,.drawer h2{margin-bottom:12px}
.modal .row-actions{margin-top:20px}
.err{background:#F5D4D4; color:#8B2020; border-radius:6px; padding:9px 12px; font-size:13px; margin-bottom:14px}
.blocked{background:#F5E6D0; color:#8B5A1A; border-radius:6px; padding:10px 13px; font-size:13px; margin-bottom:14px; line-height:1.55}

/* ---- trail ---- */
.trail{border-left:2px solid var(--sand); margin:8px 0 0; padding:0 0 0 16px; list-style:none}
.trail li{margin-bottom:12px; font-size:13px; position:relative}
.trail li::before{
  content:''; position:absolute; left:-21px; top:6px; width:8px; height:8px;
  border-radius:50%; background:var(--steel);
}
.trail .when{color:var(--stone); font-size:11px}

/* ---- rubric ---- */
.rate{display:flex; gap:6px; margin-bottom:6px}
.rate button{
  flex:1; background:var(--white); border:1px solid var(--line-input); border-radius:6px;
  padding:8px 0; font:inherit; font-size:14px; cursor:pointer; color:var(--charcoal);
}
.rate button.on{background:var(--slate); color:var(--white); border-color:var(--slate)}
.anchor{font-size:12px; color:var(--stone); min-height:18px; margin-bottom:14px}

.section-title{font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--stone);
  font-weight:600; margin:24px 0 10px}
.empty{color:var(--stone); font-size:14px; padding:28px; text-align:center;
  background:var(--mist); border-radius:var(--r-lg)}
.foot{color:var(--stone); font-size:12px; margin-top:28px}
@media (max-width:720px){
  header,nav.tabs{padding:0 16px} main{padding:16px}
  .grid2,.grid3{grid-template-columns:1fr}
}

/* ---- cool skin: texture, icons, motion (house rules from Partners Desk, 2026-09-15) ----
   Every animation is short, eased out, and off under prefers-reduced-motion. */
.ic{width:1em; height:1em; vertical-align:-0.15em; display:inline-block; flex:0 0 auto}
nav.tabs button .ic{margin-right:6px; width:15px; height:15px; opacity:.85}
nav.tabs button.on .ic{color:var(--horizon); opacity:1}
h2 .ic, h3 .ic, .section-title .ic{color:var(--horizon); margin-right:4px}
.mark .dot{display:inline-block; width:5px; height:5px; border-radius:50%; background:var(--horizon); margin-left:3px; vertical-align:2px}
@keyframes rise{from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none}}
.card, .stat{animation:rise 360ms cubic-bezier(.22,.8,.3,1) both}
.stat:nth-child(2){animation-delay:40ms} .stat:nth-child(3){animation-delay:80ms} .stat:nth-child(4){animation-delay:120ms} .stat:nth-child(5){animation-delay:160ms} .stat:nth-child(n+6){animation-delay:200ms}
.stat{transition:transform var(--ease), border-color var(--ease)}
.stat:hover{transform:translateY(-2px); border-top-color:var(--horizon)}
.card{transition:border-color var(--ease), box-shadow var(--ease)}
.card:hover{box-shadow:var(--sh-md)}
button.primary, button.ghost, button.btn, .btn{transition:background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease)}
button.primary:hover, button.ghost:hover, button.btn:hover{transform:translateY(-1px)}
button.primary:hover, button.btn:not(.ghost):hover{box-shadow:0 3px 10px rgba(196,98,45,.25)}
button:active{transform:translateY(1px)}
@media (prefers-reduced-motion: reduce){
  .card, .stat{animation:none !important}
  .card, .stat, button.primary, button.ghost, button.btn, .btn{transition:none}
}

@media print{ body{background:#fff; font-size:11pt} header, nav, nav.tabs, .tabs, button, .btn, .act, #toast, .toast, #modal, .scrim{display:none !important} main, .wrap{max-width:none; padding:0} .card, .stat, table{break-inside:avoid; box-shadow:none} th{position:static} a{color:inherit; text-decoration:none} }

/* === 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 === */
