/* LiveQuiz — Gradebook house chrome + Jeopardy board themes */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success-color: #059669;
    --error-color: #dc2626;
    --background: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --jq-blue: #0a16c4;
    --jq-gold: #e4c15a;
    --jq-navy: #03040f;
}

.font-inter { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.font-jq { font-family: 'Libre Baskerville', 'Times New Roman', Georgia, serif; }

.lq-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* —— House chrome (matches Gradebook / Quizzer) —— */
.lq-card-hover { transition: box-shadow 0.15s ease, border-color 0.15s ease; }
.lq-card-hover:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }

.lq-dropzone { border: 2px dashed #cbd5e1; background: #f8fafc; }
.lq-dropzone.lq-dragover { border-color: #2563eb; background: #eff6ff; }
.lq-modal-open { overflow: hidden; }

#btnNewTemplate, #btnNewTemplateEmpty, #btnAddQuestion, #modalConfirm, #btnJoin, #btnLandingJoin {
    background: #2563eb; color: #fff; border: 0;
}
#btnNewTemplate:hover, #btnNewTemplateEmpty:hover, #btnAddQuestion:hover, #modalConfirm:hover, #btnLandingJoin:hover {
    background: #1d4ed8;
}
#btnEditorRun, #btnEditorRunJq, #btnStartGame:not(:disabled), #btnHostSignIn {
    background-color: #059669; color: #fff; border: 0;
}
#btnPreviewGame:not(:disabled) { background-color: #1d4ed8; color: #fff; border: 0; }
#btnPreviewGame:not(:disabled):hover { background-color: #1e40af; }
#btnEditorRun:hover, #btnEditorRunJq:hover, #btnStartGame:not(:disabled):hover, #btnHostSignIn:hover {
    background-color: #047857;
}
#btnNextQ, #btnHostAdvance { background-color: #2563eb; color: #fff; border: 0; }
.lq-dash-btn-run { background-color: #059669 !important; color: #fff !important; border: none !important; }
.lq-dash-btn-run:hover { background-color: #047857 !important; }
.lq-dash-btn-edit { background-color: #fff !important; color: #334155 !important; border: 1px solid #cbd5e1 !important; }
.lq-dash-btn-edit:hover { background-color: #f8fafc !important; }

.lq-opt-row {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.25rem 0.5rem 0.25rem 0.35rem; border-radius: 0.5rem;
    border: 1px solid #e2e8f0; background: #fff; cursor: pointer;
}
.lq-opt-row:hover { border-color: #cbd5e1; }
.lq-opt-row--correct { border-color: #10b981; box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35); background: #f0fdf4; }
.lq-opt-badge {
    width: 2rem; height: 2rem; border-radius: 0.375rem; display: flex;
    align-items: center; justify-content: center; font-weight: 700; color: #fff;
    flex-shrink: 0; font-size: 0.8rem; pointer-events: none;
}
.lq-letter-a { background: #e21b3c; }
.lq-letter-b { background: #1368ce; }
.lq-letter-c { background: #d89e00; }
.lq-letter-d { background: #26890c; }
.lq-opt-field {
    flex: 1; min-width: 0; border: 0; background: transparent;
    padding: 0.55rem 0.35rem; font-size: 0.875rem; outline: none; cursor: text;
}
.lq-opt-correct-mark { flex-shrink: 0; width: 1.5rem; display: none; align-items: center; justify-content: center; color: #059669; }
.lq-opt-row--correct .lq-opt-correct-mark { display: flex; }
.lq-opt-row--static { cursor: default; }
.lq-opt-row--static:hover { border-color: #e2e8f0; }
.lq-opt-badge--chemok { background: #059669; font-size: 0.75rem; }
.lq-q-chem { font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0.01em; line-height: 1.5; }

.chem-wiz-back {
    display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem;
    font-weight: 600; color: #2563eb; margin-bottom: 0.75rem; padding: 0.25rem 0;
    background: none; border: 0; cursor: pointer;
}
.chem-wiz-back:hover { color: #1d4ed8; text-decoration: underline; }
.chem-wiz-grid { display: grid; grid-template-columns: 1fr; gap: 0.65rem; }
@media (min-width: 520px) { .chem-wiz-grid--2 { grid-template-columns: 1fr 1fr; } }
.chem-wiz-course-card, .chem-unit-card, .chem-practice-card {
    text-align: left; padding: 1rem; border-radius: 0.75rem; border: 1px solid #e2e8f0;
    background: #fff; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chem-wiz-course-card:hover, .chem-practice-card:hover, .chem-unit-card:hover {
    border-color: #93c5fd; box-shadow: var(--shadow-sm);
}
.chem-wiz-course-icon, .chem-unit-icon, .chem-practice-icon {
    width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
    background: #2563eb; color: #fff;
    display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem;
}
.chem-unit-icon { width: 2.25rem; height: 2.25rem; }
.chem-unit-icon--math { background: #0369a1; }
.chem-practice-icon { width: 2rem; height: 2rem; background: #f1f5f9; color: #1d4ed8; }
.chem-compose-summary {
    border-radius: 0.75rem; border: 1px solid #e2e8f0;
    background: #f8fafc; padding: 0.75rem 1rem; font-size: 0.875rem;
}

/* Join / sign-in sit on the same gray as Gradebook, not a nebula */
.lq-landing {
    min-height: 100vh;
    background: #f8fafc;
    color: #1e293b;
}
.lq-landing-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
}
.lq-pin {
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 800;
    text-align: center;
}

/* Player play: solid slate, no aurora */
.lq-play-stage { position: fixed; inset: 0; z-index: 45; overflow: auto; -webkit-overflow-scrolling: touch; background: #0f172a; }
.lq-play-aurora { display: none; }
.lq-play-inner { position: relative; z-index: 1; min-height: 100%; max-width: 42rem; margin: 0 auto; padding: 1rem 1rem 2rem; }
@media (min-width: 768px) { .lq-play-inner { padding: 1.75rem 1.75rem 2.5rem; max-width: 48rem; } }
body.lq-play-mode #appRoot > header, body.lq-play-mode #migrationBanner { display: none; }
body.lq-play-mode #appRoot { max-width: none; margin: 0; padding: 0; }
body.lq-play-mode { background: #0f172a; }
body.lq-play-mode.jq-theme-house { background: #f8fafc; color: #1e293b; }
body.lq-play-mode.jq-theme-house .lq-play-stage { background: #f8fafc; }
body.lq-play-mode.jq-theme-classic { background: #02030c; }
body.lq-play-mode.jq-theme-classic .lq-play-stage { background: #02030c; }

#playerPlayPanel.jq-theme-house .lq-play-inner { color: #1e293b; }
#playerPlayPanel.jq-theme-house #playerGameCode { color: #1e293b; }
#playerPlayPanel.jq-theme-house .lq-play-topbar p { color: #64748b; }
#playerPlayPanel.jq-theme-house #playerStatusBadge {
    background: #fff; color: #334155; border-color: #e2e8f0;
}
#playerPlayPanel.jq-theme-house #playerFeedback { color: #64748b; }
#playerPlayPanel.jq-theme-house #playerScoreHud { color: #475569; }
#playerPlayPanel.jq-theme-house #playerTotalScore { color: #1d4ed8 !important; }

.lq-glass-panel, .jq-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.jq-theme-house .jq-panel, .jq-theme-house .lq-glass-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    color: #1e293b;
}
.jq-theme-classic .jq-panel, .jq-theme-classic .lq-glass-panel {
    background: rgba(8, 16, 140, 0.55);
    border: 1px solid rgba(228, 193, 90, 0.28);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
    color: #f4ead0;
}

.lq-kahoot-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 520px) and (min-height: 700px) { .lq-kahoot-grid { grid-template-columns: 1fr 1fr; } }
.lq-kahoot-opt {
    position: relative; min-height: 3.6rem; padding: 0.85rem 1rem 0.85rem 3.1rem;
    border-radius: 0.75rem; border: none; font-family: Inter, sans-serif; font-weight: 700;
    font-size: clamp(0.95rem, 2.8vw, 1.15rem); line-height: 1.35; text-align: left; color: #fff;
    cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22);
}
.lq-kahoot-opt:not(:disabled):hover { filter: brightness(1.05); }
.lq-kahoot-opt:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.22); }
.lq-kahoot-opt:disabled { cursor: default; opacity: 0.72; }
.lq-kahoot-opt .lq-kahoot-letter {
    position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
    width: 2rem; height: 2rem; border-radius: 0.375rem; display: flex; align-items: center;
    justify-content: center; font-weight: 800; background: rgba(0,0,0,0.2);
}
.lq-kc-0 { background: #be123c; }
.lq-kc-1 { background: #1d4ed8; }
.lq-kc-2 { background: #b45309; }
.lq-kc-3 { background: #15803d; }
.lq-play-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.25rem; }
.lq-fs-pill {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 0.35rem 0.65rem; border-radius: 0.375rem; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.9); cursor: pointer;
}
.jq-theme-house .lq-fs-pill {
    background: #fff; border-color: #e2e8f0; color: #334155;
}
.jq-answer-timer {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 5.5rem; min-height: 3.5rem; margin-top: 1.25rem; padding: 0.35rem 0.85rem;
    border-radius: 999px; border: 3px solid rgba(255,255,255,0.28);
    font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}
.jq-answer-timer.is-expired {
    border-color: #dc2626; color: #fecaca; font-size: 1rem; letter-spacing: 0.12em;
}
.jq-theme-house .jq-answer-timer { border-color: #cbd5e1; color: #1e293b; background: #fff; }
.jq-theme-house .jq-answer-timer.is-expired { border-color: #dc2626; color: #b91c1c; }

.lq-host-projector #appRoot > nav, .lq-host-projector #migrationBanner { display: none !important; }
.lq-host-projector #appRoot { max-width: none; padding: 0.75rem; }
.lq-host-projector #appRoot .max-w-6xl { max-width: none; padding-left: 0.5rem; padding-right: 0.5rem; }
.lq-host-projector.jq-theme-classic { background: #02030c; }
.lq-host-projector.jq-theme-house { background: #f8fafc; }
.lq-host-live-hero {
    border-radius: 0.75rem; overflow: hidden;
    background: #0f172a;
    border: 1px solid #1e293b;
    box-shadow: var(--shadow-md);
}

/* —— Theme toggle —— */
.jq-theme-toggle {
    display: inline-flex; border: 1px solid #e2e8f0; border-radius: 0.5rem;
    overflow: hidden; background: #fff;
}
.jq-theme-opt {
    appearance: none; border: 0; background: transparent;
    padding: 0.4rem 0.75rem; font-size: 0.75rem; font-weight: 600;
    color: #64748b; cursor: pointer; font-family: Inter, sans-serif;
}
.jq-theme-opt + .jq-theme-opt { border-left: 1px solid #e2e8f0; }
.jq-theme-opt.is-on { background: #2563eb; color: #fff; }
.jq-theme-classic .jq-theme-toggle { border-color: rgba(228, 193, 90, 0.35); background: rgba(0,0,0,0.25); }
.jq-theme-classic .jq-theme-opt { color: #f4ead0; }
.jq-theme-classic .jq-theme-opt + .jq-theme-opt { border-left-color: rgba(228, 193, 90, 0.25); }
.jq-theme-classic .jq-theme-opt.is-on { background: #e4c15a; color: #1a1408; }

/* Host chrome buttons on the board */
.jq-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600;
    font-family: Inter, sans-serif; cursor: pointer; border: 1px solid transparent;
}
.jq-btn-primary { background: #e4c15a; color: #1a1408; }
.jq-btn-ghost { background: transparent; border-color: rgba(255,255,255,0.3); color: #fff; }
.jq-btn-ok { background: #059669; color: #fff; }
.jq-btn-bad { background: #dc2626; color: #fff; }
.jq-theme-house .jq-btn-primary { background: #2563eb; color: #fff; }
.jq-theme-house .jq-btn-ghost { border-color: #cbd5e1; color: #334155; background: #fff; }

/* Semantic type on the board */
.jq-kicker {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.jq-headline { font-weight: 700; letter-spacing: 0.04em; }
.jq-muted { opacity: 0.78; }
.jq-ok { color: #6ee7b7; }
.jq-chip-name { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.jq-chip-score { font-weight: 700; font-size: 1.1rem; }
.jq-theme-house .jq-kicker { color: #2563eb; letter-spacing: 0.08em; }
.jq-theme-house .jq-headline { font-family: Inter, sans-serif; letter-spacing: 0; color: #1e293b; }
.jq-theme-house .jq-ok { color: #047857; }
.jq-theme-house .jq-muted { color: #64748b; opacity: 1; }
.jq-theme-classic .jq-kicker { color: #e4c15a; font-family: 'Libre Baskerville', Georgia, serif; }
.jq-theme-classic .jq-headline { font-family: 'Libre Baskerville', Georgia, serif; color: #e4c15a; }

/* —— Jeopardy stage —— */
.jq-stage {
    color: #fff;
    min-height: 100%;
    position: relative;
    background: #03040f;
}
.jq-theme-classic .jq-stage > div:first-child {
    position: relative;
    z-index: 7;
}
.jq-board {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    background: #000;
    padding: 8px;
}
.jq-cat, .jq-cell {
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 0.45rem 0.3rem;
    user-select: none;
}
.jq-cat { min-height: 4.2rem; white-space: pre-line; flex-direction: column; }
.ja-cat-note {
    display: block;
    margin-top: 0.2rem;
    font-family: Inter, sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
    text-shadow: none;
    opacity: 0.88;
}
.jq-cell { min-height: 4.5rem; position: relative; cursor: pointer; border: 0; }
.jq-cell:hover:not(:disabled) { filter: brightness(1.1); }
body.lq-audience-display .jq-board .jq-cell:disabled:not(.is-empty) { opacity: 1; color: inherit; cursor: default; }
.jq-cell.is-empty { opacity: 0.38; cursor: default; }

.jq-clue-screen {
    min-height: 55vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
}
.jq-clue-text {
    font-size: clamp(1.35rem, 3.6vw, 2.6rem);
    line-height: 1.35;
    max-width: 52rem;
}
.jq-clue-screen.has-media { justify-content: flex-start; }
.jq-join-screen { gap: 0.35rem; min-height: 0; }
.jq-join-label {
    margin: 0;
    font-size: clamp(0.85rem, 2vh, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.jq-join-code {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 800;
    letter-spacing: 0.22em;
    font-size: clamp(2.2rem, 7vh, 5.4rem);
    line-height: 1;
}
.jq-theme-classic .jq-join-label,
.jq-theme-classic .jq-join-code,
.jq-theme-classic .jq-join-hint { color: #e4c15a; text-shadow: 1px 1px 0 #000; }
.jq-theme-house .jq-join-label,
.jq-theme-house .jq-join-code,
.jq-theme-house .jq-join-hint { color: #1e293b; text-shadow: none; }
.jq-join-qr {
    width: min(26vh, 16rem);
    height: min(26vh, 16rem);
    margin-top: 0.35rem;
    background: #fff;
    border-radius: 0.7rem;
    padding: 0.45rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.jq-join-qr svg { width: 100%; height: 100%; display: block; }
.jq-join-hint { margin: 0.35rem 0 0; font-size: clamp(0.95rem, 2.2vh, 1.35rem); font-weight: 700; }
.jq-join-site { margin: 0; font-size: clamp(0.75rem, 1.6vh, 1rem); opacity: 0.8; letter-spacing: 0.01em; }
.jq-join-count {
    margin: 0.65rem 0 0;
    font-size: clamp(1.35rem, 3.5vh, 2.1rem);
    font-weight: 800;
    letter-spacing: 0.02em;
}
.jq-theme-classic .jq-join-count { color: #f0d56a; text-shadow: 1px 1px 0 #000; }
.jq-theme-house .jq-join-count { color: #0f172a; text-shadow: none; }
body.lq-audience-display .jq-join-qr,
body:not(.lq-audience-display) #hostStage:fullscreen .jq-join-qr,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-join-qr {
    width: min(34vh, 42vw);
    height: min(34vh, 42vw);
}
body.lq-audience-display .jq-join-code,
body:not(.lq-audience-display) #hostStage:fullscreen .jq-join-code,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-join-code {
    font-size: clamp(2.8rem, 8.5vh, 6.4rem);
}
.jq-clue-stage {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 42vh;
    align-self: stretch;
}
.jq-clue-preview .jq-clue-stage { min-height: 16rem; flex: 1; }
.jq-clue-preview.has-media { justify-content: flex-start; }
.jq-clue-text.is-placed {
    position: absolute;
    z-index: 4;
    margin: 0;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.2rem 0.45rem;
    overflow: hidden;
}
.jq-clue-preview .jq-clue-text.is-placed { cursor: move; touch-action: none; }
.jq-clue-preview .jq-clue-text.is-pinned { outline: 1px dashed rgba(255, 255, 255, 0.5); }
.jq-clue-preview.jq-theme-house .jq-clue-text.is-pinned { outline-color: rgba(30, 41, 59, 0.35); }
.jq-clue-text.is-overlay { background: rgba(0, 0, 0, 0.55); border-radius: 0.4rem; }
.jq-theme-house .jq-clue-text.is-overlay,
.jq-clue-preview.jq-theme-house .jq-clue-text.is-overlay { background: rgba(255, 255, 255, 0.92); }
.jq-clue-text.is-compact { font-size: clamp(0.85rem, 1.6vw, 1.3rem); }
.jq-text-handle { display: none; }
.jq-clue-preview .jq-clue-text.is-placed .jq-text-handle {
    display: block;
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: #e4c15a;
    cursor: nwse-resize;
}
.jq-buzz {
    width: min(100%, 22rem);
    min-height: 10rem;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    cursor: pointer;
}
.jq-buzz:disabled { opacity: 0.45; cursor: default; transform: none; }
.jq-score-strip {
    display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.jq-score-chip {
    min-width: 7rem; padding: 0.45rem 0.7rem; text-align: center;
}

/* 1980s analogue board */
.jq-theme-classic .jq-stage {
    background:
        radial-gradient(ellipse at center, #0812a0 0%, #04061a 72%, #010208 100%);
    padding: 1.25rem 1rem 1.5rem;
    overflow: hidden;
    box-shadow:
        inset 0 0 90px rgba(0, 0, 0, 0.55),
        0 0 0 3px #2c2618,
        0 0 0 10px #5a4c32,
        0 16px 36px rgba(0, 0, 0, 0.4);
}
.jq-theme-classic .jq-stage::after {
    content: '';
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 6;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.028) 0px,
            rgba(255, 255, 255, 0.028) 1px,
            transparent 1px,
            transparent 3px
        ),
        radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.5) 100%);
}
.jq-theme-classic .jq-board {
    gap: 5px;
    padding: 6px;
    background: #050505;
    border-radius: 0;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.65);
    filter: saturate(1.12) contrast(1.06);
}
.jq-theme-classic .jq-cat,
.jq-theme-classic .jq-cell {
    background: linear-gradient(180deg, #1a28e8 0%, #0a14c0 55%, #0710a8 100%);
    color: #fff;
    border-radius: 1px;
    text-shadow: 2px 2px 0 #000;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.22),
        inset 0 -4px 8px rgba(0, 0, 0, 0.45),
        inset 0 0 18px rgba(20, 40, 200, 0.35);
}
.jq-theme-classic .jq-cat {
    min-height: 4.2rem;
    font-family: 'Libre Baskerville', 'Times New Roman', Georgia, serif;
    font-weight: 700;
    font-size: clamp(0.68rem, 1.4vw, 1rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.15;
}
.jq-theme-classic .jq-cell {
    min-height: 4.5rem;
    color: #f0d56a;
    font-family: 'Libre Baskerville', 'Times New Roman', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.15rem, 3.1vw, 2.15rem);
    text-shadow: 2px 2px 0 #000, 0 0 10px rgba(240, 213, 106, 0.35);
}
.jq-theme-classic .jq-cell.is-open {
    background: #05060f;
    color: transparent;
    cursor: default;
    opacity: 1;
    text-shadow: none;
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.9);
    filter: none;
}
.jq-theme-classic .jq-clue-screen {
    background: linear-gradient(180deg, #1420e0 0%, #0a14c4 100%);
    border-radius: 2px;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.16),
        inset 0 -6px 18px rgba(0, 0, 0, 0.35);
    color: #f6f0d8;
}
.jq-theme-classic .jq-clue-text {
    font-family: 'Libre Baskerville', Georgia, serif;
    text-transform: uppercase;
    color: #f6f0d8;
    text-shadow: 2px 2px 0 #000;
}
.jq-theme-classic .jq-buzz {
    border-radius: 6px;
    border: 6px solid #e4c15a;
    background: linear-gradient(180deg, #d12b2b 0%, #8a1010 100%);
    box-shadow: 0 8px 0 #4a0808, inset 0 2px 0 rgba(255,255,255,0.2);
    font-family: 'Libre Baskerville', Georgia, serif;
}
.jq-theme-classic .jq-buzz:active { transform: translateY(5px); box-shadow: 0 3px 0 #4a0808; }
.jq-theme-classic .jq-score-chip {
    background: linear-gradient(180deg, #1420d8 0%, #0a12a0 100%);
    border: 2px solid #e4c15a;
    border-radius: 2px;
    color: #f6f0d8;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.jq-theme-classic .jq-score-chip.in-control { box-shadow: 0 0 0 1px #e4c15a, inset 0 1px 0 rgba(255,255,255,0.18); }
.jq-theme-classic .jq-score-chip.you { background: linear-gradient(180deg, #3a2a08 0%, #1a1408 100%); }
.jq-theme-classic .jq-chip-score { color: #f0d56a; font-family: 'Libre Baskerville', Georgia, serif; }

/* Gradebook / classroom board */
.jq-theme-house .jq-stage {
    background: #f8fafc;
    color: #1e293b;
    padding: 0.5rem 0 1rem;
    box-shadow: none;
    border-radius: 0;
}
.jq-theme-house .jq-board {
    background: #e2e8f0;
    gap: 8px;
    padding: 8px;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}
.jq-theme-house .jq-cat,
.jq-theme-house .jq-cell {
    background: #fff;
    text-shadow: none;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}
.jq-theme-house .jq-cat {
    min-height: 3.6rem;
    color: #1e293b;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #f8fafc;
}
.jq-theme-house .jq-cell {
    min-height: 4.25rem;
    color: #2563eb;
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: clamp(1.05rem, 2.6vw, 1.85rem);
}
.jq-theme-house .jq-cell:hover:not(:disabled) {
    filter: none;
    background: #eff6ff;
    border-color: #2563eb;
}
.jq-theme-house .jq-cell.is-open {
    background: #f1f5f9;
    color: transparent;
    cursor: default;
    opacity: 1;
    box-shadow: none;
}
.jq-theme-house .jq-cell.is-empty { opacity: 0.45; }
.jq-theme-house .jq-clue-screen {
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}
.jq-theme-house .jq-clue-text {
    font-family: Inter, sans-serif;
    text-transform: none;
    color: #1e293b;
    font-weight: 600;
    font-size: clamp(1.2rem, 2.8vw, 2rem);
}
.jq-theme-house .jq-buzz {
    border-radius: 0.75rem;
    border: 2px solid #991b1b;
    background: #dc2626;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.12em;
}
.jq-theme-house .jq-buzz:active { transform: translateY(2px); }
.jq-theme-house .jq-score-chip {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #1e293b;
}
.jq-theme-house .jq-score-chip.in-control { border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb; }
.jq-theme-house .jq-score-chip.you { background: #eff6ff; }
.jq-theme-house .jq-chip-score { color: #1e293b; font-family: Inter, sans-serif; }

/* Editor (always house) */
.jq-editor-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.jq-ed-cat input {
    width: 100%; background: #f8fafc; color: #1e293b; border: 1px solid #e2e8f0;
    text-align: center; font-weight: 600; font-size: 0.75rem;
    padding: 0.5rem 0.25rem; border-radius: 0.375rem;
}
.jq-ed-cat input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb; }
.jq-ed-cell {
    min-height: 4.25rem; background: #fff; color: #2563eb; font-weight: 700;
    border: 1px solid #e2e8f0; border-radius: 0.375rem; cursor: pointer; position: relative;
}
.jq-ed-cell:hover { background: #eff6ff; border-color: #93c5fd; }
.jq-ed-cell.has-clue { box-shadow: inset 0 0 0 2px #059669; }
.jq-ed-cell.is-missing {
    background: #e5e7eb;
    color: transparent;
    box-shadow: inset 0 0 0 1px #d1d5db;
}
.jq-ed-cell.is-missing:hover { background: #d1d5db; color: transparent; }
.ja-ed-note {
    margin-top: 0.25rem;
    font-size: 0.65rem;
    line-height: 1.3;
    color: #64748b;
    text-align: center;
}
.ja-dd-mark {
    position: absolute;
    top: 4px;
    right: 4px;
    font-family: Inter, sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f0d56a;
    text-shadow: 1px 1px 0 #000;
    pointer-events: none;
}
.jq-ed-cell .ja-dd-mark { color: #b45309; text-shadow: none; }
.jq-ed-cell.has-media::after {
    content: '';
    position: absolute;
    width: 0.45rem; height: 0.45rem; border-radius: 999px;
    background: #2563eb; bottom: 6px; right: 6px;
}
.jq-media {
    margin: 1.25rem auto 0;
    width: 100%;
    max-width: 56rem;
}
.jq-media img, .jq-media video {
    display: block; margin: 0 auto;
    max-width: 100%; max-height: min(52vh, 28rem);
    border-radius: 0.5rem; background: #000;
}
.jq-media audio { width: 100%; max-width: 36rem; }
.jq-yt {
    position: relative; width: 100%; padding-bottom: 56.25%; height: 0;
    overflow: hidden; border-radius: 0.5rem; background: #000;
}
.jq-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jq-yt-audio {
    padding-bottom: 0; height: 12rem; max-width: 28rem;
    margin-left: auto; margin-right: auto;
}
.jq-media-preview { margin-top: 0.5rem; }
.jq-media-preview .jq-media { margin-top: 0; }
.jq-media-preview .jq-yt { max-width: 28rem; margin: 0 auto; }
.jq-media-preview img, .jq-media-preview video { max-height: 12rem; }
.jq-type-card {
    text-align: left; padding: 1.25rem; border-radius: 0.75rem; border: 1px solid #e2e8f0;
    background: #fff; cursor: pointer; width: 100%;
}
.jq-type-card:hover { border-color: #2563eb; box-shadow: var(--shadow-sm); }

.lq-badge-quiz { background: #eff6ff; color: #1d4ed8; }
.lq-badge-jq { background: #fef3c7; color: #92400e; }
.lq-badge-reach { background: #ede9fe; color: #5b21b6; }
.jq-tab.is-on { background: #2563eb; color: #fff; }

/* —— Clue editor modal —— */
.lq-modal {
    position: fixed; inset: 0; z-index: 80;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.lq-modal.hidden { display: none; }
.lq-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); }
.lq-modal-panel {
    position: relative; z-index: 1;
    width: 100%; max-width: 56rem; max-height: min(94vh, 58rem);
    background: #fff; border-radius: 0.75rem; border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    display: flex; flex-direction: column; overflow: hidden;
}
.lq-modal-head, .lq-modal-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 1rem 1.25rem; background: #fff;
}
.lq-modal-head { border-bottom: 1px solid #e2e8f0; }
.lq-modal-foot { border-top: 1px solid #e2e8f0; flex-wrap: wrap; }
.lq-modal-body {
    overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 1.1rem;
}
.lq-modal-label {
    display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: #64748b;
}
.lq-modal-input {
    width: 100%; border: 1px solid #cbd5e1; border-radius: 0.5rem;
    padding: 0.65rem 0.85rem; font-size: 0.95rem; color: #0f172a; background: #fff;
}
.lq-modal-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.lq-modal-textarea { min-height: 7.5rem; resize: vertical; line-height: 1.45; }
.jq-btn-ghost-light {
    background: #fff; border: 1px solid #e2e8f0; color: #334155;
    padding: 0.45rem 0.85rem; border-radius: 0.5rem; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.jq-btn-ghost-light:hover { background: #f8fafc; }
.jq-btn.hidden { display: none; }
.jq-ed-cell.is-editing { box-shadow: inset 0 0 0 2px #2563eb; background: #eff6ff; }
body.lq-modal-open { overflow: hidden; }

/* —— Live host stage + drawer —— */
#hostStage { position: relative; }
.jq-stage-actions {
    display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
    margin: 1.25rem 0 0.25rem; position: relative; z-index: 6;
}
.jq-stage-go, .jq-stage-ok, .jq-stage-bad, .jq-stage-ghost {
    min-width: 12.5rem; min-height: 4.25rem; padding: 0.85rem 1.4rem;
    border-radius: 0.85rem; border: 0; cursor: pointer;
    font-size: 1.35rem; font-weight: 800; letter-spacing: 0.03em;
    font-family: Inter, sans-serif;
}
.jq-stage-go { background: #e4c15a; color: #1a1408; }
.jq-stage-name { min-width: 9rem; min-height: 3.4rem; font-size: 1.05rem; padding: 0.65rem 1rem; }
.jq-preview-flag {
    margin-top: 0.35rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
    text-transform: uppercase; color: #e4c15a;
}
.jq-theme-house .jq-preview-flag { color: #2563eb; }
.jq-preview-form {
    display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center; width: 100%;
}
.jq-preview-who { width: 100%; text-align: center; font-weight: 700; margin: 0; }
.jq-preview-form input {
    min-height: 4.25rem; min-width: 12rem; border-radius: 0.85rem; border: 0;
    padding: 0.85rem 1rem; font-size: 1.25rem; font-weight: 800; text-align: center; color: #1a1408;
}
.jq-stage-ok { background: #059669; color: #fff; }
.jq-stage-bad { background: #dc2626; color: #fff; }
.jq-stage-ghost { background: transparent; color: inherit; border: 1px solid rgba(255,255,255,0.35); min-height: 3rem; font-size: 1rem; }
.jq-theme-house .jq-stage-go { background: #2563eb; color: #fff; }
.jq-theme-house .jq-stage-ghost { border-color: #cbd5e1; color: #334155; background: #fff; }
.jq-end-quiet {
    position: absolute; top: 0.65rem; right: 0.75rem; z-index: 8;
    background: transparent; border: 0; color: inherit; opacity: 0.62;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
    font-family: Inter, sans-serif;
}
.jq-end-quiet:hover { opacity: 1; }
.jq-display-fs {
    position: absolute; top: 0.7rem; right: 0.75rem; z-index: 9;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    cursor: pointer;
    font-family: Inter, sans-serif;
}
.jq-display-fs:hover { background: rgba(255, 255, 255, 0.24); }
.jq-theme-house .jq-display-fs {
    background: #fff;
    border-color: #cbd5e1;
    color: #0f172a;
}
.jq-console-note {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #e4c15a;
}
.jq-theme-house .jq-console-note { color: #1d4ed8; }
.jq-console-answer {
    background: #fff;
    color: #0f172a;
    border-radius: 0.9rem;
    padding: 0.9rem 1.2rem 1.05rem;
    margin: 0 0 1rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.jq-console-answer .label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.jq-console-answer .ans {
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-top: 0.3rem;
}
body.lq-audience-display #btnHostMenuFab,
body.lq-audience-display #hostDrawer,
body.lq-audience-display #hostDrawerScrim,
body.lq-audience-display #sessionLobbyChrome { display: none !important; }
.jq-corner-note {
    position: absolute;
    right: 0.85rem;
    bottom: 0.75rem;
    z-index: 5;
    text-align: right;
    pointer-events: none;
    max-width: 16rem;
}
.jq-corner-note .jq-arm-readout {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}
.jq-corner-name {
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.1;
}
.jq-theme-classic .jq-corner-note { color: #f0d56a; text-shadow: 1px 1px 0 #000; }
.jq-theme-house .jq-corner-note { color: #1e293b; text-shadow: none; }
.jq-score-pop {
    position: fixed;
    z-index: 80;
    width: 15rem;
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    padding: 0.85rem 0.9rem;
}
.jq-score-pop.hidden { display: none; }
.jq-arm-readout {
    font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em; line-height: 1;
}
.jq-arm-readout.is-live { letter-spacing: 0.18em; font-size: clamp(2rem, 5vw, 3.4rem); }
.jq-phone-buzz,
.jq-theme-classic .jq-phone-buzz,
.jq-theme-house .jq-phone-buzz {
    width: min(78vw, 20rem);
    height: min(78vw, 20rem);
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #4b5563;
    color: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.28);
    font-family: Inter, sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
}
.jq-phone-buzz:disabled,
.jq-theme-classic .jq-phone-buzz:disabled,
.jq-theme-house .jq-phone-buzz:disabled {
    opacity: 1;
    cursor: default;
    transform: none;
}
.jq-phone-buzz.is-live,
.jq-theme-classic .jq-phone-buzz.is-live,
.jq-theme-house .jq-phone-buzz.is-live {
    background: #dc2626;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 0 #7f1d1d, inset 0 2px 0 rgba(255, 255, 255, 0.28);
}
.jq-phone-buzz.is-live:active,
.jq-theme-classic .jq-phone-buzz.is-live:active,
.jq-theme-house .jq-phone-buzz.is-live:active {
    transform: translateY(8px);
    box-shadow: 0 4px 0 #7f1d1d, inset 0 2px 0 rgba(255, 255, 255, 0.2);
}
.jq-phone-buzz.is-answering,
.jq-theme-classic .jq-phone-buzz.is-answering,
.jq-theme-house .jq-phone-buzz.is-answering {
    background: #dc2626;
    color: #fff;
    animation: jqBuzzFlash 0.42s steps(2, jump-end) infinite;
}
@keyframes jqBuzzFlash {
    50% { background: #fecaca; color: #7f1d1d; }
}
.jq-buzzer-screen {
    min-height: 16rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jq-host-answer { flex-direction: column; text-align: center; padding: 1.5rem; }
.jq-host-answer .kicker {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.7;
}
.jq-host-answer .resp {
    margin: 0;
    max-width: 22rem;
    font-size: clamp(1.6rem, 6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.25;
}
body.lq-buzzer-mode .jq-host-answer .kicker { color: #f0d56a; opacity: 1; }
body.lq-buzzer-mode .jq-host-answer .resp { color: #f8fafc; }
.jq-ha-tools {
    margin-top: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.35);
    text-align: left;
}
.jq-ha-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    cursor: pointer;
}
.jq-ha-delays {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
}
.jq-ha-delays li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.88rem;
    color: #e2e8f0;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.jq-ha-delays li.is-live .jq-ha-sec { color: #fbbf24; font-weight: 800; }
.jq-ha-name { font-weight: 600; }
.jq-ha-sec { opacity: 0.9; white-space: nowrap; }
.jq-ha-note,
.jq-ha-lobby-count {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: #cbd5e1;
}
.jq-ha-lobby-count { font-size: 1.05rem; font-weight: 700; color: #f8fafc; }
.jq-host-code {
    margin: 0.35rem 0 0.8rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    background: #f8fafc;
}
.jq-host-code-value {
    margin: 0.15rem 0 0.35rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #1e3a8a;
}
.jq-host-code-value.is-masked {
    filter: blur(9px);
    opacity: 0.55;
    user-select: none;
    letter-spacing: 0.35em;
}
.jq-host-code-hit {
    display: block;
    width: 100%;
    margin: 0.15rem 0 0.35rem;
    padding: 0.45rem 0.55rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
    text-align: center;
}
.jq-host-code-hit:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}
.jq-host-code-hit .jq-host-code-value {
    margin: 0;
}
.jq-host-code-reveal {
    margin: 0.15rem 0 0.45rem;
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
}
.jq-host-drawer-pinned {
    padding: 0.65rem 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.jq-host-drawer-pinned.jq-host-code {
    margin: 0;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    background: transparent;
    padding-bottom: 0.75rem;
}
.jq-phone-form { width: min(100%, 22rem); margin: 1.5rem auto 0; }
.jq-phone-form h2 {
    font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
    font-weight: 700; opacity: 0.7; margin: 0;
}
.jq-phone-form .jq-phone-clue { font-size: 1.2rem; line-height: 1.35; margin: 0.55rem 0 0.85rem; font-weight: 600; }
.jq-phone-form .jq-phone-range { font-size: 0.85rem; opacity: 0.75; margin: 0.35rem 0 0.65rem; }
.jq-phone-form input, .jq-phone-form textarea {
    width: 100%; border: 0; border-radius: 0.85rem; padding: 0.9rem 1rem;
    font-size: 1.35rem; font-weight: 700; color: #111827; background: #fff;
}
.jq-phone-form textarea { font-size: 1.05rem; font-weight: 600; }
.jq-phone-form button {
    width: 100%; margin-top: 0.75rem; min-height: 3.4rem; border: 0; border-radius: 0.85rem;
    background: #2563eb; color: #fff; font-weight: 800; font-size: 1.05rem; cursor: pointer;
}
.jq-phone-pic {
    display: block; width: 100%; max-height: 11rem; object-fit: contain;
    border-radius: 0.65rem; margin: 0 0 0.75rem; background: #000;
}
body.lq-buzzer-mode .lq-play-aurora { display: none; }
body.lq-buzzer-mode .lq-play-stage { background: #111827; }
body.lq-buzzer-mode.jq-theme-house .lq-play-stage { background: #f3f4f6; }
body.lq-buzzer-mode .lq-play-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 28rem;
    padding-bottom: 3.25rem;
}
#btnHoldLeave { display: none; }
body.lq-buzzer-mode #btnHoldLeave {
    display: inline-flex;
    position: fixed;
    left: 50%;
    bottom: max(0.55rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 40;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.38);
    color: rgba(255, 255, 255, 0.78);
    font-family: Inter, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    -webkit-touch-callout: none;
}
body.lq-buzzer-mode.jq-theme-house #btnHoldLeave {
    border-color: rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.88);
    color: #64748b;
}
.lq-hold-leave-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(255, 255, 255, 0.28);
}
body.lq-buzzer-mode.jq-theme-house .lq-hold-leave-fill { background: rgba(37, 99, 235, 0.22); }
#btnHoldLeave.is-holding .lq-hold-leave-fill {
    width: 100%;
    transition: width 700ms linear;
}
.lq-hold-leave-label { position: relative; z-index: 1; }
#leaveGameModal.lq-leave-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
#leaveGameModal.lq-leave-modal:not(.hidden) { display: flex; }
.lq-leave-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); }
.lq-leave-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 22rem);
    padding: 1.15rem 1.15rem 1rem;
    border-radius: 0.85rem;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}
.lq-leave-panel h2 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.lq-leave-panel p { margin: 0.55rem 0 0; font-size: 0.92rem; line-height: 1.45; color: #334155; }
.lq-leave-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.lq-leave-actions button {
    flex: 1;
    min-height: 2.6rem;
    border-radius: 0.65rem;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
}
#btnLeaveStay { border: 1px solid #e2e8f0; background: #fff; color: #334155; }
#btnLeaveConfirm { border: 0; background: #1d4ed8; color: #fff; }
body.lq-buzzer-mode #playerJeopardyWrap { flex: 1; display: flex; align-items: center; justify-content: center; }
body.lq-buzzer-mode #playerJeopardyWrap.hidden { display: none; }
body.lq-buzzer-mode .lq-play-topbar { margin-bottom: 0.15rem; align-items: center; }
body.lq-buzzer-mode #playerPinLabel,
body.lq-buzzer-mode #playerStatusBadge,
body.lq-buzzer-mode #playerTimer { display: none; }
body.lq-buzzer-mode #playerTeamName {
    display: block; font-size: 0.95rem; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.2;
}
body.lq-buzzer-mode #playerGameCode {
    font-size: 0.72rem; letter-spacing: 0.16em; font-weight: 600; opacity: 0.62; margin-top: 0.1rem;
}
body.lq-buzzer-mode #playerScoreHud { margin: 0; font-size: 0.8rem; }
body.lq-buzzer-mode #playerTotalScore { font-size: 0.95rem; font-weight: 700; }
body.lq-buzzer-mode #btnPlayerFullscreen {
    font-size: 0.65rem; padding: 0.2rem 0.45rem; opacity: 0.75;
}
body.lq-buzzer-mode #playerFeedback { margin-top: 0.35rem; }
.jq-media-frame {
    position: absolute; z-index: 2; margin: 0; max-width: none;
    display: flex; align-items: center; justify-content: center;
}
.jq-media-frame img, .jq-media-frame video {
    width: 100%; height: 100%; object-fit: contain; max-height: none; margin: 0;
}
.jq-media-frame .jq-yt { height: 100%; padding-bottom: 0; }
.jq-media-frame.is-editable { cursor: move; border: 1px dashed rgba(255,255,255,0.45); touch-action: none; }
.jq-frame-shield { position: absolute; inset: 0; z-index: 2; }
.jq-frame-handle {
    position: absolute; right: -6px; bottom: -6px; width: 18px; height: 18px; z-index: 3;
    border-radius: 4px; background: #e4c15a; cursor: nwse-resize; box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.jq-clue-preview {
    position: relative; min-height: 22rem; overflow: hidden;
    padding: 1.5rem 1.25rem 2.4rem; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.jq-clue-preview.jq-theme-classic {
    background: radial-gradient(ellipse at center, #0812a0 0%, #04061a 72%, #010208 100%);
    color: #f4ead0; border: 1px solid #1e293b; border-radius: 0.75rem;
}
.jq-clue-preview.jq-theme-house {
    background: #fff; color: #1e293b; border: 1px solid #e2e8f0; border-radius: 0.75rem;
}
.jq-clue-preview .jq-clue-text { font-size: clamp(1.15rem, 2.4vw, 1.8rem); }
.jq-clue-preview.jq-theme-house .jq-preview-hint { color: #64748b; }
.jq-editor-tools {
    position: absolute; top: 0.45rem; left: 0.45rem; z-index: 6;
    display: flex; gap: 0.3rem;
}
.jq-editor-tools button {
    width: 2.05rem; height: 2.05rem; border-radius: 0.45rem; border: 1px solid rgba(15, 23, 42, 0.18);
    background: rgba(255, 255, 255, 0.94); color: #1e293b; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.jq-editor-tools button:hover { background: #fff; border-color: #2563eb; color: #1d4ed8; }
.jq-editor-tools button.hidden { display: none; }
.jq-clue-preview.is-drop { box-shadow: inset 0 0 0 3px #e4c15a; }
.jq-add-layer { z-index: 96; }
.jq-add-panel { max-width: 28rem; }
.jq-drop-well {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
    min-height: 8.5rem; border: 2px dashed #cbd5e1; border-radius: 0.75rem; background: #f8fafc;
    color: #475569; cursor: pointer; text-align: center; padding: 1rem; font-size: 0.9rem;
}
.jq-drop-well i { font-size: 1.6rem; color: #2563eb; }
.jq-drop-well input {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.jq-drop-well.is-drop { border-color: #2563eb; background: #eff6ff; }
.jq-preview-hint {
    position: absolute; left: 0; right: 0; bottom: 0.45rem; z-index: 5;
    font-size: 0.68rem; letter-spacing: 0.02em; color: rgba(255,255,255,0.72); margin: 0;
}
#viewSession.is-live #sessionLobbyChrome { display: none; }
#viewSession.is-live #hostStage { min-height: calc(100vh - 5.5rem); }
#viewSession.is-live #hostLiveTopBar { display: none; }
body.lq-host-live #appRoot > .max-w-6xl {
    max-width: none;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.jq-host-fab {
    position: absolute; right: 1rem; bottom: 1rem; z-index: 25;
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.7rem 1rem; border-radius: 999px; border: 1px solid #e2e8f0;
    background: #fff; color: #1e293b; font-weight: 700; font-size: 0.85rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16); cursor: pointer;
}
.jq-host-fab:hover { background: #f8fafc; }
.jq-host-fab.hidden { display: none; }
.jq-fab-badge {
    background: #2563eb; color: #fff; font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
    padding: 0.15rem 0.45rem; border-radius: 999px;
}
.jq-host-scrim {
    position: absolute; inset: 0; z-index: 28;
    background: rgba(15, 23, 42, 0.28);
}
.jq-host-drawer {
    position: absolute; top: 0; right: 0; bottom: 0; z-index: 30;
    width: min(22.5rem, 100%);
    background: #fff; color: #0f172a;
    border-left: 1px solid #e2e8f0;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
    transform: translateX(105%);
    transition: transform 0.2s ease;
    display: flex; flex-direction: column;
}
.jq-host-drawer.is-open { transform: translateX(0); }
.jq-host-drawer-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem;
    padding: 1rem 1.1rem; border-bottom: 1px solid #e2e8f0;
}
.jq-host-drawer-body {
    overflow-y: auto; padding: 1rem 1.1rem 1.5rem;
    display: flex; flex-direction: column; gap: 0.9rem;
}
.jq-host-notes {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 0.85rem 1rem;
}
.jq-host-notes p.ans { font-weight: 700; font-size: 1.05rem; color: #0f172a; margin-top: 0.25rem; }
.jq-drawer-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.jq-drawer-actions .jq-btn { width: 100%; }
.jq-host-drawer .jq-btn-ghost { border-color: #e2e8f0; color: #334155; background: #fff; }
.jq-host-hint { font-size: 0.7rem; color: #64748b; line-height: 1.4; }
.jq-control-list { display: flex; flex-direction: column; gap: 0.35rem; }
.jq-control-list button {
    text-align: left; width: 100%; padding: 0.5rem 0.7rem; border-radius: 0.5rem;
    border: 1px solid #e2e8f0; background: #fff; font-size: 0.8rem; cursor: pointer;
}
.jq-control-list button.is-on { border-color: #2563eb; background: #eff6ff; }
.jq-reclaim {
    border: 1px solid #f59e0b; background: #fffbeb; border-radius: 0.65rem;
    padding: 0.7rem 0.75rem; margin-bottom: 0.75rem;
}
.jq-reclaim p { font-size: 0.85rem; color: #78350f; margin: 0 0 0.45rem; }
.jq-reclaim-actions { display: flex; gap: 0.4rem; margin-bottom: 0.55rem; }
.jq-reclaim-actions button { flex: 1; }
.jq-reseat {
    margin: 0.15rem 0 0.45rem; padding: 0.45rem 0.55rem 0.55rem;
    border: 1px dashed #cbd5e1; border-radius: 0.5rem; background: #f8fafc;
}
.jq-reseat label { display: block; font-size: 0.72rem; color: #475569; margin-bottom: 0.35rem; }
.jq-reseat select {
    width: 100%; font-size: 0.8rem; margin-bottom: 0.35rem;
    border: 1px solid #e2e8f0; border-radius: 0.4rem; padding: 0.3rem 0.4rem; background: #fff;
}
.jq-reseat button { width: 100%; }

#hostStage:fullscreen, #hostStage:-webkit-full-screen {
    width: 100%; height: 100%; background: #02030c; padding: 0.5rem;
}
#hostStage:fullscreen.jq-theme-house, #hostStage:-webkit-full-screen.jq-theme-house {
    background: #f8fafc;
}
.lq-host-projector #sessionLobbyChrome { display: none; }
.lq-host-projector #hostJeopardyPanel { width: 100%; }

/* Historic Jeopardy browser */
#btnHistoricGame, #btnHistoricGameEmpty {
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}
#btnHistoricGame:hover, #btnHistoricGameEmpty:hover { background: #f8fafc; border-color: #cbd5e1; }
.ja-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ja-search {
    flex: 1 1 16rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    background: #fff;
}
.ja-search:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb; }
#jaStatus { min-height: 1.25rem; }
.ja-crumb { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; font-size: 0.8rem; color: #64748b; margin-bottom: 0.85rem; }
.ja-crumb button { color: #2563eb; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; }
.ja-crumb-sep { opacity: 0.5; }
.ja-season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 0.75rem; }
.ja-season, .ja-game {
    text-align: left;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    width: 100%;
}
.ja-season:hover, .ja-game:hover { border-color: #2563eb; box-shadow: var(--shadow-sm); }
.ja-season.is-special { border-left: 3px solid #e4c15a; }
.ja-season-name { display: flex; justify-content: space-between; gap: 0.5rem; font-weight: 700; color: #0f172a; }
.ja-season-name em {
    font-style: normal; font-size: 0.65rem; letter-spacing: 0.04em; text-transform: uppercase;
    color: #1d4ed8; background: #eff6ff; border-radius: 999px; padding: 0.1rem 0.4rem;
}
.ja-season-dates, .ja-season-count, .ja-game-date, .ja-game-note { display: block; color: #64748b; font-size: 0.8rem; margin-top: 0.2rem; }
.ja-season-count { color: #334155; font-weight: 600; }
.ja-game-list { display: flex; flex-direction: column; gap: 0.45rem; }
.ja-game { display: grid; grid-template-columns: 6.5rem 7.5rem minmax(0, 1fr); gap: 0.35rem 0.75rem; align-items: baseline; }
.ja-game-show { font-weight: 700; color: #1d4ed8; }
.ja-game-who { color: #0f172a; font-size: 0.92rem; }
.ja-game-note { grid-column: 1 / -1; }
.ja-filter-row { margin-bottom: 0.75rem; }
.ja-filter-row input, .ja-empty {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
}
.ja-filter-row input { padding: 0.6rem 0.8rem; }
.ja-empty { padding: 1.5rem; text-align: center; color: #64748b; }
.ja-preview-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ja-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start; }
.ja-btn {
    border: 1px solid #e2e8f0; background: #fff; color: #1e293b;
    border-radius: 0.75rem; padding: 0.65rem 0.9rem; font-weight: 600; cursor: pointer;
}
.ja-btn:hover { border-color: #93c5fd; }
.ja-btn:disabled { opacity: 0.5; cursor: default; }
.ja-btn-run { background: #059669; color: #fff; border-color: #059669; }
.ja-btn-run:hover { background: #047857; }
.ja-btn-preview { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.ja-btn-preview:hover { background: #1e40af; }
.ja-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.75rem; }
.ja-tabs button {
    border: 1px solid #e2e8f0; background: #fff; border-radius: 0.6rem;
    padding: 0.4rem 0.75rem; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.ja-tabs button.is-on { background: #2563eb; color: #fff; border-color: #2563eb; }
.ja-source { margin-left: auto; font-size: 0.8rem; color: #2563eb; font-weight: 600; }
.ja-preview-stage.jq-stage { min-height: 0; padding: 0.75rem; border-radius: 0.5rem; }
.ja-preview-stage .jq-cell, .ja-preview-stage .jq-cat { min-height: 3.15rem; cursor: pointer; }
.jq-theme-classic .ja-preview-stage .jq-cell.is-open { cursor: pointer; }
.ja-preview-stage .jq-cell { font-size: clamp(0.95rem, 2vw, 1.45rem); }
.ja-preview-stage .jq-cell.is-picked { outline: 2px solid #e4c15a; outline-offset: -2px; z-index: 1; }
.ja-detail { margin-top: 0.85rem; border-radius: 0.5rem; }
.ja-detail-empty {
    background: #fff; border: 1px dashed #cbd5e1; color: #475569;
    padding: 1.25rem; border-radius: 0.75rem; margin-top: 0.85rem;
}
.ja-final-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.85rem; padding: 1.25rem; }
@media (max-width: 720px) {
    .ja-game { grid-template-columns: 5.5rem 1fr; }
    .ja-game-who { grid-column: 1 / -1; }
}

.reach-pack { display: flex; flex-direction: column; gap: 1rem; }
.reach-lead { color: #4b5563; font-size: 0.925rem; line-height: 1.55; max-width: 46rem; }
.reach-nav {
    display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
    position: sticky; top: 4.25rem; z-index: 30;
    background: #f9fafb; padding: 0.45rem 0;
}
.reach-nav button {
    border: 1px solid #e5e7eb; background: #fff; border-radius: 999px;
    padding: 0.35rem 0.85rem; font-size: 0.8rem; font-weight: 700; color: #374151;
}
.reach-nav button:hover { border-color: #7c3aed; color: #5b21b6; }
.reach-count { margin-left: auto; font-size: 0.8rem; font-weight: 700; color: #5b21b6; }
.reach-round { display: flex; flex-direction: column; gap: 0.75rem; scroll-margin-top: 7.5rem; }
.reach-round-head, .reach-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.reach-round-head h4 { font-size: 1.15rem; font-weight: 800; }
.reach-round-head span, .reach-block-head span { font-size: 0.75rem; font-weight: 700; color: #6b7280; }
.reach-block { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.85rem; padding: 1rem 1.1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.reach-block h5 { font-weight: 700; font-size: 1rem; }
.reach-hint { font-size: 0.8rem; color: #6b7280; margin: 0.35rem 0 0.75rem; line-height: 1.45; }
.reach-q { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.65rem; padding: 0.7rem 0; border-top: 1px solid #f3f4f6; }
.reach-q-num { font-weight: 800; color: #6d28d9; padding-top: 0.45rem; font-size: 0.85rem; }
.reach-q textarea, .reach-q input, .reach-topic input, .reach-topic select, .reach-clue textarea {
    width: 100%; border: 1px solid #e5e7eb; border-radius: 0.6rem; padding: 0.45rem 0.65rem;
    font-size: 0.9rem; background: #fff; color: #111827;
}
.reach-q textarea:focus, .reach-q input:focus, .reach-topic input:focus, .reach-topic select:focus, .reach-clue textarea:focus {
    outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.reach-q-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.45rem; }
.reach-assigned-meta { margin-bottom: 0.35rem; }
.reach-q-answers label, .reach-topic, .reach-clue {
    display: flex; flex-direction: column; gap: 0.25rem;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #6b7280;
}
.reach-topic, .reach-clue { margin-bottom: 0.55rem; text-transform: none; letter-spacing: 0; font-size: 0.75rem; }
.reach-seat-label { margin: 0.85rem 0 0.15rem; font-size: 0.75rem; font-weight: 800; color: #4b5563; letter-spacing: 0.04em; text-transform: uppercase; }
.reach-break { text-align: center; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #9ca3af; margin: 0.25rem 0; }
@media (max-width: 640px) {
    .reach-q, .reach-q-answers { grid-template-columns: 1fr; }
    .reach-count { margin-left: 0; width: 100%; }
}
.reach-import {
    background: #fff; border: 1px solid #ddd6fe; border-radius: 0.85rem;
    padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.reach-import textarea {
    width: 100%; min-height: 8rem; max-height: 16rem; font-family: ui-monospace, Consolas, monospace;
    font-size: 0.8rem; border: 1px solid #e5e7eb; border-radius: 0.6rem; padding: 0.65rem;
}
.reach-import-copy {
    display: inline-flex; align-items: center; gap: 0.45rem;
    margin: 0.1rem 0 0.35rem; background: #fff; color: #5b21b6;
    border: 1px solid #c4b5fd; border-radius: 0.65rem;
    padding: 0.55rem 0.9rem; font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.reach-import-copy:hover { background: #f5f3ff; }
.reach-import-note {
    font-size: 0.8rem; color: #6b7280; line-height: 1.45; margin: 0 0 0.75rem;
}
@media (max-width: 640px) {
    .reach-import-copy { width: 100%; justify-content: center; }
}
.reach-import-apply {
    display: block; width: 100%; margin-top: 0.75rem;
    background: #5b21b6; color: #fff; border: 0; border-radius: 0.65rem;
    padding: 0.75rem 1rem; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.reach-import-apply:hover { background: #4c1d95; }
.reach-import-close {
    display: block; margin: 0.65rem auto 0; background: #fff; color: #374151;
    border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.35rem 0.9rem;
    font-size: 0.8rem; cursor: pointer;
}

#hostReachPanel {
    background: #f8fafc;
    color: #0f172a;
    border-radius: 1rem;
    padding: 1.25rem 1.35rem 1.5rem;
}
.reach-scorebar { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.reach-scorebar > div { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.85rem; padding: 0.7rem 0.9rem; }
.reach-scorebar span { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #6b7280; }
.reach-scorebar strong { font-size: clamp(2rem, 5vw, 3.4rem); font-variant-numeric: tabular-nums; line-height: 1.05; }
.reach-scorebar > div:first-child strong { color: #1d4ed8; }
.reach-scorebar > div.is-live-side { outline: 3px solid #5b21b6; outline-offset: 0; }
.reach-scorebar > div.is-out { opacity: 0.4; }
.reach-rule {
    background: #ede9fe; border: 1px solid #c4b5fd; color: #4c1d95;
    border-radius: 0.75rem; padding: 0.75rem 0.9rem; font-weight: 700; line-height: 1.4; margin: 0 0 0.8rem;
}
.reach-award.is-pair { grid-template-columns: 1.4fr 1fr; }
.reach-scorebar > div:last-child strong { color: #6d28d9; }
.reach-kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #6d28d9; margin: 0.15rem 0; }
.reach-prompt { font-size: clamp(1.35rem, 3vw, 2.15rem); font-weight: 800; line-height: 1.25; margin: 0.35rem 0 0.55rem; white-space: pre-wrap; }
.reach-script { font-size: clamp(1.35rem, 2.5vw, 1.9rem); font-weight: 700; line-height: 1.45; max-width: 46rem; }
.reach-meta { color: #4b5563; font-size: 0.95rem; margin: 0 0 0.85rem; }
.reach-reader { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 0.85rem; padding: 0.9rem 1.1rem 1rem; margin-bottom: 0.85rem; }
.reach-reader p { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #92400e; margin: 0 0 0.3rem; }
.reach-reader strong { display: block; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.2; font-weight: 800; }
.reach-reader > span { display: block; color: #78350f; font-size: 1.05rem; margin-top: 0.4rem; }
.reach-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0.45rem 0 0.55rem; }
.reach-mode {
    border: 1px solid #d1d5db; background: #fff; color: #111827; border-radius: 0.75rem;
    padding: 0.75rem 0.5rem; font-weight: 800; cursor: pointer;
}
.reach-mode.is-on { background: #5b21b6; color: #fff; border-color: #5b21b6; }
.reach-mode-note { font-size: 0.85rem; color: #4b5563; margin: 0 0 0.85rem; line-height: 1.45; }
.reach-seat-grid,
.reach-lobby-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.reach-team-pit {
    background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
    border: 1px solid #e9d5ff;
    border-radius: 1rem;
    padding: 0.75rem 0.8rem 0.85rem;
    box-shadow: 0 1px 2px rgba(91, 33, 182, 0.06);
}
.reach-team-pit-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.45rem; }
.reach-team-count { font-size: 0.72rem; font-weight: 800; color: #7c3aed; white-space: nowrap; }
.reach-team-drop {
    min-height: 5.5rem;
    border: 2px dashed #d8b4fe;
    border-radius: 0.75rem;
    padding: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.72);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.reach-team-drop.is-empty { justify-content: center; }
.reach-team-drop.is-over {
    border-color: #7c3aed;
    background: #f5f3ff;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.25);
}
.reach-team-placeholder { margin: 0; text-align: center; font-size: 0.82rem; font-weight: 600; color: #9ca3af; }
.reach-roster-player {
    display: flex; align-items: center; gap: 0.45rem;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 0.65rem;
    padding: 0.45rem 0.5rem; cursor: grab; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.reach-roster-player.is-dragging { opacity: 0.55; cursor: grabbing; }
.reach-roster-grip { color: #9ca3af; font-size: 0.85rem; flex: none; }
.reach-roster-name { flex: 1; font-size: 0.9rem; font-weight: 700; min-width: 0; }
.reach-roster-remove {
    border: 0; background: #f3f4f6; color: #6b7280; width: 1.6rem; height: 1.6rem;
    border-radius: 0.45rem; font-size: 1.1rem; line-height: 1; font-weight: 700; cursor: pointer;
}
.reach-roster-remove:hover { background: #ede9fe; color: #5b21b6; }
.reach-bench.is-empty { min-height: 3rem; justify-content: center; display: flex; align-items: center; border: 1px dashed #e5e7eb; border-radius: 0.75rem; padding: 0.5rem; }
.reach-move-list { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.35rem; }
.reach-move-row { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; font-weight: 700; }
.reach-move-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.reach-move-btn {
    border: 1px solid #d1d5db; background: #fff; border-radius: 0.5rem; padding: 0.35rem 0.55rem;
    font-size: 0.78rem; font-weight: 800; cursor: pointer;
}
.reach-move-btn.is-quiet { color: #6b7280; }
.reach-move-on { font-size: 0.78rem; font-weight: 800; color: #5b21b6; padding: 0.35rem 0.2rem; }
.reach-join-panel { max-width: 26rem; }
.reach-join-name {
    font-size: 1.35rem; font-weight: 800; text-align: center; margin: 0 0 1rem;
    padding: 0.65rem 0.75rem; background: #f5f3ff; border-radius: 0.75rem; color: #4c1d95;
}
.reach-join-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.reach-join-team {
    border: 0; border-radius: 0.85rem; padding: 0.9rem 0.5rem; font-weight: 800; font-size: 1rem; cursor: pointer;
    color: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}
.reach-join-team.is-a { background: linear-gradient(180deg, #2563eb, #1d4ed8); }
.reach-join-team.is-b { background: linear-gradient(180deg, #7c3aed, #6d28d9); }
.reach-join-later {
    margin-top: 0.85rem; width: 100%; border: 0; background: transparent; color: #6b7280;
    font-size: 0.82rem; font-weight: 700; cursor: pointer; text-decoration: underline;
}
.reach-team label { display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280; }
.reach-team input {
    display: block; width: 100%; margin-top: 0.25rem; border: 1px solid #d1d5db; border-radius: 0.5rem;
    padding: 0.4rem 0.55rem; font-weight: 700; color: #111827; font-size: 0.95rem; background: #fff;
}
.reach-seat {
    display: flex; align-items: center; gap: 0.45rem; border: 1px dashed #d1d5db; border-radius: 0.65rem;
    padding: 0.4rem 0.5rem; margin-top: 0.35rem; background: #fff; min-height: 2.45rem;
}
.reach-seat.is-over { border-color: #7c3aed; background: #f5f3ff; }
.reach-seat-n {
    width: 1.4rem; height: 1.4rem; border-radius: 999px; background: #ede9fe; color: #5b21b6;
    font-size: 0.75rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.reach-seat-name { flex: 1; font-size: 0.9rem; font-weight: 700; }
.reach-seat-clear { border: 0; background: transparent; color: #6b7280; font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.reach-bench-label { margin: 0.95rem 0 0.35rem; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280; }
.reach-bench { display: flex; flex-direction: column; gap: 0.4rem; }
.reach-chip {
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 0.65rem; padding: 0.45rem 0.55rem; font-weight: 700; cursor: grab;
}
.reach-chip select, .reach-move select { margin-left: auto; font-size: 0.8rem; border: 1px solid #d1d5db; border-radius: 0.4rem; padding: 0.25rem 0.35rem; background: #fff; max-width: 100%; }
.reach-chip.is-seated { opacity: 0.75; }
.reach-chip em { font-style: normal; font-size: 0.75rem; color: #6d28d9; font-weight: 800; }
.reach-award, .reach-judge { display: grid; gap: 0.5rem; margin-top: 0.65rem; }
.reach-award { grid-template-columns: 1fr 1fr 1fr; }
.reach-judge { grid-template-columns: 1fr 1fr; }
.reach-award button, .reach-next, .reach-good, .reach-bad, .reach-quiet {
    border-radius: 0.75rem; padding: 0.85rem 0.55rem; font-weight: 800; cursor: pointer;
}
.reach-award button { background: #1d4ed8; color: #fff; border: 0; }
.reach-award button:last-child { background: #e5e7eb; color: #1f2937; }
.reach-next, .reach-good { background: #047857; color: #fff; border: 0; width: 100%; }
.reach-bad { background: #b91c1c; color: #fff; border: 0; }
.reach-quiet { background: #fff; color: #374151; border: 1px solid #d1d5db; width: 100%; margin-top: 0.45rem; }
.reach-menu .reach-award { grid-template-columns: 1fr 1fr; }
.reach-menu .reach-award button { font-size: 0.85rem; padding: 0.6rem 0.4rem; }
.reach-move { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; font-size: 0.85rem; font-weight: 700; }
.reach-done h2 { font-size: 2rem; font-weight: 800; margin: 0.15rem 0 0.35rem; }
.reach-done-lead { color: #4b5563; margin: 0 0 0.9rem; font-size: 1.05rem; }
.reach-done h3 { margin: 1rem 0 0.4rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; }
.reach-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; margin-top: 0.4rem; }
.reach-stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 0.65rem 0.7rem; }
.reach-stat span { display: block; font-size: 0.72rem; font-weight: 700; color: #6b7280; }
.reach-stat strong { font-size: 1.45rem; }
.reach-stat-table p { display: grid; grid-template-columns: 1.6fr 0.6fr 0.6fr; gap: 0.5rem; margin: 0; padding: 0.4rem 0; border-bottom: 1px solid #e5e7eb; align-items: baseline; }
.reach-stat-table strong { text-align: right; font-variant-numeric: tabular-nums; }
.reach-stat-table .is-head { color: #6b7280; font-size: 0.75rem; }
.reach-done .reach-next { margin-top: 1.1rem; }
.reach-phone { text-align: center; padding: 0.4rem 0 1.5rem; }
.reach-phone .reach-scorebar > div { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); }
.reach-phone .reach-scorebar span { color: rgba(255, 255, 255, 0.65); }
.reach-phone .reach-scorebar strong { color: #fff; }
.reach-you { font-size: 1.2rem; font-weight: 800; margin: 0.35rem 0; }
.reach-phone .reach-kicker { color: #ddd6fe; }
.reach-listen { font-size: 1.15rem; color: rgba(255, 255, 255, 0.82); margin-top: 1rem; }
.reach-phone .jq-phone-buzz { margin: 1.25rem auto 0; display: block; }
@media (max-width: 720px) {
    .reach-seat-grid, .reach-lobby-layout, .reach-award, .reach-modes { grid-template-columns: 1fr; }
    .reach-statgrid { grid-template-columns: 1fr 1fr; }
}

/* Class display window: fill whatever monitor it is on */
body.lq-audience-display {
    height: 100dvh;
    overflow: hidden;
    margin: 0;
}
body.lq-audience-display #appRoot {
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.lq-audience-display #appRoot > nav,
body.lq-audience-display #migrationBanner { display: none !important; }
body.lq-audience-display #appRoot > .max-w-6xl {
    flex: 1 1 auto;
    min-height: 0;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}
body.lq-audience-display #viewSession,
body.lq-audience-display #hostStage,
body.lq-audience-display #hostJeopardyPanel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0 !important;
    height: auto !important;
    width: 100%;
    margin: 0;
    padding: 0;
}
body.lq-audience-display .jq-stage {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0.22rem !important;
    box-shadow: none !important;
    border-radius: 0;
    overflow: hidden;
}
body.lq-audience-display .jq-stage > .mb-4 {
    flex: 0 0 auto;
    margin-bottom: 0.28rem !important;
}
body.lq-audience-display .jq-board,
body.lq-audience-display .jq-clue-screen {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}
body.lq-audience-display .jq-board {
    grid-template-rows: minmax(0, 0.76fr) repeat(5, minmax(0, 1fr));
    align-content: stretch;
}
body.lq-audience-display .jq-cat,
body.lq-audience-display .jq-cell,
body.lq-audience-display .jq-theme-classic .jq-cat,
body.lq-audience-display .jq-theme-classic .jq-cell,
body.lq-audience-display .jq-theme-house .jq-cat,
body.lq-audience-display .jq-theme-house .jq-cell {
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
body.lq-audience-display .jq-theme-classic .jq-cat { font-size: clamp(0.62rem, 1.7vh, 1.35rem); }
body.lq-audience-display .jq-theme-classic .jq-cell { font-size: clamp(1rem, 5.2vh, 3.6rem); }
body.lq-audience-display .jq-theme-house .jq-cat { font-size: clamp(0.62rem, 1.5vh, 1.05rem); }
body.lq-audience-display .jq-theme-house .jq-cell { font-size: clamp(0.95rem, 4.4vh, 2.8rem); }
body.lq-audience-display .jq-clue-screen {
    width: 100%;
    padding: 0.45rem 1rem 0.35rem;
    overflow: hidden;
}
body.lq-audience-display .jq-clue-text,
body.lq-audience-display .jq-headline {
    max-width: min(94vw, 72rem);
    overflow-wrap: anywhere;
    word-break: break-word;
}
body.lq-audience-display .jq-clue-text { font-size: clamp(1.2rem, 4.5vh, 3.3rem); }
body.lq-audience-display .jq-headline { font-size: clamp(1.4rem, 5vh, 3.8rem); }
body.lq-audience-display .jq-clue-text.is-placed {
    max-width: none;
    overflow: hidden;
    overflow-wrap: anywhere;
}
body.lq-audience-display .jq-clue-stage { min-height: 0; height: 100%; }
body.lq-audience-display .jq-score-strip {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    margin-top: 0.28rem !important;
}
body.lq-audience-display .jq-score-chip { flex: 1 1 0; min-width: 0; }
body.lq-audience-display .jq-chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Main screen, Fill screen, no class window: same fill, with room for presenter buttons */
body:not(.lq-audience-display) #hostStage:fullscreen,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen {
    display: flex;
    flex-direction: column;
    padding: 0;
    box-sizing: border-box;
}
body:not(.lq-audience-display) #hostStage:fullscreen #hostJeopardyPanel,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen #hostJeopardyPanel {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}
body:not(.lq-audience-display) #hostStage:fullscreen .jq-stage,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-stage {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0.22rem 0.22rem 4.25rem !important;
    box-shadow: none !important;
    border-radius: 0;
    overflow: hidden;
}
body:not(.lq-audience-display) #hostStage:fullscreen .jq-stage > .mb-4,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-stage > .mb-4 {
    flex: 0 0 auto;
    margin-bottom: 0.28rem !important;
}
body:not(.lq-audience-display) #hostStage:fullscreen .jq-board,
body:not(.lq-audience-display) #hostStage:fullscreen .jq-clue-screen,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-board,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-clue-screen {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}
body:not(.lq-audience-display) #hostStage:fullscreen .jq-board,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-board {
    grid-template-rows: minmax(0, 0.76fr) repeat(5, minmax(0, 1fr));
    align-content: stretch;
}
body:not(.lq-audience-display) #hostStage:fullscreen .jq-cat,
body:not(.lq-audience-display) #hostStage:fullscreen .jq-cell,
body:not(.lq-audience-display) #hostStage:fullscreen .jq-theme-classic .jq-cat,
body:not(.lq-audience-display) #hostStage:fullscreen .jq-theme-classic .jq-cell,
body:not(.lq-audience-display) #hostStage:fullscreen .jq-theme-house .jq-cat,
body:not(.lq-audience-display) #hostStage:fullscreen .jq-theme-house .jq-cell,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-cat,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-cell,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-theme-classic .jq-cat,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-theme-classic .jq-cell,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-theme-house .jq-cat,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-theme-house .jq-cell {
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
body:not(.lq-audience-display) #hostStage:fullscreen .jq-theme-classic .jq-cat,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-theme-classic .jq-cat { font-size: clamp(0.62rem, 1.7vh, 1.35rem); }
body:not(.lq-audience-display) #hostStage:fullscreen .jq-theme-classic .jq-cell,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-theme-classic .jq-cell { font-size: clamp(1rem, 4.6vh, 3.4rem); }
body:not(.lq-audience-display) #hostStage:fullscreen .jq-theme-house .jq-cat,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-theme-house .jq-cat { font-size: clamp(0.62rem, 1.5vh, 1.05rem); }
body:not(.lq-audience-display) #hostStage:fullscreen .jq-theme-house .jq-cell,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-theme-house .jq-cell { font-size: clamp(0.95rem, 4vh, 2.6rem); }
body:not(.lq-audience-display) #hostStage:fullscreen .jq-clue-screen,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-clue-screen {
    width: 100%;
    padding: 0.45rem 1rem 0.35rem;
    overflow: hidden;
}
body:not(.lq-audience-display) #hostStage:fullscreen .jq-clue-text,
body:not(.lq-audience-display) #hostStage:fullscreen .jq-headline,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-clue-text,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-headline {
    max-width: min(94vw, 72rem);
    overflow-wrap: anywhere;
    word-break: break-word;
}
body:not(.lq-audience-display) #hostStage:fullscreen .jq-clue-text,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-clue-text { font-size: clamp(1.2rem, 4.2vh, 3.2rem); }
body:not(.lq-audience-display) #hostStage:fullscreen .jq-headline,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-headline { font-size: clamp(1.4rem, 4.6vh, 3.6rem); }
body:not(.lq-audience-display) #hostStage:fullscreen .jq-clue-text.is-placed,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-clue-text.is-placed {
    max-width: none;
    overflow: hidden;
    overflow-wrap: anywhere;
}
body:not(.lq-audience-display) #hostStage:fullscreen .jq-clue-stage,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-clue-stage { min-height: 0; height: 100%; }
body:not(.lq-audience-display) #hostStage:fullscreen .jq-stage-actions,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-stage-actions {
    flex: 0 0 auto;
    margin: 0.35rem 0 0.15rem;
}
body:not(.lq-audience-display) #hostStage:fullscreen .jq-score-strip,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-score-strip {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    margin-top: 0.2rem !important;
}
body:not(.lq-audience-display) #hostStage:fullscreen .jq-score-chip,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-score-chip { flex: 1 1 0; min-width: 0; }
body:not(.lq-audience-display) #hostStage:fullscreen .jq-chip-name,
body:not(.lq-audience-display) #hostStage:-webkit-full-screen .jq-chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Presenter answer sheets */
body.lq-print-open { overflow: hidden; }
.jq-print-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 1.25rem;
}
.jq-print-modal {
    width: min(1100px, 100%);
    background: #fff;
    color: #0f172a;
    border-radius: 0.9rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.jq-print-head, .jq-print-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #e2e8f0;
}
.jq-print-head h2 { margin: 0; font-size: 1.15rem; }
.jq-print-head button {
    border: 0; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #475569;
}
.jq-print-foot { border-bottom: 0; border-top: 1px solid #e2e8f0; justify-content: flex-end; }
.jq-print-foot button {
    border-radius: 0.65rem;
    padding: 0.55rem 0.95rem;
    font-weight: 700;
    cursor: pointer;
}
.jq-print-foot [data-close] { background: #fff; border: 1px solid #cbd5e1; color: #334155; }
.jq-print-foot [data-print] { background: #1d4ed8; border: 0; color: #fff; }
.jq-print-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    min-height: 0;
    flex: 1;
    overflow: hidden;
}
.jq-print-side {
    padding: 1rem 1.05rem;
    border-right: 1px solid #e2e8f0;
    overflow: auto;
}
.jq-print-lead { margin: 0 0 0.9rem; font-size: 0.84rem; line-height: 1.45; color: #475569; }
.jq-print-opt {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.45rem 0.2rem;
    cursor: pointer;
}
.jq-print-opt strong { display: block; }
.jq-print-opt em { display: block; font-style: normal; font-size: 0.75rem; color: #64748b; margin-top: 0.1rem; }
.jq-print-pages { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid #e2e8f0; }
.jq-print-label { margin: 0 0 0.4rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; }
.jq-print-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.jq-print-chip {
    min-width: 1.8rem; height: 1.8rem; border: 1px solid #cbd5e1; border-radius: 0.35rem;
    background: #fff; font-weight: 700; cursor: pointer;
}
.jq-print-chip.is-on { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.jq-print-meta { margin: 0.55rem 0 0; font-size: 0.75rem; color: #64748b; }
.jq-print-preview {
    background: #e5e7eb;
    overflow: auto;
    padding: 1.1rem 1rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}
.jq-print-figure { margin: 0; width: 100%; display: flex; flex-direction: column; align-items: center; }
.jq-print-figure.is-skipped { opacity: 0.38; }
.jq-print-figure figcaption { margin-top: 0.35rem; font-size: 0.75rem; color: #475569; }
.jq-print-sizer { position: relative; margin: 0 auto; }
.jq-print-sizer .jq-sheet-page {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: top left;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}
.jq-print-empty { margin: 2rem 1rem; color: #64748b; }
@media (max-width: 800px) {
    .jq-print-layout { grid-template-columns: 1fr; }
    .jq-print-side { border-right: 0; border-bottom: 1px solid #e2e8f0; }
}

