/* Commy — a stone dungeon we decked out. Carved dark stone, warm torchlight, brass, oxblood, verdigris. */
:root {
  --bg: #0d0b0a;
  --stone-1: #161311; --stone-2: #1d1916; --stone-3: #27221d; --stone-4: #322b25;
  --line: rgba(205, 168, 105, .14); --line-2: rgba(205, 168, 105, .26);
  --brass: #c9a25c; --brass-hi: #ecd09a; --brass-lo: #8a6631;
  --ember: #e08a3c;
  --text: #ece3d3; --muted: #a89c88; --faint: #6f675b;
  --ok: #8fae74; --warn: #d9a74f; --bad: #c4493d;
  --r: 6px; --r-lg: 10px;
  --display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rail: 236px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 15px/1.5 var(--body); background-color: var(--bg);
  background-image:
    radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(0,0,0,.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.8 0 0 0 0 0.65 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='168'%3E%3Crect x='2' y='2' width='296' height='80' fill='%23fff' fill-opacity='.014'/%3E%3Crect x='2' y='86' width='146' height='80' fill='%23fff' fill-opacity='.006'/%3E%3Crect x='152' y='86' width='146' height='80' fill='%23fff' fill-opacity='.02'/%3E%3Cpath d='M0 1H300M0 85H300M1 0V85M150 85V168' stroke='%23000' stroke-opacity='.6' stroke-width='3' fill='none'/%3E%3Cpath d='M0 3.5H300M0 87.5H300' stroke='%23ffe2b0' stroke-opacity='.03' fill='none'/%3E%3C/svg%3E");
  background-attachment: fixed;
}
.torch { position: fixed; top: -18vh; width: 70vw; height: 80vh; pointer-events: none; z-index: 0; filter: blur(8px);
  background: radial-gradient(closest-side, rgba(224, 138, 60, .16), rgba(224, 138, 60, .05) 55%, transparent); animation: flicker 7s ease-in-out infinite; }
.torch.l { left: -22vw; } .torch.r { right: -26vw; animation-delay: -3.3s; animation-duration: 9s; }
@keyframes flicker { 0%, 100% { opacity: .85; } 20% { opacity: 1; } 38% { opacity: .78; } 55% { opacity: .95; } 72% { opacity: .82; } }
@media (prefers-reduced-motion: reduce) { .torch { animation: none; } * { transition: none !important; } }

a { color: var(--brass-hi); text-decoration: none; }
a:hover { color: #fff1d2; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(201, 162, 92, .35); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
.i { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .center { text-align: center; }
.gold-t { color: var(--brass-hi); } .neg { color: var(--bad); } .warn { color: var(--warn); } .grow { flex: 1; } .nowrap { white-space: nowrap; }
.lead { font: 600 22px/1.25 var(--display); color: var(--text); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.h-display { font: 600 clamp(34px, 4.4vw, 50px)/1.02 var(--display); letter-spacing: -.01em; color: #f3ead9; text-shadow: 0 2px 24px rgba(224, 138, 60, .12); }
.nocopy { -webkit-user-select: none; user-select: none; }
@media print { body { display: none !important; } }

/* ------------------------------------------------------------------ the hall */
#app { position: relative; z-index: 1; }
.hall { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 16px;
  background: linear-gradient(180deg, rgba(14, 12, 10, .92), rgba(10, 9, 8, .96)); border-right: 1px solid var(--line);
  box-shadow: inset -1px 0 0 rgba(0,0,0,.6), 12px 0 40px -20px rgba(0,0,0,.8); }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 22px; color: var(--text); }
.brand-w { font: 700 27px/1 var(--display); letter-spacing: .04em; background: linear-gradient(180deg, #f6e2b6, #c9a25c 70%, #8a6631); -webkit-background-clip: text; background-clip: text; color: transparent; }
.crest { filter: drop-shadow(0 0 10px rgba(224, 138, 60, .25)); }
.nav { display: flex; flex-direction: column; gap: 18px; flex: 1; overflow-y: auto; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-sub { padding-top: 14px; border-top: 1px solid rgba(205,168,105,.08); }
.nav-a { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r); color: var(--muted); font-weight: 500; transition: background .15s, color .15s; }
.nav-a:hover { color: var(--text); background: rgba(255, 235, 200, .035); }
.nav-a.on { color: #fbefd6; background: linear-gradient(90deg, rgba(201,162,92,.16), rgba(201,162,92,.03)); box-shadow: inset 0 0 0 1px rgba(201,162,92,.18); }
.nav-a.on::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brass); box-shadow: 0 0 12px var(--ember); }
.nav-a.on .i { color: var(--brass-hi); }
.nav-l { flex: 1; }
.nav-n { font: 600 13px var(--display); color: var(--faint); letter-spacing: .05em; }
.nav-a.sealed { color: var(--faint); } .nav-a.sealed .nav-n { display: none; }
.nav-lock { width: 14px; height: 14px; color: var(--faint); }
.rail-foot { display: flex; align-items: center; gap: 8px; padding: 12px 6px 0; border-top: 1px solid rgba(205,168,105,.08); }
.me { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.me b { display: block; font-weight: 600; font-size: 14px; } .me small { display: block; color: var(--faint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sigil { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; font: 700 13px var(--display); letter-spacing: .04em; color: #1a140c;
  background: radial-gradient(circle at 35% 30%, #f6e0b0, #c9a25c 55%, #7d5a26); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 0 3px rgba(201,162,92,.15); }
.sigil.sm { width: 24px; height: 24px; font-size: 10px; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }

.room { min-width: 0; padding: 0 clamp(16px, 3.4vw, 44px) 80px; }
.room-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; height: 60px; margin: 0 calc(-1 * clamp(16px, 3.4vw, 44px)) 8px; padding: 0 clamp(16px, 3.4vw, 44px);
  background: linear-gradient(180deg, rgba(13,11,10,.94), rgba(13,11,10,.7)); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(205,168,105,.07); }
.crumbs { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs span:last-child { color: var(--text); overflow: hidden; text-overflow: ellipsis; } .crumbs .sep { color: var(--faint); }
.coach-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(201,162,92,.06); color: var(--brass-hi); cursor: pointer; font-weight: 600; font-size: 13px; letter-spacing: .04em; }
.coach-btn:hover, .coach-btn.on { background: rgba(201,162,92,.16); box-shadow: 0 0 20px -6px var(--ember); }
.view { max-width: 1240px; margin: 0 auto; }

/* ------------------------------------------------------------------ coach drawer */
.coach { position: fixed; z-index: 30; top: 0; right: 0; bottom: 0; width: min(380px, 100vw); transform: translateX(102%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
  background: linear-gradient(180deg, #17130f, #0f0d0b); border-left: 1px solid var(--line-2); box-shadow: -30px 0 60px -20px rgba(0,0,0,.9); }
.coach.open { transform: none; }
.coach-in { height: 100%; overflow-y: auto; padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.coach-head { display: flex; align-items: center; justify-content: space-between; }
.coach-t { font: 600 24px/1.15 var(--display); }
.coach-list details { border-top: 1px solid rgba(205,168,105,.08); padding: 10px 0; }
.coach-list summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; }
.coach-list summary::-webkit-details-marker { display: none; }
.coach-list ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; } .coach-list li { margin: 5px 0; }
.coach-ask { display: flex; gap: 6px; margin-top: auto; padding-top: 12px; }
.coach-ask input { flex: 1; } .coach-ask button { width: 42px; border-radius: var(--r); border: 1px solid var(--line); background: var(--stone-2); color: var(--faint); }

/* ------------------------------------------------------------------ surfaces */
.slab { position: relative; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(36, 31, 27, .9), rgba(22, 19, 17, .94));
  box-shadow: inset 0 1px 0 rgba(255, 230, 190, .05), inset 0 -1px 0 rgba(0,0,0,.5), 0 24px 48px -28px rgba(0,0,0,.95); }
.slab::before { content: ''; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(236, 208, 154, .45), transparent); }
.slab + .slab, .slab + .btn, .btn.wide + .btn.wide, .slab + p, .slab + form { margin-top: 14px; }
.empty { text-align: center; padding: 34px 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty .btn { margin-top: 10px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 34px 0 12px; }
.sec-h h2 { font: 600 25px/1.1 var(--display); } .sec-h h3 { font: 600 20px/1.15 var(--display); }
.sec-h.tight { margin: 0 0 12px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.col-side > .sec-h:first-child, .col-main > .sec-h:first-child { margin-top: 18px; }
.col-side { display: flex; flex-direction: column; }
.col-side > .slab + .slab { margin-top: 14px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--muted); }
.badge .i { width: 13px; height: 13px; }
.badge.live { color: #b6d69a; border-color: rgba(143,174,116,.45); background: rgba(143,174,116,.1); box-shadow: 0 0 14px -4px rgba(143,174,116,.5); }
.badge.dead { color: #d98b81; border-color: rgba(196,73,61,.4); background: rgba(196,73,61,.08); }
.badge.gold { color: #1a140c; border: 0; background: linear-gradient(180deg, #f0d499, #c9a25c); }
.badge.lg { padding: 6px 14px; font-size: 13px; }

/* ------------------------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--r); cursor: pointer; font-weight: 600; font-size: 14px; letter-spacing: .02em;
  color: var(--text); background: linear-gradient(180deg, #2c2620, #1f1a16); border: 1px solid rgba(205,168,105,.28); box-shadow: inset 0 1px 0 rgba(255,235,200,.06), 0 6px 14px -8px rgba(0,0,0,.9);
  transition: border-color .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:hover { border-color: rgba(236,208,154,.55); color: #fff4dc; }
.btn:active { transform: translateY(1px); }
.btn.gold { color: #1b130a; border: 1px solid #f2d9a2; background: linear-gradient(180deg, #f2d9a2 0%, #d4ad66 45%, #a87e3d 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(90,60,20,.35), 0 10px 26px -10px rgba(224,138,60,.55); text-shadow: 0 1px 0 rgba(255,240,210,.4); }
.btn.gold:hover { filter: brightness(1.06); color: #120c05; }
.btn.ghost, .ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost { border: 1px solid rgba(205,168,105,.16); color: var(--muted); }
.btn.ghost:hover { color: var(--text); border-color: var(--line-2); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.wide { width: 100%; margin-top: 14px; padding: 13px 18px; font-size: 15px; }
.btn.danger, .danger { color: #e09b91 !important; }
.btn.danger:not(.ghost) { border-color: rgba(196,73,61,.5); background: linear-gradient(180deg, #3a1d18, #26130f); }
.btn[aria-disabled="true"] { filter: saturate(.3) brightness(.7); }
.btn.busy, button.busy { opacity: .6; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r); cursor: pointer; color: var(--muted); border: 0; background: transparent; }
.icon-btn:hover { color: var(--text); background: rgba(255,235,200,.05); }
.icon-btn.mini { width: 26px; height: 26px; } .icon-btn.mini .i { width: 15px; height: 15px; }
.link { display: inline-flex; align-items: center; gap: 5px; color: var(--brass); background: none; border: 0; cursor: pointer; padding: 0; font-weight: 600; font-size: 14px; }
.link .i { width: 15px; height: 15px; } .link:hover { color: var(--brass-hi); }
input, select, textarea { width: 100%; padding: 10px 12px; border-radius: var(--r); border: 1px solid rgba(205,168,105,.16); background: rgba(8, 7, 6, .55); color: var(--text);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.45); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #5f584d; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(236,208,154,.6); box-shadow: inset 0 2px 6px rgba(0,0,0,.45), 0 0 0 3px rgba(201,162,92,.14); }
input.saved, textarea.saved { border-color: rgba(143,174,116,.7); }
input:disabled { opacity: .5; }
textarea { resize: vertical; min-height: 72px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(-45deg, transparent 50%, var(--brass) 50%); background-position: right 15px top 55%, right 10px top 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
label { display: block; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; flex: 1; min-width: 0; }
.fld > span, .lbl, .stack label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; } .stack label input { margin-top: 6px; }
.frow { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; } .frow > .fld { min-width: 110px; } .frow > .grow2 { flex: 2; min-width: 200px; }
.inline { display: flex; gap: 8px; margin-top: 12px; }
.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 5px; cursor: pointer; border: 1px solid rgba(205,168,105,.35); background: rgba(8,7,6,.5); color: transparent; }
.tick .i { width: 15px; height: 15px; }
.tick:hover { border-color: var(--brass-hi); }
.tick.on { color: #1b130a; border-color: #f2d9a2; background: linear-gradient(180deg, #f0d499, #c9a25c); }
.seg { display: flex; padding: 3px; gap: 3px; border-radius: var(--r); background: rgba(8,7,6,.55); border: 1px solid rgba(205,168,105,.12); margin: 6px 0 14px; }
.seg button { flex: 1; padding: 7px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 13px; }
.seg button:hover { color: var(--text); }
.seg button.on { color: #1b130a; background: linear-gradient(180deg, #ecd09a, #c39b55); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }

/* ------------------------------------------------------------------ stamps + track */
.stamp { display: inline-block; padding: 3px 10px; border: 2px solid currentColor; border-radius: 4px; transform: rotate(-4deg); font: 700 15px/1.1 var(--display); letter-spacing: .18em; text-transform: uppercase;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.35); opacity: .95; mix-blend-mode: screen; }
.stamp.sm { font-size: 11px; padding: 1px 7px; border-width: 1.5px; }
.stamp.lg { font-size: 20px; padding: 6px 16px; border-width: 3px; outline: 1px solid currentColor; outline-offset: 2px; }
.stamp.pursue { color: var(--ok); } .stamp.research { color: var(--warn); } .stamp.reject { color: var(--bad); }
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stamp-btn { padding: 12px 6px; border-radius: var(--r); border: 1.5px dashed rgba(205,168,105,.25); background: rgba(8,7,6,.4); cursor: pointer; font: 700 14px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: all .15s; }
.stamp-btn:hover { color: var(--text); border-style: solid; }
.stamp-btn.on { border-style: solid; border-width: 2px; transform: rotate(-3deg); background: rgba(0,0,0,.25); }
.stamp-btn.pursue.on { color: var(--ok); border-color: var(--ok); box-shadow: 0 0 22px -8px var(--ok); }
.stamp-btn.research.on { color: var(--warn); border-color: var(--warn); box-shadow: 0 0 22px -8px var(--warn); }
.stamp-btn.reject.on { color: var(--bad); border-color: var(--bad); box-shadow: 0 0 22px -8px var(--bad); }
.track { display: flex; list-style: none; margin: 14px 0 0; padding: 0; max-width: 560px; }
.track li { position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.track li::before { content: ''; position: absolute; top: 6px; left: 14px; right: 0; height: 2px; background: rgba(205,168,105,.12); }
.track li:last-child::before { display: none; }
.track .pip { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(205,168,105,.3); background: var(--bg); }
.track li.past { color: var(--muted); } .track li.past::before { background: linear-gradient(90deg, var(--brass), var(--brass-lo)); }
.track li.past .pip { background: var(--brass); border-color: var(--brass); }
.track li.now { color: var(--brass-hi); } .track li.now .pip { border-color: var(--brass-hi); background: radial-gradient(circle, var(--ember) 30%, transparent 35%); box-shadow: 0 0 14px var(--ember); }

/* ------------------------------------------------------------------ home */
.hero { padding: 26px 0 8px; } .hero .eyebrow { display: block; margin-bottom: 8px; } .hero .muted { margin-top: 10px; font-size: 16px; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.board-cell { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: var(--r-lg); color: var(--text); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(44,38,32,.85), rgba(20,18,15,.95)); box-shadow: inset 0 1px 0 rgba(255,230,190,.06), 0 18px 40px -26px rgba(0,0,0,1); transition: border-color .2s, transform .2s; }
.board-cell:hover { border-color: rgba(236,208,154,.4); transform: translateY(-2px); color: var(--text); }
.board-n { font: 600 46px/1 var(--display); color: #f5e6c6; }
.board-cell.live .board-n { color: #c3dea9; text-shadow: 0 0 22px rgba(143,174,116,.35); }
.board-l { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.board-arrow { position: absolute; right: -15px; top: 50%; z-index: 2; transform: translateY(-50%); display: grid; place-items: center; width: 18px; color: var(--brass-lo); }
.board-arrow .i { width: 16px; height: 16px; }
.ledger ul, .goals ul, .crew ul, .posts ul, .checklist ul { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(205,168,105,.07); font-size: 14px; color: var(--muted); }
.ledger li:first-child { border-top: 0; padding-top: 0; } .ledger b { color: var(--text); font-weight: 600; }
.goals li, .checklist li { display: flex; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; }
.goals li span { flex: 1; } .goals li.done span, .checklist li.done span { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(201,162,92,.4); }
.goals li .mini { opacity: 0; } .goals li:hover .mini, .goals li .mini:focus-visible { opacity: 1; }
.crew li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(205,168,105,.07); }
.crew li:first-child { border-top: 0; padding-top: 0; }
.crew b { font-weight: 600; } .crew small { display: block; color: var(--faint); font-size: 12px; }
.crown { width: 14px; height: 14px; margin-left: 6px; color: var(--brass); vertical-align: -1px; }
.crew + p { margin-top: 10px; }

/* ------------------------------------------------------------------ halls */
.hall-h { display: flex; gap: 22px; align-items: center; padding: 26px 0 22px; }
.hall-h .muted { margin-top: 8px; font-size: 16px; max-width: 620px; }
.numeral { display: grid; place-items: center; flex: none; width: 70px; height: 70px; border-radius: 50%; font: 600 26px/1 var(--display); color: var(--brass-hi);
  background: radial-gradient(circle at 50% 30%, #2d2721, #120f0d); border: 1px solid var(--line-2); box-shadow: inset 0 2px 8px rgba(0,0,0,.7), 0 0 30px -10px var(--ember); }
.numeral .i { width: 28px; height: 28px; }
.numeral.sm { width: 34px; height: 34px; font-size: 15px; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.bring { padding: 14px; }
.bring-row { display: flex; gap: 10px; } .bring-row input:first-child { flex: 2; } .bring-row input:nth-child(2) { flex: 1; }
.bring-note { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid rgba(205,168,105,.14); background: rgba(14,12,10,.6); }
.chip span { color: var(--faint); font-size: 12px; }
.chip:hover { color: var(--text); }
.chip.on { color: #1b130a; background: linear-gradient(180deg, #ecd09a, #c39b55); border-color: #f2d9a2; } .chip.on span { color: rgba(27,19,10,.6); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px; border-radius: var(--r-lg); color: var(--text); border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(40,35,29,.9), rgba(19,17,15,.96)); box-shadow: inset 0 1px 0 rgba(255,230,190,.05), 0 18px 36px -24px rgba(0,0,0,1); transition: transform .18s, border-color .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); border-color: rgba(236,208,154,.38); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,230,190,.07), 0 26px 44px -22px rgba(0,0,0,1), 0 0 30px -16px var(--ember); }
.card-top { display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.plat { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.card-t { font: 600 22px/1.15 var(--display); }
.card-note { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.card-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(205,168,105,.08); }
.card-nums dt { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.card-nums dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.bar { flex: 1; max-width: 120px; height: 4px; border-radius: 4px; background: rgba(205,168,105,.1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brass-lo), var(--brass-hi)); }
.who { display: inline-flex; gap: 8px; align-items: center; }
.graveyard { margin-top: 34px; } .graveyard > summary { cursor: pointer; display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.graveyard .card { filter: grayscale(.7) brightness(.8); }
.note-bar { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r); font-size: 13px; color: var(--muted); border: 1px dashed rgba(205,168,105,.2); }
.note-bar .i { width: 15px; height: 15px; color: var(--brass); }

/* ------------------------------------------------------------------ dossier */
.dossier-h { padding: 22px 0 6px; }
.dossier-top { display: flex; align-items: center; gap: 18px; }
.title-in { flex: 1; min-width: 0; padding: 4px 8px; margin-left: -8px; border: 1px solid transparent; background: transparent; box-shadow: none; }
.title-in:hover { border-color: rgba(205,168,105,.12); } .title-in:focus { background: rgba(8,7,6,.5); }
.dossier-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.holder { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); } .holder b { color: var(--text); }
.dead-why { margin-top: 10px; color: #d98b81; }
.kill { position: relative; } .kill > summary { list-style: none; } .kill > summary::-webkit-details-marker { display: none; }
.kill-f { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; display: flex; gap: 8px; width: min(380px, 86vw); padding: 12px; border-radius: var(--r-lg); background: #15110f; border: 1px solid rgba(196,73,61,.4); box-shadow: 0 20px 40px -10px rgba(0,0,0,.9); }
.tabs { display: flex; gap: 4px; margin: 22px 0 22px; border-bottom: 1px solid rgba(205,168,105,.12); overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; padding: 11px 18px; color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: .04em; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.on { color: #fbefd6; } .tab.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--brass); box-shadow: 0 0 10px var(--ember); }
.tab.cur::before { content: ''; position: absolute; top: 9px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.verdict .stamps { margin-top: 2px; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; margin-bottom: 6px; }
.num-cell { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border-left: 1px solid rgba(205,168,105,.08); }
.num-cell:first-child { border-left: 0; }
.num-cell > span:first-child { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.num-cell b { font: 600 32px/1 var(--display); font-variant-numeric: tabular-nums; }
.num-cell small { font-size: 12px; }
.num-in { display: flex; align-items: center; gap: 4px; } .num-in i { font: 600 26px var(--display); color: var(--faint); font-style: normal; }
.num-in input { font: 600 28px/1 var(--display); padding: 2px 8px; height: 40px; }
.table-wrap { padding: 4px 6px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th { padding: 12px 10px; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid rgba(205,168,105,.1); }
.tbl td { padding: 12px 10px; border-bottom: 1px solid rgba(205,168,105,.06); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td small { display: block; font-size: 12px; margin-top: 2px; }
.tbl .r { text-align: right; }
.tbl tr.chosen td { background: rgba(201,162,92,.06); } .tbl tr.chosen td:first-child { box-shadow: inset 3px 0 0 var(--brass); }
.best { color: #c3dea9; font-weight: 700; } .best::after { content: ' ●'; font-size: 8px; vertical-align: 2px; color: var(--ok); }
.add-sup { margin-top: 14px; }
.posts li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(205,168,105,.07); }
.posts li:first-child { border-top: 0; padding-top: 0; }
.posts li small { display: block; font-size: 12px; }
.post-f { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(205,168,105,.08); } .post-f .fld { margin-bottom: 0; } .post-f .btn { height: 42px; }

/* ------------------------------------------------------------------ library */
.module { padding: 6px 20px 8px; } .module + .module { margin-top: 14px; }
.module-h { display: flex; align-items: center; gap: 12px; padding: 12px 0; } .module-h h3 { flex: 1; font: 600 22px var(--display); }
.lesson { border-top: 1px solid rgba(205,168,105,.08); padding: 12px 0; }
.lesson > summary, .notes > summary, .note > summary { cursor: pointer; font-weight: 600; list-style: none; }
.lesson > summary::-webkit-details-marker, .notes > summary::-webkit-details-marker, .note > summary::-webkit-details-marker { display: none; }
.lesson > summary .faint { display: inline-block; min-width: 34px; font-variant-numeric: tabular-nums; }
.pts { margin: 10px 0 0; padding-left: 20px; color: var(--muted); } .pts li { margin: 6px 0; }
.notes { margin: 12px 0 0 0; } .notes > summary { color: var(--brass); font-size: 13px; }
.notes-body { margin-top: 10px; padding: 14px 16px; border-radius: var(--r); background: rgba(8,7,6,.45); color: var(--muted); font-size: 14px; max-height: 420px; overflow-y: auto; }
.note > summary { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.note-body { margin-top: 10px; color: var(--muted); font-size: 14px; white-space: pre-wrap; }
.note-foot { display: flex; gap: 8px; align-items: center; margin-top: 10px; } .note-foot .faint { flex: 1; }
.invite-out { display: flex; gap: 8px; margin-top: 14px; }

/* ------------------------------------------------------------------ sealed */
.vault { display: grid; place-items: center; min-height: 46vh; }
.vault-door { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 46px 60px; border-radius: 50%; aspect-ratio: 1; justify-content: center; text-align: center; color: var(--muted);
  border: 1px solid var(--line-2); background: repeating-radial-gradient(circle, rgba(205,168,105,.06) 0 1px, transparent 1px 16px), radial-gradient(circle, #231e19, #0f0d0b 70%);
  box-shadow: inset 0 0 50px rgba(0,0,0,.9), 0 0 0 10px rgba(14,12,10,.8), 0 0 0 11px rgba(205,168,105,.18), 0 30px 80px -30px rgba(224,138,60,.25); }
.vault-lock { width: 40px; height: 40px; color: var(--brass); }

/* ------------------------------------------------------------------ door */
.door-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.door { width: min(400px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.door-crest .crest { filter: drop-shadow(0 0 24px rgba(224,138,60,.45)); }
.door-w { margin-top: 12px; font: 700 58px/1 var(--display); letter-spacing: .05em; background: linear-gradient(180deg, #f8e7c0, #c9a25c 65%, #7d5a26); -webkit-background-clip: text; background-clip: text; color: transparent; }
.door-sub { margin: 10px 0 26px; color: var(--muted); font: italic 500 18px var(--display); }
.door-slab { width: 100%; text-align: left; padding: 24px; }
.door-slab .btn { width: 100%; margin-top: 6px; padding: 13px; }
.door-slab > p + .btn, .door-slab > .lead + p { margin-top: 8px; }

/* ------------------------------------------------------------------ toast */
.toast { position: fixed; z-index: 50; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 18px; border-radius: var(--r); font-weight: 600; font-size: 14px;
  background: #1d1814; border: 1px solid var(--line-2); box-shadow: 0 20px 40px -10px rgba(0,0,0,.9); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(196,73,61,.6); color: #f0b3aa; } .toast.warn { border-color: rgba(217,167,79,.6); color: #f1d39a; }
.tabbar { display: none; }

/* ------------------------------------------------------------------ narrow */
@media (max-width: 1080px) { .cols { grid-template-columns: minmax(0, 1fr); } .col-side { order: -1; } [data-page="home"] .col-side, [data-page="library"] .col-side { order: 0; } }
@media (max-width: 860px) {
  .hall { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .room { padding: 0 16px 96px; }
  .room-top { margin: 0 -16px 4px; padding: 0 16px; }
  .tabbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(12,10,9,.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--faint); font-size: 11px; font-weight: 600; }
  .tabbar a.on { color: var(--brass-hi); }
  .board { grid-template-columns: repeat(2, 1fr); } .board-arrow { display: none; }
  .bring-row { flex-direction: column; }
  .nums { grid-template-columns: repeat(2, 1fr); } .num-cell:nth-child(3) { border-left: 0; } .num-cell:nth-child(n+3) { border-top: 1px solid rgba(205,168,105,.08); }
  .hall-h { gap: 16px; padding: 18px 0 16px; } .numeral { width: 54px; height: 54px; font-size: 21px; }
  .dossier-top { flex-wrap: wrap; gap: 10px; }
  .coach-btn span { display: none; }
  .torch { width: 120vw; }
}
@media (max-width: 420px) { .grid { grid-template-columns: minmax(0, 1fr); } .stamps { grid-template-columns: 1fr; } .frow > .fld { min-width: 0; flex-basis: calc(50% - 6px); } .frow > .grow2 { flex-basis: 100%; } }

/* numbers: the display serif's old-style figures read 1 as I and 0 as O — always lining figures */
.board-n, .num-cell b, .num-in input, .card-nums dd, .tbl, .numeral, .sec-h .faint, .chip span { font-variant-numeric: lining-nums tabular-nums; }
.door-slab .center { margin-top: 12px; }

/* ------------------------------------------------------------------ the product card (one record) */
.secnav { position: sticky; top: 60px; z-index: 4; display: flex; gap: 4px; margin: 22px calc(-1 * clamp(16px, 3.4vw, 44px)) 0; padding: 8px clamp(16px, 3.4vw, 44px);
  overflow-x: auto; scrollbar-width: none; background: linear-gradient(180deg, rgba(13,11,10,.92), rgba(13,11,10,.75)); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(205,168,105,.1); }
.secnav-a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: .04em; white-space: nowrap; }
.secnav-a:hover { color: var(--text); border-color: rgba(205,168,105,.2); }
.dot { width: 7px; height: 7px; border-radius: 50%; } .dot.pursue { background: var(--ok); } .dot.research { background: var(--warn); } .dot.reject { background: var(--bad); }
.card-sec { scroll-margin-top: 120px; padding-top: 34px; }
.card-sec + .card-sec { margin-top: 10px; border-top: 1px solid rgba(205,168,105,.08); }
.card-sec-h { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.card-sec-h h2 { font: 600 30px/1 var(--display); }
.card-sec .sec-h:first-child { margin-top: 20px; }
.stamp-btn small { display: block; margin-top: 4px; font: 500 11px var(--body); letter-spacing: .02em; text-transform: none; color: var(--faint); }
.decision .stamps { gap: 12px; } .decision .stamp-btn { padding: 18px 8px; font-size: 16px; }
.decide-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(205,168,105,.08); }
.nums.five { grid-template-columns: repeat(5, 1fr); }
.perf { margin-top: 14px; } .perf .tbl td { padding: 8px 10px; }
.cell-in { width: 110px; padding: 6px 8px; text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Source: the wiring */
.wire + .wire { margin-top: 18px; }
.wire-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid rgba(205,168,105,.08); }
.wire-t { font: 600 26px/1.1 var(--display); color: #f3ead9; }
.wire-stat { display: flex; flex-direction: column; align-items: flex-end; } .wire-stat span { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.wire-stat b { font: 600 20px var(--display); font-variant-numeric: lining-nums tabular-nums; }
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 20px 0; }
.node { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; border-radius: var(--r); color: var(--text);
  border: 1px solid rgba(205,168,105,.28); background: radial-gradient(120% 140% at 0% 0%, rgba(201,162,92,.1), rgba(10,9,8,.5) 60%); box-shadow: inset 0 1px 0 rgba(255,235,200,.06); }
.chain .node:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -29px; width: 28px; height: 2px; background: linear-gradient(90deg, var(--brass), var(--brass-lo)); box-shadow: 0 0 8px rgba(224,138,60,.5); }
.chain .node.missing:not(:last-child)::after, .chain .node:has(+ .node.missing)::after { background: repeating-linear-gradient(90deg, rgba(205,168,105,.35) 0 4px, transparent 4px 8px); box-shadow: none; }
.node-k { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.node-v { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f3ead9; }
a.node-v:hover { color: #fff; }
.node small { font-size: 12px; color: var(--muted); }
.node.missing { border-style: dashed; border-color: rgba(205,168,105,.22); background: rgba(10,9,8,.35); }
.node.missing .node-v { color: var(--faint); } .node.missing small { color: var(--brass); }
.node.missing:hover { border-color: var(--brass); }
.node.wide { margin-top: 8px; }
.content-h { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 10px; }
.content { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.acct { padding: 12px 14px; border-radius: var(--r); border: 1px solid rgba(205,168,105,.14); background: rgba(10,9,8,.4); }
.acct-h { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(205,168,105,.08); } .acct-h .faint.small:last-child { margin-left: auto; }
.acct ul { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; } .acct li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.acct li > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acct-list ul { list-style: none; margin: 0; padding: 0; } .acct-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(205,168,105,.07); }
.acct-list li:first-child { border-top: 0; } .acct-list small { display: block; font-size: 12px; }
.acct-f { margin-top: 14px; } .acct-f .fld { margin-bottom: 0; } .acct-f .btn { height: 42px; }
@media (max-width: 860px) {
  .chain { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .chain .node:not(:last-child)::after { top: auto; bottom: -15px; right: auto; left: 22px; width: 2px; height: 14px; background: linear-gradient(180deg, var(--brass), var(--brass-lo)); }
  .chain .node.missing:not(:last-child)::after, .chain .node:has(+ .node.missing)::after { background: repeating-linear-gradient(180deg, rgba(205,168,105,.35) 0 3px, transparent 3px 6px); }
  .acct-grid { grid-template-columns: minmax(0, 1fr); }
  .nums.five { grid-template-columns: repeat(2, 1fr); } .nums.five .num-cell:nth-child(odd) { border-left: 0; } .nums.five .num-cell:nth-child(n+3) { border-top: 1px solid rgba(205,168,105,.08); }
  .nums.five .num-cell:last-child { grid-column: 1 / -1; }
  .secnav { top: 60px; margin: 14px -16px 0; padding: 8px 16px; }
  .decision .stamps { grid-template-columns: minmax(0, 1fr); }
  .wire-h .grow { flex-basis: 100%; height: 0; } .wire-stat { align-items: flex-start; }
}

/* ------------------------------------------------------------------ shared database pieces (2026-10-16) */
.meter { display: inline-flex; align-items: center; gap: 3px; } .meter i { width: 8px; height: 8px; border-radius: 2px; background: rgba(205,168,105,.14); }
.meter i.on { background: linear-gradient(180deg, var(--brass-hi), var(--brass)); box-shadow: 0 0 6px rgba(224,138,60,.35); }
.meter b { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.due { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--warn); border: 1px solid rgba(217,167,79,.4); border-radius: 999px; padding: 1px 7px; }
.badge.gold-b { color: var(--brass-hi); border-color: rgba(236,208,154,.4); background: rgba(201,162,92,.08); margin-left: 6px; }
.card-note b { color: var(--text); font-weight: 600; }
.card-nums small { font-size: 11px; }
.pending-bar { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: #1b130a;
  background: linear-gradient(180deg, #f2d9a2, #c9a25c); box-shadow: 0 8px 22px -10px rgba(224,138,60,.6); }
.pending-bar .i { width: 16px; height: 16px; } .pending-bar:hover { color: #000; filter: brightness(1.05); }
.board3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bcol { padding: 16px 16px 10px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(170deg, rgba(36,31,27,.9), rgba(18,16,14,.95)); box-shadow: 0 20px 40px -28px #000; }
.bcol.good { border-top: 2px solid rgba(143,174,116,.7); } .bcol.maybe { border-top: 2px solid rgba(217,167,79,.7); } .bcol.not { border-top: 2px solid rgba(196,73,61,.7); }
.bcol-h { display: flex; align-items: baseline; justify-content: space-between; } .bcol-h h2 { font: 600 26px/1 var(--display); }
.bcol.good .bcol-h h2 { color: #c3dea9; } .bcol.maybe .bcol-h h2 { color: #f1d39a; } .bcol.not .bcol-h h2 { color: #e09b91; }
.bcount { font: 600 26px var(--display); color: var(--muted); font-variant-numeric: lining-nums; }
.bempty { padding: 12px 0 8px; }
.blist { display: flex; flex-direction: column; margin-top: 8px; }
.slab.blist { padding: 6px 16px; }
.brow { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; color: var(--text); border-top: 1px solid rgba(205,168,105,.07); }
.brow:first-child { border-top: 0; }
.brow:hover { color: var(--text); } .brow:hover b { color: var(--brass-hi); }
.brow-main { min-width: 0; display: flex; flex-direction: column; } .brow-main b { font-weight: 600; }
.brow-main small { color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brow-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.brow-nums { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.brow .meter i { width: 6px; height: 6px; }
.proc ul { list-style: none; margin: 0 0 8px; padding: 0; } .proc li { display: flex; gap: 12px; align-items: center; padding: 6px 0; font-size: 14px; }
.proc li:not(.done) span:last-child { color: var(--muted); } .proc .tick { cursor: default; width: 22px; height: 22px; }
.refresh.due { border-color: rgba(217,167,79,.45); }
.refresh .inline { margin: 10px 0; }
.ev ul, .dlog ul { list-style: none; margin: 0; padding: 0; }
.ev > ul > li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(205,168,105,.07); }
.ev > ul > li:first-child { border-top: 0; padding-top: 0; }
.ev li .grow { display: flex; flex-direction: column; min-width: 0; font-size: 14px; } .ev li small { font-size: 12px; }
.ev li.outdated { opacity: .5; } .ev li.outdated .grow > span { text-decoration: line-through; text-decoration-color: rgba(201,162,92,.4); }
.ev-f { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(205,168,105,.08); } .ev-f .fld { margin-bottom: 10px; } .ev-f .btn { height: 42px; margin-bottom: 10px; }
.kind { flex: none; display: inline-block; min-width: 58px; text-align: center; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border: 1px solid; }
.kind.sales { color: #c3dea9; border-color: rgba(143,174,116,.45); } .kind.demand { color: var(--brass-hi); border-color: rgba(236,208,154,.4); }
.kind.trend { color: #e9b07a; border-color: rgba(224,138,60,.45); } .kind.other { color: var(--muted); border-color: rgba(205,168,105,.2); }
.src { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); border: 1px solid rgba(205,168,105,.25); vertical-align: 1px; }
.tbl-f { padding: 14px; border-top: 1px solid rgba(205,168,105,.08); } .tbl-f .fld { margin-bottom: 0; } .tbl-f .frow + .frow { margin-top: 10px; } .tbl-f .btn { height: 42px; }
.table-wrap .tbl + .tbl-f, .table-wrap .pad + .tbl-f { margin-top: 0; }
.pad { padding: 14px 10px 4px; }
.stamp-btn input { position: absolute; opacity: 0; pointer-events: none; }
.stamp-btn { position: relative; display: block; text-align: center; }
.stamp-btn:has(input:checked) { border-style: solid; border-width: 2px; transform: rotate(-3deg); background: rgba(0,0,0,.25); }
.stamp-btn.pursue:has(input:checked) { color: var(--ok); border-color: var(--ok); } .stamp-btn.research:has(input:checked) { color: var(--warn); border-color: var(--warn); }
.stamp-btn.reject:has(input:checked) { color: var(--bad); border-color: var(--bad); }
.stamp-btn:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.decision .fld { margin-top: 16px; }
.cites { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 4px; }
.cite { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r); border: 1px solid rgba(205,168,105,.12); background: rgba(8,7,6,.35); cursor: pointer; font-size: 14px; }
.cite input { width: auto; accent-color: var(--brass); } .cite:has(input:checked) { border-color: rgba(236,208,154,.45); background: rgba(201,162,92,.07); }
.dlog > ul > li { padding: 12px 0; border-top: 1px solid rgba(205,168,105,.07); } .dlog > ul > li:first-child { border-top: 0; padding-top: 4px; }
.dlog p { margin: 8px 0 4px; font-size: 14px; }
.dcite { margin: 4px 0 6px !important; } .dcite li { font-size: 12px; color: var(--muted); padding: 2px 0; } .dcite .kind { min-width: 0; font-size: 9px; padding: 0 5px; }
.nums.six { grid-template-columns: repeat(6, minmax(0, 1fr)); } .nums.six .num-in input { font-size: 22px; }
.crew .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.crew.big li { grid-template-columns: auto 1fr auto; }
.crew small { margin-top: 2px; }
@media (max-width: 1080px) { .board3 { grid-template-columns: minmax(0, 1fr); } .nums.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .nums.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nums.six .num-cell { border-left: 0; border-top: 1px solid rgba(205,168,105,.08); }
  .ev > ul > li { flex-wrap: wrap; } .crew.big li { grid-template-columns: auto 1fr; } .crew.big .acts { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ------------------------------------------------------------------ opportunities build (2026-10-16 night) */
.ok-t { color: #c3dea9; }
.st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.st .i { width: 12px; height: 12px; }
.st.sm { padding: 1px 8px; font-size: 10px; } .st.lg { padding: 6px 14px; font-size: 13px; }
.st.research { color: var(--brass-hi); border-color: rgba(236,208,154,.35); }
.st.testing { color: #f1c07a; border-color: rgba(224,138,60,.5); background: rgba(224,138,60,.08); }
.st.store { color: #d8c3f0; border-color: rgba(176,140,220,.45); background: rgba(176,140,220,.07); }
.st.live { color: #c3dea9; border-color: rgba(143,174,116,.5); background: rgba(143,174,116,.1); box-shadow: 0 0 14px -5px rgba(143,174,116,.6); }
.st.hold { color: var(--muted); border-color: rgba(205,168,105,.2); }
.st.reject { color: #e09b91; border-color: rgba(196,73,61,.45); background: rgba(196,73,61,.06); }
.card-head { display: flex; gap: 12px; align-items: flex-start; }
.card-id { flex: 1; min-width: 0; } .card-id .card-t { margin-top: 2px; }
.thumb { width: 46px; height: 46px; flex: none; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: var(--stone-2); }
.thumb.blank { display: grid; place-items: center; font: 600 22px var(--display); color: var(--brass); }
.hero-img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-2); flex: none; }
.sec-lead { margin: -6px 0 16px; max-width: 680px; }

/* Home: performance */
.perf-panel { margin-top: 22px; padding: 20px 22px; }
.perf-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 6px; }
.stats.wide { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 18px; padding: 18px 20px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.stat b { font: 600 32px/1 var(--display); font-variant-numeric: lining-nums tabular-nums; color: #f3ead9; }
.perf-chart { margin-top: 12px; min-height: 230px; }
.chart-top { display: flex; align-items: baseline; gap: 10px; }
.chart-total { font: 600 26px var(--display); color: var(--brass-hi); font-variant-numeric: lining-nums tabular-nums; }
.chart { display: block; width: 100%; height: 190px; margin-top: 6px; overflow: visible; }
.cline { fill: none; stroke: #e7c888; stroke-width: 2.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(224,138,60,.45)); }
.cdot { fill: #f6e2b6; } .zero { stroke: rgba(196,73,61,.5); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; font-variant-numeric: lining-nums; }
.chart-empty { height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: var(--muted); border-radius: var(--r);
  border: 1px dashed rgba(205,168,105,.2); background: repeating-linear-gradient(0deg, transparent 0 43px, rgba(205,168,105,.05) 43px 44px); }
.chart-empty .i { width: 28px; height: 28px; color: var(--brass); } .chart-empty b { font: 600 22px var(--display); color: var(--text); } .chart-empty span { font-size: 13px; max-width: 340px; }
.perf-ctl { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.seg.mini { margin: 0; display: inline-flex; } .seg.mini button { padding: 5px 12px; font-size: 12px; flex: none; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 14px; margin-top: 14px; }
.goal-n { display: flex; align-items: baseline; gap: 8px; } .goal-n b { font: 600 64px/1 var(--display); color: var(--brass-hi); font-variant-numeric: lining-nums; } .goal-n span { font: 600 24px var(--display); color: var(--faint); }
.goal-bar { display: block; height: 6px; margin: 12px 0; border-radius: 6px; background: rgba(205,168,105,.12); overflow: hidden; }
.goal-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brass-lo), var(--brass-hi)); box-shadow: 0 0 10px rgba(224,138,60,.5); }
.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pipe-cell { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r); color: var(--text); border: 1px solid rgba(205,168,105,.14); background: rgba(8,7,6,.35); }
.pipe-cell:hover { color: var(--text); border-color: var(--line-2); }
.pipe-cell b { font: 600 30px/1 var(--display); font-variant-numeric: lining-nums; } .pipe-cell span { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pipe-cell.testing b { color: #f1c07a; } .pipe-cell.store b { color: #d8c3f0; } .pipe-cell.live b { color: #c3dea9; }
.next-h { margin-top: 18px !important; }
.next { list-style: none; margin: 0; padding: 0; } .next li a { display: flex; gap: 10px; align-items: center; padding: 7px 0; color: var(--text); font-size: 14px; border-top: 1px solid rgba(205,168,105,.06); }
.next li:first-child a { border-top: 0; } .next .i { width: 14px; height: 14px; color: var(--brass); flex: none; } .next a:hover span { color: var(--brass-hi); }
.ledger.compact li { grid-template-columns: 1fr auto; font-size: 13px; }

/* Hunt */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.way { display: flex; gap: 12px; padding: 14px; border-radius: var(--r-lg); border: 1px solid rgba(205,168,105,.12); background: rgba(14,12,10,.55); }
.way b { font-weight: 600; } .way p { margin: 4px 0 0; }
.ways-note { margin-top: 8px; }
.bring-row + .bring-row { margin-top: 10px; } .bring .bring-note { margin-top: 0; }

/* Card: opportunities */
details.opp { padding: 0; } details.opp + details.opp { margin-top: 12px; }
details.opp.testing { border-color: rgba(224,138,60,.35); } details.opp.live { border-color: rgba(143,174,116,.4); } details.opp.store { border-color: rgba(176,140,220,.35); }
details.opp.reject { opacity: .75; }
.opp-sum { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.opp-sum::-webkit-details-marker { display: none; }
.opp-sum::before { content: '\25B8'; color: var(--brass); transition: transform .15s; } details[open] > .opp-sum::before { transform: rotate(90deg); }
.opp-kind { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.opp-t { font: 600 22px/1.1 var(--display); }
.opp-nums { display: inline-flex; gap: 12px; font-size: 13px; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.opp-body { padding: 4px 20px 20px; border-top: 1px solid rgba(205,168,105,.08); }
.opp-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.opp-holder { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid rgba(205,168,105,.06); } .opp-holder b { color: var(--text); }
.opp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; margin-top: 16px; }
.opp-h { margin: 0 0 10px; font: 600 19px var(--display); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stamps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .stamps.four .stamp-btn { padding: 12px 4px; font-size: 13px; }
.stamp-btn.test:has(input:checked) { color: #f1c07a; border-color: #e08a3c; } .stamp-btn.hold:has(input:checked) { color: var(--text); border-color: var(--muted); }
.stamp-btn.research:has(input:checked) { color: var(--brass-hi); border-color: var(--brass); }
.decision .btn[type=submit] { margin-top: 10px; }
ul.dlog { list-style: none; margin: 14px 0 0; padding: 0; } ul.dlog > li { padding: 10px 0; border-top: 1px solid rgba(205,168,105,.07); } ul.dlog p { margin: 6px 0 2px; font-size: 14px; }
.opp-store-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 14px 16px; border-radius: var(--r); border: 1px dashed rgba(224,138,60,.35); background: rgba(224,138,60,.04); }
.opp-store, .opp-results { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(205,168,105,.08); }
.checkrow { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.checkrow li { display: flex; gap: 10px; align-items: center; padding: 5px 0; font-size: 14px; } .checkrow li.done span { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(201,162,92,.4); }
.new-opp { margin-top: 14px; }
.kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.kindpick { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--r); cursor: pointer; border: 1px solid rgba(205,168,105,.14); background: rgba(8,7,6,.35); }
.kindpick input { position: absolute; opacity: 0; pointer-events: none; } .kindpick b { font-size: 14px; } .kindpick small { font-size: 12px; color: var(--muted); }
.kindpick:has(input:checked) { border-color: var(--brass); background: rgba(201,162,92,.08); box-shadow: 0 0 18px -8px var(--ember); }
.kindpick:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.grade { font-weight: 700; } .grade.verified { color: #c3dea9; } .grade.reported { color: var(--brass-hi); } .grade.estimated { color: #e9b07a; } .grade.unknown { color: var(--faint); }
.tbl td small.faint { display: block; }

/* Launch */
.launch-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.lstep { display: flex; gap: 12px; padding: 14px; border-radius: var(--r-lg); border: 1px solid rgba(205,168,105,.12); background: rgba(14,12,10,.55); } .lstep p { margin: 4px 0 0; }
.res .tbl td a b { color: var(--text); }

/* mobile menu */
.menu-btn { display: none; }
@media (max-width: 1080px) { .duo { grid-template-columns: minmax(0, 1fr); } .opp-grid { grid-template-columns: minmax(0, 1fr); } .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; margin-left: -8px; }
  .rail { display: flex; position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: min(280px, 84vw); transform: translateX(-102%); transition: transform .25s; }
  .rail.open { transform: none; box-shadow: 30px 0 60px rgba(0,0,0,.8); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .stats.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways, .launch-steps { grid-template-columns: minmax(0, 1fr); }
  .opp-row { grid-template-columns: minmax(0, 1fr); gap: 0; } .stamps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkrow { grid-template-columns: minmax(0, 1fr); } .kinds { grid-template-columns: minmax(0, 1fr); }
  .opp-sum { padding: 14px 16px; } .opp-body { padding: 4px 16px 16px; }
  .perf-panel { padding: 16px; } .stat b { font-size: 26px; }
}
