/* ============ 税务稽查遴选刷题 · 样式 ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f4f1e9;
  --bg-tint: #ece7da;
  --surface: #fffdf8;
  --surface-2: #f8f5ed;
  --ink: #20262c;
  --ink-2: #515a64;
  --ink-3: #8b8f96;
  --line: #e3ddce;
  --line-strong: #d3cbb8;
  --brand: #14466f;
  --brand-ink: #0d3150;
  --brand-soft: #e7eff6;
  --accent: #b0492e;
  --ok: #1c8a57;
  --ok-soft: #e4f3ea;
  --err: #c23a3a;
  --err-soft: #fbe8e6;
  --warn: #a9791c;
  --warn-soft: #f8efd9;
  --shadow: 0 1px 2px rgba(30,40,50,.05), 0 8px 24px -12px rgba(30,40,50,.12);
  --radius: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
html[data-theme="dark"] {
  --bg: #0e1318;
  --bg-tint: #131a21;
  --surface: #161e27;
  --surface-2: #1b242e;
  --ink: #e7ecf1;
  --ink-2: #a7b1bc;
  --ink-3: #727d89;
  --line: #28323d;
  --line-strong: #35414f;
  --brand: #4f93cf;
  --brand-ink: #7eb4e3;
  --brand-soft: #18283a;
  --accent: #d97757;
  --ok: #46b98a;
  --ok-soft: #12291f;
  --err: #ef6f6f;
  --err-soft: #331b1b;
  --warn: #d3a849;
  --warn-soft: #2e2715;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 28px -14px rgba(0,0,0,.5);
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brand); color: #fff; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 760px; margin: 0 auto; padding: 10px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-seal {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 19px;
  font-family: "Songti SC", "SimSun", serif;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 15.5px; letter-spacing: .5px; white-space: nowrap; }
.brand-text small { font-size: 11px; color: var(--ink-3); letter-spacing: .8px; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a {
  padding: 7px 11px; border-radius: 9px; font-size: 14px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.topnav a:hover { background: var(--surface-2); color: var(--ink); }
.nav-badge {
  font-style: normal; font-size: 11px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--err); color: #fff;
  display: inline-grid; place-items: center; line-height: 1;
}
.nav-badge[hidden] { display: none; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  color: var(--ink-2);
}
.icon-btn:hover { background: var(--surface-2); }
html[data-theme="light"] .i-moon { display: block; }
html[data-theme="light"] .i-sun { display: none; }
html[data-theme="dark"] .i-moon { display: none; }
html[data-theme="dark"] .i-sun { display: block; }

/* ---------- 布局 ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 22px 18px 96px; min-height: 70vh; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 2px 12px; }
.section-head h2 { font-size: 17px; letter-spacing: .5px; }
.section-head span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 首页 hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-ink) 100%);
  border-radius: 20px; padding: 26px 24px 22px; color: #f3f7fb;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.hero::after {
  content: "税"; position: absolute; right: -14px; bottom: -38px;
  font-family: "Songti SC", serif; font-size: 190px; opacity: .07; line-height: 1;
}
.hero h1 { font-size: 24px; letter-spacing: 1px; margin-bottom: 6px; }
.hero p { font-size: 13.5px; opacity: .82; max-width: 440px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.hero-tag {
  font-size: 12px; padding: 4px 11px; border-radius: 99px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.18);
}

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 21px; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12px; color: var(--ink-3); }
.stat b.ok { color: var(--ok); }
.stat b.err { color: var(--err); }

/* ---------- 试卷卡片 ---------- */
.paper-list { display: flex; flex-direction: column; gap: 12px; }
.paper-card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 17px; box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
}
.paper-card:active { transform: scale(.992); }
.paper-card:hover { border-color: var(--line-strong); }
.pc-top { display: flex; align-items: center; gap: 12px; }
.pc-badge {
  flex: none; width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px;
  text-align: center; line-height: 1.15; padding: 4px;
}
.pc-main { flex: 1; min-width: 0; }
.pc-main h3 { font-size: 16px; margin-bottom: 3px; }
.pc-meta { font-size: 12.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pc-progress { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.pc-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--bg-tint); overflow: hidden; }
.pc-bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width .3s; }
.pc-progress em { font-style: normal; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-continue {
  margin-top: 12px; font-size: 12.5px; color: var(--brand); font-weight: 600;
  display: none; align-items: center; gap: 4px;
}
.pc-continue.show { display: inline-flex; }

/* ---------- 快捷入口 ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 15px; display: flex; align-items: center; gap: 11px; box-shadow: var(--shadow);
  text-align: left;
}
.quick:active { transform: scale(.985); }
.quick-ic {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); flex: none;
}
.quick-ic.warn { background: var(--err-soft); color: var(--err); }
.quick-txt { line-height: 1.3; }
.quick-txt b { display: block; font-size: 14.5px; }
.quick-txt small { font-size: 12px; color: var(--ink-3); }

/* ---------- 资料列表 ---------- */
.mat-group-title { font-size: 12.5px; color: var(--ink-3); margin: 20px 2px 8px; letter-spacing: .5px; }
.mat-list { display: flex; flex-direction: column; gap: 8px; }
.mat-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
}
.mat-item:active { transform: scale(.99); }
.mat-item .mi-ic { color: var(--accent); flex: none; }
.mat-item b { font-size: 14.5px; font-weight: 600; }
.mat-item .mi-go { margin-left: auto; color: var(--ink-3); }

