:root {
    --bg: #f4f6fb;
    --card: #ffffff;
    --text: #172033;
    --muted: #67738a;
    --accent: #315efb;
    --accent-soft: #e8edff;
    --border: #dfe4ee;
    --danger: #b42318;
    --success: #157347;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}
a { color: var(--accent); }
.container { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }
.container.wide { width: min(1500px, calc(100% - 32px)); }
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 28px rgba(23,32,51,.06);
    margin-bottom: 18px;
}
h1,h2,h3 { margin-top: 0; }
.muted { color: var(--muted); }
.btn {
    display: inline-block;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.btn.secondary { background: #e9edf6; color: var(--text); }
.btn.danger { background: var(--danger); }
.btn.success { background: var(--success); }
.btn:disabled { opacity: .55; cursor: wait; }
.answers { display: grid; gap: 12px; }
.answer-btn {
    width: 100%; text-align: left; border: 1px solid var(--border); background: white;
    padding: 16px; border-radius: 14px; cursor: pointer; font-size: 1rem;
}
.answer-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.answer-letter { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #eef1f6; margin-right: 10px; font-weight: 800; }
.progress { height: 10px; background: #e7ebf3; border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); transition: width .25s ease; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.projector-head { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.qr { width: 190px; height: 190px; border-radius: 10px; background: white; }
.stat-big { font-size: 2.2rem; font-weight: 850; }
.bar-row { display: grid; grid-template-columns: 28px 1fr 55px; gap: 8px; align-items: center; margin: 9px 0; }
.bar-track { height: 18px; border-radius: 999px; background: #edf0f5; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); min-width: 0; transition: width .35s ease; }
.correct .bar-fill { background: var(--success); }
.question-card h3 { font-size: 1rem; margin-bottom: 13px; }
.tag { display: inline-block; border-radius: 999px; padding: 4px 9px; font-size: .8rem; background: #eef1f6; color: var(--muted); }
.tag.open { color: var(--success); background: #e9f7ef; }
.tag.closed { color: var(--danger); background: #ffebe9; }
.notice { padding: 14px 16px; border-radius: 12px; background: #fff6d8; border: 1px solid #f4dc86; }
label { display:block; font-weight: 700; margin: 10px 0 6px; }
input[type=text], input[type=password], textarea, select {
    width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; background:white;
}
textarea { min-height: 80px; resize: vertical; }
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions { display:flex; flex-wrap:wrap; gap: 10px; align-items:center; }
.error { color: var(--danger); }
.success-text { color: var(--success); }
@media (max-width: 800px) {
    .grid, .form-grid, .projector-head { grid-template-columns: 1fr; }
    .qr { width: 160px; height: 160px; }
}
@media (min-width: 1200px) {
    .projector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
