@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #13213c;
  --muted: #738098;
  --blue: #315bff;
  --blue-dark: #2447d9;
  --blue-soft: #edf1ff;
  --cyan: #67e8f9;
  --navy: #101c38;
  --bg: #f5f7fb;
  --line: #e6ebf3;
  --green: #137856;
  --green-soft: #e8f7ef;
  --red: #bc3b4d;
  --radius: 20px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(1.9rem, 3vw, 2.65rem); letter-spacing: -.055em; line-height: 1.15; font-weight: 750; }
h2 { font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.3; }
h3 { font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.4; }
p { margin-bottom: 1rem; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 3px solid #91a8ff; outline-offset: 4px; }
input, textarea, select { display: block; width: 100%; border: 1px solid #dce3ef; border-radius: 10px; padding: 12px 14px; background: white; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: #91a8ff; box-shadow: 0 0 0 3px var(--blue-soft); outline: none; }
input::placeholder, textarea::placeholder { color: #97a1b3; }
textarea { resize: vertical; min-height: 112px; }
input[type="radio"], input[type="checkbox"] { display: inline-block; width: 18px; min-height: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--blue); }
input[type="number"] { max-width: 200px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.muted { color: var(--muted); }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 750; font-size: 1.35rem; letter-spacing: -.05em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { position: relative; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--blue); color: white; font-weight: 850; font-size: 25px; line-height: 1; letter-spacing: -.09em; padding-right: 2px; }
.brand-mark::after { content: ""; position: absolute; height: 7px; width: 7px; background: var(--cyan); border-radius: 50%; bottom: 5px; right: 5px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 43px; border: 1px solid transparent; border-radius: 10px; padding: 10px 17px; font-weight: 650; font-size: .88rem; line-height: 1.35; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: white; box-shadow: 0 3px 8px #315bff18; }
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); box-shadow: 0 5px 12px #315bff22; }
.btn-secondary { border-color: #dce3ef; background: white; color: var(--ink); }
.btn-secondary:hover:not(:disabled) { background: #f7f9fd; border-color: #c4d0e7; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: #edf1f8; color: var(--ink); }
.btn-danger-text { color: var(--red); }
.btn-danger-text:hover:not(:disabled) { background: #fff0f2; color: var(--red); }
.btn-block { display: flex; width: 100%; }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 16px #17234303; }
.field { display: block; margin-bottom: 19px; }
.field-label { display: block; font-size: .79rem; font-weight: 650; letter-spacing: .01em; margin-bottom: 7px; }
.field-help { color: var(--muted); font-size: .78rem; line-height: 1.5; margin: 8px 0 0; }
.field-row { display: flex; gap: 20px; align-items: start; }
.field-row > * { flex: 1; min-width: 0; }
.field-row .field:last-child { margin-bottom: 19px; }
.badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; padding: 4px 8px; font-weight: 700; font-size: .75rem; line-height: 1.4; letter-spacing: .055em; white-space: nowrap; }
.badge-blue { background: var(--blue-soft); color: #3155d3; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-neutral { background: #eef1f6; color: #637089; }
.badge-orange { background: #fff3e2; color: #ac6b11; }
.notice { background: #ecf1ff; border: 1px solid #d4dfff; color: #3054b5; padding: 12px 15px; border-radius: 10px; font-size: .86rem; margin-bottom: 20px; overflow-wrap: anywhere; }
.notice-error { background: #fff0f2; color: #9f293e; border-color: #f4d4da; }
.notice-success { background: var(--green-soft); color: var(--green); border-color: #cbeadb; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-eyebrow { margin: 0 0 10px; color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .13em; line-height: 1.5; }
.empty-state { text-align: center; padding: 60px 25px; color: var(--muted); }
.empty-state h1, .empty-state h2, .empty-state h3 { color: var(--ink); }
.empty-state > .icon { width: 45px; height: 45px; margin: 0 0 15px; color: var(--blue); }
.loading-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 25px; }
.loading-spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #dbe3ff; border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Owner dashboard */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex-shrink: 0; min-height: 100vh; position: fixed; inset: 0 auto 0 0; z-index: 10; background: var(--navy); color: #a4b0cb; padding: 30px 21px 22px; display: flex; flex-direction: column; }
.sidebar .brand { color: white; padding: 0 8px; font-size: 1.3rem; }
.sidebar .brand-mark { width: 33px; height: 33px; font-size: 23px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 5px; margin-top: 49px; }
.nav-link { border: 0; background: transparent; display: flex; width: 100%; align-items: center; gap: 11px; color: #a4b0cb; text-align: left; border-radius: 10px; padding: 12px 14px; font-size: .86rem; font-weight: 550; cursor: pointer; }
.nav-link:hover { background: #ffffff08; color: white; text-decoration: none; }
.nav-link.active, .nav-link[aria-current="page"] { background: #243763; color: white; box-shadow: inset 3px 0 0 var(--cyan); }
.sidebar-footer { margin-top: auto; padding-top: 30px; }
.sidebar-footer .btn { color: #b4c0d9; justify-content: start; padding-left: 13px; width: 100%; }
.sidebar-footer .btn:hover { background: #ffffff0c; color: white; }
.sidebar-footer > p, .sidebar-footer > small { display: block; font-size: .75rem; color: #8191b1; padding: 0 13px; }
.main-content { flex: 1; min-width: 0; margin-left: 236px; padding: 38px 44px 55px; max-width: 1800px; }
.page-header { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 29px; }
.page-header h1 { margin-bottom: 9px; font-size: 2.25rem; }
.page-header p { margin-bottom: 0; font-size: .88rem; }
.page-header .page-eyebrow { margin-bottom: 8px; }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card { border: 1px solid var(--line); background: white; padding: 21px 24px; border-radius: 15px; }
.stat-card > strong { font-size: 1.9rem; font-weight: 750; letter-spacing: -.04em; display: block; }
.stat-card > span, .stat-card > p, .stat-card > small { color: var(--muted); font-size: .78rem; }
.stat-card p { margin-bottom: 0; }
.presentation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.presentation-card { display: flex; flex-direction: column; padding: 25px; min-width: 0; min-height: 253px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.presentation-card:hover { border-color: #c9d5f5; box-shadow: 0 9px 24px #25397908; transform: translateY(-2px); }
.presentation-card h2, .presentation-card h3 { font-size: 1.15rem; margin-bottom: 10px; overflow-wrap: anywhere; }
.presentation-icon { display: flex; align-items: center; justify-content: center; height: 43px; width: 43px; background: var(--blue-soft); border-radius: 12px; color: var(--blue); margin-bottom: 21px; font-size: 23px; }
.deck-description { color: var(--muted); font-size: .83rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; margin-bottom: 17px; }
.deck-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .75rem; margin-bottom: 17px; }
.card-actions { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 17px; margin-top: auto; flex-wrap: wrap; }
.card-actions .btn { padding: 8px 12px; min-height: 37px; font-size: .78rem; }
.card-actions .btn-ghost { padding: 8px; }
.card-actions .btn-ghost:last-child { margin-left: auto; }
.editor-header { display: flex; justify-content: space-between; gap: 22px; align-items: center; margin-bottom: 24px; }
.editor-title { flex: 1; min-width: 0; }
.editor-title h1 { font-size: 1.9rem; margin: 10px 0; }
.editor-title input { font-size: 1.6rem; font-weight: 700; letter-spacing: -.04em; }
.editor-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.slide-list { padding: 17px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.slide-list-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 3px 13px; font-weight: 650; font-size: .8rem; }
.slide-list-header h2, .slide-list-header h3 { font-size: .85rem; margin: 0; }
.slide-list-item { display: flex; align-items: start; gap: 11px; background: #f8faff; border: 1px solid #e9edf5; width: 100%; text-align: left; padding: 13px 12px; border-radius: 10px; margin-bottom: 9px; color: var(--ink); }
.slide-list-item:hover { border-color: #a7bbff; }
.slide-list-item.active, .slide-list-item[aria-current="true"], .slide-list-item[aria-selected="true"] { background: var(--blue-soft); border-color: #91a8ff; }
.slide-list-item > span:first-child { color: var(--muted); font-size: .8rem; font-weight: 700; }
.slide-list-item strong { display: block; font-size: .82rem; font-weight: 650; overflow-wrap: anywhere; }
.slide-list-item small { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.slide-list .btn { font-size: .8rem; }
.slide-type-badge { font-size: .75rem; color: var(--blue); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.slide-editor { padding: 26px 29px; min-width: 0; }
.slide-editor h2 { margin-bottom: 24px; }
.editor-settings { padding: 24px; margin-bottom: 24px; }
.editor-settings .field:last-child { margin-bottom: 0; }
.slide-fields { margin-top: 22px; }
.option-row { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.option-row input[type="text"] { flex: 1; min-width: 0; }
.option-row label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .75rem; }
.option-row .btn { padding: 8px; min-height: 40px; }
.slide-actions { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.save-state { color: var(--muted); font-size: .76rem; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 15px; }
.session-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.session-table th { color: var(--muted); text-align: left; background: #fafbfe; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 16px 20px; white-space: nowrap; }
.session-table td { padding: 19px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
.session-table td strong { display: block; }
.session-table td small { color: var(--muted); font-size: .75rem; }
.session-table .btn { min-height: 35px; padding: 7px 10px; font-size: .75rem; }
.session-table .toolbar { flex-wrap: nowrap; }
.login-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: white; }
.login-card { align-self: center; justify-self: center; width: min(420px, 100%); padding: 38px; }
.login-card .brand, .auth-logo { margin-bottom: 55px; }
.login-card h1 { font-size: 2.3rem; margin-bottom: 13px; }
.login-card > .muted { margin-bottom: 30px; }
.login-card .btn-primary { width: 100%; margin-top: 9px; }
.login-card form > p { font-size: .77rem; }
.login-art { min-height: 100vh; overflow: hidden; background: var(--navy); color: white; position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 6vw, 90px); }
.login-art::before { position: absolute; content: ""; width: 550px; height: 550px; border-radius: 50%; background: radial-gradient(circle, #315bff36, transparent 70%); top: -80px; right: -100px; pointer-events: none; }
.login-art h2 { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.15; letter-spacing: -.055em; position: relative; }
.login-art > p { font-size: 1rem; line-height: 1.75; color: #aebbd7; max-width: 400px; position: relative; }
.login-art .page-eyebrow { color: var(--cyan); }
.login-art .brand { color: white; margin-bottom: 65px; }
.login-art h1 { font-size: clamp(2.8rem, 4.7vw, 5rem); line-height: 1.08; letter-spacing: -.06em; margin-bottom: 23px; }
.login-art > div > p { font-size: 1.02rem; color: #aebbd7; max-width: 390px; line-height: 1.85; }
.login-feature-list { display: grid; gap: 14px; margin: 30px 0 55px; font-size: .87rem; color: #d6def0; }
.login-art .login-footnote { font-size: .75rem; margin: 0; color: #8293b6; }
.login-card h2 { font-size: 2.5rem; line-height: 1.2; margin: 14px 0; letter-spacing: -.05em; }
.field > label { display: block; font-size: .79rem; font-weight: 650; margin-bottom: 7px; }
.login-card .login-footnote { font-size: .75rem; line-height: 1.6; margin-top: 25px; }
.join-link { display: inline-block; font-size: .78rem; margin-top: 12px; }
.sidebar-workspace { display: flex; align-items: center; gap: 7px; padding: 0 8px; margin-top: 22px; font-size: .75rem; color: #91a2c5; }
.workspace-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.sidebar-workspace + .sidebar-nav { margin-top: 32px; }
.sidebar-tip { margin-top: auto; padding: 21px 14px 18px; border: 1px solid #273555; border-radius: 13px; background: #172440; }
.sidebar-tip > span { display: block; color: var(--cyan); font-size: 1.2rem; margin-bottom: 7px; }
.sidebar-tip strong { display: block; font-size: .75rem; color: #dce4f5; font-weight: 600; }
.sidebar-tip p { font-size: .75rem; line-height: 1.8; color: #90a1c0; margin: 8px 0 0; }
.sidebar-tip + .sidebar-footer { margin-top: 25px; padding-top: 0; }
.account-row { display: flex; align-items: center; gap: 10px; padding: 0 10px 15px; border-bottom: 1px solid #273555; margin-bottom: 9px; }
.account-avatar { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: #c3d1f2; background: #263c65; border-radius: 50%; font-size: .75rem; font-weight: 650; }
.account-row strong { display: block; color: #dde6f7; font-weight: 600; font-size: .78rem; }
.account-row > div > span { display: block; color: #8193b6; font-size: .75rem; }
.stat-card { display: flex; align-items: center; gap: 17px; }
.stat-icon { background: var(--blue-soft); color: var(--blue); width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 23px; flex-shrink: 0; }
.stat-card:nth-child(2) .stat-icon { color: #2c9879; background: #e9f8f2; }
.stat-card:nth-child(3) .stat-icon { color: #9472d1; background: #f3eefa; }
.stat-card > div > strong { display: block; font-size: 1.85rem; font-weight: 750; letter-spacing: -.045em; line-height: 1.3; }
.stat-card > div > span { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.section-heading h2 { font-size: 1rem; margin: 0; font-weight: 650; letter-spacing: -.015em; }
.section-heading h2 > span { font-size: .76rem; font-weight: 500; margin-left: 8px; }
.presentation-card { padding: 0; overflow: hidden; }
.presentation-cover { display: flex; flex-direction: column; align-items: stretch; min-height: 167px; border: 0; border-bottom: 1px solid #dde7fb; text-align: left; padding: 20px 23px; color: white; background: #3355bf; }
.presentation-cover:hover { filter: brightness(1.04); }
.cover-blue { background: linear-gradient(125deg, #315bea, #23377b); }
.cover-cyan { background: linear-gradient(125deg, #318b9e, #1f4a69); }
.cover-violet { background: linear-gradient(125deg, #7e5eca, #49316e); }
.cover-topline, .cover-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cover-topline { color: #ffffffa1; font-size: .75rem; font-weight: 700; }
.cover-topline > span:last-child { font-size: .95rem; }
.cover-title { font-size: 1.35rem; line-height: 1.18; font-weight: 650; letter-spacing: -.035em; margin: 21px 0; flex: 1; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cover-bottomline { font-size: .75rem; color: #ffffffb0; }
.cover-bars { font-size: 1.35rem; letter-spacing: -3px; color: #ffffff8c; line-height: .9; }
.presentation-card-body { padding: 21px; display: flex; flex-direction: column; flex: 1; }
.presentation-card-body .deck-meta { justify-content: space-between; align-items: center; gap: 7px; font-size: .75rem; margin-bottom: 13px; }
.presentation-card-body .deck-meta .badge { padding: 3px 6px; background: #f0f3f9; color: #64789c; font-size: .75rem; letter-spacing: .02em; }
.presentation-card-body h2 { margin-bottom: 9px; }
.presentation-card-body .deck-description { font-size: .78rem; min-height: 40px; }
.presentation-card-body .card-actions { gap: 6px; }
.presentation-card-body .card-actions .btn { font-size: .75rem; padding: 7px 11px; }
.presentation-card-body .card-actions .icon-btn { padding: 7px; font-size: 1rem; width: 32px; min-width: 32px; }
.presentation-card-body .card-actions .icon-btn:first-of-type { margin-left: auto; }
.presentation-card-body .card-actions .icon-btn:last-child { margin-left: 0; }
.btn-small { min-height: 35px; font-size: .77rem; padding: 7px 11px; }
.icon-btn { width: 35px; padding: 7px; }
.danger-text { color: var(--red); }
.workspace-note { display: flex; gap: 16px; align-items: center; background: #ecf1fd; border: 1px solid #dde6fb; border-radius: 15px; padding: 21px 23px; margin-top: 28px; }
.workspace-note > span { font-size: 1.5rem; color: var(--blue); }
.workspace-note > div { flex: 1; }
.workspace-note strong { font-size: .8rem; font-weight: 650; }
.workspace-note p { font-size: .75rem; color: #7283a5; margin: 4px 0 0; line-height: 1.65; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--blue); background: var(--blue-soft); height: 68px; width: 68px; border-radius: 19px; margin-bottom: 20px; }
.table-actions { display: flex; gap: 8px; align-items: center; justify-content: end; }
.session-code { display: block; font-size: .75rem; margin-top: 4px; }
.badge-live { background: var(--green-soft); color: var(--green); }
.badge-slide { background: #edf1ff; color: #4e6cd5; }
.badge-poll { background: #e8f8f4; color: #2c9079; }
.badge-quiz { background: #f4eefa; color: #9472c7; }
button.back-link { border: 0; background: transparent; padding: 0; }
.editor-settings input.editor-title { font-size: 1.17rem; font-weight: 600; letter-spacing: -.02em; }
.slide-list-item.selected { background: var(--blue-soft); border-color: #91a8ff; }
.slide-list-content { flex: 1; min-width: 0; }
.slide-list-content .slide-type-badge { display: block; color: #8594b0; font-size: .75rem; margin-bottom: 6px; }
.slide-list-item.selected .slide-type-badge { color: #6a83cf; }
.slide-number { display: inline-flex; align-items: center; justify-content: center; height: 24px; width: 22px; background: white; border: 1px solid var(--line); border-radius: 4px; font-size: .75rem !important; flex-shrink: 0; }
.slide-list-item > span:last-child { color: #a0aec7; font-size: .9rem; }
.slide-list-header > span { font-size: .75rem; }
.add-slide-controls { display: grid; gap: 8px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.add-slide-controls .field-label { color: var(--muted); font-size: .75rem; margin-bottom: 3px; }
.add-slide-controls .btn { justify-content: space-between; min-height: 35px; font-size: .75rem; padding: 7px 10px; }
.slide-editor-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
.slide-editor-heading h2 { margin-bottom: 0; font-size: 1.3rem; }
.slide-editor-heading .page-eyebrow { font-size: .75rem; }
.options-fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.options-fieldset legend { font-size: .79rem; font-weight: 650; margin-bottom: 12px; }
.options-fieldset legend > span { font-size: .75rem; font-weight: 400; margin-left: 7px; }
.options-fieldset .option-letter { margin: 0; width: 31px; display: inline-flex; justify-content: center; font-size: .75rem; color: #6b7993; }
.options-fieldset .option-row > input { flex: 1; min-width: 0; }
.slide-actions > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slide-actions > div:last-child { margin-left: auto; }
.editor-footnote { font-size: .75rem; text-align: center; margin: 23px 0 0; }
.save-state.is-dirty { color: #a27631; }

/* QR joining and participant phone */
.join-shell { min-height: 100svh; display: flex; flex-direction: column; align-items: center; padding: 42px 22px 25px; background: radial-gradient(ellipse at 15% 0, #e9eeff 0, transparent 45%), radial-gradient(ellipse at 90% 100%, #e9fafb 0, transparent 40%), #f7f9fc; }
.join-shell > .brand { margin-bottom: 40px; }
.join-card { width: min(100%, 448px); padding: 38px; box-shadow: 0 20px 65px #22377709; }
.join-card h1 { margin-top: 12px; margin-bottom: 17px; font-size: 2.6rem; }
.join-card > .muted { font-size: .94rem; }
.join-illustration { display: flex; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 20px; background: var(--blue-soft); color: var(--blue); margin-bottom: 26px; transform: rotate(-6deg); }
.join-illustration > .icon { width: 33px; height: 33px; transform: rotate(6deg); }
.join-form { margin-top: 28px; }
.join-form .field-label { font-size: .85rem; }
.join-form input { padding: 14px; font-size: 1rem; }
.join-form .btn { min-height: 49px; font-size: .95rem; margin-top: 18px; }
.join-form .btn .icon { margin-left: auto; }
.join-form .btn { justify-content: start; padding-left: 18px; }
.join-code-input { text-transform: uppercase; letter-spacing: .07em; }
.join-code-input::placeholder { text-transform: none; letter-spacing: 0; }
.join-session-title { color: var(--muted); font-size: 1.05rem; margin-bottom: 25px; }
.form-error { color: var(--red); font-size: .82rem; margin-top: 10px; margin-bottom: 0; }
.form-error:empty { display: none; }
.join-footnote { font-size: .75rem; color: var(--muted); text-align: center; margin: 24px 0 0; }
.participant-shell { max-width: 760px; min-height: 100svh; margin: 0 auto; display: flex; flex-direction: column; }
.participant-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: white; border-bottom: 1px solid var(--line); padding: 19px 24px 15px; }
.participant-header .brand { font-size: 1.15rem; }
.participant-header .brand-mark { height: 31px; width: 31px; border-radius: 9px; font-size: 22px; }
.participant-identity { flex-basis: 100%; display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 13px; border-top: 1px solid var(--line); }
.avatar { display: inline-flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); font-weight: 750; border-radius: 50%; }
.avatar-small { height: 28px; width: 28px; font-size: .75rem; flex-shrink: 0; }
.participant-name { font-size: .84rem; font-weight: 600; overflow-wrap: anywhere; }
.score-pill { margin-left: auto; border-radius: 6px; padding: 4px 9px; background: var(--blue-soft); color: var(--blue); font-size: .76rem; font-weight: 750; white-space: nowrap; }
.participant-main { flex: 1; padding: 22px; }
.participant-wait { padding: 42px 30px 28px; text-align: center; }
.participant-wait h1 { font-size: 2rem; overflow-wrap: anywhere; margin-top: 15px; margin-bottom: 18px; }
.participant-wait > .muted { max-width: 330px; margin: 0 auto 30px; line-height: 1.7; }
.waiting-orbit { height: 88px; width: 88px; display: flex; align-items: center; justify-content: center; margin: 0 auto 26px; background: #eaf8f0; color: var(--green); border: 10px solid #f6fcf9; border-radius: 50%; box-shadow: 0 0 0 1px #e2f2e9; }
.waiting-orbit .icon { width: 34px; height: 34px; }
.participant-session { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.participant-session > strong { font-size: .95rem; }
.participant-session > .muted { display: inline-flex; align-items: center; gap: 8px; justify-content: center; font-size: .8rem; }
.participant-session .icon { width: 17px; height: 17px; }
.participant-question { padding: 27px; }
.participant-question h1 { font-size: 1.8rem; line-height: 1.25; letter-spacing: -.04em; margin-bottom: 19px; overflow-wrap: anywhere; }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.question-meta .page-eyebrow { margin: 0; }
.timer-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); padding: 6px 9px; font-size: .85rem; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timer-pill .icon { width: 17px; height: 17px; }
.timer-urgent { background: #fff0f2; color: var(--red); }
.slide-body { color: #66748d; font-size: 1rem; white-space: pre-wrap; line-height: 1.7; overflow-wrap: anywhere; }
.slide-image { display: block; max-height: 380px; margin: 21px auto; border-radius: 12px; object-fit: contain; }
.answer-options { display: grid; gap: 11px; margin-top: 25px; }
.answer-option { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 61px; background: white; color: var(--ink); border: 1px solid #dfe6f1; border-radius: 12px; padding: 13px 15px; text-align: left; transition: background .15s, border-color .15s; }
.answer-option:hover:not(:disabled) { border-color: #8fa7ff; background: #f7f9ff; }
.answer-option:disabled { opacity: .7; }
.answer-option.answer-selected { background: var(--blue-soft); border-color: #8da5ff; opacity: 1; }
.answer-option .option-text { flex: 1; font-size: .96rem; font-weight: 550; overflow-wrap: anywhere; }
.answer-option > .icon { color: var(--blue); }
.option-letter { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 31px; height: 31px; border-radius: 8px; background: #f0f3f9; color: #6b7993; font-size: .79rem; font-weight: 750; }
.answer-selected .option-letter { color: white; background: var(--blue); }
.answer-status { display: flex; align-items: start; justify-content: center; gap: 8px; color: var(--muted); font-size: .78rem; margin-top: 22px; line-height: 1.55; text-align: center; }
.answer-status .icon { height: 17px; width: 17px; margin-top: 2px; }
.answer-status-success { color: var(--green); }
.soft-note { display: flex; align-items: center; gap: 9px; background: #f4f7fd; color: var(--muted); font-size: .83rem; border-radius: 10px; padding: 13px; margin-top: 25px; }
.participant-footer { display: flex; justify-content: space-between; gap: 15px; color: #91a0b5; font-size: .75rem; padding: 16px 25px 22px; }
.result-feedback { display: flex; align-items: start; gap: 12px; padding: 16px; border-radius: 12px; margin: 22px 0; }
.result-feedback > .icon { margin-top: 2px; }
.result-feedback strong { display: block; font-size: .88rem; margin-bottom: 4px; }
.result-feedback p { font-size: .77rem; line-height: 1.55; margin: 0; }
.feedback-correct { background: var(--green-soft); color: var(--green); }
.feedback-neutral { background: var(--blue-soft); color: #4a64b6; }
.participant-leaderboard { border-top: 1px solid var(--line); margin-top: 27px; padding-top: 20px; }
.participant-leaderboard summary { cursor: pointer; font-size: .86rem; font-weight: 650; margin-bottom: 14px; }
.participant-end { padding: 32px 27px; text-align: center; }
.participant-end h1 { font-size: 2rem; }
.final-score { display: flex; flex-direction: column; background: var(--blue-soft); color: #6275ab; border-radius: 13px; padding: 17px; margin: 26px 0; font-size: .75rem; }
.final-score strong { color: var(--blue); font-size: 2.65rem; letter-spacing: -.05em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.participant-end .end-leaderboard { margin: 26px 0; }
.participant-end .end-leaderboard h2 { font-size: 1rem; text-align: left; }

/* Presenter and full-screen audience display */
.live-topbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: 80px; padding: 0 32px; background: white; border-bottom: 1px solid var(--line); }
.connection-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--green); background: #edf9f2; padding: 5px 9px; border-radius: 6px; font-weight: 650; font-size: .75rem; white-space: nowrap; }
.connection-dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.connection-offline, .connection-connecting { color: #a67518; background: #fff5df; }
.back-link { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.back-link:hover { color: var(--ink); text-decoration: none; }
.back-link .icon { width: 18px; height: 18px; }
.presenter-title { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 1px; }
.presenter-title strong { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.presenter-title > .muted { font-size: .75rem; }
.presenter-main { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 23px; padding: 26px; max-width: 1800px; margin: 0 auto; align-items: start; }
.presenter-stage { border: 1px solid var(--line); background: white; border-radius: 18px; overflow: hidden; }
.preview-label { display: flex; align-items: center; justify-content: space-between; min-height: 45px; padding: 0 18px; border-bottom: 1px solid var(--line); color: #8b97ad; font-size: .75rem; font-weight: 750; letter-spacing: .1em; }
.preview-label .btn { min-height: 34px; padding: 7px; }
.preview-label .icon { height: 16px; width: 16px; }
.stage-surface { min-height: 550px; display: flex; flex-direction: column; justify-content: center; }
.stage-lobby { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(200px, 1fr); gap: 34px; align-items: center; padding: 55px 44px; }
.lobby-copy { min-width: 0; }
.lobby-copy > .page-eyebrow { color: #7489c1; }
.lobby-copy h1 { font-size: clamp(2.2rem, 4.2vw, 5rem); line-height: 1.05; letter-spacing: -.065em; margin-bottom: 25px; }
.gradient-text { color: var(--blue); }
.lobby-title { font-weight: 650; font-size: 1.12rem; margin-bottom: 13px; overflow-wrap: anywhere; }
.lobby-copy > .muted { font-size: .88rem; line-height: 1.8; }
.lobby-participants { display: flex; align-items: center; gap: 12px; margin-top: 35px; font-size: .82rem; color: var(--muted); }
.lobby-participants strong { color: var(--ink); font-weight: 700; }
.avatar-stack { display: flex; padding-left: 6px; }
.avatar-stack > span { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; border: 2px solid white; border-radius: 50%; background: #dae5ff; color: #4263b6; margin-left: -6px; font-size: .75rem; font-weight: 700; }
.avatar-stack > span:nth-child(2) { background: #dbf3ea; color: #4d9677; }
.avatar-stack > span:nth-child(3) { background: #fae8d3; color: #ba8952; }
.qr-card { background: #f7f9fd; border: 1px solid var(--line); border-radius: 22px; padding: 23px 22px 24px; text-align: center; min-width: 0; }
.qr-image { width: 100%; max-width: 250px; display: block; background: white; border-radius: 13px; padding: 8px; margin: 0 auto 20px; }
.qr-card > p { margin-bottom: 4px; font-size: .78rem; }
.big-join-code { font-size: clamp(1.5rem, 2.4vw, 3rem); font-weight: 800; letter-spacing: .13em; line-height: 1.4; font-variant-numeric: tabular-nums; }
.join-url { display: block; color: var(--muted); font-size: .75rem; margin-top: 7px; overflow-wrap: anywhere; }
.stage-footer { display: flex; align-items: center; justify-content: space-between; min-height: 73px; gap: 20px; border-top: 1px solid var(--line); padding: 15px 27px; font-size: .75rem; color: var(--muted); }
.stage-session-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-join-hint { display: flex; align-items: center; gap: 9px; flex-shrink: 0; font-size: .75rem; }
.stage-join-hint strong { display: block; font-size: .89rem; letter-spacing: .1em; color: var(--ink); }
.mini-qr { width: 43px; height: 43px; background: white; }
.presenter-controls { background: white; padding: 25px 21px; border-radius: 16px; border: 1px solid var(--line); }
.presenter-control-heading { display: flex; flex-direction: column; align-items: start; gap: 3px; padding-bottom: 22px; }
.presenter-control-heading .page-eyebrow { font-size: .75rem; }
.presenter-control-heading .badge { font-size: .75rem; text-transform: uppercase; letter-spacing: .025em; }
.host-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.host-metrics > div { display: flex; flex-direction: column; align-items: start; }
.host-metrics .icon { color: #92a2c2; height: 18px; width: 18px; margin-bottom: 9px; }
.host-metrics strong { font-size: 1.6rem; font-weight: 750; line-height: 1.3; }
.host-metrics span { color: var(--muted); font-size: .75rem; }
.host-progress { padding: 20px 0; }
.host-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .75rem; margin-bottom: 11px; }
.host-progress strong { font-size: .75rem; }
.progress-track { background: #edf1f9; border-radius: 10px; height: 5px; overflow: hidden; }
.progress-track > div { height: 100%; border-radius: 10px; background: var(--blue); transition: width .3s; }
.presenter-actions { display: grid; gap: 9px; }
.presenter-actions .btn { padding: 11px 12px; font-size: .78rem; min-height: 43px; }
.presenter-actions .btn-primary .icon { margin-left: auto; }
.host-answer-key { margin-top: 24px; padding: 15px 12px; background: #f8faff; border: 1px solid #e9eefb; border-radius: 10px; }
.host-answer-key .field-label { font-size: .75rem; color: var(--muted); letter-spacing: .06em; }
.host-answer-key p { font-size: .76rem; margin-bottom: 8px; display: flex; align-items: start; gap: 8px; }
.host-answer-key small { display: block; font-size: .75rem; line-height: 1.5; }
.correct-answer-letter { color: var(--green); background: var(--green-soft); padding: 0 4px; border-radius: 3px; font-weight: 700; }
.presenter-share { border-top: 1px solid var(--line); margin-top: 23px; padding-top: 21px; margin-bottom: 10px; }
.presenter-share .field-label { font-size: .75rem; color: var(--muted); letter-spacing: .06em; }
.presenter-code { font-size: 1.5rem; letter-spacing: .12em; font-weight: 800; }
.presenter-share .join-url { font-size: .75rem; }
.presenter-share .btn { font-size: .75rem; margin-top: 6px; }
.presenter-controls > .btn { font-size: .76rem; }
.presenter-controls .notice { font-size: .75rem; margin-top: 18px; margin-bottom: 0; }
.stage-slide { padding: 39px 45px; }
.stage-slide > .question-meta { margin-bottom: 22px; }
.stage-slide h1 { font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.19; margin-bottom: 22px; overflow-wrap: anywhere; }
.stage-slide .slide-body { font-size: 1.05rem; margin-bottom: 25px; }
.stage-slide .slide-image { max-height: 320px; }
.stage-options { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 29px 0; }
.stage-option { display: flex; align-items: start; gap: 12px; min-width: 0; background: #f7f9fd; border: 1px solid #e9edf5; border-radius: 12px; padding: 18px; font-size: 1rem; font-weight: 550; }
.stage-option .option-letter { background: white; color: var(--blue); margin-top: -2px; }
.stage-option > span:last-child { overflow-wrap: anywhere; }
.stage-answer-note { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 27px; font-size: .75rem; }
.stage-answer-note .badge { font-size: .75rem; }
.results-chart { display: grid; gap: 20px; margin-top: 27px; }
.result-row { min-width: 0; }
.result-row-label { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; min-width: 0; }
.result-option { font-size: 1rem; font-weight: 550; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.result-value { margin-left: auto; font-size: 1.15rem; font-weight: 750; text-align: right; line-height: 1.2; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.result-value small { display: block; color: var(--muted); font-size: .75rem; font-weight: 450; margin-top: 4px; }
.result-track { background: #edf1fa; border-radius: 5px; height: 10px; overflow: hidden; margin-left: 41px; }
.result-fill { height: 100%; background: var(--blue); border-radius: 5px; transition: width .5s ease; min-width: 0; }
.result-row:nth-child(2) .result-fill { background: #6a82e5; }
.result-row:nth-child(3) .result-fill { background: #8a9eea; }
.result-row:nth-child(4) .result-fill { background: #a7b5eb; }
.result-row.result-correct .result-fill { background: #2baf83; }
.result-correct .option-letter { background: var(--green-soft); color: var(--green); }
.correct-tag { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-size: .75rem; white-space: nowrap; }
.correct-tag .icon { height: 14px; width: 14px; }
.your-answer-tag { background: var(--blue-soft); color: var(--blue); padding: 2px 5px; border-radius: 4px; font-size: .75rem; font-weight: 700; }
.results-compact { gap: 18px; margin-top: 20px; }
.results-compact .result-option { font-size: .84rem; }
.results-compact .result-value { font-size: .95rem; }
.results-compact .result-value small { font-size: .75rem; }
.results-compact .option-letter { width: 27px; height: 27px; font-size: .75rem; }
.results-compact .result-track { margin-left: 37px; height: 8px; }
.results-compact .result-row-label { gap: 8px; flex-wrap: wrap; }
.end-trophy { display: flex; align-items: center; justify-content: center; width: 67px; height: 67px; border-radius: 19px; background: #fff5db; color: #b38726; margin: 0 auto 20px; }
.end-trophy > .icon { width: 34px; height: 34px; }
.stage-end { padding: 38px 45px; text-align: center; }
.stage-end h1 { font-size: clamp(1.8rem, 3.2vw, 3rem); margin-bottom: 14px; }
.end-leaderboard { text-align: left; max-width: 590px; margin: 27px auto 0; }
.end-leaderboard h2 { font-size: 1rem; }
.leaderboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.leaderboard-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #f5f7fc; border-radius: 10px; }
.leaderboard-first { background: #fff8e9; }
.leaderboard-rank { color: #8090aa; font-size: .85rem; font-weight: 750; width: 25px; flex-shrink: 0; text-align: center; }
.leaderboard-first .leaderboard-rank { color: #b68b30; }
.leaderboard-rank > .icon { height: 21px; width: 21px; }
.leaderboard-name { flex: 1; font-size: .87rem; font-weight: 550; overflow-wrap: anywhere; }
.leaderboard-score { color: #526486; font-size: .86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.leaderboard-score small { font-size: .75rem; font-weight: 450; }
.display-shell { display: flex; flex-direction: column; background: white; min-height: 100svh; }
.display-session-code { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.display-stage { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.display-stage > .stage-lobby { width: min(100%, 1200px); margin: 0 auto; gap: 90px; padding: 50px 60px; }
.display-stage .lobby-copy h1 { font-size: clamp(3.5rem, 6.5vw, 7rem); }
.display-stage .lobby-title { font-size: 1.7rem; }
.display-stage .lobby-copy > .muted { font-size: 1.13rem; }
.display-stage .lobby-participants { font-size: 1rem; }
.display-stage .qr-card { padding: 30px; border-radius: 27px; }
.display-stage .qr-image { max-width: 330px; }
.display-stage .qr-card > p { font-size: .9rem; }
.display-stage .big-join-code { font-size: clamp(2rem, 3.7vw, 4rem); }
.display-stage .join-url { font-size: .8rem; }
.display-stage > .stage-slide { width: min(100%, 1240px); margin: 0 auto; padding: 45px 65px; }
.display-stage .stage-slide h1 { font-size: clamp(2.5rem, 4.2vw, 4.5rem); }
.display-stage .stage-slide .slide-body { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.display-stage .stage-slide .slide-image { max-height: 40vh; }
.display-stage .stage-option { padding: 23px; font-size: 1.3rem; }
.display-stage .option-letter { width: 38px; height: 38px; font-size: 1rem; }
.display-stage .timer-pill { padding: 9px 14px; font-size: 1.15rem; }
.display-stage .stage-slide .page-eyebrow { font-size: .8rem; }
.display-stage .result-option { font-size: 1.25rem; }
.display-stage .result-value { font-size: 1.5rem; }
.display-stage .result-value small { font-size: .76rem; }
.display-stage .result-track { height: 14px; margin-left: 48px; }
.display-stage .correct-tag { font-size: .85rem; }
.display-stage .stage-answer-note { font-size: .9rem; margin-top: 35px; }
.display-stage .stage-answer-note .badge { font-size: .76rem; }
.display-stage .stage-end { width: min(100%, 1100px); margin: 0 auto; }
.display-stage .stage-end h1 { font-size: clamp(2.8rem, 4vw, 4rem); }
.display-stage .end-leaderboard { max-width: 660px; }
.display-stage .leaderboard-row { padding: 11px 18px; }
.display-stage .leaderboard-name, .display-stage .leaderboard-score { font-size: 1.1rem; }
.display-shell > .stage-footer { padding-right: 40px; padding-left: 40px; }

@media (min-width: 1500px) {
  .presenter-main { grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; padding: 35px; }
  .stage-surface { min-height: 650px; }
  .stage-lobby { padding: 70px 65px; gap: 55px; }
  .presenter-controls { padding: 28px 25px; }
  .presenter-stage .lobby-copy h1 { font-size: 4.6rem; }
}

@media (max-width: 1200px) {
  .presentation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-content { padding: 32px; }
  .editor-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 18px; }
  .slide-editor { padding: 24px; }
  .presenter-main { grid-template-columns: minmax(0, 1fr) 255px; gap: 16px; padding: 20px; }
  .presenter-controls { padding: 21px 17px; }
  .stage-lobby { gap: 20px; padding: 45px 30px; grid-template-columns: 1fr 1fr; }
  .qr-card { padding: 16px; }
  .lobby-copy h1 { font-size: 3.2rem; }
  .stage-slide { padding: 33px; }
  .stage-option { font-size: .9rem; padding: 15px; }
  .stage-end { padding: 33px; }
}

@media (max-width: 960px) {
  .sidebar { width: 200px; padding-left: 15px; padding-right: 15px; }
  .sidebar .brand { font-size: 1.1rem; gap: 8px; }
  .main-content { margin-left: 200px; padding: 28px 24px; }
  .page-header { align-items: start; }
  .page-header h1 { font-size: 1.9rem; }
  .stats-row { gap: 12px; }
  .stat-card { padding: 17px; }
  .presentation-grid { gap: 16px; }
  .presentation-card { padding: 22px; }
  .editor-layout { grid-template-columns: 1fr; }
  .slide-list { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; }
  .slide-list-header { width: 100%; }
  .slide-list-item { width: calc(50% - 4px); margin: 0; }
  .slide-list > .btn { flex-grow: 1; }
  .editor-header { align-items: start; }
  .presenter-main { grid-template-columns: 1fr; }
  .presenter-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
  .presenter-control-heading { padding-bottom: 0; justify-content: center; }
  .host-metrics { padding-bottom: 0; border-bottom: none; }
  .host-metrics > div { align-items: center; }
  .host-metrics .icon { display: none; }
  .host-progress { grid-column: 1 / -1; padding: 0; }
  .presenter-actions { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .host-answer-key { margin-top: 0; }
  .presenter-share { margin: 0; padding: 0; border: 0; }
  .presenter-controls > .btn { align-self: end; }
  .presenter-controls .notice { grid-column: 1 / -1; margin-top: 0; }
  .stage-surface { min-height: 500px; }
  .presenter-stage .stage-lobby { grid-template-columns: 1.3fr 1fr; padding: 40px; gap: 30px; }
  .presenter-stage .lobby-copy h1 { font-size: 3.8rem; }
  .display-stage > .stage-lobby { padding: 45px 35px; gap: 40px; }
  .display-stage .lobby-copy h1 { font-size: 4.6rem; }
  .display-stage > .stage-slide { padding: 40px; }
}

@media (max-width: 700px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; position: static; min-height: 0; padding: 16px 20px 10px; }
  .sidebar .brand { padding: 0; font-size: 1.2rem; }
  .sidebar-nav { flex-direction: row; gap: 8px; margin-top: 18px; }
  .nav-link { justify-content: center; font-size: .78rem; padding: 10px; }
  .nav-link.active, .nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--cyan); }
  .sidebar-footer { position: absolute; top: 15px; right: 12px; padding: 0; }
  .sidebar-footer > p, .sidebar-footer > small, .sidebar-footer .muted { display: none; }
  .sidebar-footer .btn { font-size: .75rem; padding: 8px; min-height: 36px; }
  .main-content { margin: 0; padding: 26px 20px 40px; }
  .page-header { flex-wrap: wrap; gap: 17px; }
  .page-header h1 { font-size: 1.9rem; }
  .page-header > .toolbar { width: 100%; }
  .page-header > .toolbar .btn-primary { flex: 1; }
  .stats-row { gap: 9px; margin-bottom: 24px; }
  .stat-card { padding: 13px 12px; border-radius: 12px; }
  .stat-card > strong { font-size: 1.6rem; }
  .stat-card > span, .stat-card > p, .stat-card > small { font-size: .75rem; }
  .presentation-grid { grid-template-columns: 1fr; }
  .presentation-card { min-height: 0; }
  .presentation-card .presentation-icon { margin-bottom: 15px; }
  .deck-description { min-height: 0; }
  .editor-header { flex-direction: column; gap: 15px; }
  .editor-header .toolbar { width: 100%; }
  .editor-header .toolbar .btn { flex: 1; }
  .editor-title { width: 100%; }
  .slide-editor { padding: 23px 20px; }
  .option-row { flex-wrap: wrap; }
  .option-row input[type="text"] { flex: 1 1 60%; }
  .option-row label { padding: 2px 0; }
  .field-row { gap: 13px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-card { width: min(470px, 100%); padding: 35px 28px; }
  .login-art { display: none; }
  .login-card .brand { margin-bottom: 45px; }
  .live-topbar { height: auto; min-height: 71px; padding: 16px 20px; gap: 14px; }
  .presenter-topbar { flex-wrap: wrap; }
  .presenter-topbar .back-link { font-size: .75rem; }
  .presenter-title { flex: 1; min-width: 50%; }
  .presenter-topbar .toolbar { flex-basis: 100%; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
  .presenter-topbar .toolbar .btn { font-size: .78rem; min-height: 37px; }
  .presenter-main { padding: 14px; gap: 15px; }
  .stage-surface { min-height: 0; }
  .presenter-stage .stage-lobby { padding: 30px 24px; gap: 20px; grid-template-columns: 1fr; }
  .presenter-stage .lobby-copy { text-align: center; }
  .presenter-stage .lobby-copy h1 { font-size: 3.5rem; margin-bottom: 19px; }
  .presenter-stage .lobby-copy h1 br { display: none; }
  .presenter-stage .lobby-copy .gradient-text::before { content: " "; }
  .presenter-stage .lobby-title { font-size: 1rem; }
  .presenter-stage .lobby-participants { justify-content: center; margin-top: 17px; }
  .presenter-stage .qr-card { max-width: 285px; margin: 0 auto; width: 100%; }
  .presenter-stage .qr-image { max-width: 190px; margin-bottom: 14px; }
  .big-join-code { font-size: 2rem; }
  .presenter-controls { gap: 17px; padding: 23px 20px; }
  .presenter-actions { grid-template-columns: 1fr 1fr; }
  .presenter-actions .btn-primary { grid-column: 1 / -1; font-size: .86rem; }
  .presenter-actions .btn { white-space: normal; }
  .host-answer-key { grid-column: 1 / -1; }
  .presenter-share { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 17px; }
  .presenter-controls > .btn { grid-column: 1 / -1; }
  .stage-slide { padding: 28px 24px; }
  .stage-slide h1 { font-size: 1.75rem; }
  .stage-options { grid-template-columns: 1fr; gap: 9px; }
  .stage-option { padding: 13px; }
  .stage-answer-note { flex-wrap: wrap; gap: 10px; }
  .stage-footer { padding: 13px 19px; min-height: 63px; gap: 12px; font-size: .75rem; }
  .stage-footer .stage-session-label { white-space: normal; }
  .stage-join-hint { font-size: .75rem; }
  .stage-join-hint strong { font-size: .79rem; }
  .mini-qr { width: 36px; height: 36px; }
  .stage-end { padding: 30px 24px; }
  .display-shell .live-topbar { flex-wrap: wrap; padding: 15px 22px; }
  .display-session-code { display: none; }
  .display-shell .live-topbar .brand { font-size: 1.2rem; }
  .display-shell .live-topbar .toolbar { gap: 5px; }
  .display-stage > .stage-lobby { padding: 35px 25px; gap: 26px; grid-template-columns: 1fr; }
  .display-stage .lobby-copy { text-align: center; }
  .display-stage .lobby-copy h1 { font-size: 4rem; }
  .display-stage .lobby-title { font-size: 1.35rem; }
  .display-stage .lobby-copy > .muted { font-size: 1rem; }
  .display-stage .lobby-participants { justify-content: center; margin-top: 24px; }
  .display-stage .qr-card { width: min(100%, 310px); padding: 20px; margin: 0 auto; }
  .display-stage .qr-image { max-width: 235px; }
  .display-stage .big-join-code { font-size: 2.5rem; }
  .display-stage > .stage-slide { padding: 31px 25px; }
  .display-stage .stage-slide h1 { font-size: 2.25rem; }
  .display-stage .stage-option { font-size: 1.05rem; padding: 16px; }
  .display-stage .option-letter { width: 31px; height: 31px; font-size: .83rem; }
  .display-stage .result-option { font-size: 1rem; }
  .display-stage .result-value { font-size: 1.15rem; }
  .display-stage .result-value small { font-size: .75rem; }
  .display-stage .result-track { margin-left: 41px; }
  .display-stage .stage-end h1 { font-size: 2.3rem; }
  .display-stage .leaderboard-name, .display-stage .leaderboard-score { font-size: .9rem; }
  .display-shell > .stage-footer { padding-left: 23px; padding-right: 23px; }
}

@media (max-width: 420px) {
  .join-shell { padding: 28px 17px 25px; }
  .join-shell > .brand { margin-bottom: 27px; }
  .join-card { padding: 30px 24px; }
  .join-card h1 { font-size: 2.25rem; }
  .participant-header { padding: 16px 19px 13px; }
  .participant-main { padding: 17px 13px; }
  .participant-question { padding: 25px 21px; }
  .participant-question h1 { font-size: 1.65rem; }
  .participant-wait { padding: 36px 23px 24px; }
  .participant-wait h1 { font-size: 1.85rem; }
  .participant-footer { padding-right: 19px; padding-left: 19px; font-size: .75rem; }
  .answer-option { padding: 13px 12px; gap: 11px; }
  .answer-option .option-text { font-size: .91rem; }
  .results-compact .correct-tag { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Keep control labels and secondary text readable at their rendered size. */
.btn, .btn-small, .card-actions .btn, .presentation-card-body .card-actions .btn, .session-table .btn, .slide-list .btn, .presenter-actions .btn, .presenter-controls > .btn, .presenter-share .btn, .presenter-topbar .toolbar .btn, .editor-header .toolbar .btn, .add-slide-controls .btn, .sidebar-footer .btn { font-size: .875rem; }
.field-label, .field > label, .join-form .field-label, .options-fieldset legend, .nav-link { font-size: .875rem; }
@media (max-width: 960px) {
  .slide-list { display: block; }
  #slide-list-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .slide-list-item { width: 100%; margin: 0; }
  .add-slide-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .add-slide-controls .field-label { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .sidebar-workspace, .sidebar-tip, .account-row { display: none; }
  .sidebar-workspace + .sidebar-nav { margin-top: 18px; }
  .sidebar-tip + .sidebar-footer { margin: 0; }
  .workspace-note { flex-wrap: wrap; gap: 12px; padding: 18px; }
  .workspace-note > div { min-width: 75%; }
  .workspace-note > .btn { margin-left: 36px; }
  .stat-card { flex-direction: column; align-items: start; gap: 10px; }
  .stat-icon { width: 32px; height: 32px; font-size: 18px; border-radius: 9px; }
  .stat-card > div > strong { font-size: 1.65rem; }
  .stat-card > div > span { font-size: .75rem; }
  .presentation-card { padding: 0; }
  .presentation-card-body { padding: 22px; }
  .slide-actions > div:last-child { margin-left: 0; }
  .field-row { flex-wrap: wrap; }
  .field-row > * { flex-basis: 100%; }
}
.security-card { max-width: 660px; padding: 28px; }
.security-card h2 { margin-top: 20px; }
.security-card form { margin-top: 24px; }
.security-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.security-qr { display: block; width: 260px; height: 260px; background: white; margin: 20px 0; }
.security-key { display: block; padding: 16px; overflow-wrap: anywhere; background: var(--bg); }
.security-card details { margin-bottom: 32px; }
.security-card summary { cursor: pointer; margin-bottom: 12px; }
.recovery-codes { padding: 20px; background: var(--bg); border-radius: 12px; font-size: clamp(.75rem, 2.5vw, 1rem); line-height: 1.8; overflow-x: auto; }
.security-saved { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0; }
.security-saved input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 4px; }
#mfa-login-form .btn { margin-top: 12px; }
