/* 复习：纸色底、墨色字；松绿是主色，朱砂和赭色只用来表示“忘了／模糊”。
   卡片正文用宋体，界面用系统黑体。手机优先，一栏到底。 */

:root {
  --paper: #f5f2ea; --surface: #fffdf8; --sunk: #ece8dc;
  --ink: #22201c; --ink-2: #4a463f; --muted: #7d776c; --line: #e0dbcd;
  --pine: #2e5a4c; --pine-ink: #fff; --pine-soft: #dfe9e3;
  --cinnabar: #b4412f; --cinnabar-soft: #f3dfd9;
  --ochre: #a8731a; --ochre-soft: #f3e7cc;
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", STSong, SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --r: 14px;
  --bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171614; --surface: #211f1c; --sunk: #131210;
    --ink: #ece7dc; --ink-2: #cdc7ba; --muted: #958e82; --line: #35322c;
    --pine: #86bba8; --pine-ink: #10201b; --pine-soft: #22332d;
    --cinnabar: #e07a66; --cinnabar-soft: #3a221d;
    --ochre: #d8a548; --ochre-soft: #382d17;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.boot { margin: 40vh 0 0; text-align: center; color: var(--muted); font-family: var(--serif); letter-spacing: .3em; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .875rem; }
.eyebrow { color: var(--muted); font-size: .8125rem; letter-spacing: .04em; display: flex; flex-wrap: wrap; align-items: center; gap: .5em; }
.empty { padding: 18vh 0 0; text-align: center; color: var(--muted); display: grid; gap: 16px; justify-items: center; }
.dot { margin: 0 .4em; color: var(--line); }

/* —— 外壳 —— */

.shell { max-width: 640px; margin: 0 auto; min-height: 100dvh; }
.page { padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(96px + var(--bottom)); display: grid; gap: 24px; align-content: start; }
.banner { padding: calc(6px + env(safe-area-inset-top, 0px)) 20px 6px; font-size: .8125rem; color: var(--ochre); background: var(--ochre-soft); text-align: center; }
.banner:not([hidden]) + .page { padding-top: 20px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; justify-content: center; gap: 4px;
  padding: 6px 12px calc(6px + var(--bottom));
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a { flex: 0 1 200px; padding: 10px 0; text-align: center; border-radius: 10px; color: var(--muted); font-size: .9375rem; }
.tabbar a[aria-current] { color: var(--pine); font-weight: 600; background: var(--pine-soft); }
[data-route="review"] .tabbar { display: none; }
[data-route="review"] .page { padding: 0; display: block; }

/* —— 通用件 —— */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 500; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--pine); border-color: var(--pine); color: var(--pine-ink); font-weight: 600; }
.btn-big { width: 100%; min-height: 54px; font-size: 1.0625rem; border-radius: var(--r); }
.btn-quiet { background: none; color: var(--cinnabar); }
.link { background: none; border: 0; padding: 6px 2px; color: var(--pine); font-size: .875rem; white-space: nowrap; }
.link:disabled { opacity: .5; }

.chip, .tag { display: inline-block; padding: 0 .55em; border-radius: 999px; font-size: .75rem; line-height: 1.7; letter-spacing: 0; }
.chip { background: var(--sunk); color: var(--ink-2); }
.chip-verbatim, .chip-full { background: var(--pine-soft); color: var(--pine); }
.chip-reactivate, .chip-structure { background: var(--ochre-soft); color: var(--ochre); }
.tag { border: 1px solid var(--cinnabar); color: var(--cinnabar); }
.plan-meta .chip { margin-right: .6em; }
.plan-meta .tag { margin-left: .6em; padding: 0; border: 0; color: var(--ochre); }

.seal {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px;
  background: var(--pine); color: var(--pine-ink); font: 600 2rem/1 var(--serif);
}

.input, .select, .search, .write {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); font-size: 1rem;
}
.input-short { width: 7em; }
.select { appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.write { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.8; resize: vertical; min-height: 9em; }

.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--sunk); gap: 2px; }
.seg button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font-size: .9375rem; }
.seg button.is-on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }

