/* ============================================================
   言准 · 国考逻辑填空实验室
   A warm-paper, ink-and-vermilion study interface.
   ============================================================ */

:root {
  --paper: #f4eee2;
  --paper-deep: #ece2d2;
  --card: #fbf8f1;
  --card-strong: #fffdf8;
  --ink: #1f2b26;
  --ink-soft: #3b4a43;
  --muted: #7a7568;
  --muted-light: #9a9486;
  --line: rgba(49, 62, 54, 0.14);
  --line-strong: rgba(49, 62, 54, 0.26);
  --pine: #2e5a4b;
  --pine-deep: #214338;
  --pine-soft: #dce8df;
  --vermilion: #b64830;
  --vermilion-soft: #f3dfd6;
  --gold: #b58a4e;
  --gold-soft: #efe4cf;
  --blue: #496b7a;
  --ok: #2f6b51;
  --bad: #a8402c;
  --shadow-sm: 0 1px 2px rgba(35, 44, 38, 0.05), 0 4px 16px rgba(35, 44, 38, 0.05);
  --shadow-md: 0 14px 40px rgba(36, 45, 39, 0.10);
  --shadow-lg: 0 24px 70px rgba(36, 45, 39, 0.14);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(182, 72, 48, 0.18); }

.grain {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.wash {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.wash-a {
  width: 620px; height: 620px;
  top: -260px; right: -160px;
  background: radial-gradient(circle, rgba(181, 138, 78, 0.17), transparent 68%);
}
.wash-b {
  width: 700px; height: 700px;
  bottom: -360px; left: -260px;
  background: radial-gradient(circle, rgba(46, 90, 75, 0.13), transparent 68%);
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 30px; }
.app { min-height: calc(100vh - 250px); outline: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 34px;
  height: 76px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(49, 62, 54, 0.11);
  background: rgba(244, 238, 226, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-seal {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  color: #fffaf0;
  background: var(--vermilion);
  border-radius: 7px 10px 8px 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(255, 250, 240, 0.25);
  transform: rotate(-2deg);
}
.brand-seal.small { width: 26px; height: 26px; font-size: 15px; border-radius: 5px 7px 6px 4px; vertical-align: -6px; margin-right: 5px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.15; }
.brand-word strong { font-family: var(--serif); font-size: 22px; letter-spacing: 0.12em; }
.brand-word em { color: var(--muted); font-style: normal; font-size: 10.5px; letter-spacing: 0.12em; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  transition: background .18s, color .18s;
}
.nav a:hover { background: rgba(46, 90, 75, 0.07); }
.nav a.active { color: var(--pine-deep); font-weight: 600; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  background: var(--vermilion);
  border-radius: 2px;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.streak-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.5);
  font-size: 12px;
}
.streak-pill .ico { width: 14px; height: 14px; color: var(--vermilion); }
.streak-pill b { color: var(--ink); font-size: 13px; }
.icon-btn {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  transition: all .18s;
}
.icon-btn:hover { background: rgba(46, 90, 75, 0.07); color: var(--ink); border-color: var(--line); }

/* ---------- common ---------- */
.view { animation: rise .45s cubic-bezier(.22,.75,.25,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.eyebrow {
  display: flex; align-items: center; gap: 9px;
  color: var(--vermilion);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .65; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 22px; }
.section-head h2 { margin: 5px 0 0; font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: .02em; }
.section-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.section-head .link-arrow { display: inline-flex; align-items: center; gap: 5px; color: var(--pine); font-size: 13px; font-weight: 600; }
.section-head .link-arrow .ico { width: 15px; height: 15px; transition: transform .2s; }
.section-head .link-arrow:hover .ico { transform: translateX(3px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.btn .ico { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--pine); color: #fdfaf1; box-shadow: 0 7px 18px rgba(46, 90, 75, 0.22); }
.btn-primary:hover { background: var(--pine-deep); box-shadow: 0 10px 24px rgba(46, 90, 75, 0.26); }
.btn-vermilion { background: var(--vermilion); color: #fffaf1; box-shadow: 0 8px 20px rgba(182, 72, 48, 0.2); }
.btn-vermilion:hover { background: #a13c26; }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 253, 248, .55); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--pine); color: var(--pine-deep); background: var(--card); }
.btn-quiet { background: transparent; color: var(--muted); padding: 0 12px; }
.btn-quiet:hover { color: var(--ink); background: rgba(46, 90, 75, .06); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15px; }
.text-btn { border: 0; background: none; color: var(--pine); font-size: 13px; font-weight: 600; padding: 4px 0; }
.text-btn:hover { color: var(--vermilion); }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
}
.badge.year { background: var(--gold-soft); color: #7d5c2f; font-weight: 600; }
.badge.track { background: var(--pine-soft); color: var(--pine-deep); }
.badge.tag { background: rgba(182, 72, 48, .08); color: #944532; }
.badge.ok { background: #dfeadf; color: var(--ok); }
.badge.bad { background: #f4ddd6; color: var(--bad); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- home ---------- */
.home { padding-bottom: 82px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); gap: 48px; align-items: center; padding: 68px 0 50px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
  margin: 18px 0 22px;
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.025em;
}
.hero h1 .accent { color: var(--pine); }
.hero h1 .brush { position: relative; white-space: nowrap; }
.hero h1 .brush::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 9px;
  background: linear-gradient(90deg, rgba(181,138,78,.4), rgba(182,72,48,.22));
  z-index: -1;
  border-radius: 50%;
  transform: rotate(-.6deg);
}
.hero-lede { max-width: 530px; margin: 0 0 30px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; }
.hero-meta span { margin-top: 4px; color: var(--muted); font-size: 11.5px; letter-spacing: .05em; }
.hero-meta b em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 2px; }

.today-card {
  position: relative;
  padding: 30px 30px 26px;
  border: 1px solid rgba(49, 62, 54, .17);
  border-radius: 4px 18px 5px 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.6), transparent 45%),
    var(--card);
  box-shadow: var(--shadow-md);
  transform: rotate(.7deg);
}
.today-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(181, 138, 78, .25);
  border-radius: 2px 12px 3px 12px;
  pointer-events: none;
}
.today-card::after {
  content: "每日一题";
  position: absolute;
  top: 17px; right: -9px;
  padding: 4px 10px 4px 12px;
  background: var(--vermilion);
  color: #fff9ef;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .14em;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 4px 10px rgba(182,72,48,.18);
}
.today-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; padding-right: 34px; }
.today-top .mini-label { color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.today-question { font-family: var(--serif); font-size: 17px; line-height: 1.95; color: var(--ink-soft); }
.today-question .today-blank { display: inline-block; min-width: 74px; border-bottom: 2px solid var(--vermilion); margin: 0 4px; transform: translateY(-1px); }
.today-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0 18px; }
.today-options span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 12.5px; background: rgba(255,253,248,.5); }
.today-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line-strong); padding-top: 15px; }
.today-foot small { color: var(--muted); font-size: 11.5px; }
.today-foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--pine); font-size: 12.5px; font-weight: 600; }

