/* İşyeri Hekimliği · Exam Prep — one stylesheet. Phone first; the sidebar appears from 900px. */

:root {
  --bg: #f4f6f8; --surface: #ffffff; --surface-2: #f8fafc; --ink: #0f172a; --ink-2: #334155; --muted: #64748b;
  --line: #e2e8f0; --line-2: #cbd5e1;
  --brand: #0f766e; --brand-2: #0b5e58; --brand-soft: #e6f4f2; --brand-text: #0f766e;
  --amber: #b45309; --amber-soft: #fef3c7; --flag: #f59e0b;
  --ok: #15803d; --ok-soft: #dcfce7; --bad: #b91c1c; --bad-soft: #fee2e2;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
  --radius: 14px; --radius-s: 10px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", Charter, "Palatino Linotype", Palatino, Georgia, serif;
  --vvh: 100dvh;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #111a2b; --surface-2: #0f1727; --ink: #e5e7eb; --ink-2: #cbd5e1; --muted: #94a3b8;
  --line: #1f2a3d; --line-2: #2c3a52;
  --brand: #14b8a6; --brand-2: #0d9488; --brand-soft: #0f2e2c; --brand-text: #5eead4;
  --amber: #fbbf24; --amber-soft: #3a2a07; --flag: #fbbf24;
  --ok: #4ade80; --ok-soft: #0f2a1a; --bad: #f87171; --bad-soft: #3a1414;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; } /* iOS zooms a focused field under 16px */
a { color: var(--brand-text); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tr { hyphens: auto; } /* Turkish study text */

/* ---------------------------------------------------------------- shell */
#shell { height: var(--vvh); display: flex; flex-direction: column; }
#top {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top)); background: var(--surface); border-bottom: 1px solid var(--line);
}
#body { flex: 1; min-height: 0; display: flex; flex-direction: column-reverse; }
#main { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; outline: none; }
#nav {
  flex: none; display: flex; justify-content: space-around; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
#nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px;
  color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .01em;
}
#nav a svg { width: 22px; height: 22px; }
#nav a.on { color: var(--brand-text); }
#shell.immersive #top, #shell.immersive #nav { display: none; }
#shell.bare #nav { display: none; }

@media (min-width: 900px) {
  #body { flex-direction: row; }
  #nav {
    flex-direction: column; justify-content: flex-start; width: 220px; border-top: 0; border-right: 1px solid var(--line);
    padding: 14px 10px; gap: 2px;
  }
  #nav a { flex: none; flex-direction: row; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
  #nav a.on { background: var(--brand-soft); }
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand img { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.brand b { display: block; font-size: 16px; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.brand small { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.top-spacer { flex: 1; }
.chip-access {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-text);
  white-space: nowrap; text-decoration: none;
}
.chip-access.warn { background: var(--amber-soft); color: var(--amber); }

/* ---------------------------------------------------------------- layout */
.page { max-width: 980px; margin: 0 auto; padding: 18px 16px 40px; }
.page.narrow { max-width: 560px; }
h1 { font-size: 24px; line-height: 1.2; margin: 4px 0 4px; letter-spacing: -.02em; }
h2 { font-size: 17px; margin: 26px 0 10px; letter-spacing: -.01em; }
h3 { font-size: 15px; margin: 0; }
.sub { color: var(--muted); margin: 0 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.stack > * + * { margin-top: 10px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.card.link { display: block; color: inherit; text-decoration: none; cursor: pointer; transition: transform .12s, border-color .12s; }
.card.link:hover { border-color: var(--line-2); }
.card.link:active { transform: scale(.99); }
.card .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card .big { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }

.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bar.ok > i { background: var(--ok); }

/* ---------------------------------------------------------------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #04201d; }
.btn.primary:hover { background: var(--brand-2); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 18px; height: 18px; flex: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent;
  color: var(--ink-2); cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.on { color: var(--flag); }

label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink);
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.input { min-height: 80px; resize: vertical; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin: 4px 0 8px; }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer;
}
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2);
  background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2);
}
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
:root[data-theme="dark"] .chip.on { color: #04201d; }

.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.warn { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.badge.brand { background: var(--brand-soft); color: var(--brand-text); border-color: transparent; }

/* ---------------------------------------------------------------- auth */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: 100%; max-width: 420px; padding: 26px 22px; }
.auth-logo { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 18px; }
.auth-logo img { width: 56px; height: 56px; border-radius: 15px; margin-bottom: 10px; }
.auth-logo b { font-size: 21px; letter-spacing: -.01em; }
.auth-logo small { color: var(--muted); font-size: 12px; letter-spacing: .05em; }
.auth .switch { text-align: center; margin-top: 14px; font-size: 14px; color: var(--muted); }
.auth .switch button { border: 0; background: none; color: var(--brand-text); font-weight: 600; cursor: pointer; padding: 0; }

/* ---------------------------------------------------------------- lists */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.item:first-child { border-top: 0; }
a.item:hover, button.item:hover { background: var(--surface-2); }
button.item { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; text-align: left; cursor: pointer; }
.item .num {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--brand-soft); color: var(--brand-text);
}
.item .t { font-weight: 600; line-height: 1.3; }
.item .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.part-head { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 24px 2px 8px; }

.ring { --p: 0; width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0); }
.ring::after { content: attr(data-v); width: 30px; height: 30px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: var(--ink-2); }

/* exam picker */
.year { margin-top: 18px; }
.year h3 { font-size: 13px; color: var(--muted); letter-spacing: .06em; margin: 0 2px 8px; }
.exam {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  cursor: pointer; width: 100%; text-align: left;
}
.exam + .exam { margin-top: 8px; }
.exam .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; }
.exam.on { border-color: var(--brand); background: var(--brand-soft); }
.exam.on .box { background: var(--brand); border-color: var(--brand); }
.exam.on .box::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.startbar {
  position: sticky; bottom: 0; margin: 18px -16px -40px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent); display: flex; gap: 10px; align-items: center;
}

