:root{--ink:#172033;--muted:#667085;--line:#e4e7ec;--panel:#fff;--soft:#f4f7fb;--accent:#3559e0;--accent-strong:#2442b8;--accent-soft:#eaf0ff;--good:#157a52;--shadow:0 18px 55px #20304e1f}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{color:var(--ink);background:var(--soft);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input{font:inherit}a{color:inherit}.landing,.teacher-home,.join-shell,.center-message{place-items:center;min-height:100vh;padding:28px;display:grid}.hero-card,.teacher-card,.join-card{background:var(--panel);border:1px solid var(--line);width:min(760px,100%);box-shadow:var(--shadow);border-radius:28px;padding:clamp(28px,6vw,64px)}.brand-mark{background:var(--ink);color:#fff;border-radius:16px;place-items:center;width:54px;height:54px;margin-bottom:32px;font-weight:800;display:grid}.eyebrow{color:var(--accent);letter-spacing:.08em;text-transform:uppercase;margin:0 0 10px;font-size:13px;font-weight:800}.hero-card h1,.teacher-card h1,.join-card h1{letter-spacing:-.04em;margin:0;font-size:clamp(36px,6vw,64px);line-height:1.02}.teacher-card h1,.join-card h1{font-size:clamp(32px,5vw,48px)}.lead{color:var(--muted);max-width:640px;font-size:20px;line-height:1.55}.muted{color:var(--muted);line-height:1.55}.hero-actions{margin-top:32px}.button{cursor:pointer;border:0;border-radius:14px;justify-content:center;align-items:center;padding:12px 18px;font-weight:800;text-decoration:none;display:inline-flex}.button--primary{background:var(--accent);color:#fff}.button--primary:hover{background:var(--accent-strong)}.button--large{min-height:52px;padding-inline:24px}.button:disabled{opacity:.55;cursor:wait}.error-text{color:#b42318}.join-card{max-width:520px}.join-card label{margin:28px 0 8px;font-weight:800;display:block}.join-card input{border:1px solid #cbd1dc;border-radius:14px;outline:none;width:100%;min-height:54px;margin-bottom:14px;padding:0 16px;font-size:18px}.join-card input:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}.join-card .button{width:100%}.small-code{text-align:center;color:var(--muted);margin-top:20px;font-size:13px}.dashboard-shell{min-height:100vh;padding:22px}.dashboard-topbar{border:1px solid var(--line);background:#fff;border-radius:20px;justify-content:space-between;align-items:center;gap:24px;max-width:1440px;margin:0 auto 18px;padding:18px 22px;display:flex}.dashboard-topbar h1{margin:0;font-size:22px}.dashboard-meta{color:var(--muted);align-items:center;gap:10px;font-size:14px;display:flex}.code-pill,.name-pill{background:var(--accent-soft);color:var(--accent-strong);border-radius:999px;padding:8px 11px;font-weight:800}.dashboard-grid{grid-template-columns:minmax(0,1fr) 290px;gap:18px;max-width:1440px;margin:0 auto;display:grid}.dashboard-main,.join-panel{border:1px solid var(--line);background:#fff;border-radius:22px;box-shadow:0 8px 25px #20304e0f}.dashboard-main{padding:22px}.join-panel{text-align:center;align-self:start;padding:22px}.phase-label{color:var(--muted);margin-bottom:12px;font-size:13px;font-weight:700}.qr-frame{border:1px solid var(--line);background:#fff;border-radius:18px;place-items:center;padding:14px;display:inline-grid}.join-panel h2{margin-bottom:6px}.join-panel p{color:var(--muted);margin-top:0}.join-code{letter-spacing:.18em;margin:18px 0;font-size:35px;font-weight:900}.text-link{color:var(--accent);margin-top:10px;font-weight:750;text-decoration:none;display:block}.screen-view{border:1px solid var(--line);background:linear-gradient(160deg,#fff 65%,#f6f8ff 100%);border-radius:22px;flex-direction:column;justify-content:center;min-height:430px;padding:clamp(28px,5vw,64px);display:flex}.screen-kicker{color:var(--accent);text-transform:uppercase;letter-spacing:.12em;margin-bottom:16px;font-size:12px;font-weight:900}.screen-view h1{letter-spacing:-.04em;max-width:960px;margin:0;font-size:clamp(40px,6vw,78px);line-height:1.04}.screen-view--teacher h1{font-size:clamp(34px,4vw,58px)}.screen-body{color:#384152;white-space:pre-line;max-width:980px;font-size:clamp(20px,2.5vw,32px);line-height:1.45}.screen-view--teacher .screen-body{font-size:clamp(18px,2vw,26px)}.poll-options{gap:12px;max-width:740px;margin-top:26px;display:grid}.poll-option{background:#fff;border:1px solid #d8deed;border-radius:14px;padding:15px 18px;font-size:19px;font-weight:700}.coming-soon{background:var(--accent-soft);color:var(--accent-strong);border:1px dashed #b9c5e8;border-radius:12px;width:fit-content;margin-top:28px;padding:14px}.lesson-controls{grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-top:18px;display:grid}.control-button{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:15px;min-height:58px;font-size:17px;font-weight:850}.control-button--next{background:var(--accent);color:#fff;border-color:var(--accent)}.control-button:disabled{opacity:.38;cursor:not-allowed}.current-phase{color:var(--muted);padding:0 18px;font-weight:800}.quick-actions{grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px;display:grid}.quick-actions button,.quick-actions a{border:1px solid var(--line);background:#f9fafb;border-radius:13px;justify-content:center;align-items:center;gap:7px;min-height:48px;font-weight:800;text-decoration:none;display:flex}.quick-actions button span{color:var(--muted);text-transform:uppercase;font-size:10px}.live-shell{background:#fff;grid-template-rows:auto 1fr auto;min-height:100vh;display:grid}.live-topbar,.live-footer{justify-content:space-between;align-items:center;gap:16px;padding:18px 24px;display:flex}.live-topbar{border-bottom:1px solid var(--line)}.live-topbar>div:first-child{flex-direction:column;gap:3px;display:flex}.live-topbar span,.live-footer{color:var(--muted);font-size:13px}.status-cluster{align-items:center;gap:8px;display:flex}.connection{background:#f2f4f7;border-radius:999px;padding:7px 10px}.connection.is-online{color:var(--good);background:#e9f8f1;font-weight:800}.live-stage{place-items:stretch stretch;padding:22px;display:grid}.live-stage .screen-view{min-height:calc(100vh - 155px)}.live-footer{border-top:1px solid var(--line)}.live-shell--projector .live-topbar{padding:14px 24px}.live-shell--projector .status-cluster{display:none}.live-shell--projector .screen-view{background:#fff;border:0;border-radius:0}.live-shell--projector .screen-kicker{display:none}.live-shell--projector .live-footer{opacity:.65}@media (max-width:860px){.dashboard-grid{grid-template-columns:1fr}.join-panel{order:-1}.dashboard-topbar{flex-direction:column;align-items:flex-start}.dashboard-meta{flex-wrap:wrap}.quick-actions{grid-template-columns:1fr}.screen-view{min-height:360px}.lesson-controls{grid-template-columns:1fr 1fr}.current-phase{text-align:center;grid-area:1/1/auto/-1}}.response-composer{border:1px solid var(--line);background:#fff;border-radius:20px;width:min(900px,100%);margin:18px auto 0;padding:18px;box-shadow:0 10px 28px #20304e12}.response-composer__head,.response-composer__actions,.responses-panel__head,.teacher-response__meta{justify-content:space-between;align-items:center;gap:12px;display:flex}.response-composer__head{margin-bottom:10px}.response-composer__head span{color:var(--muted);font-size:12px;font-weight:700}.response-input{resize:vertical;width:100%;min-height:54px;font:inherit;border:1px solid #cbd1dc;border-radius:14px;outline:none;padding:14px 16px;font-size:17px;line-height:1.5}.response-input:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}.response-input--long{min-height:180px}.response-composer__actions{justify-content:flex-start;margin-top:12px}.sent-state{color:var(--good);font-size:14px;font-weight:800}.response-error{margin-bottom:0}.response-options{gap:10px;display:grid}.response-option{cursor:pointer;background:#fff;border:1px solid #d8deed;border-radius:14px;align-items:center;gap:12px;padding:14px 16px;font-weight:750;display:flex}.response-option.is-selected{border-color:var(--accent);background:var(--accent-soft)}.response-option input{width:18px;height:18px;accent-color:var(--accent)}.quick-actions button{cursor:pointer}.quick-actions button:disabled{cursor:not-allowed;opacity:.55}.quick-actions button.is-active{background:var(--accent-soft);color:var(--accent-strong);border-color:#b9c5e8}.quick-actions button.is-active span{color:var(--accent-strong)}.responses-panel{border:1px solid var(--line);background:#fbfcfe;border-radius:18px;margin-top:18px;padding:18px}.responses-panel__head h2{margin:0;font-size:22px}.responses-panel__head .eyebrow{margin-bottom:4px}.response-count{background:var(--accent-soft);min-width:40px;height:40px;color:var(--accent-strong);border-radius:999px;place-items:center;font-weight:900;display:grid}.responses-empty{color:var(--muted);padding:22px 4px 8px}.responses-list{gap:10px;margin-top:14px;display:grid}.teacher-response{border:1px solid var(--line);background:#fff;border-radius:14px;padding:14px 16px}.teacher-response__meta strong{font-size:14px}.teacher-response p{white-space:pre-wrap;margin:10px 0 0;font-size:17px;line-height:1.45}.status-badge{text-transform:uppercase;letter-spacing:.05em;color:#9a4d00;background:#fff4e5;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:900}.status-badge--approved{color:var(--good);background:#e9f8f1}.status-badge--hidden{color:var(--muted);background:#f2f4f7}.live-shell--student .live-stage{padding:18px;display:block;overflow:auto}.live-shell--student .live-stage .screen-view{min-height:min(54vh,560px)}.live-shell--student .screen-view h1{font-size:clamp(34px,7vw,64px)}@media (max-width:620px){.response-composer{border-radius:16px;padding:14px}.response-composer__actions{flex-direction:column;align-items:flex-start}.response-composer__actions .button{width:100%}.live-shell--student .live-stage{padding:12px}.live-shell--student .screen-view{min-height:42vh;padding:26px 20px}}