/* ---------- 通用按钮/页面头 ---------- */
.page-head { margin-bottom: 18px; }
.back-link {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-3);
  margin-bottom: 12px; padding: 4px 0;
}
.back-link:hover { color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 20px; border-radius: 11px; font-size: 15px; font-weight: 600;
  transition: transform .1s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; width: 100%; }
html[data-theme="dark"] .btn-primary { color: #08131e; }
.btn-primary:disabled { opacity: .42; cursor: not-allowed; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 12px; }
.panel h3 { font-size: 15px; margin-bottom: 10px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 15px; border-radius: 99px; border: 1px solid var(--line-strong);
  font-size: 13.5px; color: var(--ink-2); background: var(--surface);
}
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
html[data-theme="dark"] .chip.active { color: #08131e; }
.muted { color: var(--ink-3); font-size: 13px; }

/* ---------- 答题器 ---------- */
.quiz-top { position: sticky; top: 57px; z-index: 30; background: var(--bg); padding: 10px 0 8px; margin: -10px 0 8px; }
.quiz-progress-row { display: flex; align-items: center; gap: 12px; }
.quiz-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--bg-tint); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-ink)); border-radius: 3px; transition: width .25s; }
.quiz-count { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid-toggle { font-size: 12.5px; color: var(--brand); padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }

.q-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.tag {
  font-size: 11.5px; padding: 2px 9px; border-radius: 6px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand); letter-spacing: .5px;
}
.tag.t-multiple { background: #efeafa; color: #6d3fb8; }
.tag.t-judge { background: var(--warn-soft); color: var(--warn); }
html[data-theme="dark"] .tag.t-multiple { background: #271e38; color: #b393e6; }
.tag.cat { background: var(--bg-tint); color: var(--ink-3); font-weight: 500; }
.tag.score { background: transparent; color: var(--ink-3); border: 1px solid var(--line); }

.q-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow);
}
.q-stem { font-size: 18px; line-height: 1.7; font-weight: 600; margin-bottom: 18px; }
.q-hint { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: 8px; }

