:root {
  color-scheme: light;
  --ink:#182922; --muted:#55685d; --green:#204d3c; --line:#d8e1da;
  --paper:#fcfcf9; --tint:#edf4ed; --red:#984435;
  font-family:"Inter","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;
  font-synthesis:none; color:var(--ink); background:var(--paper);
}
* {box-sizing:border-box}
body {margin:0;min-height:100svh}
button,input,select,textarea {font:inherit;color:inherit}
button,a,input,select,textarea,summary {-webkit-tap-highlight-color:transparent}
button,select,summary {cursor:pointer}
button {background:none;border:0}
button:disabled {opacity:.42;cursor:default}
a {color:inherit;text-decoration:none}
:focus-visible {outline:3px solid #4b886e;outline-offset:3px}
h1,h2,p {margin:0}
h1 {font-size:clamp(1.7rem,4.6vw,2.25rem);line-height:1.35;letter-spacing:-.045em}
h2 {font-size:1rem;letter-spacing:.015em}
.top {border-bottom:1px solid var(--line);background:var(--paper)}
.bar {max-width:860px;min-height:72px;display:flex;align-items:center;gap:64px;margin:auto;padding:0 30px}
.brand {display:inline-flex;align-items:center;gap:9px;font-size:21px;font-weight:750;letter-spacing:-.04em;flex-shrink:0}
.brand img {border-radius:8px}
#topnav {display:flex;align-self:stretch;gap:28px}
#topnav a {position:relative;display:flex;align-items:center;justify-content:center;min-width:42px;color:var(--muted);font-size:15px}
#topnav a[aria-current=page] {color:var(--green);font-weight:700}
#topnav a[aria-current=page]:after {content:"";position:absolute;bottom:-1px;left:10%;right:10%;height:3px;border-radius:3px 3px 0 0;background:var(--green)}
main {width:min(100%,742px);margin:auto;padding:clamp(34px,7vw,70px) 25px 80px}
main:focus {outline:none}
.heading,.line,.studybar,.qmeta,.pager {display:flex;align-items:center;justify-content:space-between;gap:12px}
.heading {margin-bottom:24px}
.heading .textlink,.line span,.qmeta,.studybar>span,.pager span {color:var(--muted);font-size:.88rem}
.textlink,.resume {color:var(--green);font-weight:550}
a.textlink,button.textlink {display:inline-flex;align-items:center;min-height:42px;padding:4px 0}
.textlink:hover,.resume:hover {text-decoration:underline;text-underline-offset:4px}
.daily {border:1px solid #d2dfd4;border-radius:18px;padding:clamp(24px,5vw,40px);background:var(--tint)}
.counts {display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:27px}
.counts>div {display:grid;gap:8px}
.counts>div+div {border-left:1px solid #cbd9ce;padding-left:clamp(20px,5vw,38px)}
.counts span {color:var(--muted);font-weight:550;font-size:.93rem}
.counts strong {color:var(--green);font-family:"Inter","Segoe UI",system-ui,sans-serif;font-size:clamp(2.75rem,8vw,4rem);line-height:1.06;font-weight:620;letter-spacing:-.065em;font-variant-numeric:tabular-nums}
.btn {min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:14px;border:1px solid var(--line);border-radius:10px;padding:10px 17px;font-weight:600;background:var(--paper)}
.btn:not(:disabled):hover,.listrow:is(button):hover,button.choice:hover {border-color:#8fae99;background:#f0f5ef}
.btn.primary {color:#fff;background:var(--green);border-color:var(--green)}
.btn.primary:not(:disabled):hover {background:#173f30;border-color:#173f30}
.daily .btn {width:100%;justify-content:space-between;padding-inline:21px}
.arrow {font-size:1.15em}
.progress,.section {margin-top:32px}
.progress .line {margin-bottom:13px}
.line b {color:var(--ink)}
progress {width:100%;height:6px;display:block;border:0;border-radius:6px;overflow:hidden;background:#e1e6e1;appearance:none}
progress::-webkit-progress-bar {background:#e1e6e1}
progress::-webkit-progress-value {background:#42775a;border-radius:inherit}
progress::-moz-progress-bar {background:#42775a;border-radius:inherit}
.section h2 {margin-bottom:13px}
.list {border-block:1px solid var(--line)}
.listrow {width:100%;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 3px;min-height:60px;text-align:left}
.listrow+.listrow {border-top:1px solid var(--line)}
.listrow b {font-size:1rem;line-height:1.58;font-weight:560;overflow-wrap:anywhere}
.listrow span:not(.chevron) {display:inline-flex;align-items:center;gap:9px;white-space:nowrap;color:var(--muted);font-size:.92rem}
.chevron {font-size:1.35em;color:#688473;line-height:1}
.resume {display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;background:var(--tint);padding:13px 16px;border-radius:10px}
select,input,textarea {font-size:1rem;border:1px solid var(--line);border-radius:9px;background:#fff;padding:9px 11px;min-height:42px}
select {padding-right:7px}
.settings input {max-width:60%;text-align:right}
#limit {width:7.5rem}
.tabs {display:flex;gap:6px;margin-bottom:20px}
.tab {min-height:42px;padding:6px 15px;border-radius:9px;color:var(--muted)}
.tab[aria-pressed=true] {background:var(--tint);color:var(--green);font-weight:650}
.wrongrow small {display:block;color:var(--muted);margin-bottom:5px}
i {font-style:normal;margin-inline:8px}
.empty,.finished {padding:38px 0;border-top:1px solid var(--line);color:var(--muted)}
.finished h1 {color:var(--ink);margin-bottom:10px}
.finished p {margin-bottom:18px}
.pager {margin-top:18px}
.studybar {margin-bottom:21px}
.studybar .btn {min-height:40px;padding:6px 10px;background:transparent}
.question {padding-top:24px;border-top:1px solid var(--line)}
.qmeta {margin-bottom:13px}
.grade {font-weight:600;color:var(--green)}
.grade.red {color:var(--red)}
.prompt {white-space:pre-line;overflow-wrap:anywhere;font-size:clamp(1.25rem,3.4vw,1.58rem);line-height:1.65;letter-spacing:-.02em;margin-bottom:25px}
.choices,.fields {display:grid;gap:10px}
.choice {display:flex;align-items:center;gap:13px;min-height:54px;padding:12px 15px;text-align:left;line-height:1.55;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:11px;background:white}
.letter {display:grid;place-items:center;width:27px;height:27px;flex-shrink:0;font-family:system-ui,sans-serif;font-size:.91rem;font-weight:600;border:1px solid var(--line);border-radius:7px}
.choice.selected,.choice.correct {border-color:#8daa95;background:#edf5ee}
.choice.selected .letter,.choice.correct .letter {border-color:var(--green);background:var(--green);color:white}
.choice.bad {border-color:#c8978e;background:#fcf2ed}
.tick {margin-left:auto;color:var(--green);font-weight:bold}
.fields label {display:grid;gap:7px;color:var(--muted);font-size:.89rem}
textarea,.fields input {width:100%;resize:vertical}
.feedback {margin-top:20px;padding:17px 19px;border-left:3px solid #82a58d;background:#f1f5ef;border-radius:0 8px 8px 0;overflow-wrap:anywhere}
.key {display:flex;align-items:baseline;gap:12px}
.key span {color:var(--muted);white-space:nowrap;font-size:.85rem}
.key strong,.feedback p,.mine {white-space:pre-line;line-height:1.7}
.feedback details,.mine {margin-top:9px;color:var(--muted);font-size:.9rem}
.feedback summary {width:max-content;min-height:25px;line-height:25px}
.feedback p {margin-top:5px}
.actions {display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap;margin-top:22px}
.weak {margin-left:auto;color:var(--muted);font-size:.88rem;display:inline-flex;align-items:center;gap:6px;min-height:44px}
.weak input {min-height:0;accent-color:var(--green);width:16px;height:16px}
.notice {position:fixed;z-index:3;left:50%;bottom:max(20px,env(safe-area-inset-bottom));transform:translateX(-50%);max-width:min(500px,90vw);width:max-content;border-radius:10px;padding:11px 16px;color:white;background:#263b31;pointer-events:none;font-size:.92rem}
dialog {color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:14px;max-width:min(430px,90vw);padding:23px}
dialog p {line-height:1.7;margin-top:10px}
dialog::backdrop {background:#1829225c}
.waiting,.done {color:var(--muted)}
@media(max-width:600px){
  .bar {min-height:59px;padding:0 17px;gap:16px;justify-content:space-between}
  .brand {gap:6px;font-size:19px}.brand img {width:27px;height:27px}
  #topnav {gap:clamp(3px,2.3vw,12px)}#topnav a {min-width:37px;font-size:14px}
  main {padding:32px 18px 64px}.heading {margin-bottom:19px}
  .daily {border-radius:14px}.counts {gap:12px}
  .actions {gap:8px 14px}.question {padding-top:18px}
  .choice {padding:11px 12px;min-height:51px}.prompt {margin-bottom:19px}
}
