:root {
  color-scheme: dark;
  --ink: #eef7f7;
  --muted: #9db2b8;
  --deep: #06141d;
  --panel: #0b202b;
  --panel-2: #102b37;
  --line: #23414c;
  --cyan: #56e0cf;
  --cyan-2: #1cb6ad;
  --amber: #f1bd62;
  --red: #ff7f78;
  --green: #6ce3a0;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #16313a;
  --muted: #557079;
  --deep: #f4f8f7;
  --panel: #ffffff;
  --panel-2: #e8f1f0;
  --line: #c8d9d9;
  --cyan: #087d78;
  --cyan-2: #0b6864;
  --amber: #b46f13;
  --red: #c54343;
  --green: #167a50;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 12% 0%, #123b48 0, transparent 30rem), var(--deep); }
button, input { font: inherit; }
button { cursor: pointer; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 56px); border-bottom: 1px solid var(--line); background: rgb(6 20 29 / .88); backdrop-filter: blur(14px); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle, .language-toggle { min-width: 40px; min-height: 32px; color: var(--cyan); background: transparent; border: 1px solid var(--line); border-radius: 8px; font-size: .78rem; font-weight: 800; }
.theme-toggle:hover, .language-toggle:hover { border-color: var(--cyan); }
.brand { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; color: var(--deep); background: var(--cyan); border-radius: 10px 4px 10px 4px; }
.connection { color: var(--muted); font-size: .86rem; display: flex; align-items: center; gap: 8px; }
.connection span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.connection.offline span { background: var(--red); box-shadow: none; }
.app-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: clamp(30px, 6vw, 72px) 0 64px; }
.hero { display: grid; grid-template-columns: 1.35fr .9fr; gap: 28px; align-items: stretch; }
.hero-copy { padding: clamp(8px, 3vw, 36px) 0; }
.eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 20px; font-size: clamp(2.25rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.055em; font-weight: 650; }
h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); letter-spacing: -.035em; }
h3 { font-size: 1rem; }
.lead { max-width: 690px; color: #bed0d4; font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.65; }
.panel { background: linear-gradient(150deg, rgb(16 43 55 / .95), rgb(8 29 39 / .95)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: 0 28px 80px rgb(0 0 0 / .22); }
.choice-panel { display: grid; gap: 14px; align-content: center; }
.role-card { width: 100%; padding: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; color: var(--ink); text-align: left; background: #0c2430; border: 1px solid var(--line); border-radius: 14px; }
.role-card:hover { border-color: var(--cyan-2); transform: translateY(-1px); }
.role-icon { font-size: 1.6rem; }
.role-card strong, .role-card small { display: block; }
.role-card small { margin-top: 4px; color: var(--muted); }
.role-card .arrow { color: var(--cyan); font-size: 1.3rem; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
label { color: #c9d8db; font-size: .9rem; }
.input { width: 100%; min-height: 48px; padding: 11px 14px; color: var(--ink); background: #071a23; border: 1px solid var(--line); border-radius: 11px; outline: none; }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgb(86 224 207 / .14); }
.code-input { text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { min-height: 46px; padding: 11px 18px; color: var(--ink); background: #122d38; border: 1px solid var(--line); border-radius: 11px; font-weight: 650; }
.btn:hover:not(:disabled) { border-color: #4a6c75; }
.btn:disabled { cursor: not-allowed; opacity: .42; }
.btn-primary { color: #052019; background: var(--cyan); border-color: var(--cyan); }
.btn-warn { color: #291900; background: var(--amber); border-color: var(--amber); }
.avatar-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin: 10px 0 24px; }
.avatar { min-height: 48px; padding: 6px; font-size: 1.35rem; background: #071a23; border: 1px solid var(--line); border-radius: 10px; }
.avatar.selected { background: rgb(86 224 207 / .15); border-color: var(--cyan); box-shadow: 0 0 0 2px rgb(86 224 207 / .12); }
.session-head { display: flex; gap: 22px; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 22px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.admin-tabs button { border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; padding: 9px 12px; }
.admin-tabs button:hover { background: var(--panel-2); color: var(--ink); }
.admin-tabs button.active { background: rgb(86 224 207 / .16); color: var(--cyan); font-weight: 700; }
.host-page { max-width: 1180px; }
.session-code { display: inline-flex; gap: 10px; align-items: center; padding: 9px 13px; color: var(--cyan); background: rgb(86 224 207 / .08); border: 1px solid rgb(86 224 207 / .26); border-radius: 10px; font-weight: 800; letter-spacing: .12em; }
.host-notice { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; padding: 17px 20px; background: rgb(241 189 98 / .1); border: 1px solid rgb(241 189 98 / .35); border-radius: 14px; }
.host-notice strong { color: var(--amber); }
.host-notice p { margin: 4px 0 0; color: #c9d8db; }
.host-notice > span { flex: 0 0 auto; color: var(--deep); background: var(--amber); padding: 8px 11px; border-radius: 8px; font-weight: 750; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.status.open::before { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dashboard { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 20px; }
.stack { display: grid; gap: 18px; align-content: start; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric { padding: 15px; background: #091d27; border-radius: 12px; }
.metric small { display: block; color: var(--muted); margin-bottom: 7px; }
.metric strong { font-size: 1.45rem; }
.progress { height: 8px; overflow: hidden; background: #06151d; border-radius: 99px; }
.progress > span { display: block; height: 100%; background: var(--cyan); transition: width .25s ease; }
.question { min-height: 410px; display: grid; align-content: start; }
.question-meta { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .84rem; margin-bottom: 20px; }
.stimulus { min-height: 190px; margin: 8px 0 24px; display: grid; place-items: center; overflow: hidden; background: #061820; border: 1px solid #1b3843; border-radius: 14px; }
.image-stimulus { grid-template-rows: minmax(0, 1fr) auto; margin-inline: 0; }
.image-stimulus img { display: block; width: 100%; height: min(44vh, 430px); object-fit: contain; background: #020b0f; }
.bird-stimulus img { object-fit: contain; object-position: center; }

.reference-answer { display: block; font-size: 1.3rem; color: var(--ink); }
.answer-distance { margin-top: 12px; color: var(--muted); }
.warmth-track { position: relative; height: 12px; margin: 12px 0 6px; border-radius: 8px; background: linear-gradient(to right, #508ada, #efcf66, #58d7ac); }
.warmth-track i { position: absolute; top: -4px; width: 4px; height: 20px; background: white; transform: translateX(-50%); }
.warmth-labels { display: flex; justify-content: space-between; font-size: .8rem; }
.profile-dialog { width: min(520px, 94vw); background: #102832; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.profile-dialog::backdrop { background: #0009; }
.image-stimulus figcaption { width: 100%; padding: 8px 12px; color: var(--muted); background: #071a23; font-size: .76rem; text-align: right; }
.image-stimulus a { color: inherit; }
.surface-canvas { display: block; width: 100%; height: 220px; }
.vessel { position: relative; width: 148px; height: 190px; border: 3px solid #9fb9c2; border-top: 0; border-radius: 8px 8px 28px 28px; overflow: hidden; }
.vessel.rectangular { width: 176px; border-radius: 2px 2px 8px 8px; }
.vessel.conical { width: 176px; clip-path: polygon(3% 0, 97% 0, 52% 100%, 48% 100%); border-radius: 0; }
.liquid { position: absolute; inset-inline: 0; bottom: 0; background: linear-gradient(#61e2d3, #168e9b); }
.scale { position: absolute; inset: 10px 10px 10px auto; width: 18px; background: repeating-linear-gradient(to bottom, transparent 0 17px, #cde0e3 18px 19px); opacity: .7; }
.vessel-stimulus, .geometry-stimulus { align-content: center; gap: 12px; }
.vessel-stimulus small, .geometry-stimulus small { color: var(--muted); }
.geometry-canvas { display: block; width: 100%; height: 300px; }
.answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.answer { min-height: 58px; padding: 14px; color: var(--ink); background: #0b2530; border: 1px solid var(--line); border-radius: 12px; font-weight: 650; }
.answer.selected { color: var(--deep); background: var(--cyan); border-color: var(--cyan); }
.confidence { margin: 22px 0; }
.confidence-head { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; }
input[type="range"] { width: 100%; accent-color: var(--cyan); }
.waiting { min-height: 360px; display: grid; place-items: center; text-align: center; }
.waiting-symbol { width: 110px; height: 110px; display: grid; place-items: center; margin: 0 auto 22px; font-size: 3rem; background: rgb(86 224 207 / .08); border: 1px solid rgb(86 224 207 / .25); border-radius: 30px 10px 30px 10px; }
.participant-list { display: grid; gap: 8px; max-height: 330px; overflow: auto; }
.dataset-list { display: grid; gap: 10px; }
.dataset-row { padding: 12px; background: #091d27; border: 1px solid transparent; border-radius: 11px; }
.dataset-row.current { border-color: rgb(86 224 207 / .55); }
.dataset-row > div:first-child { display: grid; gap: 3px; }
.dataset-row small { color: var(--muted); }
.dataset-counts { display: flex; gap: 7px; margin-top: 9px; }
.dataset-counts span { padding: 3px 7px; color: var(--cyan); background: rgb(86 224 207 / .08); border-radius: 6px; font: 650 .75rem/1.4 ui-monospace, monospace; }
.dataset-results { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.dataset-results span { display: flex; justify-content: space-between; padding: 7px 8px; color: var(--muted); background: #061820; border-radius: 7px; font-size: .78rem; }
.dataset-results strong { color: var(--ink); }
.dataset-row p { margin: 8px 0 0; color: #b8c9cc; font-size: .78rem; line-height: 1.4; }
.aggregate-summary { display: grid; gap: 10px; margin-top: 12px; }
.aggregate-head { display: flex; gap: 8px; color: var(--muted); font-size: .78rem; }
.aggregate-head span { padding: 3px 7px; background: #061820; border-radius: 6px; }
.aggregate-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aggregate-metrics > div { display: grid; gap: 4px; min-width: 0; padding: 11px; background: #061820; border-radius: 9px; }
.aggregate-metrics small, .aggregate-metrics span { color: var(--muted); font-size: .74rem; line-height: 1.35; }
.aggregate-metrics strong { color: var(--cyan); font-size: 1.2rem; }
.attempt-details { margin-top: 12px; color: var(--muted); }
.attempt-details summary { cursor: pointer; }
.attempt-details .attempt-statistics { margin-top: 8px; }
.self-setup { border-color: rgb(86 224 207 / .35); }
.scenario-settings { margin-top: 20px; }
.scenario-stage { margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.scenario-stage legend { padding: 0 7px; color: var(--cyan); font-weight: 700; }
.scenario-stage .field { margin-bottom: 0; }
.count-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.table-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.table-head h3, .table-head p { margin: 0; }
.progress-table { display: grid; gap: 10px; }
.progress-card { display: grid; gap: 10px; padding: 14px; background: #091d27; border: 1px solid var(--line); border-radius: 12px; }
.progress-card-head { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 12px; align-items: center; }
.progress-stage { color: var(--muted); }
.progress-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.progress-metrics span { display: grid; gap: 3px; min-width: 0; padding: 9px 10px; background: #061820; border-radius: 8px; }
.progress-metrics small { color: var(--muted); }
.progress-person { font-weight: 650; }
.progress-card strong { color: var(--cyan); }
.self-progress { margin: -8px 0 16px; }
.participant { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.participant small { color: var(--muted); }
.answered { color: var(--green); }
.bars { display: grid; gap: 11px; margin-top: 18px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 36px; gap: 10px; align-items: center; }
.bar-track { height: 13px; background: #06151d; border-radius: 99px; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: var(--cyan-2); }
.result-box { margin-top: 20px; padding: 18px; color: #d7e7e8; background: rgb(86 224 207 / .08); border-left: 3px solid var(--cyan); }
.cluster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.sensor { padding: 10px; background: #0b2530; border: 1px solid var(--line); border-radius: 11px; }
.sensor-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sensor-bars { height: 54px; display: flex; gap: 4px; align-items: end; }
.sensor-bars i { flex: 1; min-width: 3px; background: var(--cyan-2); border-radius: 3px 3px 0 0; }
.cluster-select { width: 100%; margin-top: 8px; padding: 6px; color: var(--ink); background: #071a23; border: 1px solid var(--line); border-radius: 7px; }
.recovery { margin-top: 24px; display: grid; grid-template-columns: minmax(220px, .7fr) 1.3fr; gap: 24px; align-items: center; }
.recovery h3 { margin: 6px 0 0; }
.recovery-groups { display: grid; gap: 12px; }
.recovery-groups small { display: block; margin-bottom: 7px; color: var(--muted); }
.dataset-picker { border-color: rgb(241 189 98 / .32); }
.assignment-list, .personal-grid { display: grid; gap: 10px; margin-top: 14px; }
.assignment-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.assignment-row h3, .assignment-row p { margin: 0; }
.assignment-row p { margin-top: 5px; }
.access-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 12px; color: var(--muted); background: #071a23; border: 1px solid var(--line); border-radius: 11px; }
.access-toggle:has(input:checked) { color: var(--cyan); border-color: var(--cyan-2); }
.access-toggle input { width: 18px; height: 18px; accent-color: var(--cyan); }
.numeric-pair { display: grid; grid-template-columns: minmax(120px, .3fr) 1fr; gap: 16px; align-items: center; }
.personal-dataset { display: grid; grid-template-columns: 1fr auto; gap: 12px 18px; align-items: center; padding: 16px; color: var(--ink); text-align: left; background: #091d27; border: 1px solid var(--line); border-radius: 12px; }
.personal-dataset:hover { border-color: var(--cyan); }
.personal-dataset > span:first-child { display: grid; gap: 5px; }
.personal-dataset small { color: var(--muted); }
.personal-dataset .progress { grid-column: 1 / -1; width: 100%; }
.dataset-progress { color: var(--cyan); font-weight: 700; }
.stage-transition { min-height: 330px; display: grid; place-content: center; justify-items: start; }
.stage-number { margin-bottom: 18px; color: var(--cyan); font: 750 1.25rem/1 ui-monospace, monospace; letter-spacing: .08em; }
.stage-plan { display: grid; gap: 12px; margin: 0 0 26px; padding-left: 22px; color: #c9d8db; line-height: 1.5; }
.positive { color: var(--green); }
.admin-login { width: min(460px, 100%); margin: 5vh auto 0; }
.error-text { color: #ffaaa4; }
.session-list { display: grid; }
.session-row { display: grid; grid-template-columns: 110px minmax(220px, 1fr) 100px minmax(170px, auto); gap: 18px; align-items: center; padding: 14px 6px; color: var(--ink); text-align: left; background: transparent; border: 0; border-top: 1px solid var(--line); }
.session-row:hover { background: rgb(86 224 207 / .05); }
.session-row > span:not(.session-code) { display: grid; gap: 4px; }
.session-row small { color: var(--muted); }
.history-list { display: grid; margin-bottom: 20px; }
.history-row { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(150px, 1fr) auto; gap: 18px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--line); }
.history-row.with-stimulus { grid-template-columns: 82px minmax(180px, 1.3fr) minmax(150px, 1fr) auto; }
.history-stimulus { width: 76px; height: 76px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.history-row > div { display: grid; gap: 4px; }
.history-row small { color: var(--muted); }
.history-status { color: var(--muted); }
.history-status.correct { color: var(--green); }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: 380px; padding: 14px 18px; color: #2a0808; background: #ff9b95; border-radius: 10px; box-shadow: 0 16px 48px rgb(0 0 0 / .3); }
.poll-template-list { display: grid; gap: 10px; }
.poll-template { display: grid; gap: 5px; width: 100%; padding: 13px; color: var(--ink); text-align: left; background: #091d27; border: 1px solid var(--line); border-radius: 11px; }
.poll-template:hover { border-color: var(--cyan); }
.poll-template small { color: var(--muted); line-height: 1.4; }
.poll-template span { color: var(--cyan); font-size: .78rem; }
.poll-textarea { min-height: 96px; resize: vertical; font: inherit; }
.poll-options { display: grid; gap: 10px; }
.poll-dashboard { align-items: start; }
.poll-results h3 { margin: 6px 0; }
.poll-choice-list { display: grid; gap: 12px; margin: 24px 0; }
.poll-choice { min-height: 58px; padding: 14px 16px; color: var(--ink); text-align: left; background: #0b2530; border: 1px solid var(--line); border-radius: 12px; font-weight: 650; }
.poll-choice:hover:not(:disabled) { border-color: var(--cyan); }
.poll-choice.selected { color: var(--deep); background: var(--cyan); border-color: var(--cyan); }
.poll-participant { width: min(760px, 100%); min-height: 360px; margin: 4vh auto 0; }
.muted { color: var(--muted); }
.presentation-controls { display: grid; gap: 16px; }
.presentation-page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: clamp(30px, 6vw, 72px) 0 64px; }
.presentation-page h1 { max-width: none; font-size: clamp(2.15rem, 5vw, 4.2rem); }
.presentation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.presentation-card { min-height: 240px; display: grid; align-content: start; }
.presentation-card h2 { margin: 18px 0 8px; font-size: clamp(2.8rem, 7vw, 5.8rem); color: var(--cyan); }
.presentation-card p { margin-bottom: 10px; font-size: 1.12rem; }
.presentation-card small, .presentation-stage-metrics span { color: var(--muted); line-height: 1.5; }
.presentation-note { margin: 24px 0 0; color: var(--muted); text-align: center; }
.presentation-ranking { display: grid; gap: 12px; }
.ranking-row { display: grid; grid-template-columns: 52px minmax(180px, 1.2fr) minmax(150px, .7fr) minmax(190px, .9fr) auto; gap: 16px; align-items: center; padding: 18px 22px; }
.ranking-row > span { display: grid; gap: 3px; }
.ranking-place { place-items: center; width: 44px; height: 44px; color: var(--deep); background: var(--line); border-radius: 50%; font-weight: 800; }
.ranking-top .ranking-place { background: var(--amber); }
.ranking-person { font-size: 1.18rem; }
.ranking-row strong { font-size: 1.25rem; }
.ranking-row small { color: var(--muted); }
.presentation-datasets { display: grid; gap: 16px; }
.presentation-dataset { display: grid; gap: 20px; }
.presentation-dataset h2 { margin: 5px 0 0; }
.presentation-stage-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.presentation-stage-metrics > div { display: grid; gap: 5px; padding: 14px; background: #061820; border: 1px solid var(--line); border-radius: 11px; }
.presentation-stage-metrics small { color: var(--muted); }
.presentation-stage-metrics strong { color: var(--cyan); font-size: 1.45rem; }
.presentation-delta { margin: 0; color: var(--muted); }
:root[data-theme="light"] body { background: radial-gradient(circle at 12% 0%, #d7f0eb 0, transparent 31rem), var(--deep); }
:root[data-theme="light"] .topbar { background: rgb(248 252 251 / .9); }
:root[data-theme="light"] .lead { color: #49636b; }
:root[data-theme="light"] label,
:root[data-theme="light"] .host-notice p,
:root[data-theme="light"] .stage-plan { color: #39555e; }
:root[data-theme="light"] .panel { background: linear-gradient(150deg, rgb(255 255 255 / .98), rgb(239 247 246 / .98)); box-shadow: 0 20px 56px rgb(30 68 73 / .12); }
:root[data-theme="light"] .role-card,
:root[data-theme="light"] .answer,
:root[data-theme="light"] .sensor,
:root[data-theme="light"] .poll-choice { background: #f5fafa; }
:root[data-theme="light"] .input,
:root[data-theme="light"] .avatar,
:root[data-theme="light"] .cluster-select,
:root[data-theme="light"] .access-toggle,
:root[data-theme="light"] .image-stimulus figcaption { background: #f6fbfb; }
:root[data-theme="light"] .btn { background: #eaf3f2; }
:root[data-theme="light"] .metric,
:root[data-theme="light"] .dataset-row,
:root[data-theme="light"] .progress-card,
:root[data-theme="light"] .poll-template,
:root[data-theme="light"] .personal-dataset { background: #f0f7f6; }
:root[data-theme="light"] .presentation-stage-metrics > div { background: #edf5f4; border-color: #cbdedd; }
:root[data-theme="light"] .progress,
:root[data-theme="light"] .bar-track { background: #dbe8e7; }
:root[data-theme="light"] .stimulus,
:root[data-theme="light"] .dataset-results span,
:root[data-theme="light"] .aggregate-head span,
:root[data-theme="light"] .aggregate-metrics > div,
:root[data-theme="light"] .progress-metrics span { background: #edf5f4; border-color: #cbdedd; }
:root[data-theme="light"] .stimulus { border-color: #c4d8d7; }
:root[data-theme="light"] .image-stimulus img { background: #e8f2f0; }
:root[data-theme="light"] .profile-dialog { background: #f9fcfb; box-shadow: 0 24px 70px rgb(30 68 73 / .24); }
:root[data-theme="light"] .profile-dialog::backdrop { background: rgb(12 35 40 / .35); }
:root[data-theme="light"] .result-box { color: #25454c; }
:root[data-theme="light"] .dataset-row p { color: #4d6870; }
:root[data-theme="light"] .error-text { color: #a52d2d; }
:root[data-theme="light"] .vessel { border-color: #60828b; }
:root[data-theme="light"] .scale { background: repeating-linear-gradient(to bottom, transparent 0 17px, #51737c 18px 19px); }
:root[data-theme="light"] .btn-primary { color: #fff; }
:root[data-theme="light"] .answer.selected,
:root[data-theme="light"] .poll-choice.selected { color: #fff; }
.hidden { display: none !important; }
@media (max-width: 820px) {
  .hero, .dashboard { grid-template-columns: 1fr; }
  .recovery { grid-template-columns: 1fr; }
  .session-head { display: grid; }
  .host-notice { display: grid; }
  .host-notice > span { width: fit-content; }
  .avatar-grid { grid-template-columns: repeat(6, 1fr); }
  .presentation-grid { grid-template-columns: 1fr; }
  .ranking-row { grid-template-columns: 44px 1fr 1fr; }
  .ranking-row > :last-child { display: none; }
}
@media (max-width: 520px) {
  .topbar { padding-inline: 16px; }
  .connection { font-size: 0; }
  .connection span { display: block; }
  .app-shell { width: min(100% - 22px, 1180px); padding-top: 25px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics .metric:last-child { grid-column: 1 / -1; }
  .avatar-grid { grid-template-columns: repeat(5, 1fr); }
  .answers, .cluster-grid { grid-template-columns: 1fr; }
  .count-grid { grid-template-columns: 1fr; }
  .presentation-page { width: min(100% - 22px, 1180px); padding-top: 25px; }
  .presentation-stage-metrics { grid-template-columns: 1fr; }
  .ranking-row { grid-template-columns: 38px 1fr; gap: 10px; padding: 14px; }
  .ranking-row > span:nth-child(n + 3) { grid-column: 2; }
  .table-head { display: grid; }
  .progress-card-head { grid-template-columns: 1fr auto; }
  .progress-card-head > :last-child { justify-self: start; }
  .progress-metrics { grid-template-columns: 1fr; }
  .aggregate-metrics { grid-template-columns: 1fr; }
  .assignment-row { display: grid; }
  .numeric-pair { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 105px 1fr 28px; font-size: .84rem; }
  .history-row, .history-row.with-stimulus { grid-template-columns: 1fr; gap: 7px; }
  .session-row { grid-template-columns: 90px 1fr; }
  .session-row > span:nth-child(n+3) { padding-left: 4px; }
}