.home-section { padding: 46px 0 0; }
#year-section { scroll-margin-top: 92px; }
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mode-card {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 196px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 248, 241, .64);
  text-align: left;
  overflow: hidden;
  transition: all .22s ease;
}
.mode-card:hover { transform: translateY(-3px); border-color: rgba(46,90,75,.38); background: var(--card); box-shadow: var(--shadow-sm); }
.mode-card .mode-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--paper-deep);
  color: var(--pine);
  margin-bottom: 18px;
}
.mode-card:nth-child(2) .mode-icon { background: var(--vermilion-soft); color: var(--vermilion); }
.mode-card:nth-child(3) .mode-icon { background: var(--gold-soft); color: #8a642f; }
.mode-card:nth-child(4) .mode-icon { background: #e2e6ea; color: var(--blue); }
.mode-card h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.mode-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.mode-card .mode-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 11.5px; }
.mode-card .mode-foot .ico { width: 15px; height: 15px; color: var(--pine); }
.mode-card::after { content: ""; position: absolute; width: 96px; height: 96px; right: -40px; bottom: -42px; border: 1px solid rgba(181,138,78,.18); border-radius: 50%; }

.year-strip { display: flex; gap: 9px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.year-chip {
  flex: none;
  display: flex; flex-direction: column; align-items: flex-start;
  min-width: 100px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251,248,241,.6);
  text-align: left;
  transition: all .18s;
}
.year-chip b { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: .02em; line-height: 1.3; }
.year-chip span { color: var(--muted); font-size: 11px; margin-top: 1px; }
.year-chip:hover { border-color: var(--pine); background: var(--card); transform: translateY(-2px); }
.year-chip.all { background: var(--pine); border-color: var(--pine); color: #fdfaf0; }
.year-chip.all span { color: rgba(253,250,240,.7); }

.stats-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.stat-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.stat-card.dark { background: var(--pine-deep); border-color: var(--pine-deep); color: #f8f3e7; position: relative; overflow: hidden; }
.stat-card.dark::after { content: "準"; position: absolute; right: 18px; bottom: -22px; font-family: var(--serif); font-size: 122px; color: rgba(255,255,255,.06); line-height: 1; }
.stat-card.dark .eyebrow { color: #d8be92; }
.stat-card.dark .eyebrow::before { background: #d8be92; }
.stat-main { display: flex; align-items: flex-end; gap: 10px; margin: 14px 0 6px; }
.stat-main b { font-family: var(--serif); font-size: 52px; font-weight: 500; line-height: 1; }
.stat-main span { color: rgba(248,243,231,.68); font-size: 12px; padding-bottom: 7px; }
.stat-card.dark p { color: rgba(248,243,231,.65); font-size: 12.5px; margin: 0; max-width: 260px; }
.stat-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 22px; background: rgba(255,255,255,.12); }
.stat-lines div { padding: 11px 8px 0; background: var(--pine-deep); }
.stat-lines b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.stat-lines span { font-size: 10.5px; color: rgba(248,243,231,.55); }

.activity-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.activity-head h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.activity-head .big-acc { font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--pine); }
.activity-chart { display: flex; align-items: flex-end; gap: 10px; height: 124px; margin-top: 24px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.activity-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 7px; }
.activity-bar { width: 100%; max-width: 30px; border-radius: 3px 3px 0 0; background: var(--pine-soft); min-height: 3px; transition: height .5s; position: relative; }
.activity-col.today .activity-bar { background: var(--vermilion); }
.activity-col:hover .activity-bar { filter: brightness(.92); }
.activity-col span { color: var(--muted-light); font-size: 9.5px; line-height: 1; transform: translateY(18px); }
.activity-empty { display: grid; place-items: center; height: 112px; color: var(--muted); font-size: 12.5px; border-bottom: 1px solid var(--line); }

/* ---------- practice ---------- */
.practice-page { padding: 28px 0 76px; }
.practice-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.practice-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.practice-title .back-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--muted); font-size: 12.5px; padding: 5px 0; }
.practice-title .back-btn .ico { width: 15px; height: 15px; }
.practice-title h1 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.practice-title .badge { margin-left: 2px; }
.practice-clocks { display: flex; align-items: center; gap: 16px; flex: none; }
.clock-item { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.clock-item .ico { width: 15px; height: 15px; }
.clock-item b { font-family: var(--mono); font-weight: 600; color: var(--ink-soft); font-size: 13px; letter-spacing: .02em; }
.progress-track { height: 5px; border-radius: 99px; background: rgba(49,62,54,.1); overflow: hidden; margin-bottom: 24px; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--vermilion)); transition: width .35s ease; }
.practice-grid { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(340px, .87fr); gap: 24px; align-items: start; }
.passage-card {
  position: relative;
  min-height: 468px;
  padding: 34px 38px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.passage-card::before { content: ""; position: absolute; left: 0; top: 34px; bottom: 34px; width: 3px; background: linear-gradient(var(--gold), rgba(181,138,78,0)); border-radius: 0 2px 2px 0; opacity: .55; }
.passage-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.passage-meta .q-index { margin-left: auto; color: var(--muted-light); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.passage { margin: 0; color: #2a352f; font-family: var(--serif); font-size: 19px; line-height: 2.08; letter-spacing: .012em; text-align: justify; line-break: strict; word-break: normal; overflow-wrap: break-word; }
.passage .blank-slot,
.blank-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 24px;
  margin: 0 5px;
  padding: 0 8px;
  border-bottom: 2px solid var(--gold);
  color: var(--vermilion);
  background: linear-gradient(180deg, transparent 52%, rgba(181,138,78,.13) 52%);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: 1px;
  letter-spacing: .08em;
}
.passage .blank-slot.filled,
.blank-slot.filled { color: var(--pine); border-bottom-color: var(--pine); background: rgba(46,90,75,.07); }
.today-question .blank-slot { min-width: 46px; height: 20px; margin: 0 3px; padding: 0 5px; font-size: 9.5px; vertical-align: 2px; }
.passage-instruction { margin-top: 22px; padding-top: 17px; border-top: 1px dashed var(--line-strong); color: var(--ink-soft); font-family: var(--sans); font-size: 13.5px; line-height: 1.7; }
.passage-instruction b { color: var(--vermilion); font-weight: 600; }
.passage-text { display: inline; }
.passage-notes {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 13px 0 17px;
  padding: 2px 0 2px 16px;
  border-left: 2px solid rgba(181, 138, 78, .5);
  font-family: var(--sans);
  text-align: left;
}
.inline-note {
  position: relative;
  padding: 11px 14px 12px;
  border: 1px solid rgba(181, 138, 78, .24);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(239, 228, 207, .52), rgba(251, 248, 241, .68));
  box-shadow: 0 2px 8px rgba(35, 44, 38, .03);
}
.inline-note::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-left: 1px solid rgba(181, 138, 78, .6);
  border-bottom: 1px solid rgba(181, 138, 78, .6);
  background: var(--card);
  transform: rotate(45deg);
}
.inline-note-head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.note-index {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--gold);
  color: #fffdf7;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.note-label { color: #8b6837; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.note-answer {
  margin-left: 2px;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(47, 107, 81, .11);
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
}
.ans-ref {
  color: var(--gold);
  font-family: var(--sans);
  font-size: .55em;
  font-weight: 700;
  line-height: 1;
  vertical-align: super;
  margin-left: 1px;
}
.note-reason { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; }
.note-reason mark { background: linear-gradient(180deg, transparent 55%, rgba(181, 138, 78, .24) 55%); color: inherit; padding: 0 1px; }
.annotation-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 10px 13px;
  border: 1px dashed rgba(181, 138, 78, .38);
  border-radius: 8px;
  background: rgba(239, 228, 207, .28);
  color: var(--muted);
  font-size: 12.5px;
}
.annotation-hint .ico { width: 15px; height: 15px; color: var(--gold); }
.annotation-hint .text-btn { margin-left: auto; font-size: 12.5px; }
.passage-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; color: var(--muted-light); font-size: 11px; }
.passage-foot .source-hint { display: inline-flex; align-items: center; gap: 5px; }
.passage-foot .source-hint .ico { width: 13px; height: 13px; }

