/* Clergy Portal — Ninety's layout in the manner of wordonfire.org: black, off-white and gold,
   a high-contrast serif for titles, letter-spaced capitals for navigation and labels. */

:root {
  --bg: #F9F7F6;
  --card: #FFFFFF;
  --text: #0B0B0B;
  --muted: #6F6C68;
  --line: #E6E2DC;
  --line-strong: #CFC9C0;
  --soft: #F3EFE8;
  --gold: #BA9342;               /* the gold of the chapel logo */
  --gold-hi: #CFAA55;
  --gold-ink: #86692A;          /* gold dark enough to read as text on white */
  --cream: #F9F4E7;
  --red: #B62025;
  --red-soft: #FBEAEA;
  --green: #2E7A4C;
  --green-soft: #E7F3EC;
  --black: #0B0B0B;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Figtree', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --caps: 0.18em;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}

/* The live meeting is a black room, like the Word on Fire front page. */
.dark {
  --bg: #000000;
  --card: #121212;
  --text: #F3F1EE;
  --muted: #9C978F;
  --line: #262422;
  --line-strong: #3A3733;
  --soft: #1B1A18;
  --gold-ink: #D3B558;
  --cream: #1F1B12;
  --red-soft: #2A1112;
  --green-soft: #0F2418;
  --shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold-ink); }
