/* ePhuTho English — giao diện (không dùng style nội tuyến vì CSP chặt) */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f2fa;
  --text: #1b1f33;
  --muted: #5d6480;
  --line: #e2e5f1;
  --primary: #4338ca;
  --primary-ink: #ffffff;
  --primary-soft: #e8e7fb;
  --good: #0f8a5f;
  --good-soft: #def5ec;
  --ok: #b7791f;
  --ok-soft: #fdf1d8;
  --bad: #c2352f;
  --bad-soft: #fde6e4;
  --shadow: 0 1px 2px rgba(20, 24, 60, .06), 0 6px 20px rgba(20, 24, 60, .06);
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1120;
    --surface: #181b30;
    --surface-2: #20243f;
    --text: #e9ebf7;
    --muted: #9aa1c2;
    --line: #2b3050;
    --primary: #8b86f5;
    --primary-ink: #11122a;
    --primary-soft: #26285a;
    --good: #4cd9a2;
    --good-soft: #12362c;
    --ok: #f0b955;
    --ok-soft: #3a2f14;
    --bad: #ff8a84;
    --bad-soft: #3d1c1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
a { color: var(--primary); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.good { color: var(--good); }
.error { color: var(--bad); }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* header */
.topbar { background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(20, 24, 60, .02), 0 6px 18px rgba(20, 24, 60, .05); position: sticky; top: 0; z-index: 20; }
.topbar::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, #4338ca, #7c5ce6 55%, #0ea5a4); }
.topbar__in { max-width: 1240px; display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: -.01em; flex: none; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, #4338ca, #0ea5a4); color: #fff; font-weight: 800; box-shadow: 0 4px 10px rgba(67, 56, 202, .3); }
.brand__mark--lg { width: 52px; height: 52px; font-size: 1.5rem; border-radius: 14px; }
.topbar__menu { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; justify-content: center; }
.nav a { position: relative; padding: 7px 11px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.nav a:focus-visible, .usermenu__btn:focus-visible, .navtoggle:focus-visible, .usermenu__panel a:focus-visible, .usermenu__logout:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.navtoggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, background .2s; }
.navtoggle__bars { position: relative; }
.navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
.navtoggle__bars::before { top: -6px; }
.navtoggle__bars::after { top: 6px; }
.is-open .navtoggle__bars { background: transparent; }
.is-open .navtoggle__bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .navtoggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.usermenu { position: relative; flex: none; }
.usermenu__btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; max-width: 100%; transition: background .15s, border-color .15s; }
.usermenu__btn:hover { background: var(--surface-2); }
.usermenu__avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #4338ca, #7c5ce6); color: #fff; font-weight: 800; font-size: .9rem; flex: none; }
.usermenu__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 12ch; }
.usermenu__caret { width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .2s; flex: none; margin-right: 2px; }
.user-open .usermenu__caret { transform: translateY(1px) rotate(225deg); }
.usermenu__panel { display: flex; flex-direction: column; gap: 2px; min-width: 210px; padding: 6px; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow), 0 12px 32px rgba(20, 24, 60, .12); position: absolute; right: 0; top: 100%; z-index: 30; }
.usermenu__panel a, .usermenu__logout { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; font-weight: 600; font-size: .92rem; text-align: left; text-decoration: none; cursor: pointer; }
.usermenu__panel a:hover, .usermenu__logout:hover { background: var(--surface-2); }
.usermenu__logout { color: var(--bad); }
.usermenu__panel form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.js-nav .usermenu__panel { display: none; }
.js-nav.user-open .usermenu__panel { display: flex; }

@media (max-width: 1240px) {
  .nav a { padding: 7px 8px; font-size: .88rem; }
}
@media (max-width: 1100px) {
  .topbar__in { flex-wrap: wrap; gap: 0 12px; }
  .navtoggle { display: inline-flex; }
  .topbar__menu { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding: 4px 0 14px; }
  .js-nav .topbar__menu { display: none; }
  .js-nav.is-open .topbar__menu { display: flex; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
  .nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; justify-content: stretch; flex: none; }
  .nav a { padding: 11px 14px; border-radius: 12px; font-size: .95rem; background: var(--surface-2); text-align: left; }
  .nav a[aria-current="page"] { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); }
  .usermenu { border-top: 1px solid var(--line); padding-top: 10px; }
  .usermenu__btn { width: 100%; justify-content: flex-start; padding: 6px 12px 6px 6px; }
  .usermenu__name { max-width: none; flex: 1; text-align: left; }
  .usermenu__panel { position: static; box-shadow: none; border: 0; margin-top: 6px; padding: 0; min-width: 0; }
  .usermenu__panel a, .usermenu__logout { padding: 12px; }
}