.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--surface-2); transition: border-color .12s, background .12s, transform .08s;
  line-height: 1.55;
}
.opt:active { transform: scale(.99); }
.opt-key {
  flex: none; width: 27px; height: 27px; border-radius: 8px; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  margin-top: 1px; background: var(--surface);
}
.opt-text { font-size: 15.5px; padding-top: 2px; }
.opt:hover { border-color: var(--brand); }
.opt.selected { border-color: var(--brand); background: var(--brand-soft); }
.opt.selected .opt-key { background: var(--brand); border-color: var(--brand); color: #fff; }
html[data-theme="dark"] .opt.selected .opt-key { color: #08131e; }
.opt.locked { cursor: default; }
.opt.correct { border-color: var(--ok); background: var(--ok-soft); }
.opt.correct .opt-key { background: var(--ok); border-color: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--err); background: var(--err-soft); }
.opt.wrong .opt-key { background: var(--err); border-color: var(--err); color: #fff; }
.opt .opt-mark { margin-left: auto; font-size: 15px; font-weight: 700; padding-top: 3px; }
.opt.correct .opt-mark { color: var(--ok); }
.opt.wrong .opt-mark { color: var(--err); }

.judge-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.judge-opt {
  padding: 20px 10px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface-2); display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 17px; font-weight: 700; transition: border-color .12s, background .12s, transform .08s;
}
.judge-opt .j-mark { font-size: 30px; line-height: 1; }
.judge-opt:active { transform: scale(.97); }
.judge-opt.selected { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.judge-opt.correct { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.judge-opt.wrong { border-color: var(--err); background: var(--err-soft); color: var(--err); }

.result-box {
  margin-top: 16px; border-radius: 12px; padding: 14px 15px; font-size: 14.5px;
  display: flex; align-items: center; gap: 10px;
}
.result-box.ok { background: var(--ok-soft); color: var(--ok); }
.result-box.err { background: var(--err-soft); color: var(--err); }
.result-box b { font-size: 15.5px; }
.result-box .r-ans { color: var(--ink-2); font-weight: 600; margin-left: auto; font-size: 13.5px; }
html[data-theme="dark"] .result-box .r-ans { color: var(--ink); }

.explain {
  margin-top: 12px; border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: 10px; padding: 13px 15px; background: var(--surface-2);
}
.explain h4 { font-size: 13px; color: var(--brand); margin-bottom: 6px; letter-spacing: .5px; }
.explain p { font-size: 14px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.75; }
.redo-link { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.redo-link:hover { color: var(--brand); }

.quiz-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  padding: 10px 18px calc(10px + var(--safe-b));
  background: linear-gradient(to top, var(--bg) 72%, transparent);
}
.quiz-actions-inner {
  max-width: 760px; margin: 0 auto; display: flex; gap: 10px;
}
.quiz-actions .btn { flex: 1; }
.btn-prev { flex: 0 0 72px !important; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2); }

/* ---------- 答题卡抽屉 ---------- */
.sheet-mask { position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 45; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 46;
  background: var(--surface); border-radius: 18px 18px 0 0;
  max-height: 72vh; display: flex; flex-direction: column;
  transform: translateY(105%); transition: transform .24s ease;
  padding-bottom: var(--safe-b);
}
.sheet.open { transform: translateY(0); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.sheet-body { padding: 4px 18px 22px; overflow-y: auto; }
.sheet-legend { display: flex; flex-wrap: wrap; gap: 13px; font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.sheet-legend i { font-style: normal; display: inline-flex; align-items: center; gap: 5px; }
.lg-dot { width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--line-strong); display: inline-block; }
.lg-dot.done-ok { background: var(--ok); border-color: var(--ok); }
.lg-dot.done-err { background: var(--err); border-color: var(--err); }
.lg-dot.cur { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.qgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.qgrid button {
  aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--line);
  font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink-2);
  background: var(--surface-2);
}
.qgrid button.st-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.qgrid button.st-err { background: var(--err); border-color: var(--err); color: #fff; }
.qgrid button.st-answered { background: var(--brand); border-color: var(--brand); color: #fff; }
html[data-theme="dark"] .qgrid button.st-answered { color: #08131e; }
.qgrid button.st-cur { box-shadow: 0 0 0 2px var(--brand); border-color: var(--brand); }

/* ---------- 结果页 ---------- */
.result-hero { text-align: center; padding: 30px 20px 24px; }
.score-ring {
  width: 148px; height: 148px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--bg-tint) 0);
}
.score-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--surface); }
.score-ring .score-txt { position: relative; z-index: 1; }
.score-ring .score-txt b { font-size: 38px; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.score-ring .score-txt small { font-size: 12px; color: var(--ink-3); }
.score-ring.good { background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--bg-tint) 0); }
.score-ring.mid { background: conic-gradient(var(--warn) calc(var(--p) * 1%), var(--bg-tint) 0); }
.result-hero h2 { font-size: 20px; margin-bottom: 4px; }
.result-hero p { color: var(--ink-3); font-size: 13.5px; }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 18px; }
.result-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 6px; text-align: center; }
.result-stat b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.result-stat small { font-size: 11.5px; color: var(--ink-3); }
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; box-shadow: var(--shadow); }
.review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.review-head .rv-no { font-size: 12px; color: var(--ink-3); }
.rc { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.rc.ok { background: var(--ok-soft); color: var(--ok); }
.rc.err { background: var(--err-soft); color: var(--err); }
.rc.skip { background: var(--bg-tint); color: var(--ink-3); }
.review-stem { font-size: 14.5px; font-weight: 600; margin-bottom: 8px; line-height: 1.6; }
.review-line { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.review-line b { color: var(--ink); }
.review-line .ok-t { color: var(--ok); font-weight: 700; }
.review-line .err-t { color: var(--err); font-weight: 700; }
.review-exp { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 8px; white-space: pre-wrap; line-height: 1.7; }

/* ---------- Markdown 资料 ---------- */
.md { font-size: 15.5px; line-height: 1.85; color: var(--ink); }
.md > *:first-child { margin-top: 0; }
.md h1 { font-size: 22px; margin: 6px 0 14px; line-height: 1.4; letter-spacing: .5px; }
.md h2 {
  font-size: 17.5px; margin: 28px 0 10px; padding-left: 10px;
  border-left: 4px solid var(--brand); line-height: 1.4;
}
.md h3 { font-size: 15.5px; margin: 20px 0 8px; color: var(--brand-ink); }
html[data-theme="dark"] .md h3 { color: var(--brand-ink); }
.md p { margin: 9px 0; }
.md ul, .md ol { margin: 9px 0; padding-left: 24px; }
.md li { margin: 4px 0; }
.md blockquote {
  margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--accent);
  background: var(--surface-2); border-radius: 0 8px 8px 0; color: var(--ink-2); font-size: 14.5px;
}
.md hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.md strong { color: var(--ink); font-weight: 700; }
.md code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px;
  background: var(--bg-tint); padding: 1px 6px; border-radius: 5px;
}
.md table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line-strong); padding: 8px 10px; text-align: left; vertical-align: top; }
.md th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }
.md tr:nth-child(even) td { background: var(--surface-2); }

.empty {
  text-align: center; padding: 54px 20px; color: var(--ink-3);
}
.empty .e-ic { font-size: 40px; margin-bottom: 10px; opacity: .6; }
.empty p { font-size: 14px; margin-bottom: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 10px;
  font-size: 13.5px; z-index: 60; box-shadow: var(--shadow); max-width: 86vw; text-align: center;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .qgrid { grid-template-columns: repeat(10, 1fr); }
}
@media (max-width: 480px) {
  .topbar-inner { padding: 9px 12px; gap: 8px; }
  .brand-seal { width: 32px; height: 32px; font-size: 17px; border-radius: 8px; }
  .brand { gap: 8px; }
  .brand-text strong { font-size: 14.5px; }
  .brand-text small { display: none; }
  .topnav { gap: 0; }
  .topnav a { padding: 7px 8px; font-size: 13.5px; }
  .page { padding-left: 14px; padding-right: 14px; }
  .q-stem { font-size: 17px; }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 360px) {
  .brand-text strong { font-size: 13.5px; letter-spacing: 0; }
  .topnav a { padding: 7px 6px; }
}