.boot { display: grid; place-items: center; height: 100vh; font: italic 500 28px var(--serif); color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── shell ─────────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side {
  background: var(--black); color: #E8E8E9; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; overflow-y: auto; z-index: 30;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 26px 22px 22px; text-decoration: none; color: inherit; }
.brand img { height: 50px; width: auto; flex: none; }
.brand small { display: block; font: 600 10px/1.3 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; color: var(--gold); }
.brand b { display: block; font: italic 600 22px/1.1 var(--serif); color: #fff; }
.nav { padding: 6px 0 14px; }
.nav hr { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 12px 22px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 22px; text-decoration: none;
  color: rgba(232,232,233,.72); font: 500 12.5px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase;
  border-left: 3px solid transparent;
}
.nav a svg { width: 17px; height: 17px; opacity: .8; }
.nav a:hover { color: #fff; }
.nav a.on { color: #fff; border-left-color: var(--gold); background: rgba(255,255,255,.04); }
.nav a .live-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(182,32,37,.3); }
.side-foot { margin-top: auto; padding: 18px 22px 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.side-foot .who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; }
.side-foot a { color: rgba(232,232,233,.7); font: 500 11px var(--sans); letter-spacing: var(--caps); text-transform: uppercase; text-decoration: none; }
.side-foot a:hover { color: #fff; }

.main { min-width: 0; }
.head {
  display: flex; align-items: flex-end; gap: 24px; padding: 34px 40px 20px; background: var(--bg);
}
.head .burger { display: none; }
.head .titles { flex: 1; min-width: 0; }
.eyebrow { font: 600 11px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
h1 { font: 600 46px/1.02 var(--serif); margin: 0; letter-spacing: -.005em; }
h1 em { font-style: italic; font-weight: 500; }
.desc { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
.head-tools { display: flex; gap: 10px; align-items: center; }

.tabs { display: flex; gap: 28px; padding: 0 40px; border-bottom: 1px solid var(--line); }
.tabs a {
  padding: 12px 0 13px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
  font: 600 12px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase;
}
.tabs a.on { color: var(--text); border-bottom-color: var(--gold); }
.tabs a:hover { color: var(--text); }

.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 40px; border-bottom: 1px solid var(--line); background: var(--soft); }
.bar .grow { flex: 1; }
.content { padding: 26px 40px 60px; display: grid; gap: 24px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }

/* ── controls ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border: 1px solid var(--gold); background: var(--gold); color: #0B0B0B; cursor: pointer; border-radius: 2px;
  font: 700 11.5px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn svg { width: 15px; height: 15px; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--text); }
.btn.dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn.dark:hover { background: #262422; }
.btn.danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn.small { height: 32px; padding: 0 12px; font-size: 10.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--gold-ink); cursor: pointer; font: 700 11.5px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; }
.link:hover { text-decoration: underline; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; }
.icon-btn:hover { background: var(--soft); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

.field, .pill, select.pill {
  height: 40px; border: 1px solid var(--line-strong); background: var(--card); border-radius: 2px; padding: 0 12px; outline: none;
}
.field:focus, .pill:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(186,147,66,.2); }
.pill { border-radius: 999px; padding: 0 14px; font-size: 13.5px; cursor: pointer; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 11px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search .field { padding-left: 38px; width: 260px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; user-select: none; }
.toggle input { appearance: none; width: 36px; height: 20px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.toggle input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle input:checked { background: var(--gold); }
.toggle input:checked::after { left: 18px; }
textarea.field { height: auto; min-height: 110px; padding: 10px 12px; line-height: 1.5; resize: vertical; width: 100%; }

/* ── cards and lists ──────────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 2px; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px 14px; }
.card-head h2 { font: 600 27px/1.1 var(--serif); margin: 0; }
.card-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.card-head .grow { flex: 1; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; background: var(--cream); color: var(--gold-ink); font: 700 12.5px/1 var(--sans); border-radius: 2px; }
.card-foot { display: flex; align-items: center; gap: 16px; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.empty { padding: 34px 24px 40px; text-align: center; color: var(--muted); }
.empty b { display: block; font: italic 600 23px/1.2 var(--serif); color: var(--text); margin-bottom: 6px; }

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; padding: 10px 12px; color: var(--muted); border-bottom: 1px solid var(--line);
  font: 600 10.5px/1.2 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .muted, .muted { color: var(--muted); }
.table .shrink { width: 1%; white-space: nowrap; }
.title-cell { font-weight: 500; }
.title-cell .n { color: var(--muted); font-weight: 600; margin-right: 6px; }
.done-text { color: var(--muted); text-decoration: line-through; }
.overdue { color: var(--red); font-weight: 600; }
.scroll-x { overflow-x: auto; }

.check {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--card); cursor: pointer;
  display: inline-grid; place-items: center; padding: 0; flex: none; color: transparent;
}
.check:hover { border-color: var(--green); }
.check svg { width: 14px; height: 14px; }
.check.on { background: var(--green); border-color: var(--green); color: #fff; }

.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--black); color: var(--gold-hi); font: 600 12px/1 var(--sans); letter-spacing: .04em; border: 1px solid var(--gold);
}
.dark .avatar { background: #1d1b18; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.owner { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 2px; white-space: nowrap;
  font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; border: 1px solid transparent;
}
.tag.on { background: var(--green-soft); color: var(--green); border-color: rgba(46,122,76,.25); }
.tag.off { background: var(--red-soft); color: var(--red); border-color: rgba(182,32,37,.25); }
.tag.done { background: var(--cream); color: var(--gold-ink); border-color: rgba(188,156,82,.35); }
.tag.plain { background: var(--soft); color: var(--muted); border-color: var(--line); }
.tag.live { background: var(--red); color: #fff; }
select.tag { cursor: pointer; appearance: none; padding-right: 9px; }

.progress { display: flex; align-items: center; gap: 10px; min-width: 110px; }
.progress .track { flex: 1; height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; border: 1px solid var(--line); }
.progress .fill { height: 100%; background: var(--gold); }
.progress span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.row-add { display: flex; gap: 10px; padding: 12px 24px 16px; }
.row-add .field { flex: 1; }

.menu { position: relative; display: inline-block; }
.menu-pop {
  position: fixed; min-width: 210px; background: var(--card); border: 1px solid var(--line-strong);
  box-shadow: 0 12px 32px rgba(0,0,0,.14); z-index: 60; padding: 6px 0; border-radius: 2px;
}
.dark ~ .menu-pop, body:has(.room) .menu-pop { --card: #121212; --text: #F3F1EE; --line: #262422; --line-strong: #3A3733; --soft: #1B1A18; --muted: #9C978F; color: var(--text); }
.menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 16px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.menu-pop button:hover { background: var(--soft); }
.menu-pop button svg { width: 16px; height: 16px; color: var(--muted); }
.menu-pop button.danger { color: var(--red); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

.results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 340px; background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 12px 32px rgba(0,0,0,.14); z-index: 60; max-height: 420px; overflow: auto; }
.results button { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 10px 14px; cursor: pointer; }
.results button:hover { background: var(--soft); }
.results .kind { font: 700 9.5px/2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); width: 72px; flex: none; }

/* ── hero (home and meetings) ─────────────────────────────────────────── */
.hero {
  background: var(--black); color: #fff; padding: 46px 44px; position: relative; overflow: hidden; border-radius: 2px;
  display: grid; gap: 14px; justify-items: start;
}
.hero::after { content: ''; position: absolute; inset: auto 44px 0 44px; border-top: 1px solid rgba(255,255,255,.18); }
.hero .eyebrow { color: var(--gold); }
.hero h2 { font: 500 54px/1 var(--serif); margin: 0; }
.hero h2 em { font-style: italic; }
.hero p { margin: 0; color: rgba(232,232,233,.75); font-size: 16px; max-width: 640px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn.ghost:hover { border-color: #fff; }
.hero .mark { position: absolute; right: 44px; top: 50%; transform: translateY(-50%); height: 78%; opacity: .16; pointer-events: none; }

/* ── drawer and modal ─────────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.36); z-index: 80; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100vw); background: var(--card); color: var(--text); z-index: 90;
  display: flex; flex-direction: column; box-shadow: -18px 0 40px rgba(0,0,0,.18);
}
.drawer.wide { width: min(640px, 100vw); }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font: 600 28px/1.1 var(--serif); margin: 0; flex: 1; }
.drawer-body { padding: 20px 24px; overflow-y: auto; flex: 1; display: grid; gap: 18px; align-content: start; }
.drawer-foot { display: flex; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); }
.drawer-foot .grow { flex: 1; }
.label { display: grid; gap: 7px; }
.label > span { font: 600 10.5px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; color: var(--muted); }
.label .field, .label select { width: 100%; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal { position: fixed; z-index: 90; left: 50%; top: 12vh; transform: translateX(-50%); width: min(520px, calc(100vw - 32px)); background: var(--card); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.3); border-radius: 2px; }

.section-label { font: 600 10.5px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; color: var(--muted); margin: 6px 0 -6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.stat { background: var(--soft); border: 1px solid var(--line); padding: 14px 16px; border-radius: 2px; }
.stat b { display: block; font: 600 32px/1 var(--serif); }
.stat span { font: 600 10px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mini-list { display: grid; border: 1px solid var(--line); border-radius: 2px; }
.mini-list > div, .mini-list > label { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mini-list > div:last-child, .mini-list > label:last-child { border-bottom: 0; }
.mini-list > label input { margin: 0; width: 16px; height: 16px; accent-color: var(--gold); }
.mini-list .grow { flex: 1 1 140px; min-width: 0; }
.mini-list .none { color: var(--muted); font-style: italic; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 120; background: var(--black); color: #fff;
  padding: 12px 20px; border-left: 3px solid var(--gold); box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 14px; max-width: calc(100vw - 32px);
}
.toast.err { border-left-color: var(--red); }

/* ── scorecard ────────────────────────────────────────────────────────── */
.score td.cell { padding: 4px 6px; min-width: 92px; }
.score input.cell-in {
  width: 100%; height: 34px; text-align: center; border: 1px solid transparent; background: transparent; border-radius: 2px;
  font-variant-numeric: tabular-nums; outline: none;
}
.score input.cell-in:hover { border-color: var(--line-strong); }
.score input.cell-in:focus { border-color: var(--gold); background: var(--card); }
.score input.cell-in.good { background: var(--green-soft); color: var(--green); font-weight: 700; }
.score input.cell-in.bad { background: var(--red-soft); color: var(--red); font-weight: 700; }
.score th.week { text-align: center; }
.score th.week.now { color: var(--gold-ink); }

/* ── agenda editor ────────────────────────────────────────────────────── */
.agenda-row { display: grid; grid-template-columns: 28px minmax(160px, 1fr) 170px 110px 60px 40px; gap: 12px; align-items: center; padding: 8px 24px; }
.agenda-row.head { color: var(--muted); font: 600 10.5px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; padding-top: 14px; padding-bottom: 6px; }
.agenda-row .grip { cursor: grab; color: var(--muted); display: grid; place-items: center; }
.agenda-row.dragging { opacity: .45; }
.agenda-row.drop { box-shadow: inset 0 2px 0 var(--gold); }
.agenda-row .note { grid-column: 2 / 5; }
.agenda-row .field { width: 100%; }

/* ── the live meeting ─────────────────────────────────────────────────── */
.room { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; background: var(--bg); color: var(--text); }
.room-top { display: flex; align-items: center; gap: 18px; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.room-top .mark { height: 40px; width: auto; }
.room-top .t { flex: 1; min-width: 0; }
.room-top .t b { display: block; font: 600 24px/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-top .t span { color: var(--muted); font-size: 13px; }
.clock { font: 500 30px/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.clock small { display: block; font: 600 9.5px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; color: var(--muted); margin-top: 6px; text-align: center; }
.room-body { display: grid; grid-template-columns: 290px 1fr; min-height: 0; }
.rail { border-right: 1px solid var(--line); padding: 18px 0; overflow-y: auto; }
.rail button {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 12px 22px;
  border: 0; border-left: 3px solid transparent; background: none; cursor: pointer; color: var(--muted);
}
.rail button:disabled { cursor: default; }
.rail button .i { font: 600 12px/1 var(--sans); color: var(--muted); }
.rail button .nm { font: 600 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.rail button .tm { font: 500 12.5px/1 var(--sans); font-variant-numeric: tabular-nums; text-align: right; }
.rail button .tm small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.rail button.past { color: var(--text); opacity: .7; }
.rail button.on { color: var(--text); border-left-color: var(--gold); background: var(--soft); opacity: 1; }
.rail button.on .i { color: var(--gold); }
.rail .over { color: var(--red); }
.rail-total { margin: 14px 22px 0; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.stage { padding: 40px 56px 40px; overflow-y: auto; display: grid; gap: 26px; align-content: start; }
.stage-title h2 { font: 500 76px/0.98 var(--serif); margin: 0; letter-spacing: -.01em; }
.stage-title h2 em { font-style: italic; }
.stage-title p { color: var(--muted); font-size: 17px; margin: 14px 0 0; max-width: 760px; }
.stage-title .rule { border: 0; border-top: 1px solid var(--line-strong); margin: 26px 0 0; }
.stage-nav { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 6px; }
.follow { color: var(--muted); font-size: 13.5px; font-style: italic; }
.rating { display: flex; flex-wrap: wrap; gap: 8px; }
.rating button { width: 46px; height: 46px; border: 1px solid var(--line-strong); background: var(--card); cursor: pointer; font: 500 22px/1 var(--serif); border-radius: 2px; }
.rating button:hover { border-color: var(--gold); }
.rating button.on { background: var(--gold); border-color: var(--gold); color: #0B0B0B; }

.signin { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--black); color: #fff; }
.signin .left { padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.signin h1 { font: 500 76px/0.98 var(--serif); }
.signin h1 em { font-style: italic; }
.signin p { color: rgba(232,232,233,.72); font-size: 17px; max-width: 460px; margin: 0; }
.signin .ms { background: #fff; color: #1b1b1b; border-color: #fff; height: 48px; padding: 0 22px; font-size: 12px; }
.signin .ms:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.signin .right { display: grid; place-items: center; }
.signin .right img { width: min(78%, 480px); height: auto; }
.signin .err { border-left: 3px solid var(--red); padding: 10px 14px; background: rgba(182,32,37,.14); color: #f4d7d8; max-width: 480px; }

/* ── issue ordering and voting (as in Ninety) ────────────────────────────── */
.grip-cell { cursor: grab; color: var(--muted); padding-right: 0 !important; }
.grip-cell svg { width: 16px; height: 16px; }
.table tr.dragging { opacity: .4; }
.table tr.drop td { box-shadow: inset 0 2px 0 var(--gold); }
.table tr.picked td { background: var(--cream); }
.pick-badge { width: 24px; height: 24px; border-radius: 50%; border: 1.5px dashed var(--line-strong); display: inline-grid; place-items: center; font: 700 12px var(--sans); }
.pick-badge.on { background: var(--gold); border: 1.5px solid var(--gold); color: #0B0B0B; }
.icon-btn.tool { border: 1px solid var(--line); border-radius: 2px; width: 36px; height: 36px; }
.icon-btn.tool.on { background: var(--gold); border-color: var(--gold); color: #0B0B0B; }
.icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.ids-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 24px 12px; padding: 12px 16px; background: var(--cream); border-left: 3px solid var(--gold); font-size: 14px; }
.ids-banner svg { width: 18px; height: 18px; color: var(--gold-ink); }
.vote { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.vote .icon-btn { width: 30px; height: 30px; }
.vote .icon-btn svg { width: 16px; height: 16px; }
.vote-count { min-width: 26px; height: 24px; display: inline-grid; place-items: center; border-radius: 2px; background: var(--soft); color: var(--muted); font: 700 12.5px var(--sans); margin-right: 2px; }
.vote-count.on { background: var(--gold); color: #0B0B0B; }
.vote-mine { font-size: 11.5px; color: var(--gold-ink); margin-left: 2px; }

/* ── accountability chart ─────────────────────────────────────────────── */
.chart-wrap { overflow: auto; padding: 8px 0 40px; margin: 0 -40px; }
.chart { display: flex; justify-content: center; min-width: max-content; padding: 10px 40px; }
.tree, .tree .branch { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; position: relative; }
.tree .branch { padding-top: 30px; }
.tree .node { position: relative; display: flex; flex-direction: column; align-items: center; padding: 30px 12px 0; }
.tree > .node { padding-top: 0; }
.tree .node::before, .tree .node::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 30px; border-top: 1.5px solid var(--line-strong); }
.tree .node::after { right: auto; left: 50%; border-left: 1.5px solid var(--line-strong); }
.tree .node:only-child::before, .tree .node:only-child::after, .tree > .node::before, .tree > .node::after { display: none; }
.tree .node:only-child { padding-top: 0; }
.tree .node:first-child::before, .tree .node:last-child::after { border: 0 none; }
.tree .node:last-child::before { border-right: 1.5px solid var(--line-strong); }
.tree .branch::before { content: ''; position: absolute; top: 0; left: 50%; height: 30px; border-left: 1.5px solid var(--line-strong); }
.seat {
  position: relative; width: 264px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  box-shadow: var(--shadow); border-radius: 2px; padding: 22px 20px 16px; cursor: pointer; text-align: center; transition: opacity .15s, box-shadow .15s;
}
.seat:hover, .seat:focus-visible { box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 14px 32px rgba(0,0,0,.10); outline: none; }
.seat.hit { box-shadow: 0 0 0 3px rgba(186,147,66,.45), var(--shadow); }
.seat.dim { opacity: .35; }
.seat-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.seat:hover .seat-tools, .seat:focus-within .seat-tools { opacity: 1; }
.seat-tools .icon-btn { width: 28px; height: 28px; }
.seat-tools .icon-btn svg { width: 15px; height: 15px; }
.seat-people { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.seat-people .avatar { width: 46px; height: 46px; font-size: 15px; }
.avatar.open { background: var(--soft); color: var(--muted); border-style: dashed; border-color: var(--line-strong); }
.seat-name { font: 600 25px/1.1 var(--serif); }
.seat-who { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.seat-label { font: 600 10px/1 var(--sans); letter-spacing: var(--caps); text-transform: uppercase; color: var(--gold-ink); margin: 16px 0 8px; text-align: left; }
.seat-roles { margin: 0; padding-left: 18px; text-align: left; font-size: 13.5px; line-height: 1.45; display: grid; gap: 3px; }
.seat-roles li::marker { color: var(--gold-ink); font-size: 1.1em; }
.seat-fold { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; border: 0; background: none; color: var(--muted); cursor: pointer; font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.seat-fold svg { width: 16px; height: 16px; }
.seat-fold:hover { color: var(--text); }

/* ── narrow screens ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cols3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .side { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .head { padding: 22px 16px 14px; flex-wrap: wrap; align-items: center; }
  .head .burger { display: inline-grid; }
  .head-tools { width: 100%; }
  .search { flex: 1; }
  .search .field { width: 100%; }
  h1 { font-size: 36px; }
  .tabs, .bar { padding-left: 16px; padding-right: 16px; }
  .tabs { overflow-x: auto; }
  .content { padding: 18px 16px 48px; }
  .cols3 { grid-template-columns: 1fr; }
  .hero { padding: 32px 22px; }
  .hero h2 { font-size: 40px; }
  .table th:first-child, .table td:first-child { padding-left: 14px; }
  .hide-sm { display: none; }
  .room-body { grid-template-columns: 1fr; }
  .rail { display: flex; overflow-x: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail button { grid-template-columns: auto auto; min-width: 150px; border-left: 0; border-bottom: 3px solid transparent; }
  .rail button.on { border-bottom-color: var(--gold); }
  .rail button .tm { display: none; }
  .rail-total { display: none; }
  .stage { padding: 26px 16px; }
  .stage-title h2 { font-size: 48px; }
  .room-top { padding: 12px 16px; flex-wrap: wrap; }
  .signin { grid-template-columns: 1fr; }
  .signin .right { display: none; }
  .signin .left { padding: 40px 22px; }
  .signin h1 { font-size: 54px; }
  .agenda-row { grid-template-columns: 24px 1fr 90px 44px 36px; padding: 8px 14px; }
  .agenda-row .tool { display: none; }
  .agenda-row .note { grid-column: 2 / 4; }
  .grid2 { grid-template-columns: 1fr; }
  .chart-wrap { margin: 0 -16px; }
  .chart { padding: 10px 16px; }
}

@media print {
  .side, .head-tools, .tabs, .bar, .scrim, .drawer-foot, .drawer-head button, .toast { display: none !important; }
  .shell { display: block; }
  .drawer { position: static; width: auto; box-shadow: none; }
  body.printing .main { display: none; }
  body.print-chart .content { padding: 0; }
  body.print-chart .chart-wrap { overflow: visible; margin: 0; }
  body.print-chart .seat { box-shadow: none; break-inside: avoid; }
  body.print-chart .seat-tools, body.print-chart .seat-fold { display: none; }
}

/* ── quick links (Home) ───────────────────────────────────────────────── */
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.quick .eyebrow { margin-right: 6px; }
.quick-link {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; background: var(--card); border: 1px solid var(--line-strong);
  color: var(--text); text-decoration: none; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; border-radius: 2px;
}
.quick-link:hover { border-color: var(--gold); color: var(--gold-ink); }
.quick-link svg { width: 14px; height: 14px; color: var(--gold-ink); }
