/* Congress hub: pieces ported from the Congress tracker, redrawn in Unvault's light style. */
:root { --pD: #4a78b5; --pR: #c0564a; --pI: #7d8a84; }
:root[data-theme="dark"] { --pD: #7aa3dc; --pR: #e07e72; --pI: #a9b3ae; }

/* Portraits */
.avatar.face { position: relative; overflow: hidden; }
.avatar.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: saturate(.9); }
.avatar.face.sm { width: 26px; height: 26px; font-size: 10px; }
.avatar.face.big { border: 3px solid var(--field); }

/* Party-split tally with the pass line */
.tbar { position: relative; }
.tbar-track { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.tb { display: block; height: 100%; }
.tb.y.d { background: var(--pD); } .tb.y.r { background: var(--pR); } .tb.y.i { background: var(--pI); }
.tb.n { background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255,255,255,.55) 4px 6px); }
.tb.n.d { background-color: var(--pD); opacity: .55; } .tb.n.r { background-color: var(--pR); opacity: .55; } .tb.n.i { background-color: var(--pI); opacity: .55; }
.tbar-mark { position: absolute; top: -5px; bottom: -5px; width: 0; border-left: 2px solid var(--text); }
.tbar-mark em { position: absolute; top: 100%; left: 0; transform: translateX(-50%); font: 600 10.5px var(--font-mono); font-style: normal; white-space: nowrap; margin-top: 3px; color: var(--text); }
.pboxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 14px; }
.pbox { border: 1px solid var(--line); border-left: 4px solid var(--pI); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pbox.d { border-left-color: var(--pD); } .pbox.r { border-left-color: var(--pR); }
.pb-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 2px; }
.pb-bar i { display: block; height: 100%; background: var(--field); }

