:root {
  color-scheme: light;
  --ink: #1b2926;
  --muted: #576864;
  --green: #164d3c;
  --green-dark: #16342b;
  --green-light: #e7f1eb;
  --paper: #f5f5ef;
  --surface: #fffefa;
  --line: #dce2da;
  --accent: #d5a461;
  --danger: #8b3334;
  --radius: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 680; letter-spacing: -.045em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.35rem); letter-spacing: -.035em; }
h3 { font-size: 1.23rem; letter-spacing: -.02em; }
h4 { font-size: 1rem; }
p { line-height: 1.5; }
small { font-size: .8rem; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #a9783b;
  outline-offset: 2px;
}
a { color: inherit; }
input, select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cdd8cf;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
}
textarea { resize: vertical; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .87rem; }
label input, label select, label textarea { font-size: 1rem; font-weight: 400; }
img { display: block; max-width: 100%; }
.boot { padding: 40px; }
.kicker { color: var(--green); font-size: .73rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 8px; }
.hint, .muted { color: var(--muted); font-size: .88rem; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2.3vw, 26px); min-width: 0; }
.card > .hint { margin-top: 10px; }
.stack { display: grid; gap: 12px; }
.launch-guard { display: grid; padding: 0; margin: 0; border: 0; min-inline-size: 0; }
.stack .hint { margin: 0; }
.actions, .banner-actions, .badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.button {
  border: 1px solid transparent;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  text-decoration: none;
  font-size: .86rem;
  line-height: 1.25;
  font-weight: 690;
  color: inherit;
  background: transparent;
  text-align: center;
}
.primary { color: white; background: var(--green); }
.primary:hover { background: #113c30; }
.secondary, .compact { border-color: var(--line); background: var(--surface); }
.secondary:hover, .compact:hover { border-color: #9ab3a2; background: #eef5ee; }
.compact, .quiet-danger { min-height: 34px; padding: 6px 9px; font-size: .78rem; }
.quiet-danger { color: var(--danger); }
.quiet-danger:hover { background: #f6e9e5; }
.danger { color: white; background: var(--danger); }
.icon-btn {
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  padding: 0;
  min-width: 32px;
  min-height: 32px;
  font-size: 1.25rem;
}
.text-button { border: 0; background: transparent; padding: 6px; color: inherit; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 1.45rem; font-weight: 740; letter-spacing: -.035em; }
.brand small { display: block; opacity: .73; font-size: .69rem; font-weight: 600; letter-spacing: .03em; margin-top: 2px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  font-size: 26px;
  color: #18362d;
  background: #d9b479;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  background: #edf0eb;
  border-radius: 100px;
  padding: 6px 10px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.online { color: #2d6c51; background: #e5f2e7; }
.badge.status { color: #584421; background: #f1e5cf; }
.pill { display: inline-grid; place-items: center; min-width: 25px; height: 25px; padding: 0 5px; border-radius: 100px; background: var(--green-light); color: var(--green); font-size: .75rem; vertical-align: 2px; }
.host { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  color: #f5f6eb;
  background: var(--green-dark);
}
.sidebar-brand { padding: 0 5px 28px; }
.nav-label { color: #baccc0; font-size: .67rem; text-transform: uppercase; letter-spacing: .15em; padding: 0 10px 9px; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  color: inherit;
  background: transparent;
  text-align: left;
  padding: 10px;
  border-radius: 9px;
  font-size: .9rem;
}
.sidebar nav button:hover { background: #23463a; }
.sidebar nav .selected { background: #2b5143; border-color: #527266; font-weight: 680; }
.nav-icon { display: inline-grid; place-items: center; width: 23px; color: #e0b97f; font-size: 1.16rem; }
.sidebar-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; gap: 4px; border-top: 1px solid #466357; }
.sidebar-bottom .badge { background: #2c4f43; color: #dce8dd; }
.workspace { width: 100%; max-width: 1600px; margin-inline: auto; padding: 27px clamp(16px, 3vw, 48px) 42px; min-width: 0; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.room-picker { max-width: 520px; margin-bottom: 12px; }
.room-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: clamp(16px, 3vw, 27px);
  border-radius: var(--radius);
  background: #e5eee3;
  border: 1px solid #cfded0;
  margin-bottom: 16px;
}
.room-banner h2 { margin-top: 9px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 16px; align-items: start; }
.main-column, .side-column { display: grid; gap: 16px; min-width: 0; }
.side-column .stack { margin-top: 15px; }
.export-card { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lower { margin-top: 20px; }
.result-question { font-size: clamp(1.2rem, 2.4vw, 1.72rem); line-height: 1.3; letter-spacing: -.023em; font-weight: 650; margin: 15px 0; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 16px; }
.metrics div { padding: 10px 12px; border-radius: 10px; background: #eef3eb; }
.metrics span { display: block; color: var(--muted); font-size: .74rem; overflow-wrap: anywhere; }
.metrics b { display: block; margin-top: 3px; font-size: 1.7rem; line-height: 1.05; color: var(--green); }
.measurements { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: .87rem; margin-bottom: 12px; }
.measurements b { color: var(--ink); }
.bars { display: grid; gap: 8px; margin-bottom: 8px; max-height: 320px; overflow: auto; }
.bar-row > div { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; overflow-wrap: anywhere; }
.bar-row b { white-space: nowrap; }
.bar-row small { color: var(--muted); }
progress { display: block; width: 100%; height: 8px; appearance: none; border: none; margin-top: 4px; border-radius: 999px; background: #e8ece5; color: #39775d; }
progress::-webkit-progress-bar { background: #e8ece5; border-radius: 999px; }
progress::-webkit-progress-value { background: #39775d; border-radius: 999px; }
progress::-moz-progress-bar { background: #39775d; border-radius: 999px; }
.project-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 11px; background: #f1f1e8; border-radius: 9px; margin-top: 14px; font-size: .83rem; }
.table-scroll { overflow: auto; margin-top: 12px; border-radius: 9px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .86rem; }
th, td { padding: 9px 11px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: #edf2e9; color: #365045; }
tbody tr:last-child > * { border-bottom: 0; }
.person-id, .matrix small { display: block; margin-top: 2px; font-weight: 500; color: var(--muted); }
.matrix th, .matrix td { min-width: 160px; max-width: 360px; overflow-wrap: anywhere; }
.matrix thead th small { margin: 0 0 4px; }
.roster, .history { list-style: none; padding: 0; margin: 12px 0 0; }
.roster li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.roster b, .roster small { display: block; overflow-wrap: anywhere; }
.roster small, .history small { color: var(--muted); }
.seat-actions { display: flex; gap: 4px; align-items: center; flex: none; }
.history li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; }
.history li > button:first-child {
  border: 0; background: transparent; text-align: left; color: inherit; padding: 10px 0;
  display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; flex: 1; min-width: 0;
}
.history b, .history small { display: block; overflow-wrap: anywhere; }
.history-number { width: 30px; height: 30px; display: grid; place-items: center; color: var(--green); border-radius: 8px; background: #edf2e9; font-size: .83rem; }
.empty { display: grid; gap: 7px; padding: 25px 8px; place-items: center; text-align: center; color: var(--muted); }
.empty span, .wait-mark { display: grid; place-items: center; border-radius: 13px; width: 48px; height: 48px; font-size: 28px; color: var(--green); background: var(--green-light); margin-bottom: 3px; }
.empty h3 { color: var(--ink); }
.empty p { max-width: 34ch; font-size: .87rem; }
.library-group { margin-bottom: 22px; }
.library-group h2 { font-size: 1.45rem; margin-bottom: 10px; }
.library-grid, .comparison-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.library-item { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; }
.library-item h3 { margin-bottom: 5px; }
.pick-list { display: grid; gap: 7px; margin-top: 14px; max-height: 290px; overflow: auto; padding: 3px; }
.pick-list small { color: var(--muted); }
.selection { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); border-radius: 30px; padding: 5px 10px; color: var(--green); background: var(--green-light); font-size: .78rem; }
.compare-output { margin-top: 16px; }
.comparison-grid { margin-top: 12px; }
.comparison-grid article { border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.comparison-grid article .hint { margin: 8px 0; }
.analysis-item { border: 1px solid var(--line); padding: 10px; border-radius: 9px; margin-top: 10px; }
.analysis-item summary { cursor: pointer; font-weight: 640; }
.analysis-item p { margin-top: 9px; }
.ai-excerpts { max-height: 36vh; overflow: auto; padding: 4px; }
#dialog { width: min(560px, calc(100% - 24px)); max-height: 90dvh; overflow: auto; padding: 22px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: 0 20px 80px #1933283d; }
#dialog::backdrop { background: #0b1c18a6; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.dialog-head h2 { font-size: 1.55rem; }
#dialog > p { margin-bottom: 13px; }
#dialog .actions { justify-content: flex-end; }
.form-error { font-size: .85rem; color: var(--danger); }
.form-error:empty { display: none; }
.qr-block { display: grid; justify-items: center; gap: 11px; }
.qr-block img { padding: 8px; background: #fff; border-radius: 11px; border: 1px solid var(--line); }
.invite-code { font: 750 clamp(1.05rem, 6vw, 1.8rem)/1.2 ui-monospace, monospace; letter-spacing: .12em; background: #e7efe6; padding: 14px; border-radius: 10px; margin-bottom: 12px; overflow-wrap: anywhere; user-select: all; }
#notice { position: fixed; bottom: 18px; right: 18px; z-index: 3; max-width: min(360px, calc(100% - 36px)); background: var(--green-dark); color: #fff; border-radius: 10px; padding: 13px 16px; display: none; }
#notice.visible { display: block; }
#notice.error { background: var(--danger); }
.login { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(0, 1fr); min-height: 100dvh; }
.login-visual { background: var(--green-dark); color: #f3f2e5; display: grid; place-items: center; padding: 40px; }
.login-visual > div { width: min(100%, 430px); }
.login-visual p { font-size: clamp(1.1rem, 2.5vw, 2rem); font-weight: 640; letter-spacing: -.028em; }
.login-art { position: relative; display: grid; place-items: center; width: min(68vw, 265px); aspect-ratio: 1; margin: 22px auto; }
.login-art i { position: absolute; width: 100%; aspect-ratio: 1; border-radius: 100%; border: 1px solid #799688; }
.login-art i:nth-child(2) { width: 75%; border-color: #a6ae92; }
.login-art i:nth-child(3) { width: 50%; border-color: #c9a166; }
.login-art b { color: #dfb77b; font-size: 3.4rem; }
.login-content { display: grid; place-items: center; padding: 30px 20px; }
.login-inner { width: min(100%, 405px); }
.login-inner .hint { margin: 11px 0 20px; }
.participant { max-width: 680px; margin: 0 auto; min-height: 100dvh; padding: 16px 16px 32px; }
.participant-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 8px 0 20px; border-bottom: 1px solid var(--line); }
.participant-body { margin-top: 16px; }
.participant-meta { margin-bottom: 10px; color: var(--muted); font-size: .87rem; overflow-wrap: anywhere; }
.participant-meta .kicker { margin-bottom: 2px; }
.welcome h1, .question-card h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); margin-bottom: 10px; }
.welcome .stack, .question-card .stack { margin-top: 16px; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 9px; border-radius: 10px; border: 1px solid var(--line); padding: 10px 12px; background: #fff; min-height: 44px; font-size: .95rem; overflow-wrap: anywhere; cursor: pointer; }
.choice:has(input:checked) { border-color: #73a18b; background: #e9f4eb; }
.choice input { flex: 0 0 auto; width: 17px; height: 17px; min-height: auto; margin: 0; accent-color: var(--green); }
.scale-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(43px, 1fr)); gap: 6px; }
.scale-buttons .choice { justify-content: center; position: relative; }
.scale-buttons input { position: absolute; opacity: 0; }
.scale-buttons .choice:focus-within { outline: 2px solid #a9783b; }
.scale-labels { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .85rem; }
.success { padding: 14px; border-radius: 12px; background: var(--green-light); color: var(--green); margin-top: 16px; }
.success p { margin: 7px 0; }
.audience { min-height: 100dvh; background: #eff2e9; padding: clamp(14px, 4vw, 52px); }
.audience header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
#screen-content { border-radius: 24px; border: 1px solid var(--line); background: var(--surface); padding: clamp(18px, 4vw, 52px); }
.screen-empty { min-height: 54vh; display: grid; gap: 10px; align-content: center; justify-items: center; text-align: center; color: var(--muted); }
.screen-empty span { font-size: 4rem; color: var(--green); }
.screen-count { font-size: clamp(1.1rem, 2vw, 1.6rem); padding: 13px 0; color: var(--green); }
.screen-count b { font-size: 1.35em; }
.audience .bar-row > div { font-size: clamp(.95rem, 1.8vw, 1.35rem); }
.audience .bars { max-height: none; }
.audience progress { height: 12px; }
.excerpt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; margin-top: 16px; }
blockquote { margin: 0; background: #ebf2e8; padding: 16px; border-radius: 12px; font-size: clamp(1rem, 2vw, 1.4rem); }
@media (max-width: 1090px) {
  .host { grid-template-columns: 195px minmax(0, 1fr); }
  .workspace { padding-inline: 16px; }
  .banner-actions { justify-content: flex-end; }
}
@media (max-width: 850px) {
  .host { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; padding: 14px 16px; }
  .sidebar-brand { padding: 0 0 10px; }
  .sidebar .nav-label { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar nav button { padding: 7px; }
  .sidebar-bottom { margin-top: 9px; padding-top: 6px; }
}
@media (max-width: 650px) {
  .work-grid, .fields, .login { grid-template-columns: minmax(0, 1fr); }
  .room-banner { flex-direction: column; align-items: flex-start; }
  .banner-actions { justify-content: flex-start; }
  .topline { align-items: flex-start; }
  .login-visual { padding: 18px; min-height: auto; }
  .login-art, .login-visual p { display: none; }
  .login { grid-template-rows: auto 1fr; }
  .history li > button:first-child { grid-template-columns: auto minmax(0, 1fr); }
  .history li .badge { display: none; }
}

.registration-qr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.registration-qr img { background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.audience-registration a { overflow-wrap: anywhere; }
.audience-registration img { width: min(340px, 80vw); height: auto; }
.restore-profile { margin: 16px 0; }
.restore-profile form { margin-top: 12px; }
.recovery-code { font-family: monospace; }