.toasts { position: fixed; left: 0; right: 0; bottom: calc(76px + var(--bottom)); z-index: 20; display: grid; justify-items: center; padding: 0 16px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: 480px;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--paper);
  font-size: .9375rem; box-shadow: 0 6px 24px rgb(0 0 0 / .18); animation: rise .18s ease-out;
}
.toast.is-bad { background: var(--cinnabar); color: #fff; }
.toast button { background: none; border: 0; padding: 4px 0; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
[data-route="review"] .toasts { bottom: calc(150px + var(--bottom)); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* —— 登录 —— */

.login { min-height: 100dvh; max-width: 340px; margin: 0 auto; padding: 0 24px 12vh; display: grid; align-content: center; justify-items: center; gap: 12px; text-align: center; }
.login h1 { font: 600 1.75rem/1.3 var(--serif); letter-spacing: .2em; margin-right: -.2em; }
.login-form { width: 100%; display: grid; gap: 10px; margin-top: 16px; }
.login-form input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: center; font-size: 1rem; }
.login-form .btn { min-height: 48px; }
.form-error { min-height: 1.6em; color: var(--cinnabar); font-size: .875rem; }

/* —— 今天 —— */

.page-head { display: grid; gap: 6px; }
.page-head h1 { font: 600 1.75rem/1.35 var(--serif); }
.pips { display: flex; gap: 6px; }
.pip { flex: 1; max-width: 56px; height: 6px; border-radius: 3px; background: var(--line); }
.pip.is-done { background: var(--pine); }
.note { font-size: .875rem; color: var(--ochre); }
.nudge { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--sunk); font-size: .875rem; color: var(--ink-2); }

.block { display: grid; gap: 12px; }
.block > h2 { font-size: .8125rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; display: flex; align-items: baseline; gap: .6em; }
.block > h2 .count { font-weight: 400; }
.plan { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.plan > li + li { border-top: 1px solid var(--line); }
.plan-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.plan-item { display: flex; align-items: stretch; }
.plan-item > .plan-row { flex: 1; min-width: 0; }
.plan-item > .link { padding: 12px 14px 12px 0; }
.plan a.plan-row:hover { background: var(--sunk); }
.plan a.plan-row:focus-visible { outline-offset: -3px; }
.plan-text { flex: 1; min-width: 0; }
.plan-prompt { font-family: var(--serif); font-size: 1rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plan-meta { margin-top: 2px; font-size: .8125rem; color: var(--muted); }
.plan .is-done .plan-prompt { color: var(--muted); }
.importance { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.important-toggle[aria-pressed="true"] { color: var(--ochre); border-color: var(--ochre); background: var(--ochre-soft); }
.chev { color: var(--line); font-size: 1.25rem; }

/* —— 复习 —— */

.choose-tools, .choose-book { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.choose-book h2 { font-size: .9375rem; }
.choose-filter { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.choose-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.choose-row input, .choose-filter input { flex: none; width: 22px; height: 22px; accent-color: var(--pine); }
.choose-row .plan-prompt { display: block; }
.choose-footer { position: sticky; bottom: calc(66px + var(--bottom)); z-index: 4; padding: 10px 0; display: grid; gap: 6px; background: var(--paper); }
.choose-footer .hint { text-align: center; }

.rv { min-height: 100dvh; display: flex; flex-direction: column; }
.rv > .empty { margin: auto; padding: 0 20px; }
.rv-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; background: var(--paper); }
.rv-previous { flex: none; min-height: 44px; padding: 8px 10px; font-size: .875rem; }
.rv-history-label { margin-left: auto; color: var(--muted); font-size: .8125rem; }
.rv-history-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-note-saved { display: grid; gap: 4px; padding: 12px 16px; border-left: 2px solid var(--pine); border-radius: 0 12px 12px 0; background: var(--pine-soft); color: var(--ink-2); }
.review-note-saved p, .review-log-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.review-log-note { flex-basis: 100%; padding: 8px 12px; margin-bottom: 8px; border-radius: 8px; background: var(--sunk); color: var(--ink-2); line-height: 1.7; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 1.0625rem; }
.bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--pine); transition: width .25s ease; }
.rv-count { min-width: 3.5em; padding-right: 8px; text-align: right; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.rv-card { flex: 1; padding: 12px 20px 28px; display: grid; gap: 18px; align-content: start; scroll-margin-top: 80px; }
.prompt { font: 600 1.375rem/1.55 var(--serif); display: grid; gap: .5em; text-wrap: pretty; }
.prompt-focus { font-size: 1.125rem; color: var(--ink-2); }
.focus-context { font: 400 .9375rem/1.7 var(--serif); color: var(--muted); }
.focus-scope { font: 600 1.125rem/1.6 var(--serif); color: var(--ink); }
.callout { padding: 10px 14px; border-radius: 12px; background: var(--ochre-soft); color: var(--ochre); font-size: .9375rem; }

.answer { display: grid; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.points { display: grid; gap: 1.2em; font: 1.0625rem/1.8 var(--serif); text-wrap: pretty; overflow-wrap: anywhere; }
.point { display: grid; gap: .5em; }
.manuscript h3 { font: inherit; font-weight: 700; }
.manuscript ul { padding-left: 1.3em; list-style: disc; }
.manuscript li + li { margin-top: .5em; }
.manuscript blockquote { padding-left: 14px; border-left: 2px solid var(--pine); }
.review-hint { display: grid; gap: .5em; }
.hint-button { justify-self: center; min-height: 44px; }
.recall-tools { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.recall-tools .hint-button { font-size: .875rem; }
.recall-tools .hint-button[aria-expanded="true"] { color: var(--pine); border-color: var(--pine); background: var(--pine-soft); }
.memory-check { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.memory-check > .lead { color: var(--pine); font-size: .8125rem; }
.memory-check-question { font-weight: 600; line-height: 1.6; }
.memory-note { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 12px; border-left: 2px solid var(--pine); color: var(--ink-2); font-size: .9375rem; line-height: 1.8; }
.memory-check-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.memory-check-actions .btn { min-height: 44px; padding: 10px 8px; font-size: .875rem; }
.memory-check-actions [aria-pressed="true"] { color: var(--pine); background: var(--pine-soft); border-color: var(--pine); }
.memory-check .hint { font-size: .75rem; }
.log .review-check-saved { flex-basis: 100%; margin-bottom: 8px; }
.point.is-quote, .point.is-warn { padding-left: 14px; border-left: 2px solid var(--pine); }
.point.is-warn { border-color: var(--cinnabar); }
.point.is-warn > .lead { color: var(--cinnabar); }
.point.is-aside { font-size: .9375rem; color: var(--muted); }
summary.lead { display: list-item; cursor: pointer; }
summary.lead + .point { padding-top: .5em; }
.points strong, .prompt strong { color: var(--pine); font-weight: 700; }
.paren { font-size: .92em; color: color-mix(in srgb, var(--ink) 58%, var(--paper)); }
.is-aside .paren { color: inherit; }
strong .paren { font-weight: 400; }
.verse p { font-size: 1.25rem; font-weight: 600; line-height: 1.85; }
.items { display: grid; gap: .5em; }
.items li { display: grid; grid-template-columns: 1.6em 1fr; }
.items li > i, .chain i { font-style: normal; color: var(--pine); }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chain span { padding: 0 .6em; border-radius: 8px; background: var(--sunk); }
.gloss { display: grid; grid-template-columns: fit-content(42%) 1fr; gap: .35em 1em; }
.gloss dt { font-weight: 700; color: var(--pine); }
.gloss.is-stacked { grid-template-columns: 1fr; gap: 0; }
.gloss.is-stacked dd + dt { margin-top: .5em; }
.lead { display: block; font: 600 .75rem/1.9 var(--sans); color: var(--muted); letter-spacing: .08em; }
.mark { margin: 0 .3em; padding: .1em .5em; border-radius: 6px; background: var(--sunk); color: var(--muted); font: .75rem/1.6 var(--sans); white-space: nowrap; vertical-align: .1em; }
.rubric, .typed { padding: 12px 14px; border-radius: 12px; background: var(--sunk); font-size: .9375rem; color: var(--ink-2); display: grid; gap: .3em; }
.typed p:not(.hint) { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.d-miss { color: var(--cinnabar); font-weight: 700; background: var(--cinnabar-soft); border-radius: 3px; }
.d-extra { color: var(--muted); text-decoration: line-through; }
.extras { font-size: .875rem; color: var(--ink-2); }
.extras summary { padding: 6px 0; color: var(--muted); cursor: pointer; }
.extras p { margin-top: 6px; overflow-wrap: anywhere; }

.rv-foot {
  position: sticky; bottom: 0; z-index: 3; display: grid; gap: 10px;
  padding: 12px 16px calc(14px + var(--bottom));
  background: linear-gradient(to top, var(--paper) calc(100% - 14px), transparent);
}
.ruler { font-size: .8125rem; color: var(--muted); text-align: center; }
.grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grade { min-height: 62px; padding: 8px 4px; border-radius: var(--r); border: 1.5px solid transparent; display: grid; gap: 1px; align-content: center; justify-items: center; }
.grade b { font-size: 1rem; font-weight: 600; }
.grade small { font-size: .75rem; opacity: .8; }
.grade:active { transform: translateY(1px); }
.grade-fail { background: var(--cinnabar-soft); color: var(--cinnabar); }
.grade-partial { background: var(--ochre-soft); color: var(--ochre); }
.grade-pass { background: var(--pine); color: var(--pine-ink); }
.grade.is-suggested { border-color: currentColor; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px currentColor; }
.grade-pass.is-suggested { border-color: var(--pine); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--pine); }

.rv-done { align-items: center; justify-content: center; gap: 16px; padding: calc(40px + env(safe-area-inset-top, 0px)) 20px calc(32px + var(--bottom)); text-align: center; }
.rv-done h1 { font: 600 1.625rem/1.35 var(--serif); }
.rv-done .plan { width: 100%; text-align: left; margin-top: 8px; }
.rv-actions { width: 100%; display: flex; gap: 10px; margin-top: 8px; }
.rv-actions .btn { flex: 1; min-height: 52px; }

/* —— 卡库 —— */

.filters { display: grid; gap: 10px; }
.card-list { display: grid; gap: 24px; }
.back { color: var(--pine); font-size: .9375rem; padding: 6px 0; justify-self: start; }
.detail { display: grid; gap: 16px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .9375rem; }
.facts dt { color: var(--muted); }
.marks { display: flex; flex-wrap: wrap; gap: 5px; }
.marks i { width: 10px; height: 10px; border-radius: 50%; }
.mark-pass { background: var(--pine); }
.mark-partial { background: var(--ochre); }
.mark-fail { background: var(--cinnabar); }
.choice { display: grid; gap: 8px; }
.choice .link { justify-self: start; padding-left: 0; }
.choice legend, .choice label, .field-name { font-size: .875rem; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.log { font-size: .875rem; display: grid; gap: 6px; }
.log li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.log li.is-undone { opacity: .5; text-decoration: line-through; }
.res { font-weight: 600; }
.res-pass { color: var(--pine); }
.res-partial { color: var(--ochre); }
.res-fail { color: var(--cinnabar); }

/* —— 设置 —— */

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch-row small, .times small { display: block; color: var(--muted); font-size: .8125rem; }
.switch-row input { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; }
.switch-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .15s; }
.switch-row input:checked { background: var(--pine); }
.switch-row input:checked::after { transform: translateX(20px); }
.switch-row input:disabled { opacity: .5; cursor: default; }
.field { display: grid; gap: 6px; }
.field .field-name { margin: 0; }
.inline { display: flex; gap: 10px; align-items: center; }
.inline .input { flex: 1; min-width: 0; }
.times { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.times li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; font-variant-numeric: tabular-nums; }
.times li + li { border-top: 1px solid var(--line); }
.status { padding: 12px 14px; border-radius: 12px; background: var(--sunk); font-size: .9375rem; color: var(--ink-2); }
.status.is-on { background: var(--pine-soft); color: var(--pine); }

@media (min-width: 700px) {
  .page { padding-top: 40px; }
  .rv-card { padding-top: 24px; }
  .prompt { font-size: 1.5rem; }
}

/* 日常控件保持一眼可见，偶尔用到的选项折叠。 */
.settings-form { gap: 24px; }
.reminder-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.reminder-times .input { min-width: 0; }
.settings-more > .block, .card-options > .block { padding-top: 12px; gap: 20px; }
.settings-more > summary, .card-options > summary { min-height: 44px; }
.goal-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.goal-options .is-on { color: var(--pine); background: var(--pine-soft); border-color: var(--pine); }
.review-guide { margin-top: -12px; }

/* 先选结果，再按需标漏点；底部三个按钮的位置保持不变。 */
.answer-area, .marking-view, .atom-picker { display: grid; gap: 18px; min-width: 0; }
.answer-area { scroll-margin-top: 84px; }
.focus-questions, .focus-answers { display: grid; gap: 10px; min-width: 0; }
.focus-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.focus-heading .lead { color: var(--pine); }
.focus-total { color: var(--muted); font-size: .8125rem; }
.focus-question { display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.focus-question p { font: 600 1.0625rem/1.7 var(--serif); overflow-wrap: anywhere; }
.focus-number { color: var(--muted); font: .75rem/2 var(--sans); font-variant-numeric: tabular-nums; }
.focus-answers { gap: 12px; }
.focus-answers > .lead { color: var(--pine); }
.focus-answer { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); }
.focus-answer-question { display: flex; align-items: baseline; gap: 10px; font: 600 .9375rem/1.7 var(--serif); }
.focus-answer-question .focus-number { flex: none; }
.previous-reminder { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-left: 3px solid var(--pine); border-radius: var(--r); background: var(--pine-soft); }
.previous-reminder .lead { color: var(--pine); }
.previous-reminder-point { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.previous-reminder-point b { font-size: .9375rem; }
.previous-reminder-note { display: grid; gap: 3px; padding: 8px 0; }
.previous-reminder-note p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.previous-reminder-outro { font-size: .8125rem; color: var(--muted); }
.atom-back { justify-self: start; min-height: 44px; font-size: .875rem; }
.marking-view > .atom-back { margin-bottom: -6px; }
.atom-intro { display: grid; gap: 6px; }
.atom-intro h2 { font: 600 1.0625rem/1.5 var(--sans); }
.atom-picker { gap: 12px; }
.atom-row { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease; }
.atom-row:active { transform: scale(.992); background: var(--sunk); }
.atom-row.is-missed { background: var(--ochre-soft); border-color: var(--ochre); }
.atom-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 9px; line-height: 1.6; }
.atom-heading input { width: 19px; height: 19px; accent-color: var(--ochre); margin: 0; align-self: center; flex: none; }
.atom-number { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.atom-heading b { flex: 1; min-width: 120px; font-size: .9375rem; font-weight: 600; }
.atom-old { border-radius: 5px; padding: 1px 5px; background: var(--pine-soft); color: var(--pine); font-size: .6875rem; white-space: nowrap; }
.atom-body { display: grid; gap: 7px; color: var(--ink-2); font: 1rem/1.8 var(--serif); overflow-wrap: anywhere; }
.atom-options { display: grid; gap: 10px; justify-items: start; padding: 6px 0; }
.atom-clear { min-height: 44px; font-size: .875rem; }
.atom-clear[aria-pressed="true"] { border-color: var(--pine); color: var(--pine); background: var(--pine-soft); }
.atom-status { font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.atom-history { display: grid; gap: 4px; padding: 6px 0; font-size: .875rem; line-height: 1.7; }
.atom-history b { font-weight: 600; }
.atom-other { display: grid; gap: 10px; }
.atom-other summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--muted); font-size: .875rem; }
.atom-other[open] .atom-row { margin: 8px 0; }
.grade { transition: border-color 160ms ease, box-shadow 160ms ease, transform 100ms ease; }
.grade.is-continue { border-color: currentColor; box-shadow: inset 0 0 0 .5px currentColor; }
@media (prefers-reduced-motion: reduce) {
  .atom-row, .grade { transition: none; }
  .atom-row:active, .grade:active { transform: none; }
}
