:root {
  color-scheme: dark;
  --bg: #070b11;
  --panel: rgba(14, 21, 31, .92);
  --panel-2: #101925;
  --line: rgba(255,255,255,.1);
  --text: #f7f9fb;
  --muted: #9caabc;
  --orange: #ffad1f;
  --orange-2: #ffca62;
  --teal: #15586d;
  --mint: #67dcc2;
  --danger: #ff6f79;
  --warning: #ffc14f;
  --shadow: 0 30px 80px rgba(0,0,0,.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(circle at 50% -10%, #142436 0, var(--bg) 42%); overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(255,173,31,.45); outline-offset: 2px; }
.ambient { position: fixed; width: 34rem; height: 34rem; border-radius: 50%; filter: blur(110px); opacity: .11; pointer-events: none; z-index: 0; }
.ambient-one { background: var(--orange); top: -18rem; right: -12rem; }
.ambient-two { background: #2eb6d7; bottom: -20rem; left: -15rem; }
.topbar { position: relative; z-index: 5; min-height: 78px; display: flex; align-items: center; justify-content: space-between; max-width: 1480px; margin: auto; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; background: none; border: 0; cursor: pointer; padding: 0; }
.brand img { width: 180px; max-height: 52px; object-fit: contain; object-position: left center; }
.brand-live { align-self: flex-end; margin-bottom: 7px; padding: 3px 7px; border: 1px solid rgba(255,173,31,.4); color: var(--orange); font-size: .58rem; font-weight: 900; letter-spacing: .2em; border-radius: 999px; }
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); cursor: pointer; }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.app-shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 54px 0 80px; }
.wide-shell { width: min(1480px, calc(100% - 36px)); }
.card, .hero-card { background: linear-gradient(145deg, rgba(18,28,41,.97), rgba(9,14,22,.97)); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 26px; }
.hero-card { width: min(720px, 100%); margin: 4vh auto 0; padding: clamp(30px, 6vw, 68px); text-align: center; }
.logo-stage { width: min(440px, 90%); margin: 0 auto 32px; padding: 20px 24px; border-radius: 20px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.logo-stage img, .login-logo { width: 100%; height: auto; display: block; }
.login-logo { max-width: 390px; margin: 0 auto 28px; }
.eyebrow { margin: 0 0 12px; color: var(--orange); font-weight: 850; font-size: .73rem; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 4.8rem); line-height: .99; letter-spacing: -.055em; }
h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.25rem); letter-spacing: -.035em; }
h3 { margin: 7px 0; }
.lede { max-width: 58ch; margin: 22px auto 30px; color: var(--muted); font-size: 1.07rem; line-height: 1.7; }
.join-form { display: grid; gap: 12px; width: min(460px, 100%); margin: 0 auto; text-align: left; }
label, .field-label { display: grid; gap: 8px; color: #d8e0e9; font-size: .83rem; font-weight: 750; letter-spacing: .02em; }
input, textarea, select { width: 100%; color: var(--text); background: #090f17; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
input:hover, textarea:hover, select:hover { border-color: rgba(255,255,255,.25); }
textarea { resize: vertical; line-height: 1.55; }
.code-input { text-transform: uppercase; text-align: center; letter-spacing: .22em; font-weight: 900; font-size: 1.55rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 820; cursor: pointer; transition: transform .15s, opacity .15s, background .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-primary { color: #171008; background: linear-gradient(135deg, var(--orange), var(--orange-2)); box-shadow: 0 13px 32px rgba(255,173,31,.16); }
.button-secondary { background: rgba(103,220,194,.1); border-color: rgba(103,220,194,.3); color: var(--mint); }
.button-ghost { background: rgba(255,255,255,.035); border-color: var(--line); }
.button-warning { background: var(--warning); color: #241a08; }
.button-large { min-height: 54px; padding: 14px 24px; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; color: var(--muted); font-size: .83rem; }
.privacy-note > span:first-child { color: var(--mint); }
.identity-pill { display: inline-flex; align-items: center; gap: 11px; padding: 8px 13px 8px 9px; background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 999px; text-align: left; }
.identity-pill .avatar { display: grid; place-items: center; width: 40px; height: 40px; background: rgba(255,173,31,.12); border-radius: 50%; font-size: 1.4rem; }
.identity-pill small, .identity-pill strong { display: block; }
.identity-pill small { color: var(--muted); font-size: .56rem; letter-spacing: .16em; }
.identity-pill strong { margin-top: 2px; font-size: .86rem; }
.waiting-card .identity-pill, .result-card .identity-pill { margin-bottom: 42px; }
.pulse-orbit { display: grid; place-items: center; width: 112px; height: 112px; margin: 0 auto 30px; border: 1px solid rgba(255,173,31,.35); border-radius: 50%; box-shadow: 0 0 0 14px rgba(255,173,31,.045), 0 0 0 28px rgba(255,173,31,.018); animation: breathe 2.4s ease-in-out infinite; }
.pulse-orbit span { font-size: 3rem; }
@keyframes breathe { 50% { transform: scale(1.04); box-shadow: 0 0 0 18px rgba(255,173,31,.055), 0 0 0 38px rgba(255,173,31,.018); } }
.status-chip { display: inline-flex; width: fit-content; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.status-chip.open { color: var(--mint); background: rgba(103,220,194,.11); }
.status-chip.locked { color: var(--warning); background: rgba(255,193,79,.1); }
.status-chip.revealed { color: #9ebdff; background: rgba(100,140,230,.12); }
.question-layout { max-width: 980px; margin: auto; }
.question-main { padding: clamp(24px, 5vw, 52px); }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 44px; }
.question-meta > div:last-child { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.scenario { margin: 16px 0 23px; padding: 20px 22px; color: #dce4ed; background: rgba(255,255,255,.035); border-left: 3px solid var(--orange); border-radius: 5px 14px 14px 5px; line-height: 1.65; }
.question-title { margin: 0 0 30px; font-size: clamp(1.8rem, 4.5vw, 3.45rem); line-height: 1.08; }
.answer-label { display: block; margin-bottom: 9px; color: var(--muted); font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.answer-box { min-height: 170px; font-size: 1rem; }
.confidence-panel { margin: 24px 0; padding: 18px; background: rgba(255,255,255,.028); border: 1px solid var(--line); border-radius: 15px; }
.confidence-panel > div { display: flex; justify-content: space-between; margin-bottom: 12px; }
.confidence-panel span { color: var(--muted); }
.confidence-panel strong { color: var(--orange); }
.confidence-panel input { padding: 0; accent-color: var(--orange); }
.submit-answer { width: 100%; }
.order-list { display: grid; gap: 9px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: item; }
.order-list li { display: grid; grid-template-columns: 28px 32px 1fr auto; align-items: center; gap: 9px; min-height: 58px; padding: 9px 11px; background: #0a111b; border: 1px solid var(--line); border-radius: 13px; }
.order-list li[draggable="true"] { cursor: grab; }
.drag-handle { color: #536477; font-size: 1.3rem; }
.order-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,173,31,.12); color: var(--orange); font-size: .76rem; font-weight: 900; }
.order-buttons { display: flex; gap: 5px; }
.order-buttons button { width: 32px; height: 32px; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 8px; cursor: pointer; }
.submitted-panel { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 18px; background: rgba(103,220,194,.07); border: 1px solid rgba(103,220,194,.24); border-radius: 15px; text-align: left; }
.submitted-panel p { margin: 3px 0 0; color: var(--muted); }
.checkmark { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--mint); color: #07130f; font-weight: 900; }
.reveal-panel { display: grid; grid-template-columns: 170px 1fr; gap: 30px; margin-top: 28px; padding: 24px; border: 1px solid rgba(255,173,31,.25); background: rgba(255,173,31,.055); border-radius: 18px; text-align: left; }
.score-ring { display: grid; place-items: center; align-content: center; aspect-ratio: 1; border: 8px solid rgba(255,173,31,.22); border-top-color: var(--orange); border-radius: 50%; text-align: center; }
.score-ring strong { font-size: 1.2rem; }
.score-ring span { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.feedback { color: var(--muted); line-height: 1.6; }
.facilitator-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 30px; }
.facilitator-head h1 { font-size: clamp(2.2rem, 5vw, 4.3rem); }
.facilitator-head p:last-child { color: var(--muted); }
.head-actions { display: flex; gap: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(330px, .75fr) minmax(460px, 1.25fr); gap: 22px; align-items: start; }
.session-builder, .library-panel, .live-question, .join-panel, .response-panel { padding: 28px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.step-number { color: rgba(255,255,255,.1); font-size: 3rem; font-weight: 900; line-height: 1; }
.activity-checklist { display: grid; gap: 9px; margin: 10px 0 20px; max-height: 460px; overflow: auto; }
.check-card { display: flex; grid-template-columns: auto 1fr; flex-direction: row; align-items: center; gap: 11px; padding: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.check-card input { width: 18px; accent-color: var(--orange); }
.check-card span { display: grid; gap: 3px; }
.check-card small { color: var(--muted); font-weight: 500; }
.session-builder > label { margin-bottom: 20px; }
.session-builder > .button { width: 100%; }
.resume-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.activity-list { display: grid; gap: 10px; max-height: 720px; overflow: auto; padding-right: 4px; }
.activity-row { display: flex; justify-content: space-between; gap: 20px; padding: 18px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 14px; }
.activity-row p { margin: 7px 0 0; color: var(--muted); line-height: 1.45; }
.type-badge { color: var(--mint); font-size: .6rem; font-weight: 900; letter-spacing: .12em; }
.row-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.icon-text { border: 0; background: none; color: var(--orange); cursor: pointer; font-weight: 750; }
.icon-text.danger { color: var(--danger); }
.live-grid { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: stretch; }
.live-question h2 { margin: 24px 0; font-size: clamp(1.7rem, 3.4vw, 3rem); }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 28px 0; }
.metric-row > div { display: grid; padding: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; }
.metric-row strong { color: var(--orange); font-size: 2rem; }
.metric-row span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.control-row { display: flex; gap: 10px; }
.join-panel { text-align: center; }
.qr-frame { background: white; border-radius: 17px; padding: 12px; margin: 12px auto 18px; width: min(100%, 280px); }
.qr-frame img { width: 100%; display: block; }
.big-code { display: block; color: var(--orange); font-size: 2.5rem; letter-spacing: .14em; }
.join-panel > p:last-child { color: var(--muted); font-size: .72rem; }
.response-panel { margin-top: 22px; }
.response-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.response-card { display: grid; gap: 14px; padding: 17px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 14px; }
.response-card > p, .response-card > ol { margin: 0; color: #d7dfe8; line-height: 1.5; }
.response-person { display: flex; align-items: center; gap: 8px; }
.response-person > span { font-size: 1.4rem; }
.response-person small { margin-left: auto; color: var(--muted); }
.response-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .75rem; }
.score-pill { padding: 5px 8px; border-radius: 999px; background: rgba(255,173,31,.12); color: var(--orange); font-weight: 850; }
.empty-state { padding: 45px 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
.dialog { width: min(760px, calc(100% - 26px)); max-height: 90vh; padding: 0; color: var(--text); background: #0e1722; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(3,6,10,.78); backdrop-filter: blur(8px); }
.dialog form { display: grid; gap: 17px; padding: 28px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; }
.dialog-head .icon-button { font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: end; }
.checkbox-line { display: flex; flex-direction: row; align-items: center; min-height: 48px; }
.checkbox-line input { width: 20px; accent-color: var(--orange); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 17px; color: #161008; background: var(--orange-2); border-radius: 12px; box-shadow: var(--shadow); font-weight: 800; transition: .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 980px) {
  .dashboard-grid, .live-grid { grid-template-columns: 1fr; }
  .join-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .join-panel .eyebrow, .join-panel .big-code, .join-panel > p:last-child { grid-column: 1; }
  .join-panel .qr-frame { grid-column: 2; grid-row: 1 / 4; }
  .response-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .topbar { padding: 12px 16px; }
  .brand img { width: 142px; }
  .app-shell, .wide-shell { width: min(100% - 22px, 1480px); padding-top: 28px; }
  .hero-card, .question-main, .session-builder, .library-panel, .live-question, .join-panel, .response-panel { border-radius: 19px; padding: 22px; }
  .facilitator-head, .question-meta { align-items: flex-start; flex-direction: column; }
  .question-meta > div:last-child { align-items: flex-start; }
  .head-actions, .control-row { width: 100%; flex-direction: column; }
  .head-actions .button, .control-row .button { width: 100%; }
  .form-grid, .response-grid { grid-template-columns: 1fr; }
  .activity-row { flex-direction: column; }
  .row-actions { flex-direction: row; align-items: center; }
  .join-panel { display: block; }
  .metric-row { grid-template-columns: repeat(3, 1fr); }
  .metric-row > div { padding: 12px; }
  .metric-row strong { font-size: 1.5rem; }
  .reveal-panel { grid-template-columns: 1fr; }
  .score-ring { width: 150px; margin: auto; }
  .order-list li { grid-template-columns: 20px 28px 1fr; }
  .order-buttons { grid-column: 3; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; } }
