
:root {
  --ink: #142533;
  --muted: #63737d;
  --line: #d9e1df;
  --paper: #f6f8f7;
  --white: #ffffff;
  --forest: #234b43;
  --teal: #3e776b;
  --mint: #dcebe6;
  --gold: #bd8c2e;
  --gold-soft: #f6ecd6;
  --red: #a13f37;
  --green: #26734d;
  --shadow: 0 12px 34px rgba(20, 37, 51, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--forest); }
.topbar { height: 66px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; font-weight: 800; letter-spacing: 0; }
.mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--forest); border-radius: 6px; font-size: 13px; }
.brand small { color: var(--muted); font-weight: 600; display: block; margin-top: 1px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; background: var(--white); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.dot.live { background: var(--green); box-shadow: 0 0 0 4px rgba(38,115,77,.12); }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 46px; }
.narrow { width: min(720px, calc(100% - 28px)); }
.display-shell { width: min(1500px, calc(100% - 48px)); padding-top: 18px; }
.eyebrow { text-transform: uppercase; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(30px, 4vw, 56px); line-height: 1.04; letter-spacing: 0; margin-bottom: 14px; }
h2 { font-size: 24px; letter-spacing: 0; }
h3 { font-size: 17px; letter-spacing: 0; }
.lede { max-width: 780px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.panel-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-body { padding: 22px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.metric strong { display: block; font-size: 30px; line-height: 1; margin-top: 10px; }
.metric span { color: var(--muted); font-size: 13px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 750; }
input, select, textarea { width: 100%; padding: 12px 13px; border: 1px solid #bfcac7; border-radius: 6px; background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(62,119,107,.16); border-color: var(--teal); }
.btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; border: 1px solid transparent; border-radius: 6px; background: var(--forest); color: white; font-weight: 750; text-decoration: none; }
.btn:hover { background: #193b34; }
.btn.secondary { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn.secondary:hover { background: #f0f4f2; }
.btn.gold { background: var(--gold); }
.btn.danger { background: var(--red); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.icon { min-width: 42px; padding: 9px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spacer { height: 20px; }
.notice { border-left: 4px solid var(--gold); background: var(--gold-soft); padding: 13px 15px; border-radius: 0 6px 6px 0; color: #59451e; }
.notice.error { border-color: var(--red); background: #f8e7e5; color: #6f2923; }
.notice.success { border-color: var(--green); background: #e5f2eb; color: #185137; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }
.progress { height: 8px; overflow: hidden; border-radius: 99px; background: #e7ecea; }
.progress > div { height: 100%; background: var(--teal); transition: width .25s ease; }
.progress-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; margin-top: 7px; }
.question-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.question-card { padding: 26px; min-height: 550px; }
.question-card h1 { font-size: clamp(28px, 3.8vw, 51px); line-height: 1.08; max-width: 1050px; }
.question-card .purpose { font-size: 17px; color: var(--muted); line-height: 1.5; margin: 18px 0; }
.area-line { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.guidance { display: grid; gap: 8px; margin-top: 20px; }
.guide-row { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; align-items: start; }
.guide-row strong { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 5px; background: var(--mint); color: var(--forest); }
.side-stack { display: grid; gap: 14px; }
.side-panel { padding: 17px; }
.big-count { font-size: 44px; line-height: 1; font-weight: 850; }
.timer { font-variant-numeric: tabular-nums; font-size: 32px; font-weight: 800; color: var(--forest); }
.timer.behind { color: var(--red); }
.participants { display: grid; gap: 8px; }
.participant { padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.participant.done { border-color: #a8d2bf; background: #f0f8f4; }
.participant.offline { opacity: .58; }
.participant .answer { font-weight: 800; color: var(--forest); }
.choices { display: grid; gap: 10px; }
.choice { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; align-items: start; background: var(--white); }
.choice:hover { border-color: var(--teal); }
.choice input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--forest); }
.choice.selected { border-color: var(--forest); background: #f0f6f4; }
.choice.disabled { opacity: .42; background: #f2f3f3; }
.checklist { display: grid; gap: 10px; }
.check-row { display: grid; grid-template-columns: minmax(0, 1fr) 138px; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.segmented label { padding: 9px; text-align: center; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--forest); color: white; }
.waiting { text-align: center; padding: 52px 20px; }
.waiting-icon { width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--forest); font-size: 30px; }
.vote-chart { display: grid; gap: 12px; margin-top: 22px; }
.vote-row { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr 44px; gap: 12px; align-items: center; }
.bar { height: 30px; background: #e7ecea; border-radius: 5px; overflow: hidden; }
.bar > div { height: 100%; background: var(--teal); }
.qr { width: 190px; height: 190px; background: white; border: 1px solid var(--line); border-radius: 6px; padding: 7px; }
.link-list { display: grid; gap: 10px; }
.link-box { padding: 11px; background: #f0f4f2; border-radius: 6px; word-break: break-all; font-size: 12px; }
.session-hero { padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.footer { padding: 24px 0; color: var(--muted); font-size: 12px; text-align: center; }
.prework-list { display: grid; gap: 14px; }
.prework-item { padding: 18px; border: 1px solid var(--line); border-radius: 7px; }
.prework-item h3 { margin-bottom: 8px; }
.prework-matrix { display: grid; gap: 9px; margin-top: 14px; }
.prework-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 260px); gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.prework-row:first-child { border-top: 0; }
.prework-row label { font-weight: 700; font-size: 13px; }
.report-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 20px; }
.report-tabs { display: flex; gap: 2px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.report-tab { padding: 12px 15px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-weight: 800; }
.report-tab.active { color: var(--forest); border-bottom-color: var(--forest); }
.score-list, .finding-list { display: grid; gap: 10px; }
.score-row { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr 48px; gap: 12px; align-items: center; }
.score-track { height: 12px; border-radius: 99px; overflow: hidden; background: #e7ecea; }
.score-track div { height: 100%; background: var(--teal); }
.score-track .score-low { background: var(--red); }
.score-track .score-mid { background: var(--gold); }
.finding { padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.finding strong { display: block; margin-bottom: 4px; }
.report-suite { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.report-tile { padding: 16px; border: 1px solid var(--line); border-radius: 7px; }
.report-tile h3 { margin-bottom: 7px; }
.report-tile .pill { margin-top: 10px; }
.sample-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.sample-link { display: flex; justify-content: space-between; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 750; }
.sample-link:hover { border-color: var(--teal); background: #f0f6f4; }
@media print {
  .topbar, .footer, .report-tabs, #print-report, #back-to-session, #sample-reports, #report-notice { display: none !important; }
  body { background: white; }
  .shell { width: 100%; padding: 0; }
  .panel, .metric { box-shadow: none; break-inside: avoid; }
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
@media (max-width: 900px) {
  .grid.two, .grid.three, .grid.four, .question-layout, .session-hero, .report-suite { grid-template-columns: 1fr; }
  .question-layout .side-stack { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .question-card { min-height: auto; }
}
@media (max-width: 620px) {
  .topbar { padding: 0 16px; }
  .shell { width: min(100% - 20px, 720px); padding-top: 18px; }
  .question-card, .panel-body { padding: 18px; }
  .question-card h1 { font-size: 27px; }
  .question-layout .side-stack { grid-template-columns: 1fr; }
  .choice { padding: 11px; }
  .check-row { grid-template-columns: 1fr; }
  .vote-row { grid-template-columns: 1fr 36px; }
  .vote-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .report-head { display: grid; }
  .report-tabs { overflow-x: auto; }
  .report-tab { white-space: nowrap; }
  .score-row { grid-template-columns: 1fr 42px; }
  .score-row .score-track { grid-column: 1 / -1; grid-row: 2; }
  .sample-list { grid-template-columns: 1fr; }
}
