:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #242633;
  --muted: #6f7585;
  --line: #dfe3ea;
  --accent: #c93a31;
  --accent-dark: #a92f28;
  --ok: #16794c;
  --warn: #a15c05;
  --bad: #b42318;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.shell { width: min(980px, calc(100% - 32px)); margin: 36px auto; }
.hero { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px 0 34px; border-bottom: 1px solid var(--line); text-align: center; }
.mark { font-size: 54px; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: 0; }
.hero p { margin: 12px 0 0; color: var(--muted); font-size: clamp(22px, 3vw, 34px); font-weight: 700; }
.panel { margin-top: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; box-shadow: 0 6px 20px rgba(15, 23, 42, .04); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 8px; font-weight: 700; color: #303446; }
input, select, button, textarea { font: inherit; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #f1f3f6; padding: 13px 14px; color: var(--ink); }
textarea { min-height: 90px; direction: ltr; }
button { border: 0; border-radius: 8px; padding: 13px 16px; background: var(--accent); color: white; font-weight: 800; cursor: pointer; }
button:hover { background: var(--accent-dark); }
button.secondary { background: #2f3a4f; }
button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button:disabled { opacity: .55; cursor: not-allowed; }
.notice { padding: 15px 16px; border-radius: 8px; background: #fde8e7; color: var(--bad); border: 1px solid #fac5c1; }
.success { padding: 15px 16px; border-radius: 8px; background: #e8f6ef; color: var(--ok); border: 1px solid #bce6d1; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: #fff; }
.question { display: grid; gap: 14px; direction: ltr; text-align: left; }
.options { display: grid; gap: 10px; }
.option { display: flex; flex-direction: row; justify-content: flex-start; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; cursor: pointer; direction: ltr; text-align: left; }
.option input { width: auto; margin-top: 5px; }
.timer { font-size: 24px; font-weight: 900; color: var(--accent); }
table { width: 100%; border-collapse: collapse; direction: ltr; text-align: left; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f3f5f8; }
.status { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #eef2ff; font-weight: 700; }
.status.Started { background: #e8f6ef; color: var(--ok); }
.status.Locked { background: #fff3cd; color: var(--warn); }
.status.Finished { background: #edf2f7; color: #344054; }
@media (max-width: 720px) { .grid.two { grid-template-columns: 1fr; } .panel { padding: 16px; } table { font-size: 13px; } }

.bank-field { display: grid; gap: 10px; }
.field-title { font-weight: 800; color: #303446; }
.mini-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-actions button { padding: 8px 12px; font-size: 14px; }
.bank-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.bank-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; cursor: pointer; font-weight: 700; direction: ltr; text-align: left; }
.bank-item:has(input:checked) { border-color: var(--accent); background: #fff1f0; color: var(--accent-dark); }
.bank-item input { width: auto; accent-color: var(--accent); }


.exam-topbar { justify-content: flex-end; }
.submit-row { display: flex; justify-content: center; padding-top: 18px; }
.submit-row button { min-width: 220px; }