/* Seat chart */
.hemi-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 20px; align-items: center; }
.hemi { width: 100%; height: auto; max-height: 340px; }
.seat { stroke-width: .9; }
.seat.y.d { fill: var(--pD); stroke: var(--pD); } .seat.y.r { fill: var(--pR); stroke: var(--pR); } .seat.y.i { fill: var(--pI); stroke: var(--pI); }
.seat.n { fill: var(--surface); } .seat.n.d { stroke: var(--pD); } .seat.n.r { stroke: var(--pR); } .seat.n.i { stroke: var(--pI); }
.seat.nv { fill: var(--line); stroke: var(--line); opacity: .7; }
.hemi a:hover .seat, .hemi a:focus .seat { stroke: var(--text); stroke-width: 1.6; }
.hemi a:focus { outline: none; }
.hemi-side { border: 1px solid var(--line); border-radius: 10px; padding: 14px; min-height: 150px; background: var(--bg); }
.hemi-side .label { margin: 0 0 4px; }
.hs-n { font-weight: 650; font-size: 18px; margin: 0 0 4px; letter-spacing: -.01em; }
.hs-v { font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.hs-face { width: 56px; height: 56px; float: right; margin-left: 10px; font-size: 18px; }
.hemi-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.hemi-key span { display: inline-flex; align-items: center; gap: 6px; }
.hemi-key i.seat { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid; display: inline-block; }
.hemi-key i.seat.y.d { background: var(--pD); border-color: var(--pD); } .hemi-key i.seat.y.r { background: var(--pR); border-color: var(--pR); } .hemi-key i.seat.y.i { background: var(--pI); border-color: var(--pI); }
.hemi-key i.seat.n.d { background: var(--surface); border-color: var(--pD); } .hemi-key i.seat.nv { background: var(--line); border-color: var(--line); }
.hemi-key i.sq { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
@media (max-width: 760px) { .hemi-wrap { grid-template-columns: minmax(0, 1fr); } .hemi-side { min-height: 0; } }

/* Every member: filter + search */
.ro-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.ro-f { display: flex; gap: 6px; flex-wrap: wrap; }
.ro-f button { font: 600 11px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; padding: 9px 12px; border-radius: 99px; border: 1.5px solid #c9d6cf; background: var(--surface); color: var(--text-2); cursor: pointer; }
.ro-f button span { opacity: .7; margin-left: 4px; }
.ro-f button[aria-pressed="true"] { background: var(--field); border-color: var(--field); color: var(--on-field); }
.ro-q { min-width: 220px; margin: 0; } .ro-q input { height: 40px; }
.ro-count { margin: 10px 0 6px; }
.ro-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2px 18px; }
.ro-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; min-width: 0; }
.ro-row > a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ro-row .pos { margin-left: auto; flex: none; }
.ro-row[hidden] { display: none; }

/* Bill progress */
.pipe { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0; counter-reset: p; }
.pipe li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 13px; color: var(--text-3); padding: 0 4px; }
.pipe li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.pipe li:first-child::before { display: none; }
.pipe li.done::before, .pipe li.now::before, .pipe li.stop::before { background: var(--field); }
.pipe .pn { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--font-mono); background: var(--surface); border: 2px solid var(--line); color: var(--text-3); }
.pipe li.done .pn { background: var(--field); border-color: var(--field); color: var(--on-field); }
.pipe li.done, .pipe li.now { color: var(--text); }
.pipe li.now .pn { background: var(--on-field); border-color: var(--on-field); color: #fff; box-shadow: 0 0 0 4px #cfe9dc; }
.pipe li.stop .pn { background: #b3412f; border-color: #b3412f; color: #fff; } .pipe li.stop { color: #b3412f; font-weight: 600; }
.pipe-ph { display: none; }
@media (max-width: 640px) { .pipe li span:last-child { display: none; } .pipe-ph { display: block; margin-top: 8px; } }

/* Monthly charts */
.mchart { width: 100%; height: auto; display: block; }
.mchart text { font: 500 9px var(--font-mono); fill: var(--text-3); }
.mchart .grid { stroke: var(--line); stroke-width: 1; } .mchart .ax { font-size: 8.5px; }
.mc-h { fill: var(--field); background: var(--field); } .mc-s { fill: #0e3b31; background: #0e3b31; } .mc-r { fill: #b9c2bd; background: #b9c2bd; }
:root[data-theme="dark"] .mc-s { fill: #9fd8bf; background: #9fd8bf; }
.mchart rect:hover { opacity: .8; }
.mchart { max-height: 300px; }
.mchart text { font-size: 12px; } .mchart .ax { font-size: 11px; }

/* ---- Phase A oversight fixes (2026-11) ---- */
/* Address-to-district lookup (Find my members) */
.geo-f { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 14px; }
.geo-f .field { flex: 3 1 280px; }
.geo-f .btn { flex: 0 0 auto; }
.geo-note { margin: 8px 0 0; max-width: 72ch; }
.geo-out { margin: 8px 0 0; font-weight: 550; color: var(--text); }
.geo-out:empty { display: none; }
/* Four stat tiles: 2 x 2 on phones instead of 3 + 1 */
@media (max-width: 760px) {
  .statrow.st4, .statrow:has(> div:nth-child(4):last-child) { grid-template-columns: 1fr 1fr; }
}
/* v2.38 · member cards: ".member span" made the photo circle a block, so the fallback initials sat clipped in the top-left corner */
.member .avatar { display: grid; place-items: center; font-size: 15px; font-weight: 650; letter-spacing: .02em; color: var(--accent-text); line-height: 1; }
.member .avatar.sm { font-size: 10px; }
/* v2.43 · member record card: four counts in the statrow style, neutral ink only (no good/bad colours) */
.rec .label { margin-bottom: 10px; }
.rec-row { margin: 0 0 12px; }
.rec-row > div { gap: 6px; }
.rec-row b { font-variant-numeric: tabular-nums; }
.rec-row > div > span { color: var(--text); font-size: 14px; }
.rec-row .small { line-height: 1.45; }
.rec-mix { display: flex; flex-direction: column; gap: 3px; margin: 0 0 8px; }
.rec-mix > span { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 3px 0; font-size: 14px; color: var(--text); }
.rec-mix b { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: 0; }
@media (max-width: 560px) { .box.rec { padding: 18px 16px; } .rec .statrow.st4.rec-row { grid-template-columns: 1fr; } }
