
: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; color: var(--ink); text-decoration: none; }
.brand img { width: 74px; height: 42px; object-fit: contain; object-position: left center; }
.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)); }
.grid.five { grid-template-columns: repeat(5, 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; }
.notice.warning { border-color: var(--gold); background: var(--gold-soft); color: #6d511a; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.micro { font-size: 10px; }
.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; }
.progress-meta > span:first-child strong,.progress-meta > span:first-child small { display:block; }
.progress-meta > span:first-child strong { color:var(--forest); font-size:13px; }
.progress-meta > span:first-child small { margin-top:2px; }
.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); }
.pace-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.pace-grid div { background:#f0f4f2; padding:9px; border-radius:6px; min-width:0; }
.pace-grid span { display:block; color:var(--muted); font-size:10px; text-transform:uppercase; font-weight:800; }
.pace-grid strong { display:block; margin-top:4px; font-variant-numeric:tabular-nums; font-size:16px; color:var(--forest); }
.shared-session-clock { display:flex; align-items:center; justify-content:flex-end; gap:16px; margin:0 0 10px; font-variant-numeric:tabular-nums; }
.shared-session-clock strong { font-size:26px; color:var(--forest); }
.danger-text { color:var(--red) !important; }
.orientation-card { min-height:56vh; display:flex; align-items:center; }
.orientation-card .panel-body { max-width:920px; margin:0 auto; width:100%; }
.orientation-body { font-size:clamp(19px,2.2vw,30px); line-height:1.42; max-width:900px; }
.orientation-list { display:grid; gap:12px; margin:24px 0; font-size:clamp(17px,1.7vw,24px); }
.orientation-callout { margin-top:24px; padding:18px 20px; border-left:5px solid var(--gold); background:#fff8df; font-weight:750; font-size:18px; }
.orientation-footnote { margin:18px 0 0; color:var(--muted); font-size:13px; line-height:1.45; }
.score-key { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; margin:26px 0; }
.score-key div { border:1px solid var(--line); padding:16px 8px; text-align:center; background:#fff; }
.score-key strong { display:block; font-size:30px; color:var(--forest); }
.score-key span { display:block; margin-top:5px; font-size:12px; font-weight:750; }
.break-screen,.elmo-screen,.completion-screen { min-height:56vh; display:flex; flex-direction:column; justify-content:center; align-items:center; }
.break-countdown { font-size:clamp(56px,10vw,120px); font-weight:850; font-variant-numeric:tabular-nums; color:var(--forest); }
.elmo-mark { display:grid; place-items:center; width:150px; height:150px; border-radius:50%; color:white; background:var(--gold); font-weight:900; font-size:30px; margin-bottom:20px; box-shadow:0 10px 30px rgba(35,75,67,.18); }
.elmo-friendly { text-align:center; padding:30px; background:#fff8df; border:1px solid #efd986; }
.elmo-friendly > span { display:inline-grid; place-items:center; width:120px; height:120px; border-radius:50%; background:var(--gold); color:#fff; font-weight:900; font-size:26px; }
.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.requested { border-color: #d8b45d; background: #fff8e8; }
.participant.skipped { border-color: #c9cfcd; background: #f2f4f3; opacity: .8; }
.participant.offline { opacity: .58; }
.participant .answer { font-weight: 800; color: var(--forest); }
.record-identifiers { display: grid; gap: 8px; margin-top: 10px; }
.record-identifiers div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.record-identifiers span { color: var(--muted); }
.record-identifiers strong { font-variant-numeric: tabular-nums; }
.social-profiles { display: grid; gap: 9px; margin-top: 10px; }
.social-profile { display: grid; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.social-profile-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12px; }
.social-profile-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.social-profile-controls select { padding: 8px; font-size: 12px; }
.social-profile-controls .btn { min-height: 35px; padding: 7px 10px; font-size: 12px; }
.sync-summary { display: grid; gap: 7px; margin-top: 10px; }
.sync-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sync-metric { padding: 8px 5px; border: 1px solid var(--line); border-radius: 5px; text-align: center; }
.sync-metric strong { display: block; font-size: 19px; }
.sync-metric span { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.sync-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; }
.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; }
.vote-row.zero .bar { visibility: hidden; }
.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 { width:100%; padding: 11px; border:1px solid transparent; background: #f0f4f2; color:var(--ink); border-radius: 6px; word-break: break-all; font-size: 12px; text-align:left; }
.copyable-link:hover { border-color:var(--teal); background:#e7f0ed; }
.prework-link-card { display:flex; flex-direction:column; gap:10px; min-width:0; padding:14px; border:1px solid var(--line); border-radius:6px; background:#fbfcfb; }
.prework-link-card h3 { margin:0; font-size:16px; }
.prework-link-card .link-box { min-height:64px; }
.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; }
.financial-section { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.financial-section summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.financial-section[open] summary { margin-bottom: 14px; }
.financial-section .grid { align-items: end; }
.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; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.public-entry { width: min(1000px, 100%); margin: 5vh auto 0; }
.auth-shell { width: min(680px, 100%); margin: 5vh auto 0; }
.public-entry h1 { max-width: none; white-space: nowrap; }
.auth-shell h1 { max-width: 660px; }
.center { text-align: center; }
.strong { font-weight: 750; line-height: 1.5; }
.code-input { text-transform: uppercase; letter-spacing: .16em; font-weight: 850; font-variant-numeric: tabular-nums; }
.terms-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin: 18px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.terms-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--forest); }
.link-button { border: 0; color: var(--forest); background: transparent; text-decoration: underline; margin-left: 12px; }
.dashboard-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dashboard-head h1 { font-size: 38px; }
.identity-strip { display:flex; flex-wrap:wrap; gap:8px 18px; color:var(--muted); font-size:13px; }
.identity-strip span { display:inline-flex; gap:5px; }
.participant-control-panel { margin-bottom:18px; }
.empty-state { padding: 36px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 6px; }
.launch-grid { align-items: start; margin-bottom: 18px; }
.qr-stage { display: grid; justify-items: start; gap: 12px; }
.qr.large { width: min(280px, 100%); height: auto; aspect-ratio: 1; }
.queue-section + .queue-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.queue-list { display: grid; gap: 9px; }
.queue-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.request-context { max-width:680px; margin-top:5px; line-height:1.45; }
.admin-tabs { display: flex; gap: 3px; margin-bottom: 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.admin-tabs button { padding: 12px 15px; white-space: nowrap; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-weight: 800; }
.admin-tabs button.active { color: var(--forest); border-bottom-color: var(--forest); }
.danger-text { color: var(--red); }
.pill.success { color: var(--green); border-color: #a8d2bf; background: #f0f8f4; }
.pill.danger { color: var(--red); border-color: #dcb0ab; background: #fbefed; }
.protected-surface { user-select: none; -webkit-user-select: none; }
.protected-surface.capture-obscured::before { content: 'Protected KSG360 content'; position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; color: white; background: #0b1714; font-size: 24px; font-weight: 800; }
.survey-shell { margin: 0 auto; }
.survey-form { margin-top: 24px; }
.survey-scale { margin: 0 0 24px; padding: 0 0 22px; border: 0; border-bottom: 1px solid var(--line); }
.survey-scale legend { margin-bottom: 12px; font-weight: 800; line-height: 1.4; }
.survey-scale-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.survey-scale-options:has(input[value="10"]) { grid-template-columns: repeat(11, minmax(0, 1fr)); }
.survey-scale-options label { display: grid; place-items: center; min-width: 0; }
.survey-scale-options input { position: absolute; opacity: 0; pointer-events: none; }
.survey-scale-options span { width: 100%; min-height: 42px; display: grid; place-items: center; border: 1px solid #bfcac7; border-radius: 5px; background: white; color: var(--ink); font-weight: 800; cursor: pointer; }
.survey-scale-options input:checked + span { border-color: var(--forest); background: var(--forest); color: white; }
.survey-scale-options input:focus-visible + span { outline: 3px solid rgba(62,119,107,.22); }
.survey-scale-labels { display: flex; justify-content: space-between; gap: 18px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.survey-summary .metric strong { font-size: 22px; }
@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) {
  .public-entry h1 { white-space: normal; }
  .grid.two, .grid.three, .grid.four, .grid.five, .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; }
  .brand img { width: 58px; }
  .brand small { display: none; }
  .dashboard-head { display: grid; }
  .dashboard-head h1 { font-size: 31px; }
  .score-key { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .pace-grid { grid-template-columns: 1fr; }
  .survey-scale-options, .survey-scale-options:has(input[value="10"]) { grid-template-columns: repeat(6, minmax(0,1fr)); }
}
