:root {
  --paper: #f3efe6;
  --surface: #fbf9f4;
  --surface-2: #efe9dc;
  --ink: #1c2430;
  --muted: #5b6470;
  --line: #ddd5c4;
  --line-strong: #c7bca6;
  --navy: #1f3147;
  --navy-ink: #f3efe6;
  --accent: #a8741a;
  --accent-soft: #f3e3c3;
  --olive: #556b2f;
  --ok: #2f6f45;
  --ok-soft: #dcebdc;
  --warn: #9a6512;
  --warn-soft: #f4e4c4;
  --stop: #9b3b2a;
  --stop-soft: #f2dcd5;
  --idea: #7b8490;
  --reaching: #b7791f;
  --talking: #2f6a9a;
  --committed: #2f6f45;
  --shadow: 0 1px 0 rgba(28, 36, 48, .04), 0 6px 18px -10px rgba(28, 36, 48, .25);
  --radius: 10px;
  --f-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-quote: 'Source Serif 4', Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11151b;
    --surface: #182029;
    --surface-2: #1e2732;
    --ink: #e9e5db;
    --muted: #9ba4ae;
    --line: #2a3440;
    --line-strong: #3a4654;
    --navy: #0c1520;
    --navy-ink: #e9e5db;
    --accent: #d9a54c;
    --accent-soft: #3a2f1a;
    --olive: #9fb46d;
    --ok: #6fbf86;
    --ok-soft: #1d3326;
    --warn: #e0ad5a;
    --warn-soft: #3a2e17;
    --stop: #e2836f;
    --stop-soft: #3b211c;
    --idea: #8d97a3;
    --reaching: #e0ad5a;
    --talking: #6aa7d9;
    --committed: #6fbf86;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 24px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11151b; --surface: #182029; --surface-2: #1e2732; --ink: #e9e5db; --muted: #9ba4ae;
  --line: #2a3440; --line-strong: #3a4654; --navy: #0c1520; --navy-ink: #e9e5db; --accent: #d9a54c;
  --accent-soft: #3a2f1a; --olive: #9fb46d; --ok: #6fbf86; --ok-soft: #1d3326; --warn: #e0ad5a;
  --warn-soft: #3a2e17; --stop: #e2836f; --stop-soft: #3b211c; --idea: #8d97a3; --reaching: #e0ad5a;
  --talking: #6aa7d9; --committed: #6fbf86; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Masthead ---------- */
.masthead { background: var(--navy); color: var(--navy-ink); position: sticky; top: 0; z-index: 20; }
.masthead-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 16px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { color: #d6a24a; display: grid; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: 26px; letter-spacing: .02em; }
.brand-sub { font-family: var(--f-head); font-weight: 600; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; opacity: .7; margin-top: 3px; }
.masthead-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px;
  font-size: 13px; font-weight: 500; border: 1px solid rgba(243, 239, 230, .25); background: transparent; color: inherit;
  white-space: nowrap;
}
.chip-user { cursor: pointer; }
.chip-user:hover { background: rgba(243, 239, 230, .1); }
.chip-mode::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #8d97a3; }
.chip-mode.live::before { background: #6fbf86; box-shadow: 0 0 0 3px rgba(111, 191, 134, .25); }
.chip-mode.local::before { background: #e0ad5a; }

.tabs {
  max-width: 1180px; margin: 0 auto; padding: 0 8px; display: flex; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font-family: var(--f-head); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 12px 11px; text-decoration: none; opacity: .68; border-bottom: 3px solid transparent; white-space: nowrap;
}
.tab:hover { opacity: 1; }
.tab[aria-current="page"] { opacity: 1; border-bottom-color: #d6a24a; }
.tab .count { font-family: var(--f-body); font-size: 11px; font-weight: 600; margin-left: 5px; padding: 1px 6px; border-radius: 999px; background: rgba(243, 239, 230, .14); letter-spacing: 0; }

/* ---------- Layout ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 28px 16px 56px; outline: none; }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.eyebrow { font-family: var(--f-head); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--accent); margin: 0 0 4px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(30px, 4.4vw, 44px); }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
.lede { color: var(--muted); max-width: 64ch; margin: 8px 0 0; }
.section { margin-top: 36px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { font-size: 21px; text-transform: uppercase; letter-spacing: .06em; }
.section-head .hint { color: var(--muted); font-size: 14px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
.card.flat { box-shadow: none; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-label { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--muted); }
.card-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; color: var(--muted); font-size: 13px; }
.quote { font-family: var(--f-quote); font-size: 19px; line-height: 1.45; margin: 8px 0 6px; }
.note { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.stop { background: var(--stop-soft); color: var(--stop); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-strong);
  background: var(--surface); border-radius: 8px; padding: 7px 14px; font-weight: 600; font-size: 14px; cursor: pointer;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { opacity: .9; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); padding: 5px 8px; }
.btn.ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn.danger { color: var(--stop); }
.btn.armed { background: var(--stop); color: #fff; border-color: var(--stop); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.vote-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.vote {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: transparent;
  border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted);
}
.vote:hover { color: var(--ink); border-color: var(--ink); }
.vote .n { font-variant-numeric: tabular-nums; opacity: .8; }
.vote.on.v-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.vote.on.v-work { background: var(--warn); border-color: var(--warn); color: #fff; }
.vote.on.v-no { background: var(--stop); border-color: var(--stop); color: #fff; }
.vote.on.v-high, .vote.on.v-up { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.vote.on.v-med { background: var(--accent); border-color: var(--accent); color: #fff; }
.vote.on.v-low { background: var(--idea); border-color: var(--idea); color: #fff; }
.vote.on.v-yes { background: var(--ok); border-color: var(--ok); color: #fff; }
.vote.on.v-maybe { background: var(--warn); border-color: var(--warn); color: #fff; }
.vote.on.v-cant { background: var(--stop); border-color: var(--stop); color: #fff; }
.voters { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; background: var(--paper); min-width: 0;
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-card { border-style: dashed; box-shadow: none; background: transparent; }
.form-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }
.inline-form { display: flex; gap: 8px; margin-top: 10px; }
.inline-form input, .inline-form textarea { flex: 1; }

/* ---------- Comments ---------- */
.thread { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.comment { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 6px 0; }
.comment .who { font-weight: 600; font-size: 13px; }
.comment .when { color: var(--muted); font-size: 12px; margin-left: 6px; font-weight: 400; }
.comment p { margin: 2px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment.suggestion p { font-family: var(--f-quote); font-size: 16px; border-left: 3px solid var(--accent); padding-left: 10px; }
.comment.system p { color: var(--muted); font-style: italic; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--idea); flex: none; }
.toggle-thread { margin-top: 10px; }

/* ---------- Overview ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero-main { padding: 26px 26px 22px; background: var(--navy); color: var(--navy-ink); border-radius: var(--radius); position: relative; overflow: hidden; }
.hero-main::after {
  content: ''; position: absolute; inset: auto -40px -60px auto; width: 240px; height: 240px; border-radius: 50%;
  border: 36px solid rgba(214, 162, 74, .12);
}
.hero-main .eyebrow { color: #d6a24a; }
.hero-main h1 { font-size: clamp(28px, 3.6vw, 40px); max-width: 22ch; }
.hero-main p { opacity: .82; max-width: 54ch; position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; position: relative; z-index: 1; }
.hero-actions .btn { background: transparent; color: var(--navy-ink); border-color: rgba(243, 239, 230, .35); }
.hero-actions .btn.primary { background: #d6a24a; color: #1c2430; border-color: #d6a24a; }

.meet-card { display: flex; flex-direction: column; }
.meet-date { display: flex; gap: 14px; align-items: center; margin: 8px 0 4px; }
.cal { width: 64px; border: 2px solid var(--ink); border-radius: 8px; text-align: center; overflow: hidden; flex: none; }
.cal .m { background: var(--ink); color: var(--paper); font-family: var(--f-head); font-weight: 700; font-size: 13px; letter-spacing: .14em; padding: 2px 0; }
.cal .d { font-family: var(--f-head); font-weight: 700; font-size: 30px; line-height: 1.2; }
.countdown { font-family: var(--f-head); font-weight: 600; font-size: 20px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; display: block; }
.stat:hover { border-color: var(--ink); }
.stat .k { font-family: var(--f-head); font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 6px; }
.meter { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.meter span { display: block; height: 100%; background: var(--ok); border-radius: 999px; }

.agenda-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.agenda-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; }
.agenda-item:hover { border-color: var(--ink); }
.agenda-num { font-family: var(--f-head); font-weight: 700; font-size: 26px; color: var(--accent); text-align: center; }
.agenda-item h3 { font-size: 18px; }
.agenda-item p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.go { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--muted); white-space: nowrap; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed .when { color: var(--muted); font-size: 12px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Talking points ---------- */
.tp-card { border-left: 4px solid var(--line-strong); }
.tp-card.st-agreed { border-left-color: var(--ok); }
.tp-card.st-work { border-left-color: var(--warn); }
.tp-card.st-no { border-left-color: var(--stop); }
.hold-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hold { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hold-x { width: 22px; height: 22px; border-radius: 50%; background: var(--stop-soft); color: var(--stop); display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-top: 1px; }
.hold strong { display: block; }
.hold span.why { color: var(--muted); font-size: 14px; }
.edit-area textarea { font-family: var(--f-quote); font-size: 17px; min-height: 96px; }

/* ---------- Questions ---------- */
.q-card { display: grid; grid-template-columns: 54px 1fr; gap: 14px; }
.q-rank { font-family: var(--f-head); font-weight: 700; font-size: 30px; line-height: 1; color: var(--line-strong); text-align: center; padding-top: 2px; }
.q-rank .score { display: block; font-family: var(--f-body); font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }
.q-card.top .q-rank { color: var(--accent); }
.q-card.decided { opacity: .72; }
.q-card h3 { font-family: var(--f-body); font-weight: 600; font-size: 17px; line-height: 1.35; }
.decision { margin-top: 10px; background: var(--ok-soft); color: var(--ink); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.top-strip { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; }
.top-strip ol { margin: 6px 0 0; padding-left: 20px; }
.top-strip li { margin: 3px 0; }

/* ---------- Relationship tree ---------- */
.net-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 960px) { .net-wrap { grid-template-columns: 1fr; } }
.net-canvas { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.net-canvas svg { width: 100%; height: auto; display: block; }
.net-canvas .edge { stroke: var(--line-strong); stroke-width: 1.4; fill: none; }
.net-canvas .edge.dashed { stroke-dasharray: 4 4; }
.net-canvas .hub circle { fill: var(--surface-2); stroke: var(--ink); stroke-width: 1.5; }
.net-canvas .hub text { font-family: var(--f-head); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; fill: var(--ink); }
.net-canvas .core circle { fill: var(--navy); }
.net-canvas .core text { fill: #f3efe6; font-family: var(--f-head); font-weight: 700; font-size: 22px; }
.net-canvas .node { cursor: pointer; }
.net-canvas .node circle.dot { stroke: var(--surface); stroke-width: 2; }
.net-canvas .node text.lbl { font-size: 15px; fill: var(--ink); font-family: var(--f-body); }
.net-canvas .node text.ini { font-size: 10px; font-weight: 700; fill: #fff; pointer-events: none; }
.net-canvas .node:hover text.lbl, .net-canvas .node.sel text.lbl { font-weight: 600; }
.net-canvas .node circle.ring { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.net-canvas .node:focus { outline: none; }
.net-canvas .node:focus-visible circle.dot { stroke: var(--accent); stroke-width: 3; }
.s-idea { fill: var(--idea); background: var(--idea); }
.s-reaching { fill: var(--reaching); background: var(--reaching); }
.s-talking { fill: var(--talking); background: var(--talking); }
.s-committed { fill: var(--committed); background: var(--committed); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); align-items: center; }
.legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.panel { position: sticky; top: 120px; }
.cat-group { margin-top: 18px; }
.cat-group h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.contact-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-bottom: 6px; cursor: pointer; text-align: left; width: 100%; }
.contact-row:hover { border-color: var(--ink); }
.contact-row .dot { width: 12px; height: 12px; border-radius: 50%; }
.contact-row .nm { font-weight: 600; }
.contact-row .nx { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filter { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; color: var(--muted); font-weight: 600; }
.filter.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Ideas ---------- */
.idea-card .text { font-size: 16px; margin: 8px 0 0; overflow-wrap: anywhere; }
.idea-card .plus { font-variant-numeric: tabular-nums; }

/* ---------- Roadmap ---------- */
.eco svg { width: 100%; height: auto; display: block; max-width: 880px; margin: 0 auto; }
.eco .box { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.eco .box.top { fill: var(--navy); stroke: var(--navy); }
.eco .box.focus { stroke: var(--accent); stroke-width: 2.5; }
.eco .t1 { font-family: var(--f-head); font-weight: 700; font-size: 22px; fill: var(--ink); }
.eco .t1.inv { fill: #f3efe6; }
.eco .t2 { font-size: 14px; fill: var(--muted); font-family: var(--f-body); }
.eco .t2.inv { fill: rgba(243, 239, 230, .75); }
.eco .wire { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.eco .legs text { font-family: var(--f-head); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; fill: var(--accent); }

.phases { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
@media (max-width: 860px) { .phases { grid-template-columns: 1fr; } }
.phase { padding: 16px 18px; border-right: 1px solid var(--line); position: relative; }
.phase:last-child { border-right: 0; }
@media (max-width: 860px) { .phase { border-right: 0; border-bottom: 1px solid var(--line); } .phase:last-child { border-bottom: 0; } }
.phase.gate { background: var(--surface-2); }
.phase .ph { font-family: var(--f-head); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.phase h3 { margin: 2px 0 6px; }
.phase p { margin: 0; font-size: 14px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 10px 0 0; }
.checks li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 14px; }
.checks input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--ok); flex: none; cursor: pointer; }
.checks li.done span { color: var(--muted); text-decoration: line-through; }
.checks .by { font-size: 11px; color: var(--muted); margin-left: 4px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.totals div { font-size: 13px; color: var(--muted); }
.totals strong { display: block; font-family: var(--f-head); font-size: 28px; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ---------- Meetings ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-item::before { content: ''; position: absolute; left: -26px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-strong); }
.tl-item.st-held::before { background: var(--ink); border-color: var(--ink); }
.tl-item.st-tentative::before, .tl-item.st-scheduled::before { border-color: var(--accent); }
.tl-item.next .card { border-color: var(--accent); }
.mt-date { font-family: var(--f-head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; color: var(--muted); }
.pre { white-space: pre-wrap; margin: 6px 0 0; font-size: 15px; }
.agenda-pre { margin: 6px 0 0; padding-left: 18px; }
.agenda-pre li { margin: 3px 0; }
.actions-list { list-style: none; padding: 0; margin: 8px 0 0; }
.actions-list li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.actions-list li:last-child { border-bottom: 0; }
.actions-list input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--ok); cursor: pointer; }
.actions-list li.done .t { text-decoration: line-through; color: var(--muted); }
.actions-list select { padding: 3px 6px; font-size: 13px; width: auto; }
.sub-h { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; color: var(--muted); margin: 16px 0 4px; }

/* ---------- Banner / modal / toast ---------- */
.banner { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 22px; font-size: 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.modal-back { position: fixed; inset: 0; background: rgba(12, 18, 26, .55); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); color: var(--ink); border-radius: 14px; width: min(440px, 100%); padding: 24px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.modal h2 { margin-bottom: 6px; }
.who-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 12px; }
.who-pick button { padding: 14px 6px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.who-pick button:hover, .who-pick button.on { border-color: var(--ink); }
.who-pick .avatar { width: 38px; height: 38px; font-size: 14px; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Lock screen */
.lock { min-height: calc(100vh - 220px); display: grid; place-items: center; }
.lock-card { width: min(460px, 100%); text-align: center; }
.lock-card .seal { width: 72px; height: 72px; margin: 0 auto 14px; color: var(--accent); }
.lock-card p { color: var(--muted); }
.lock-card form { display: flex; gap: 8px; margin-top: 16px; }
.lock-quiet { font-family: var(--f-head); letter-spacing: .3em; text-transform: uppercase; font-size: 12px; color: var(--muted); margin-top: 26px; }

.foot { max-width: 1180px; margin: 0 auto; padding: 18px 16px 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.foot-quiet { font-family: var(--f-head); letter-spacing: .3em; text-transform: uppercase; font-size: 12px; }

.empty { color: var(--muted); font-size: 14px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }

/* ---------- Print briefing ---------- */
#print-root { display: none; }
@media print {
  @page { margin: 0.6in; }
  body { background: #fff; color: #000; font-size: 11pt; }
  #app, #modal-root, #toast { display: none !important; }
  #print-root { display: block; }
  #print-root h1 { font-family: var(--f-head); font-size: 24pt; margin: 0; }
  #print-root h2 { font-family: var(--f-head); font-size: 14pt; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1.5pt solid #000; padding-bottom: 2pt; margin: 18pt 0 8pt; }
  #print-root .pmeta { color: #444; margin: 2pt 0 0; }
  #print-root .pline { margin: 0 0 8pt; break-inside: avoid; }
  #print-root .pline b { display: block; font-size: 9pt; text-transform: uppercase; letter-spacing: .08em; color: #555; }
  #print-root .pline q { font-family: var(--f-quote); font-size: 12pt; quotes: none; }
  #print-root .pstat { font-size: 9pt; color: #555; }
  #print-root ul, #print-root ol { margin: 0; padding-left: 18pt; }
  #print-root li { margin: 0 0 4pt; break-inside: avoid; }
  #print-root .pfoot { margin-top: 24pt; font-size: 9pt; color: #666; border-top: .5pt solid #999; padding-top: 4pt; }
}

@media (max-width: 600px) {
  main { padding-top: 20px; }
  .hero-main { padding: 20px; }
  .q-card { grid-template-columns: 36px 1fr; gap: 10px; }
  .q-rank { font-size: 24px; }
  .agenda-item { grid-template-columns: 30px 1fr; }
  .agenda-item .go { display: none; }
  .brand-name { font-size: 22px; }
  .chip-mode { font-size: 0; padding: 6px; gap: 0; }
  .who-pick { grid-template-columns: repeat(3, 1fr); }
  .quote { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