/* ---------------------------------------------------------------- quiz */
.qtop { display: flex; align-items: center; gap: 6px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5; }
.qtop .title { flex: 1; min-width: 0; text-align: center; font-weight: 700; font-size: 14px; }
.qtop .title small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.qprog { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--line); }
.qprog > i { display: block; height: 100%; background: var(--brand); transition: width .2s; }
.qwrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 120px; }
.qmeta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.stem { font-size: 17px; line-height: 1.6; white-space: pre-line; }
.stem .roman { display: block; padding-left: 4px; }
.qimg { display: block; max-width: 100%; max-height: 520px; margin: 14px auto 4px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.opts { margin-top: 18px; display: grid; gap: 10px; }
.opt {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 16px; line-height: 1.45; color: var(--ink);
}
.opt:hover:not(:disabled) { border-color: var(--brand); }
.opt .L { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.opt:disabled { cursor: default; }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.right .L { background: var(--ok); color: #fff; border-color: var(--ok); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.wrong .L { background: var(--bad); color: #fff; border-color: var(--bad); }
.opt.dim { opacity: .62; }
.verdict { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.verdict.ok { background: var(--ok-soft); color: var(--ok); }
.verdict.bad { background: var(--bad-soft); color: var(--bad); }
.verdict svg { width: 20px; height: 20px; flex: none; }
.explain { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); line-height: 1.6; }
.explain b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.qfoot {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 75%, transparent); pointer-events: none;
}
.qfoot .in { display: flex; gap: 10px; width: 100%; max-width: 760px; pointer-events: auto; }
.qfoot .btn { flex: 1; }

.navgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.navgrid button {
  height: 40px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 13px; cursor: pointer; position: relative;
}
.navgrid button.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.navgrid button.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.navgrid button.cur { outline: 2px solid var(--brand); outline-offset: 1px; }
.navgrid button.fl::after { content: ""; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--flag); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin: 10px 0 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------------------------------------------------------------- flashcards */
.fc-wrap { max-width: 640px; margin: 0 auto; padding: 18px 16px 120px; }
.fc { margin-top: 8px; cursor: pointer; -webkit-tap-highlight-color: transparent; perspective: 1400px; }
.fc-in { position: relative; min-height: 300px; display: grid; }
.fc-face {
  grid-area: 1 / 1; border-radius: 18px; padding: 26px 22px 40px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 19px; line-height: 1.5; text-align: center; position: relative;
}
.fc-face.back { display: none; background: var(--brand-soft); border-color: transparent; font-weight: 600; color: var(--ink); }
.fc.flip .fc-face.front { display: none; }
.fc.flip .fc-face.back { display: flex; }
.fc.turn .fc-in { animation: fcturn .32s ease-out; }
@keyframes fcturn { from { transform: rotateY(-90deg); } to { transform: rotateY(0); } }
.fc-face .hint { position: absolute; bottom: 12px; left: 0; right: 0; font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------- reader */
.reader { --rfs: 18px; --rlh: 1.7; --rbg: #ffffff; --rink: #1f2937; --rmuted: #6b7280; --rline: #e5e7eb; --raccent: #0f766e; --rbox: #f3f8f7;
  height: 100%; display: flex; flex-direction: column; background: var(--rbg); color: var(--rink); }
.reader.sepia { --rbg: #f7f1e3; --rink: #3b2f1e; --rmuted: #7a6a52; --rline: #e6dcc3; --raccent: #8a5a1c; --rbox: #efe5cd; }
.reader.night { --rbg: #0e1320; --rink: #d6d9e0; --rmuted: #8b93a7; --rline: #222a3b; --raccent: #5eead4; --rbox: #151d2e; }
.reader.serif .rtext { font-family: var(--serif); }
.rbar {
  flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 8px; padding-top: max(6px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--rline); background: var(--rbg); transition: margin-top .2s;
}
.rbar .icon-btn { color: var(--rink); }
.rbar .icon-btn:hover { background: var(--rbox); }
.rbar .ttl { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--rmuted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.rprog { flex: none; height: 2px; background: var(--rline); }
.rprog > i { display: block; height: 100%; width: 0; background: var(--raccent); }
.rscroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.rtext { max-width: 720px; margin: 0 auto; padding: 28px 22px 80px; font-size: var(--rfs); line-height: var(--rlh); }
.rtext h1 { font-size: 1.6em; line-height: 1.25; margin: 0 0 .3em; }
.rtext .kicker { font-size: .7em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--raccent); font-family: var(--sans); }
.rtext h2 { font-size: 1.25em; margin: 1.8em 0 .6em; padding-top: .6em; border-top: 1px solid var(--rline); }
.rtext h3 { font-size: 1.05em; margin: 1.4em 0 .4em; }
.rtext p { margin: 0 0 .9em; }
.rtext ul, .rtext ol { padding-left: 1.3em; margin: 0 0 1em; }
.rtext li { margin: .25em 0; }
.rtext table { width: 100%; border-collapse: collapse; margin: 1em 0 1.2em; font-size: .86em; font-family: var(--sans); display: block; overflow-x: auto; }
.rtext th, .rtext td { border: 1px solid var(--rline); padding: 7px 9px; text-align: left; vertical-align: top; }
.rtext table { hyphens: manual; }
.rtext td:first-child, .rtext th:first-child { min-width: 7.5em; }
.rtext th { background: var(--rbox); }
.rtext .box { background: var(--rbox); border-left: 3px solid var(--raccent); border-radius: 8px; padding: 12px 14px; margin: 1em 0 1.2em; }
.rtext .box.exam { border-left-color: #d97706; }
.rtext .box.warn { border-left-color: #dc2626; }
.rtext .box > b:first-child { display: block; font-family: var(--sans); font-size: .72em; letter-spacing: .08em; text-transform: uppercase; color: var(--rmuted); margin-bottom: 4px; }
.rtext strong { font-weight: 700; }
.rend { max-width: 720px; margin: 0 auto; padding: 0 22px 60px; display: flex; gap: 10px; flex-wrap: wrap; }
.rend .btn { flex: 1; min-width: 150px; }
.reader .seg { background: var(--rbox); border-color: var(--rline); }
.reader .seg button { color: var(--rmuted); }
.reader .seg button.on { background: var(--rbg); color: var(--rink); }

/* ---------------------------------------------------------------- sheet */
#sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 23, 42, .42); }
#sheet .panel {
  width: 100%; max-width: 640px; max-height: calc(var(--vvh) - 40px); overflow-y: auto; background: var(--surface); color: var(--ink);
  border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
}
@media (min-width: 700px) { #sheet { align-items: center; } #sheet .panel { border-radius: 18px; } }
.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.panel-head h3 { flex: 1; font-size: 17px; }

#toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------------------------------------------------------- admin */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; text-align: left; min-width: 0; }
.stat b { font-size: 22px; line-height: 1.1; }
.stat span { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stat.on { border-color: var(--brand); background: var(--brand-soft); }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--surface-2); }
.tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.uq { padding: 14px 16px; border-top: 1px solid var(--line); }
.uq:first-child { border-top: 0; }
.uq .opts-mini { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; }
.uq .opts-mini li { padding: 2px 0; }
.uq .opts-mini li.ans { color: var(--ok); font-weight: 700; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
