:root {
    --bg: #f3f7f8;
    --card: #ffffff;
    --text: #163039;
    --muted: #60747a;
    --line: #d6e1e4;
    --accent: #0e6d78;
    --accent-dark: #0a5660;
    --accent-soft: #e1f1f2;
    --good: #226b47;
    --good-bg: #e7f5ed;
    --warn: #8a5a08;
    --warn-bg: #fff5dd;
    --bad: #9a3434;
    --bad-bg: #fdecec;
    --shadow: 0 16px 40px rgba(31, 60, 69, .09);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #edf5f6 0, var(--bg) 260px);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.site-header {
    min-height: 76px;
    padding: 14px clamp(18px, 4vw, 48px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid rgba(214,225,228,.8);
    background: rgba(255,255,255,.84);
    backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 13px;
    background: var(--text); color: white; font-size: 26px; font-weight: 700;
}
.brand strong, .brand span { display: block; }
.brand strong { font-size: 1rem; }
.brand div > span { color: var(--muted); font-size: .82rem; }
.student-badge {
    padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
    background: white; color: var(--muted); font-size: .86rem;
}

.page-shell { width: min(1180px, calc(100% - 32px)); margin: 40px auto 70px; }
.start-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 34px; align-items: start; }
.intro-panel { padding: 18px 4px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 800; font-size: .74rem; letter-spacing: .11em; }
h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.03; max-width: 820px; letter-spacing: -.045em; }
.intro-panel > p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 1.04rem; }
.feature-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }
.feature-row span { padding: 8px 11px; border-radius: 999px; background: white; border: 1px solid var(--line); font-size: .84rem; }
.notice { max-width: 760px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; color: #37545b; }

.start-card, .video-card, .side-panel, .complete-card, .teacher-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.start-card { padding: 24px; }
.start-card h2 { margin-top: 0; }
label { display: grid; gap: 7px; margin: 16px 0; font-weight: 700; font-size: .9rem; }
input, textarea, select {
    width: 100%; border: 1px solid #bdcdd1; border-radius: 11px; padding: 12px 13px;
    background: white; color: var(--text); outline: none; min-height: 46px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,109,120,.12); }

.primary-button, .secondary-button {
    min-height: 44px; padding: 10px 16px; border-radius: 11px; border: 0; font-weight: 800;
}
.primary-button { background: var(--accent); color: white; }
.primary-button:hover { background: var(--accent-dark); }
.secondary-button { background: white; color: var(--text); border: 1px solid var(--line); }
.primary-button:disabled, .secondary-button:disabled { opacity: .55; cursor: not-allowed; }
.form-error { min-height: 1.2em; color: var(--bad); font-size: .85rem; margin: 8px 0 0; }