.answer-card {
  position: sticky; top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-strong);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.answer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 19px 22px 13px; }
.answer-head h2 { margin: 0; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.answer-head .hint-key { color: var(--muted-light); font-size: 10.5px; letter-spacing: .02em; }
.options { display: flex; flex-direction: column; gap: 9px; padding: 4px 18px 18px; }
.option {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fdfbf6;
  text-align: left;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.option:hover { border-color: rgba(46,90,75,.38); background: #fffdf8; }
.option .letter {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
}
.option .opt-text { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.option .opt-check { color: transparent; display: grid; place-items: center; }
.option .opt-check .ico { width: 15px; height: 15px; }
.option.selected { border-color: var(--pine); background: rgba(46,90,75,.055); box-shadow: 0 0 0 1px rgba(46,90,75,.08) inset; }
.option.selected .letter { background: var(--pine); border-color: var(--pine); color: #fffdf6; }
.option.selected .opt-text { color: var(--ink); font-weight: 600; }
.option.selected .opt-check { color: var(--pine); }
.option.correct { border-color: var(--ok); background: rgba(47,107,81,.075); }
.option.correct .letter { background: var(--ok); border-color: var(--ok); color: #fffdf6; }
.option.correct .opt-check { color: var(--ok); }
.option.wrong { border-color: rgba(168,64,44,.5); background: rgba(168,64,44,.055); }
.option.wrong .letter { background: var(--bad); border-color: var(--bad); color: #fffdf6; }
.option.wrong .opt-check { color: var(--bad); }
.option.dim { opacity: .68; }
.option:disabled { cursor: default; }
.option:disabled:hover { transform: none; }
.answer-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 22px 12px; color: var(--muted-light); font-size: 11px; }
.answer-meta .change-count { display: inline-flex; align-items: center; gap: 4px; }
.answer-meta .change-count .ico { width: 12px; height: 12px; }
.submit-row { padding: 0 18px 18px; display: flex; gap: 8px; }
.submit-row .btn { flex: 1; }
.answer-footnote { padding: 12px 22px; border-top: 1px solid var(--line); background: rgba(236,226,210,.32); color: var(--muted); font-size: 11px; line-height: 1.6; }
.answer-footnote b { color: var(--ink-soft); font-weight: 600; }

.result-box { padding: 20px 22px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(220,232,223,.62), rgba(251,248,241,.3)); }
.result-box.bad { background: linear-gradient(135deg, rgba(243,223,214,.65), rgba(251,248,241,.3)); }
.result-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.result-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ok); color: white; flex: none; }
.result-box.bad .result-icon { background: var(--bad); }
.result-icon .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.result-title b { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.result-title span { margin-left: auto; color: var(--muted); font-size: 11px; }
.result-detail { margin: 0 0 14px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.75; }
.result-detail b { color: var(--pine); font-weight: 700; }
.result-box.bad .result-detail b { color: var(--vermilion); }
.result-actions { display: flex; gap: 8px; }
.result-actions .btn { flex: 1; }
.result-stats { display: flex; gap: 15px; margin-top: 12px; color: var(--muted); font-size: 10.5px; }
.result-stats b { color: var(--ink-soft); font-weight: 600; }

/* ---------- analysis ---------- */
.analysis {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  scroll-margin-top: 92px;
  animation: rise .45s .06s both;
}
.analysis-head { position: relative; display: flex; align-items: center; gap: 15px; padding: 26px 30px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(236,226,210,.25), transparent); }
.ai-orb {
  position: relative;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  color: #fdfaf0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 45%),
    linear-gradient(145deg, var(--pine), var(--pine-deep));
  box-shadow: 0 5px 14px rgba(33,67,56,.22);
  flex: none;
}
.ai-orb .ico { width: 20px; height: 20px; }
.analysis-head .analysis-title { min-width: 0; }
.analysis-head h2 { margin: 2px 0 0; font-family: var(--serif); font-size: 23px; font-weight: 600; }
.analysis-head .analysis-sub { margin: 3px 0 0; color: var(--muted); font-size: 11.5px; }
.analysis-verdict { margin-left: auto; flex: none; }
.verdict-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.verdict-pill.ok { color: var(--ok); background: #e2ede3; }
.verdict-pill.bad { color: var(--bad); background: #f5e0d9; }
.verdict-pill .ico { width: 14px; height: 14px; }
.analysis-tabs { display: flex; gap: 2px; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.35); overflow-x: auto; }
.analysis-tab { position: relative; padding: 15px 14px 12px; border: 0; background: none; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.analysis-tab:hover { color: var(--ink); }
.analysis-tab.active { color: var(--pine-deep); font-weight: 600; }
.analysis-tab.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--vermilion); }
.analysis-body { padding: 28px 30px 30px; }
.analysis-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: 32px; align-items: start; }
.analysis-col h3, .analysis-block h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.analysis-col h3 .step-no, .analysis-block h3 .step-no {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--pine);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
}
.analysis-col + .analysis-col { padding-left: 30px; border-left: 1px solid var(--line); }
.logic-steps { display: flex; flex-direction: column; gap: 11px; }
.logic-step { position: relative; padding: 13px 15px 13px 31px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,253,248,.62); color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.logic-step::before { content: ""; position: absolute; left: 14px; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(181,138,78,.12); }
.logic-step b { color: var(--pine-deep); }
.logic-step .step-label { display: block; margin-bottom: 2px; color: var(--vermilion); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.logic-step mark, .option-note mark, .diagnosis-card mark { background: linear-gradient(180deg, transparent 55%, rgba(181,138,78,.25) 55%); color: inherit; padding: 0 1px; }
.option-notes { display: flex; flex-direction: column; gap: 8px; }
.option-note { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; padding: 10px 12px; border-radius: 8px; background: rgba(236,226,210,.26); border: 1px solid transparent; }
.option-note.is-answer { background: rgba(46,90,75,.07); border-color: rgba(46,90,75,.16); }
.option-note.is-picked { border-color: rgba(182,72,48,.28); background: rgba(182,72,48,.05); }
.option-note.is-answer.is-picked { border-color: rgba(46,90,75,.3); background: rgba(46,90,75,.09); }
.option-note .on-letter { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fffdf8; border: 1px solid var(--line-strong); font-family: var(--serif); font-size: 11px; font-weight: 700; color: var(--muted); }
.option-note.is-answer .on-letter { background: var(--pine); border-color: var(--pine); color: #fffdf6; }
.option-note.is-picked:not(.is-answer) .on-letter { background: var(--vermilion); border-color: var(--vermilion); color: #fffdf6; }
.option-note .on-body { min-width: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.option-note .on-title { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 12.5px; font-weight: 600; margin-bottom: 1px; }
.option-note .on-title .mini-flag { margin-left: auto; color: var(--muted-light); font-size: 9.5px; font-weight: 500; }
.option-note.is-answer .on-title .mini-flag { color: var(--ok); }
.option-note.is-picked:not(.is-answer) .on-title .mini-flag { color: var(--bad); }
.diagnosis-card { padding: 17px 18px; border: 1px dashed rgba(46,90,75,.3); border-radius: 10px; background: linear-gradient(135deg, rgba(220,232,223,.55), rgba(251,248,241,.4)); }
.diagnosis-card .diag-label { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 7px; color: var(--pine); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.diagnosis-card .diag-label .ico { width: 13px; height: 13px; }
.diagnosis-card p { margin: 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.85; }
.advice-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.advice-item { display: flex; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.advice-item::before { content: "→"; color: var(--vermilion); flex: none; }
.process-figure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 18px; }
.process-stat { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,253,248,.55); }
.process-stat b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.3; }
.process-stat span { color: var(--muted); font-size: 10.5px; }
.timeline { position: relative; margin: 4px 0 0 5px; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; padding-bottom: 17px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -24px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--card); border: 2px solid var(--gold); }
.timeline-item.final .timeline-dot { background: var(--pine); border-color: var(--pine); box-shadow: 0 0 0 3px rgba(46,90,75,.12); }
.timeline-item.bad .timeline-dot { background: var(--bad); border-color: var(--bad); box-shadow: 0 0 0 3px rgba(168,64,44,.1); }
.timeline-top { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12.5px; }
.timeline-top b { font-weight: 600; }
.timeline-top .t-time { margin-left: auto; color: var(--muted-light); font-family: var(--mono); font-size: 10.5px; }
.timeline-note { margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.pace-bars { display: flex; gap: 4px; margin-top: 8px; }
.pace-bars i { display: block; height: 5px; border-radius: 3px; background: var(--paper-deep); flex: 1; }
.pace-bars i.on { background: var(--gold); }
.pace-bars i.over { background: var(--vermilion); }
.source-card { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,253,248,.58); }
.source-card .src-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.source-card .src-row:last-child { border-bottom: 0; }
.source-card .src-k { width: 68px; flex: none; color: var(--muted); }
.source-card .src-v { color: var(--ink-soft); line-height: 1.7; }
.official-note { margin-top: 15px; padding: 12px 14px; border-left: 2px solid var(--gold); background: rgba(239,228,207,.3); color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.quote-answer { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 13px 15px; border-radius: 9px; background: var(--pine-deep); color: #f8f3e7; }
.quote-answer .ico { color: #d8be92; margin-top: 3px; }
.quote-answer b { display: block; font-family: var(--serif); font-size: 16px; font-weight: 600; }
.quote-answer span { color: rgba(248,243,231,.66); font-size: 11px; }

.ask-box { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.ask-head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.ask-head .ico { width: 16px; height: 16px; color: var(--vermilion); }
.ask-head b { font-family: var(--serif); font-size: 15px; font-weight: 600; }
.ask-head span { color: var(--muted); font-size: 11px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.ask-chip { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; transition: all .15s; }
.ask-chip:hover { border-color: var(--pine); color: var(--pine); background: rgba(46,90,75,.04); }
.ask-form { display: flex; gap: 8px; }
.ask-form input { flex: 1; min-width: 0; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; outline: none; font-size: 12.5px; }
.ask-form input:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(46,90,75,.08); }
.ask-form button { flex: none; }
.chat-log { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.chat-bubble { max-width: 92%; padding: 10px 13px; border-radius: 10px; font-size: 12.5px; line-height: 1.8; }
.chat-bubble.user { align-self: flex-end; background: var(--pine); color: #fbf7ee; border-bottom-right-radius: 3px; }
.chat-bubble.ai { align-self: flex-start; background: rgba(236,226,210,.42); color: var(--ink-soft); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.chat-bubble.ai b { color: var(--pine-deep); }
.ai-loading { display: inline-flex; gap: 4px; align-items: center; padding: 5px 0; }
.ai-loading i { width: 5px; height: 5px; border-radius: 50%; background: var(--pine); animation: blink 1s infinite; }
.ai-loading i:nth-child(2) { animation-delay: .15s; }
.ai-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

/* ---------- summary ---------- */
.summary-page { padding: 44px 0 80px; }
.summary-hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-bottom: 16px; }
.score-card { position: relative; display: flex; align-items: center; gap: 28px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden; }
.score-card::after { content: "成"; position: absolute; right: 12px; bottom: -36px; font-family: var(--serif); font-size: 150px; line-height: 1; color: rgba(46,90,75,.05); }
.score-ring { --pct: 0; position: relative; width: 146px; height: 146px; flex: none; border-radius: 50%; background: conic-gradient(var(--pine) calc(var(--pct) * 1%), rgba(49,62,54,.1) 0); display: grid; place-items: center; }
.score-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--card); }
.score-ring .score-inner { position: relative; z-index: 1; text-align: center; }
.score-ring b { display: block; font-family: var(--serif); font-size: 44px; font-weight: 500; line-height: 1; }
.score-ring span { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.score-copy .eyebrow { margin-bottom: 8px; }
.score-copy h1 { margin: 0 0 7px; font-family: var(--serif); font-size: 29px; font-weight: 600; }
.score-copy p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.summary-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.summary-stat { padding: 20px; background: var(--card); }
.summary-stat b { display: block; font-family: var(--serif); font-size: 29px; font-weight: 600; line-height: 1.2; }
.summary-stat span { color: var(--muted); font-size: 11px; }
.summary-stat em { font-style: normal; color: var(--muted-light); font-size: 10px; }
.summary-body { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 22px 14px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.panel-head span { color: var(--muted); font-size: 11.5px; }
.review-list { padding: 8px 12px 14px; }
.review-row { display: grid; grid-template-columns: 30px minmax(0,1fr) 80px 64px; gap: 12px; align-items: center; padding: 12px 10px; border-bottom: 1px solid rgba(49,62,54,.08); }
.review-row:last-child { border-bottom: 0; }
.review-row .r-idx { font-family: var(--mono); color: var(--muted-light); font-size: 10.5px; }
.review-row .r-main { min-width: 0; }
.review-row .r-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.review-row .r-main span { color: var(--muted-light); font-size: 10.5px; }
.review-row .r-time { color: var(--muted); font-family: var(--mono); font-size: 10.5px; text-align: right; }
.review-row .r-res { text-align: right; }
.summary-side { display: flex; flex-direction: column; gap: 16px; }
.insight-card { padding: 21px; }
.insight-card h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.insight-card h3 .ico { width: 16px; height: 16px; color: var(--vermilion); }
.insight-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.tag-bars { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.tag-bar .tb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 11.5px; }
.tag-bar .tb-top b { font-weight: 500; color: var(--ink-soft); }
.tag-bar .tb-top span { color: var(--muted); font-family: var(--mono); font-size: 10.5px; }
.tag-bar .tb-track { height: 6px; border-radius: 99px; background: var(--paper-deep); overflow: hidden; }
.tag-bar .tb-fill { height: 100%; border-radius: inherit; background: var(--pine); transition: width .5s; }
.tag-bar.low .tb-fill { background: var(--vermilion); }
.summary-actions { display: flex; gap: 8px; }
.summary-actions .btn { flex: 1; }

/* ---------- bank ---------- */
.bank-page { padding: 44px 0 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-head h1 { margin: 7px 0 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); font-weight: 600; line-height: 1.2; }
.page-head p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.bank-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(251,248,241,.6); margin-bottom: 16px; }
.search-wrap { position: relative; flex: 1 1 230px; min-width: 180px; }
.search-wrap .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-light); }
.search-wrap input { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; outline: none; font-size: 12.5px; }
.search-wrap input:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(46,90,75,.08); }
.select-wrap { position: relative; }
.select-wrap select { height: 40px; padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; outline: none; font-size: 12.5px; appearance: none; color: var(--ink-soft); }
.select-wrap::after { content: "⌄"; position: absolute; right: 11px; top: 50%; transform: translateY(-55%); color: var(--muted-light); font-size: 13px; pointer-events: none; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.filter-pill { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 11.5px; }
.filter-pill:hover { border-color: var(--pine); color: var(--pine); }
.filter-pill.active { background: var(--pine); border-color: var(--pine); color: #fdfaf0; }
.bank-count { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; color: var(--muted); font-size: 11.5px; }
.bank-count b { color: var(--ink-soft); font-weight: 600; }
.bank-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.bank-row { display: grid; grid-template-columns: 44px minmax(0,1fr) 150px 100px 28px; gap: 12px; align-items: center; padding: 16px 20px; border: 0; border-bottom: 1px solid rgba(49,62,54,.09); background: var(--card); transition: background .15s; text-align: left; width: 100%; }
.bank-row:last-child { border-bottom: 0; }
.bank-row:hover { background: #fffdf8; }
.bank-row .b-no { font-family: var(--mono); color: var(--muted-light); font-size: 11px; }
.bank-row .b-main { min-width: 0; overflow: hidden; }
.bank-row .b-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.bank-row .b-text { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-size: 12.8px; }
.bank-row .b-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.bank-row .b-status { justify-self: end; }
.bank-row .b-arrow { color: var(--muted-light); display: grid; place-items: center; }
.bank-row:hover .b-arrow { color: var(--pine); }
.bank-empty { padding: 64px 20px; text-align: center; color: var(--muted); }
.bank-empty b { display: block; margin-bottom: 5px; color: var(--ink-soft); font-family: var(--serif); font-size: 20px; font-weight: 600; }
.load-more { display: flex; justify-content: center; padding: 22px 0; }

/* ---------- report ---------- */
.report-page { padding: 44px 0 80px; }
.report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.metric-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.metric-card .mc-label { color: var(--muted); font-size: 11px; }
.metric-card b { display: block; margin: 5px 0 1px; font-family: var(--serif); font-size: 31px; font-weight: 600; line-height: 1.2; }
.metric-card span { color: var(--muted-light); font-size: 10.5px; }
.report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.report-block { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.report-block h2 { margin: 0 0 16px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.report-block h2 span { color: var(--muted); font-family: var(--sans); font-size: 11px; font-weight: 400; margin-left: 7px; }
.year-table { width: 100%; border-collapse: collapse; }
.year-table th, .year-table td { padding: 9px 6px; border-bottom: 1px solid rgba(49,62,54,.08); text-align: left; font-size: 12px; }
.year-table th { color: var(--muted-light); font-weight: 500; font-size: 10.5px; }
.year-table td:last-child, .year-table th:last-child { text-align: right; }
.year-table .mini-track { width: 78px; height: 5px; border-radius: 99px; background: var(--paper-deep); display: inline-block; vertical-align: middle; overflow: hidden; }
.year-table .mini-track i { display: block; height: 100%; background: var(--pine); border-radius: inherit; }
.attempt-list { display: flex; flex-direction: column; }
.attempt-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 11.5px; }
.attempt-row:last-child { border-bottom: 0; }
.attempt-row .a-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--ok); }
.attempt-row .a-dot.bad { background: var(--bad); }
.attempt-row .a-text { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.attempt-row .a-time { color: var(--muted-light); font-family: var(--mono); font-size: 10px; }
.danger-zone { margin-top: 16px; padding: 20px 22px; border: 1px dashed rgba(182,72,48,.35); border-radius: var(--radius); background: rgba(243,223,214,.18); }
.danger-zone h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--vermilion); }
.danger-zone p { margin: 0 0 12px; color: var(--muted); font-size: 11.5px; }

/* ---------- modal / toast ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(26,36,31,.42); backdrop-filter: blur(4px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(520px, 100%); max-height: 88vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-lg); animation: rise .28s; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 21px 24px 15px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.modal-body { padding: 20px 24px 24px; }
.modal-section { margin-bottom: 22px; }
.modal-section:last-child { margin-bottom: 0; }
.modal-section h3 { margin: 0 0 5px; font-size: 13px; font-weight: 600; }
.modal-section p { margin: 0 0 10px; color: var(--muted); font-size: 11.5px; line-height: 1.75; }
.field { display: flex; flex-direction: column; gap: 5px; margin-top: 9px; }
.field label { color: var(--muted); font-size: 11px; }
.field input, .field select { height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: #fffdf8; outline: none; font-size: 12.5px; }
.field input:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(46,90,75,.08); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.switch-row:last-child { border-bottom: 0; }
.switch-row .sw-copy b { display: block; font-size: 12.5px; font-weight: 600; }
.switch-row .sw-copy span { color: var(--muted); font-size: 10.5px; }
.switch { position: relative; width: 40px; height: 23px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #d8d2c6; transition: .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: .2s; }
.switch input:checked + i { background: var(--pine); }
.switch input:checked + i::after { transform: translateX(17px); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 26px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; padding: 10px 17px; border-radius: 8px; background: var(--ink); color: #fbf7ee; font-size: 12px; box-shadow: var(--shadow-md); transition: all .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(236,226,210,.26); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-top: 22px; padding-bottom: 24px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.footer-inner b { color: var(--ink-soft); font-family: var(--serif); font-size: 13px; letter-spacing: .08em; }
.footer-inner p { margin: 0; max-width: 700px; text-align: right; }

/* ---------- responsive ---------- */
/* ---------- multi-question paper ---------- */
.paper-page { padding: 28px 0 90px; }
.paper-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.paper-title { display: flex; align-items: center; gap: 13px; min-width: 0; }
.paper-title .back-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--muted); font-size: 12.5px; padding: 5px 0; }
.paper-title .back-btn .ico { width: 15px; height: 15px; }
.paper-title h1 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paper-clocks { display: flex; align-items: center; gap: 14px; flex: none; }
.paper-progress { margin-bottom: 22px; }
.paper-sheet {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 42px 56px 46px;
  border: 1px solid rgba(49, 62, 54, .16);
  border-radius: 3px 16px 4px 16px;
  background: var(--card-strong);
  box-shadow: 0 20px 60px rgba(50, 45, 35, .07);
}
.paper-sheet::before { content: ""; position: absolute; top: 0; left: 56px; right: 56px; height: 3px; background: linear-gradient(90deg, var(--vermilion), var(--gold), transparent 72%); opacity: .7; }
.paper-sheet-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.paper-sheet-head h2 { margin: 6px 0 0; font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: .03em; }
.paper-sheet-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12px; padding-bottom: 4px; }
.paper-sheet-meta b { color: var(--ink-soft); font-weight: 600; }
.paper-instruction { display: flex; align-items: flex-start; gap: 9px; margin: 20px 0 4px; padding: 11px 14px; border-left: 2px solid var(--gold); background: rgba(239, 228, 207, .25); color: var(--muted); font-size: 13px; line-height: 1.8; }
.paper-instruction .ico { width: 15px; height: 15px; color: var(--gold); margin-top: 3px; flex: none; }
.paper-question { padding: 30px 0 34px; border-bottom: 1px dashed var(--line-strong); scroll-margin-top: 92px; }
.paper-question:last-child { border-bottom: 0; }
.paper-q-head { display: flex; align-items: center; gap: 12px; }
.paper-q-no { width: 38px; flex: none; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--gold); }
.paper-q-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 0; }
.paper-q-qid { margin-left: 3px; color: var(--muted-light); font-family: var(--mono); font-size: 10px; }
.paper-q-state { margin-left: auto; flex: none; padding: 3px 9px; border-radius: 999px; background: var(--paper-deep); color: var(--muted); font-size: 10.5px; font-weight: 600; }
.paper-q-state.answered { background: var(--pine-soft); color: var(--pine-deep); }
.paper-q-state.ok { background: #e2ede3; color: var(--ok); }
.paper-q-state.bad { background: #f5e0d9; color: var(--bad); }
.paper-passage { margin: 15px 0 0; }
.paper-q-instruction { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink-soft); font-family: var(--sans); font-size: 14px; line-height: 1.7; }
.paper-q-instruction b { color: var(--vermilion); font-weight: 600; }
.paper-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }
.paper-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfbf6;
  text-align: left;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
button.paper-option:hover { border-color: rgba(46,90,75,.4); background: #fffdf8; }
.paper-option .letter { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-family: var(--serif); font-size: 13px; font-weight: 600; }
.paper-option .opt-text { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.paper-option .opt-check { color: transparent; display: grid; place-items: center; }
.paper-option .opt-check .ico { width: 15px; height: 15px; }
.paper-option.selected { border-color: var(--pine); background: rgba(46,90,75,.055); box-shadow: inset 0 0 0 1px rgba(46,90,75,.08); }
.paper-option.selected .letter { background: var(--pine); border-color: var(--pine); color: #fffdf6; }
.paper-option.selected .opt-text { color: var(--ink); font-weight: 600; }
.paper-option.selected .opt-check { color: var(--pine); }
.paper-option.correct { border-color: var(--ok); background: rgba(47,107,81,.075); }
.paper-option.correct .letter { background: var(--ok); border-color: var(--ok); color: #fffdf6; }
.paper-option.wrong { border-color: rgba(168,64,44,.5); background: rgba(168,64,44,.055); }
.paper-option.wrong .letter { background: var(--bad); border-color: var(--bad); color: #fffdf6; }
.paper-option.dim { opacity: .62; }
.paper-option .opt-flag { color: var(--muted-light); font-size: 10px; white-space: nowrap; }
.paper-option.correct .opt-flag { color: var(--ok); }
.paper-option.wrong .opt-flag { color: var(--bad); }
.paper-q-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--muted-light); font-size: 11.5px; }
.paper-q-foot .ico { width: 13px; height: 13px; vertical-align: -2px; }
.paper-q-result { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 15px; margin-top: 18px; padding: 10px 13px; border-radius: 8px; background: rgba(236,226,210,.28); color: var(--muted); font-size: 12px; }
.paper-q-result b { color: var(--ink-soft); font-weight: 600; }
.paper-explain { margin-top: 12px; border-top: 1px dashed var(--line); }
.paper-explain summary { display: flex; align-items: center; gap: 7px; padding: 13px 2px 11px; color: var(--pine); font-size: 12.5px; font-weight: 600; cursor: pointer; list-style: none; }
.paper-explain summary::-webkit-details-marker { display: none; }
.paper-explain summary .ico { width: 15px; height: 15px; }
.paper-explain summary .explain-toggle { margin-left: auto; color: var(--muted-light); font-size: 10.5px; font-weight: 400; }
.paper-explain[open] summary .explain-toggle { color: var(--gold); }
.paper-explain-body { padding: 2px 0 6px; }
.paper-explain-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.paper-explain-grid h4 { margin: 0 0 10px; font-family: var(--serif); font-size: 15px; font-weight: 600; }
.paper-deep { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.paper-deep-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.paper-deep-btn .ico { width: 14px; height: 14px; }
.paper-deep-body { margin-top: 8px; padding: 11px 13px; border-radius: 8px; background: rgba(220,232,223,.34); color: var(--ink-soft); font-size: 12.5px; line-height: 1.8; }
.paper-deep-body p { margin: 0 0 7px; }
.paper-deep-body p:last-child { margin-bottom: 0; }
.paper-submit-card { display: flex; align-items: center; gap: 26px; margin-top: 26px; padding: 20px 22px; border: 1px solid rgba(46,90,75,.2); border-radius: 12px; background: rgba(220,232,223,.35); }
.paper-submit-copy { flex: 1; min-width: 0; }
.paper-submit-count { display: flex; align-items: baseline; gap: 9px; }
.paper-submit-count b { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.paper-submit-count span { color: var(--muted); font-size: 11.5px; }
.paper-submit-progress { height: 6px; margin-top: 8px; border-radius: 99px; background: rgba(49,62,54,.1); overflow: hidden; }
.paper-submit-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--pine)); transition: width .3s; }
.paper-submit-card .btn { flex: none; }
.paper-result-banner { display: grid; grid-template-columns: 1.35fr repeat(3, .55fr); gap: 18px; align-items: center; margin: 22px 0 8px; padding: 22px 24px; border-radius: 12px; background: var(--pine-deep); color: #f8f3e7; }
.paper-result-banner .eyebrow { color: #d8be92; font-size: 10px; }
.paper-result-banner .eyebrow::before { background: #d8be92; }
.pr-score b { display: block; margin: 5px 0 2px; font-family: var(--serif); font-size: 39px; font-weight: 500; line-height: 1.1; }
.pr-score b span { color: rgba(248,243,231,.55); font-size: 17px; font-weight: 400; }
.pr-score p { margin: 0; color: rgba(248,243,231,.64); font-size: 11.5px; line-height: 1.7; }
.pr-stat { padding-left: 15px; border-left: 1px solid rgba(248,243,231,.16); }
.pr-stat b { display: block; font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.3; }
.pr-stat span { color: rgba(248,243,231,.52); font-size: 10px; }
.pr-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.paper-result-banner .btn-primary { background: #f2e5cb; color: var(--pine-deep); box-shadow: none; }
.paper-result-banner .btn-ghost { border-color: rgba(248,243,231,.28); color: #f8f3e7; background: transparent; }
.paper-result-banner .btn-ghost:hover { border-color: #f8f3e7; color: #fff; background: rgba(255,255,255,.06); }
.paper-submitted-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: 12px; }
.paper-submitted-footer .ico { width: 15px; height: 15px; color: var(--ok); vertical-align: -2px; }
.paper-footer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.paper-question.needs-answer { animation: paperPulse 1.1s ease 1; }
@keyframes paperPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(182,72,48,0); }
  30% { box-shadow: 0 0 0 3px rgba(182,72,48,.22); }
}

/* ---------- readability pass: larger, clearer reading text ---------- */
body { font-size: 16.5px; line-height: 1.75; }
.nav a { font-size: 15px; }
.brand-word strong { font-size: 23px; }
.brand-word em { font-size: 11.5px; }
.eyebrow { font-size: 12px; }
.badge { font-size: 12px; padding: 3px 9px; }
.btn { font-size: 15px; }
.btn-sm { font-size: 13.5px; }

.hero-lede { font-size: 17px; line-height: 1.95; }
.hero-meta b { font-size: 28px; }
.hero-meta span { font-size: 12.5px; }
.today-question { font-size: 18.5px; line-height: 1.95; }
.today-options span { font-size: 14px; }
.today-top .mini-label { font-size: 12px; }
.today-foot small { font-size: 12.5px; }
.today-foot a { font-size: 13.5px; }
.section-head h2 { font-size: 32px; }
.section-head p { font-size: 14.5px; }
.mode-card h3 { font-size: 20px; }
.mode-card p { font-size: 14px; }
.mode-card .mode-foot { font-size: 12.5px; }
.year-chip b { font-size: 21px; }
.year-chip span { font-size: 12px; }
.stat-card p { font-size: 13.5px; }
.stat-lines span { font-size: 11.5px; }
.activity-col span { font-size: 10.5px; }

.practice-title h1 { font-size: 24px; }
.clock-item { font-size: 13px; }
.clock-item b { font-size: 14px; }
.passage { font-size: 23.5px; line-height: 1.95; color: #1f2c26; }
.passage .blank-slot, .blank-slot { min-width: 74px; height: 26px; font-size: 12px; }
.blank-slot.filled {
  display: inline;
  min-width: 0;
  height: auto;
  margin: 0 3px;
  padding: 0 4px 1px;
  border-bottom: 2px solid var(--ok);
  border-radius: 3px 3px 0 0;
  color: var(--ok);
  background: rgba(47, 107, 81, .11);
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  letter-spacing: .01em;
  vertical-align: baseline;
  animation: answerIn .38s ease both;
}
@keyframes answerIn {
  from { background: rgba(181, 138, 78, .38); transform: translateY(2px); }
  to { background: rgba(47, 107, 81, .11); transform: translateY(0); }
}
.passage-card { scroll-margin-top: 86px; }
.passage-instruction { font-size: 16px; line-height: 1.8; }
.passage-foot { font-size: 13px; }
.answer-head h2 { font-size: 19px; }
.answer-head .hint-key { font-size: 11.5px; }
.option { min-height: 58px; padding: 10px 13px; grid-template-columns: 30px minmax(0, 1fr) 18px; }
.option .letter { width: 28px; height: 28px; font-size: 14px; }
.option .opt-text { font-size: 16.5px; line-height: 1.65; }
.answer-meta { font-size: 12.5px; }
.answer-footnote { font-size: 12.5px; line-height: 1.7; }
.result-title b { font-size: 21px; }
.result-detail { font-size: 14px; line-height: 1.8; }
.result-stats { font-size: 12px; }

.analysis-head h2 { font-size: 25px; }
.analysis-head .analysis-sub { font-size: 13px; }
.analysis-tab { font-size: 14px; }
.logic-step { font-size: 14.5px; line-height: 1.85; }
.option-note .on-body { font-size: 13.5px; line-height: 1.75; }
.option-note .on-title { font-size: 14px; }
.option-note .on-title .mini-flag { font-size: 10.5px; }
.diagnosis-card p { font-size: 14px; line-height: 1.8; }
.advice-item { font-size: 13.5px; line-height: 1.75; }
.process-stat b { font-size: 24px; }
.process-stat span { font-size: 12px; }
.timeline-top { font-size: 14px; }
.timeline-note { font-size: 13px; }
.source-card .src-row { font-size: 14px; }
.source-card .src-k { width: 76px; }
.official-note { font-size: 13px; }
.ask-head b { font-size: 16px; }
.ask-head span { font-size: 12.5px; }
.ask-chip { font-size: 12.5px; padding: 6px 12px; }
.ask-form input { font-size: 14px; height: 44px; }
.chat-bubble { font-size: 13.5px; line-height: 1.8; }

.score-copy h1 { font-size: 31px; }
.score-copy p { font-size: 14px; }
.summary-stat span { font-size: 12px; }
.summary-stat em { font-size: 11px; }
.review-row .r-main b { font-size: 14px; }
.review-row .r-main span { font-size: 12px; }
.review-row .r-time { font-size: 11.5px; }
.insight-card h3 { font-size: 18px; }
.insight-card p { font-size: 13.5px; }
.tag-bar .tb-top { font-size: 12.5px; }
.tag-bar .tb-top span { font-size: 11.5px; }

.bank-row .b-no { font-size: 12px; }
.bank-row .b-text { font-size: 14.5px; }
.filter-pill { font-size: 12.5px; padding: 6px 12px; }
.bank-count { font-size: 12.5px; }
.search-wrap input, .select-wrap select { font-size: 13.5px; }
.bank-empty { font-size: 14px; }
.bank-empty b { font-size: 22px; }

.metric-card .mc-label { font-size: 12.5px; }
.metric-card span { font-size: 11.5px; }
.report-block h2 { font-size: 20px; }
.year-table th { font-size: 11.5px; }
.year-table td { font-size: 13.5px; }
.attempt-row { font-size: 13px; }
.attempt-row .a-time { font-size: 11px; }
.danger-zone p { font-size: 12.5px; }
.footer-inner { font-size: 12px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-lede { font-size: 16.5px; }
  .today-question { font-size: 18px; }
  .passage { font-size: 21.5px; line-height: 1.95; }
  .passage .blank-slot:not(.filled) { min-width: 54px; height: 22px; margin: 0 2px; padding: 0 4px; font-size: 10.5px; }
  .passage-notes { margin: 11px 0 14px; padding-left: 12px; }
  .note-reason { font-size: 13.5px; line-height: 1.75; }
  .inline-note { padding: 10px 12px; }
  .option .opt-text { font-size: 16.5px; }
  .analysis-head h2 { font-size: 22px; }
  .section-head h2 { font-size: 27px; }
}

@media (max-width: 1060px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr); gap: 30px; }
  .hero h1 { font-size: 48px; }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .analysis-grid { grid-template-columns: 1fr; gap: 24px; }
  .analysis-col + .analysis-col { padding-left: 0; border-left: 0; padding-top: 22px; border-top: 1px solid var(--line); }
  .summary-hero { grid-template-columns: 1fr; }
  .summary-body { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .topbar { height: 66px; padding: 0 18px; gap: 16px; }
  .paper-page { padding-top: 18px; }
  .paper-top { flex-wrap: wrap; gap: 10px; }
  .paper-title h1 { font-size: 21px; }
  .paper-clocks { width: 100%; justify-content: space-between; }
  .paper-sheet { padding: 32px 26px 34px; }
  .paper-sheet::before { left: 26px; right: 26px; }
  .paper-sheet-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .paper-sheet-head h2 { font-size: 25px; }
  .paper-options { grid-template-columns: 1fr; }
  .paper-explain-grid { grid-template-columns: 1fr; gap: 20px; }
  .paper-result-banner { grid-template-columns: 1fr 1fr; }
  .pr-score { grid-column: 1 / -1; }
  .paper-submit-card { align-items: stretch; flex-direction: column; gap: 16px; }
  .paper-submit-card .btn { width: 100%; }
  .brand-word em { display: none; }
  .nav { margin-left: 0; gap: 0; }
  .nav a { padding: 8px 10px; font-size: 13px; }
  .streak-pill { display: none; }
  .container { padding: 0 18px; }
  .hero { grid-template-columns: 1fr; padding: 42px 0 34px; gap: 32px; }
  .hero h1 { font-size: clamp(38px, 9vw, 56px); }
  .today-card { transform: none; max-width: 560px; }
  .practice-grid { grid-template-columns: 1fr; }
  .answer-card { position: static; }
  .passage-card { padding: 26px 24px 28px; min-height: 0; }
  .passage { font-size: 21.5px; line-height: 1.95; }
  .passage-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hint-key { display: none; }
  .practice-top { align-items: flex-start; }
  .practice-title h1 { font-size: 19px; }
  .practice-clocks { gap: 10px; }
  .clock-item.session-clock { display: none; }
  .stats-band { grid-template-columns: 1fr; }
  .bank-row { grid-template-columns: 34px minmax(0,1fr) 80px 26px; gap: 10px; padding: 14px; }
  .bank-row .b-tags { display: none; }
  .bank-row .b-status { justify-self: end; }
  .report-cols { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; }
  .footer-inner p { text-align: left; }
}
@media (max-width: 600px) {
  .paper-sheet { padding: 24px 16px 28px; border-radius: 3px 12px 4px 12px; }
  .paper-sheet::before { left: 16px; right: 16px; }
  .paper-sheet-head h2 { font-size: 22px; }
  .paper-sheet-meta { gap: 8px 12px; font-size: 11px; }
  .paper-title h1 { font-size: 19px; }
  .paper-q-no { width: 31px; font-size: 25px; }
  .paper-q-head { gap: 8px; }
  .paper-q-qid { display: none; }
  .paper-option .opt-text { font-size: 15px; }
  .paper-q-result { gap: 6px 10px; font-size: 11.5px; }
  .paper-result-banner { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; }
  .pr-score { grid-column: 1 / -1; }
  .pr-score b { font-size: 34px; }
  .pr-stat { padding-left: 0; border-left: 0; }
  .pr-stat b { font-size: 20px; }
  .paper-submitted-footer { align-items: flex-start; flex-direction: column; }
  .paper-q-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-head { flex-wrap: wrap; gap: 8px 14px; }
  .section-head h2 { white-space: nowrap; }
  .section-head > .muted { display: none; }
  .topbar { gap: 10px; }
  .brand-word strong { font-size: 19px; }
  .brand-seal { width: 33px; height: 33px; font-size: 19px; }
  .nav a { padding: 7px 8px; font-size: 12.5px; }
  .nav a.active::after { left: 8px; right: 8px; }
  .icon-btn { width: 32px; height: 32px; }
  .hero-actions .btn { flex: 1; min-width: 150px; }
  .hero-meta { gap: 18px; }
  .hero-meta b { font-size: 22px; }
  .today-options { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 150px; }
  .section-head h2 { font-size: 25px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .practice-page { padding-top: 18px; }
  .practice-top { flex-wrap: wrap; }
  .practice-clocks { width: 100%; justify-content: space-between; padding-top: 2px; }
  .analysis-head { flex-wrap: wrap; padding: 20px; }
  .analysis-verdict { margin-left: 57px; }
  .analysis-body { padding: 20px; }
  .analysis-tabs { padding: 0 12px; }
  .process-figure { grid-template-columns: 1fr 1fr 1fr; }
  .summary-stats { grid-template-columns: 1fr 1fr; }
  .review-row { grid-template-columns: 22px minmax(0,1fr) 58px; }
  .review-row .r-time { display: none; }
  .report-grid { grid-template-columns: 1fr 1fr; }
  .score-card { flex-direction: column; align-items: flex-start; gap: 18px; }
  .score-ring { width: 124px; height: 124px; }
  .score-ring b { font-size: 38px; }
  .bank-toolbar { padding: 10px; }
  .modal { border-radius: 14px; }
  .ask-form { flex-direction: column; }
  .ask-form button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