/* khối chung */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.section-title { margin: 32px 0 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pagehead { margin-bottom: 16px; }
.crumbs { margin-bottom: 12px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.empty { text-align: center; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid--skills { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tag { display: inline-block; background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.tag--lvl { background: var(--primary-soft); color: var(--primary); }

/* nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 12px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .05s, background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn[hidden] { display: none; }
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--soft { background: var(--primary-soft); color: var(--primary); }
.btn--sm { padding: 6px 12px; font-size: .875rem; border-radius: 10px; }
.btn--lg { padding: 14px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* thông báo */
.messages { margin-bottom: 16px; display: grid; gap: 8px; }
.msg { padding: 12px 16px; border-radius: 12px; background: var(--primary-soft); }
.msg--success { background: var(--good-soft); color: var(--good); }
.msg--error { background: var(--bad-soft); color: var(--bad); }
.note { background: var(--ok-soft); color: var(--ok); padding: 10px 14px; border-radius: 10px; }

/* form */
.auth { max-width: 420px; margin: 32px auto; }
.auth__head { text-align: center; margin-bottom: 18px; }
.auth__head h1 { margin-top: 10px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 600; }
.field small { font-weight: 400; }
.field ul { margin: 0; padding-left: 18px; font-weight: 400; }
.input, .field input { width: 100%; font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.input:focus, .field input:focus { border-color: var(--primary); outline: 3px solid var(--primary-soft); }

.errlist { margin: 6px 0 0; padding-left: 20px; font-weight: 400; }
.rules { margin: 0; padding-left: 20px; }
.field input[type="password"], .field input[type="text"] { font-size: 1rem; }

/* dashboard */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.eyebrow { color: var(--primary); font-weight: 700; margin-bottom: 2px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; }
.stat__n { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.stat__l { color: var(--muted); font-size: .875rem; }
.skill { text-decoration: none; color: inherit; display: block; transition: transform .12s, border-color .12s; }
.skill:hover, .quizcard:hover { transform: translateY(-2px); border-color: var(--primary); }
.skill__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 800; margin-bottom: 10px; }
.skill__meta { margin: 8px 0 0; font-size: .8rem; font-weight: 600; color: var(--primary); }
.quizcard { text-decoration: none; color: inherit; display: block; transition: transform .12s, border-color .12s; }

.bar { width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; appearance: none; -webkit-appearance: none; display: block; margin: 8px 0 4px; }
.bar::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
.bar::-webkit-progress-value { background: var(--primary); border-radius: 999px; }
.bar::-moz-progress-bar { background: var(--primary); border-radius: 999px; }
.bar--lg { height: 10px; grid-column: 1 / -1; }

/* chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 20px; }
.chip { padding: 6px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--muted); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }

/* bảng */
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.table tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.pill--good { background: var(--good-soft); color: var(--good); }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--low { background: var(--bad-soft); color: var(--bad); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }

/* chi tiết bài */
.detail { max-width: 720px; }
.facts { list-style: none; padding: 0; margin: 16px 0 20px; display: flex; gap: 8px 22px; flex-wrap: wrap; color: var(--muted); }

/* làm bài */
.quiz { display: grid; gap: 16px; max-width: 800px; margin: 0 auto; }
.quiz__head { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.quiz__meta { text-align: right; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.4rem; }
.timer.is-low { color: var(--bad); }
.passage { white-space: normal; background: var(--surface-2); }
.passage h2 { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.qcard fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.qcard legend { padding: 0; font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; }
.qnum { display: block; color: var(--primary); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; margin-bottom: 4px; }
.audio { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.opt:hover { border-color: var(--primary); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__key { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: .85rem; color: var(--muted); }
.opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.opt:has(input:checked) .opt__key { background: var(--primary); color: var(--primary-ink); }
.opt:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.quiz.js .qcard { display: none; }
.quiz.js .qcard.is-current { display: block; }
.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; bottom: 12px; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; flex: 1; }
.dot { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; font-size: .8rem; cursor: pointer; }
.dot.is-answered { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.dot.is-current { outline: 2px solid var(--primary); }
.quiz:not(.js) .quiz__nav #prev, .quiz:not(.js) .quiz__nav #next, .quiz:not(.js) .dots { display: none; }

/* kết quả */
.result { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; border-left: 6px solid var(--primary); }
.result--great, .result--good { border-left-color: var(--good); }
.result--ok { border-left-color: var(--ok); }
.result--low { border-left-color: var(--bad); }
.result__score { display: grid; text-align: center; min-width: 120px; }
.result__pct { font-size: 3.2rem; font-weight: 800; line-height: 1; }
.result__pct small { font-size: 1.2rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.actions form { margin: 0; }
.review { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rv { border-left: 5px solid var(--line); }
.rv--ok { border-left-color: var(--good); }
.rv--bad { border-left-color: var(--bad); }
.rv__top { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; flex-wrap: wrap; }
.rv .qtext { font-weight: 600; flex: 1 1 260px; }
.badge { padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.badge--ok { background: var(--good-soft); color: var(--good); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.rv__opts { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.rv__opts li { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); }
.rv__opts .is-correct { background: var(--good-soft); border-color: var(--good); }
.rv__opts .is-wrong { background: var(--bad-soft); border-color: var(--bad); }
.mark { float: right; font-size: .8rem; font-weight: 700; }
.explain { background: var(--surface-2); padding: 10px 14px; border-radius: 10px; margin: 0; }
.transcript { margin-bottom: 10px; color: var(--muted); }

/* sổ từ */
.toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.search { display: flex; gap: 8px; flex: 1 1 280px; max-width: 420px; }
.switch { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.words { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.word { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; cursor: default; }
.speakbtn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--primary-soft); cursor: pointer; font-size: 1.1rem; }
.speakbtn:hover { filter: brightness(.95); }
.word__en { font-size: 1.15rem; }
.ipa { font-family: "Segoe UI", system-ui, sans-serif; margin-left: 6px; }
.word__vi { font-weight: 600; color: var(--primary); }
.word__ex { margin-top: 4px; font-size: .92rem; }
.hide-vi .word { cursor: pointer; }
.hide-vi .word:not(.is-revealed) .word__vi, .hide-vi .word:not(.is-revealed) .word__ex { visibility: hidden; }

.reviewcta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; border-left: 6px solid var(--primary); }
.reviewcta h2 { margin-bottom: 2px; }
.reviewcta p { margin: 0; }

/* tiến độ & báo cáo phụ huynh */
.callout { border-left: 6px solid var(--primary); margin-bottom: 16px; }
.callout p:last-child { margin-bottom: 0; }
.stat small { font-size: .9rem; font-weight: 700; color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 16px 0; }
.cols .card h2, .card > h2 { margin-bottom: 4px; }
.chart { width: 100%; height: auto; display: block; margin-top: 8px; }
.chart-axis { stroke: var(--line); stroke-width: 1; }
.chart-label { fill: var(--muted); font-size: 9px; font-family: inherit; }
.bar-rect { fill: var(--primary); opacity: .75; }
.bar-rect.is-today { opacity: 1; }
.chart-pass { stroke: var(--good); stroke-width: 1; stroke-dasharray: 4 4; }
.chart-line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--surface); stroke: var(--primary); stroke-width: 2.5; }
.meters { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.meter__row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.meters .bar { margin: 4px 0 0; }
.weaklist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.weaklist li { padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--bad); border-radius: 10px; }
.weak__q { font-weight: 600; margin-bottom: 4px; }
.card + .card, .cols + .card { margin-top: 16px; }
.table-title { padding: 16px 16px 0; margin: 0; }
.table-pad { padding: 0 16px 16px; }
.share { margin-bottom: 16px; }
.copyrow { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.copyrow .input { flex: 1 1 260px; font-size: .9rem; }
form.inline { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
@media print {
  .topbar, .footer, .js-print, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .stat { box-shadow: none; break-inside: avoid; }
}

.footer { padding: 24px 0; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); background: var(--surface); }

@media (max-width: 640px) {
  .quiz__nav { position: static; flex-wrap: wrap; }
  .dots { order: 3; flex-basis: 100%; }
  .brand__name { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* đề thi in giấy */
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.exam-two { display: grid; gap: 14px; grid-template-columns: 2fr 1fr; }
.exam-form textarea, .exam-form select { width: 100%; font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.exam-form textarea { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
.exam-form .card + .card, .exam-form .card + button { margin-top: 4px; }
.checklist { display: grid; gap: 6px 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); max-height: 260px; overflow: auto; padding: 4px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.danger-zone { margin-top: 28px; text-align: right; }
@media (max-width: 640px) { .exam-two { grid-template-columns: 1fr; } }

.field-inline { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.input--sm { width: 5.5rem; padding: 8px 10px; }

.studentbar { margin-bottom: 8px; }
.input--search { width: auto; min-width: 180px; padding: 7px 12px; }
.check[hidden] { display: none; }

.inline-form { display: inline; margin: 0; }