.lesson-head {
    display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 18px;
}
.lesson-head strong { display: block; }
.progress-track { height: 9px; background: #dde8ea; border-radius: 999px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }
.save-status { font-size: .8rem; color: var(--muted); white-space: nowrap; }

.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.video-card { overflow: hidden; }
.video-wrap { aspect-ratio: 16 / 9; background: #0b1518; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-meta { display: flex; justify-content: space-between; gap: 16px; padding: 12px 15px; color: var(--muted); font-size: .82rem; }
.video-meta span:first-child { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.side-panel { padding: 18px; box-shadow: none; }
.side-section + .side-section { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.compact-steps { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: .88rem; }
.compact-steps li + li { margin-top: 8px; }
.checkpoint-dots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.checkpoint-dot {
    aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line); background: #f7fafb;
    display: grid; place-items: center; color: var(--muted); font-size: .76rem; font-weight: 800;
}
.checkpoint-dot.done { background: var(--accent-soft); border-color: #b9dcdf; color: var(--accent-dark); }
.checkpoint-dot.current { outline: 3px solid rgba(14,109,120,.12); border-color: var(--accent); }

.question-overlay {
    position: fixed; inset: 0; z-index: 1000; padding: 24px;
    display: grid; place-items: center; background: rgba(8, 26, 31, .76);
}
.question-modal {
    width: min(720px, 100%); max-height: calc(100vh - 48px); overflow: auto;
    border-radius: 20px; background: white; padding: clamp(20px, 4vw, 34px); box-shadow: 0 30px 80px rgba(0,0,0,.24);
}
.question-topline { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.question-category { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.question-modal h2 { margin: 12px 0 20px; font-size: clamp(1.3rem, 3vw, 1.85rem); line-height: 1.25; }
.option-list { display: grid; gap: 10px; }
.option {
    display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start;
    margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; cursor: pointer;
}
.option:hover { border-color: #a9bec3; }
.option input { width: 18px; min-height: 18px; height: 18px; margin: 3px 0 0; }
.feedback-box { margin-top: 16px; padding: 14px 15px; border-radius: 12px; font-size: .92rem; }
.feedback-box.good { background: var(--good-bg); color: var(--good); }
.feedback-box.warn { background: var(--warn-bg); color: var(--warn); }
.feedback-box.bad { background: var(--bad-bg); color: var(--bad); }
.question-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.complete-card { max-width: 700px; margin: 70px auto; padding: 38px; text-align: center; }
.complete-icon { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--good-bg); color: var(--good); font-size: 30px; font-weight: 900; }
.complete-card h2 { margin: 0 0 10px; font-size: 2rem; }
.complete-card p:last-child { color: var(--muted); }

/* Leerkracht */
.teacher-shell { width: min(1280px, calc(100% - 32px)); margin: 28px auto 70px; }
.teacher-toolbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.teacher-toolbar h1 { font-size: 2rem; letter-spacing: -.03em; }
.teacher-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.teacher-card { padding: 20px; box-shadow: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.stat strong { display: block; font-size: 1.65rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .8rem; }
.filter-row { display: grid; grid-template-columns: 1.2fr .7fr .7fr auto; gap: 10px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 11px 10px; vertical-align: top; }
th { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; }
td { font-size: .88rem; }
.status-pill { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.status-pill.done { background: var(--good-bg); color: var(--good); }
.status-pill.started { background: var(--warn-bg); color: var(--warn); }
.answer-details { margin: 8px 0 0; padding: 12px; background: #f8fbfb; border: 1px solid var(--line); border-radius: 10px; }
.answer-details summary { cursor: pointer; font-weight: 800; }
.answer-row { padding: 10px 0; border-top: 1px solid var(--line); }
.answer-row:first-of-type { border-top: 0; }
.answer-q { font-weight: 800; }
.answer-value { white-space: pre-wrap; color: #3f5960; margin-top: 4px; }
.muted { color: var(--muted); }
.login-card { max-width: 430px; margin: 80px auto; }

@media (max-width: 900px) {
    .start-grid, .video-layout { grid-template-columns: 1fr; }
    .side-panel { order: 2; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .site-header { align-items: flex-start; }
    .brand div > span { display: none; }
    .page-shell { width: min(100% - 20px, 1180px); margin-top: 22px; }
    .lesson-head { grid-template-columns: 1fr auto; }
    .lesson-head .progress-track { grid-column: 1 / -1; grid-row: 2; }
    .video-meta { display: grid; gap: 3px; }
    .question-overlay { padding: 10px; }
    .question-modal { max-height: calc(100vh - 20px); border-radius: 15px; }
    .question-actions > * { flex: 1 1 100%; }
    .stats-grid, .filter-row { grid-template-columns: 1fr; }
}

/* v2 – maximale videoruimte + kijklogs */
.lesson-active .site-header {
    min-height: 58px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.lesson-active .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 22px; }
.lesson-active .brand div > span { display: none; }
.lesson-active .page-shell {
    width: min(1600px, calc(100% - 20px));
    margin: 12px auto 42px;
}
.lesson-active .lesson-head { margin-bottom: 10px; }
.lesson-progress-label .eyebrow { margin-bottom: 2px; }

.video-shell {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.video-stage {
    width: 100%;
    max-width: 1600px;
    min-width: 0;
}
.video-stage .video-card {
    width: 100%;
    border-radius: 15px;
}
.video-stage .video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
}
.video-stage .video-meta {
    min-height: 42px;
    padding: 9px 13px;
}

.lesson-footer {
    width: min(1160px, 100%);
    margin: 12px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
    gap: 18px;
    align-items: end;
}
.lesson-footer .eyebrow { margin-bottom: 6px; }
.lesson-footer .checkpoint-dots {
    display: grid;
    grid-template-columns: repeat(12, minmax(32px, 1fr));
    gap: 7px;
    margin: 0;
}
.lesson-footer .checkpoint-dot {
    aspect-ratio: auto;
    min-height: 34px;
    border-radius: 8px;
}
.watch-note {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.45;
}

/* Kijklog in leerkrachtoverzicht */
.watch-cell strong { font-variant-numeric: tabular-nums; }
.watch-cell .muted { white-space: nowrap; }
.coverage-meter {
    position: relative;
    height: 10px;
    margin: 6px 0 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #e3ecee;
}
.coverage-meter > span {
    position: absolute;
    top: 0;
    bottom: 0;
    min-width: 2px;
    background: var(--accent);
}
.watch-log-box {
    margin: 10px 0 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
}
.watch-log-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
}
.watch-log-grid div {
    min-width: 0;
    padding-right: 10px;
    border-right: 1px solid var(--line);
}
.watch-log-grid div:last-child { border-right: 0; }
.watch-log-grid strong { display: block; font-size: 1rem; font-variant-numeric: tabular-nums; }
.watch-log-grid span { color: var(--muted); font-size: .74rem; }
.speed-list { margin-top: 8px; color: var(--muted); font-size: .76rem; }

@media (max-width: 900px) {
    .lesson-footer { grid-template-columns: 1fr; align-items: start; }
    .lesson-footer .checkpoint-dots { grid-template-columns: repeat(6, 1fr); }
    .watch-log-grid { grid-template-columns: repeat(2, 1fr); }
    .watch-log-grid div:nth-child(2) { border-right: 0; }
}

@media (max-width: 600px) {
    .lesson-active .site-header { min-height: 52px; }
    .lesson-active .page-shell { width: min(100% - 10px, 1600px); margin-top: 7px; }
    .lesson-active .lesson-head { gap: 8px; margin-bottom: 7px; }
    .video-stage .video-card { border-radius: 10px; }
    .video-stage .video-meta { font-size: .74rem; padding: 7px 9px; }
    .lesson-footer { margin-top: 9px; gap: 10px; }
    .lesson-footer .checkpoint-dots { grid-template-columns: repeat(6, 1fr); gap: 5px; }
    .watch-log-grid { grid-template-columns: 1fr; }
    .watch-log-grid div { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
    .watch-log-grid div:last-child { border-bottom: 0; }
}
.stats-grid.stats-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.results-table-v2 { min-width: 1320px; }
.teacher-toolbar > div:first-child { max-width: 760px; }
.teacher-toolbar > div:first-child > .muted { margin: 6px 0 0; font-size: .85rem; }
@media (max-width: 1050px) {
    .stats-grid.stats-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .stats-grid.stats-grid-5 { grid-template-columns: 1fr 1fr; }
}

/* v3 – sessiebeheer, opslagstatus en interactieve videotijdlijn */
.student-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}
.header-button {
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
    color: var(--text);
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
}
.header-button:hover { border-color: #a9bec3; }
.save-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: white;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}
.save-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
}
.save-status.is-saving { color: var(--warn); border-color: #ecd79f; background: var(--warn-bg); }
.save-status.is-saving::before { background: var(--warn); }
.save-status.is-saved { color: var(--good); border-color: #bfdecf; background: var(--good-bg); }
.save-status.is-saved::before { background: var(--good); }
.save-status.is-error { color: var(--bad); border-color: #efc4c4; background: var(--bad-bg); }
.save-status.is-error::before { background: var(--bad); }

.lesson-head {
    grid-template-columns: auto minmax(280px, 1fr);
    align-items: end;
}
.timeline-block { min-width: 0; }
.watch-timeline {
    position: relative;
    height: 18px;
    overflow: visible;
    border: 1px solid #c9d7da;
    border-radius: 999px;
    background: #e5edef;
}
.timeline-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}
.timeline-segment {
    position: absolute;
    top: 0;
    bottom: 0;
    min-width: 2px;
}
.timeline-segment.watched { background: var(--accent); }
.timeline-segment.skipped {
    background: repeating-linear-gradient(
        135deg,
        #dba24f 0,
        #dba24f 5px,
        #f4d7a9 5px,
        #f4d7a9 9px
    );
}
.question-layer { overflow: visible; }
.timeline-question-marker {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background: #789097;
    box-shadow: 0 0 0 1px rgba(22,48,57,.2);
    transform: translate(-50%, -50%);
}
.timeline-question-marker.answered {
    width: 12px;
    height: 12px;
    background: var(--good);
    box-shadow: 0 0 0 2px rgba(34,107,71,.18);
}
.timeline-question-marker.active {
    box-shadow: 0 0 0 4px rgba(14,109,120,.18);
}
.timeline-playhead {
    position: absolute;
    z-index: 5;
    top: -4px;
    bottom: -4px;
    width: 2px;
    border-radius: 2px;
    background: #102f37;
    transform: translateX(-1px);
    pointer-events: none;
}
.timeline-playhead::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #102f37;
    transform: translate(-50%, -50%);
}
.timeline-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
    color: var(--muted);
    font-size: .7rem;
}
.timeline-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-swatch {
    display: inline-block;
    width: 18px;
    height: 7px;
    border-radius: 999px;
    background: #e5edef;
    border: 1px solid #cfdbde;
}
.legend-swatch.watched { background: var(--accent); border-color: var(--accent); }
.legend-swatch.skipped {
    border-color: #dba24f;
    background: repeating-linear-gradient(135deg,#dba24f 0,#dba24f 4px,#f4d7a9 4px,#f4d7a9 7px);
}
.legend-marker {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--good);
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(34,107,71,.3);
}
.complete-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.status-pill.closed { background: #edf0f1; color: #51656b; }

@media (max-width: 900px) {
    .site-header { align-items: flex-start; }
    .student-controls { max-width: 64%; }
    .lesson-head { grid-template-columns: 1fr; align-items: stretch; }
}

@media (max-width: 650px) {
    .site-header { padding-left: 10px; padding-right: 10px; }
    .student-controls { width: 100%; max-width: none; justify-content: flex-start; }
    .student-badge { order: -1; }
    .save-status { order: -1; }
    .header-button { flex: 1 1 auto; }
    .lesson-active .site-header { flex-wrap: wrap; }
    .timeline-legend { gap: 7px 10px; }
}
.stats-grid.stats-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1150px) { .stats-grid.stats-grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .stats-grid.stats-grid-6 { grid-template-columns: 1fr 1fr; } }


/* v3.4 – hoogtebewuste leerlingweergave voor 1920×1080-schoollaptops */
@media (min-width: 901px) and (max-height: 920px) {
    .lesson-active .site-header {
        min-height: 48px;
        padding: 5px clamp(14px, 2vw, 28px);
    }
    .lesson-active .brand { gap: 9px; }
    .lesson-active .brand-mark {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        font-size: 19px;
    }
    .lesson-active .brand strong { font-size: .9rem; }
    .lesson-active .student-badge {
        padding: 5px 9px;
        font-size: .76rem;
    }
    .lesson-active .header-button {
        min-height: 30px;
        padding: 4px 8px;
        font-size: .73rem;
    }
    .lesson-active .save-status {
        min-height: 27px;
        padding: 3px 8px;
        font-size: .71rem;
    }
    .lesson-active .page-shell {
        width: min(1680px, calc(100% - 16px));
        margin: 6px auto 10px;
    }
    .lesson-active .lesson-head {
        gap: 10px;
        margin-bottom: 6px;
    }
    .lesson-active .lesson-progress-label .eyebrow { display: none; }
    .lesson-active .lesson-progress-label strong { font-size: .82rem; white-space: nowrap; }
    .lesson-active .watch-timeline { height: 15px; }
    .lesson-active .timeline-legend {
        gap: 8px;
        margin-top: 3px;
        font-size: .64rem;
        line-height: 1.1;
    }
    .lesson-active .video-stage .video-card { border-radius: 11px; }
    .lesson-active .video-stage .video-meta {
        min-height: 32px;
        padding: 5px 9px;
        gap: 10px;
        font-size: .69rem;
        line-height: 1.25;
    }
    .lesson-active .lesson-footer {
        margin-top: 6px;
        gap: 10px;
        align-items: center;
    }
    .lesson-active .lesson-footer .eyebrow { display: none; }
    .lesson-active .lesson-footer .checkpoint-dots { gap: 5px; }
    .lesson-active .lesson-footer .checkpoint-dot {
        min-height: 26px;
        border-radius: 6px;
        font-size: .7rem;
    }
    .lesson-active .watch-note {
        font-size: .68rem;
        line-height: 1.25;
    }
}

@media (min-width: 901px) and (max-height: 760px) {
    .lesson-active .site-header { min-height: 44px; }
    .lesson-active .timeline-legend { display: none; }
    .lesson-active .video-stage .video-meta { font-size: .65rem; }
    .lesson-active .lesson-footer .checkpoint-dot { min-height: 23px; }
    .lesson-active .watch-note { font-size: .63rem; }
}

/* v3.5 – tijdelijk terugkijken zonder een checkpoint over te slaan */
.lesson-footer .checkpoint-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.lesson-footer .checkpoint-dot {
    flex: 0 0 30px;
    width: 30px;
    min-height: 28px;
}
.pending-question-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    margin: 0 auto 8px;
    border: 1px solid #b9dcdf;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent-dark);
}
.pending-question-bar > div:first-child { min-width: 0; }
.pending-question-bar strong { display: block; font-size: .84rem; }
.pending-question-bar span { display: block; font-size: .75rem; }
.pending-question-actions { display: flex; gap: 8px; flex-shrink: 0; }
.pending-question-actions button { min-height: 34px; padding: 7px 11px; font-size: .78rem; }
.question-topline { align-items: center; flex-wrap: wrap; gap: 9px; }
.question-close {
    margin-left: auto;
    background: #f3f7f8;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 9px;
    min-height: 34px;
    font-size: .76rem;
    font-weight: 700;
}
.question-close span { margin-left: 8px; font-size: 1.15rem; }
.question-close:hover { border-color: var(--accent); }
.question-close:disabled { opacity: .55; cursor: wait; }
.question-context { margin: 14px 0 0; color: var(--accent-dark); font-size: .78rem; line-height: 1.4; }
.question-instructions { margin: -8px 0 18px; color: var(--muted); font-size: .82rem; }
.draft-status { margin: 10px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.question-modal { max-height: calc(100dvh - 32px); }
.question-actions { position: sticky; bottom: 0; background: white; padding: 10px 0 4px; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option:has(input:disabled) { cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
#questionTitle:focus { outline: none; }
@media (max-height: 950px) and (min-width: 901px) {
    .pending-question-bar { padding: 5px 9px; margin-bottom: 6px; }
    .pending-question-bar strong { font-size: .76rem; }
    .pending-question-bar span { font-size: .69rem; }
    .pending-question-actions button { min-height: 30px; padding: 5px 9px; font-size: .73rem; }
    .question-modal { padding: 22px; }
    .question-modal h2 { font-size: 1.35rem; margin-bottom: 16px; }
    .option { padding: 10px; font-size: .87rem; }
    .option-list { gap: 7px; }
}
@media (max-width: 700px) {
    .pending-question-bar { align-items: stretch; flex-direction: column; gap: 7px; }
    .pending-question-actions { flex-wrap: wrap; }
    .pending-question-actions button { flex: 1; }
    .question-close { margin-left: 0; }
    .question-actions { position: static; }
}
