@font-face {
  font-family: "Journal WenKai";
  src: url("../fonts/poem.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --blue: #315f96;
  --green: #426fab;
  --ink: #202936;
  --muted: #506071;
  --bg: #f9fafb;
  --surface: #ffffff;
  --soft: #eaf0f8;
  --edge: #dce4ef;
  --done: #e8f2fb;
  --warning: #a53927;
  --shadow: 0 4px 18px #26375412;
  --glass: #f3f8ff4d;
  --glass-shine: #ffffffd9;
  --glass-border: #ffffffb5;
  --glass-selected: #294d7424;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #accdf6;
    --green: #a7c7f1;
    --ink: #eef3fc;
    --muted: #b4c1d4;
    --bg: #101216;
    --surface: #1c222d;
    --soft: #273345;
    --edge: #394658;
    --done: #213950;
    --warning: #ffb19f;
    --shadow: none;
    --glass: #101a2a66;
    --glass-shine: #e0ebff47;
    --glass-border: #bacdf35c;
    --glass-selected: #a7c8ff38;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  --mini-height: 64px;
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse at 90% 0%, #b6cdee42, transparent 48%), radial-gradient(ellipse at 0% 22%, #ecb7bb26, transparent 38%);
  background-repeat: no-repeat;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
h1, h2, h3, p { margin: 0; }
ol { padding: 0; margin: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .42; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.app {
  max-width: 760px;
  margin: auto;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    calc(106px + var(--mini-height) + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0 13px; border-bottom: 1px solid var(--edge); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.brand img { border-radius: 11px; }
.history-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.dashboard { padding-top: 16px; }
main { min-width: 0; }
.eyebrow { color: var(--blue); font-size: 12px; letter-spacing: .09em; font-weight: 750; }
.date, .hint { color: var(--muted); font-size: 13px; line-height: 1.65; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 23px;
  padding: 17px 19px;
  background: var(--surface);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
}
.herotop, .herofoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.herotop h2 { font-size: 14px; font-weight: 700; }
.pill { padding: 4px 10px; border: 1px solid var(--edge); border-radius: 99px; background: var(--soft); font-size: 12px; }
.progress-number { font-size: 49px; font-weight: 800; line-height: 1.18; letter-spacing: -.045em; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width .22s ease; }
.herofoot { margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }

.daynav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px minmax(60px, auto); gap: 6px; margin: 12px 0 0; }
.daynav button, .date-picker { min-height: 44px; border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); }
.date-picker { position: relative; display: grid; place-items: center; min-width: 0; overflow: hidden; font-size: 14px; font-variant-numeric: tabular-nums; }
.date-picker:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.date-picker time { pointer-events: none; }
.date-picker input { position: absolute; inset: 0; opacity: 0; width: 100%; min-width: 0; max-width: 100%; height: 100%; margin: 0; padding: 0; border: 0; font-size: 16px; cursor: pointer; }
.date-picker input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; }
.arrow { font-size: 25px; line-height: 1; color: var(--blue); }
.today { color: var(--blue); padding: 0 8px; font-size: 13px; font-weight: 700; }
.section { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 24px 0 10px; }
.section h2, .panel h2 { font-size: 20px; line-height: 1.35; }
.section > span { font-size: 12px; color: var(--muted); }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; gap: 4px; border-radius: 15px; background: var(--soft); }
.mode { min-height: 44px; padding: 7px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; }
.mode[aria-pressed="true"] { background: var(--surface); color: var(--blue); border-color: var(--edge); box-shadow: var(--shadow); }
.plan > .hint { margin: 8px 1px 16px; }
.task-group { margin-top: 18px; }
.task-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; }
.task-group h3 span { color: var(--blue); background: var(--soft); border-radius: 7px; padding: 2px 6px; font-size: 11px; font-variant-numeric: tabular-nums; }
.task-group li + li { margin-top: 6px; }
.task {
  position: relative;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  padding: 9px 10px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background .16s ease;
}
.task input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.task:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.task:has(input:checked) { background: var(--done); }
.check { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; border: 1.5px solid var(--muted); color: transparent; font-size: 14px; font-weight: 800; }
.task input:checked + .check { color: var(--surface); background: var(--green); border-color: var(--green); }
.task input:checked ~ .taskbody .taskname { text-decoration: line-through; }
.taskname, .taskdesc { display: block; overflow-wrap: anywhere; }
.taskname { font-size: 14px; font-weight: 730; }
.taskdesc, .time { color: var(--muted); font-size: 12px; }
.taskdesc { margin-top: 2px; }
.time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rest { display: flex; gap: 10px; align-items: center; padding: 5px 10px; color: var(--muted); font-size: 12px; }
.rest .time { order: 1; margin-left: auto; }

.note, .panel { background: var(--surface); border: 1px solid var(--edge); border-radius: 18px; box-shadow: var(--shadow); }
.note { padding: 14px; margin-bottom: 10px; }
.note label { display: block; font-size: 14px; font-weight: 700; }
.note input, .note textarea { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 6px; padding: 9px 10px; border: 1px solid var(--edge); border-radius: 10px; background: var(--bg); font-size: 16px; font-weight: 400; }
.note textarea { resize: vertical; }
.number-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.rate { margin-top: 8px; font-size: 13px; color: var(--muted); }
.rate output { color: var(--blue); margin-left: 5px; font-weight: 750; }
.rate span { display: block; color: var(--warning); }
.words, .next-note { margin-top: 12px; }
.note input[aria-invalid="true"] { border-color: var(--warning); }
#field-error { color: var(--warning); }

.panel { padding: 17px; margin-bottom: 13px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel h2 { margin-top: 3px; }
.badge { border-radius: 99px; padding: 4px 9px; background: var(--soft); color: var(--blue); font-size: 12px; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 13px 0; }
.metrics > div { padding: 8px 10px; border: 1px solid var(--edge); border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 12px; }
.metrics span:first-child { display: block; }
.metrics strong { font-size: 24px; line-height: 1.3; margin-right: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.history-day { display: grid; grid-template-columns: 3.6em minmax(0, 1fr) 2.8em minmax(4.2em, auto); align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 4px 8px; text-align: left; border: 1px solid transparent; border-radius: 10px; background: transparent; font-size: 13px; }
.history-day[aria-current="date"] { border-color: var(--edge); background: var(--bg); color: var(--blue); }
.history-day strong { text-align: right; font-variant-numeric: tabular-nums; }
.mini-track { height: 6px; border-radius: 9px; background: var(--soft); overflow: hidden; }
.mini-track span { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.panel .hint { margin-top: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn { flex: 1 1 auto; min-height: 44px; border: 1px solid transparent; padding: 7px 10px; border-radius: 11px; background: #315f96; color: #fff; font-size: 14px; font-weight: 700; }
.btn.secondary { color: var(--blue); background: var(--soft); }
.history-date { width: 100%; margin-top: 10px; }
footer { color: var(--muted); font-size: 12px; text-align: center; padding: 6px 0; }
.notice { display: block; width: 100%; text-align: left; border: 1px solid var(--edge); padding: 10px 12px; margin-top: 10px; border-radius: 10px; background: var(--surface); color: var(--warning); font-size: 14px; }
.update { color: var(--blue); min-height: 44px; }
.toast { position: fixed; z-index: 6; bottom: calc(env(safe-area-inset-bottom) + 84px + var(--mini-height)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 8px 15px; border-radius: 12px; background: #202936; color: white; font-size: 14px; text-align: center; opacity: 0; transition: opacity .16s; pointer-events: none; }
.toast.show { opacity: 1; }

@media (hover: hover) {
  .history-link:hover, .history-day:hover { background: var(--soft); }
  .task:hover, .btn:hover, .today:hover { border-color: var(--blue); }
}
@media (min-width: 600px) {
  .app { padding-left: max(26px, env(safe-area-inset-left)); padding-right: max(26px, env(safe-area-inset-right)); }
  .task { padding-inline: 14px; gap: 13px; }
  .hero { padding: 21px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .bar > div, .task, .toast { transition: none; }
}

.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid #c9d9ee;
  border-radius: 21px;
  background: #e6effb;
  color: #263c5a;
}
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.cover::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #edf4ff 0%, #edf4fff0 48%, #edf4ff12 100%); }
.cover-copy { padding: clamp(20px, 4vw, 40px); }
.cover h1, .poem blockquote { font-family: "Journal WenKai", "Kaiti SC", "Songti SC", SimSun, serif; font-weight: 400; }
.cover h1 { font-size: clamp(30px, 5.6vw, 54px); line-height: 1.15; letter-spacing: .025em; margin: 5px 0; }
.cover .eyebrow, .cover .date { color: #365376; }
.cover .eyebrow span { color: #a14a52; }
.poem { margin: 18px 0 0; border-left: 2px solid #8ea9ce; padding: 0 0 0 12px; }
.poem figcaption, .poem cite { display: block; font-size: 12px; font-style: normal; color: #365376; }
.poem figcaption { letter-spacing: .16em; }
.exam-countdown { margin-top: 10px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 15px; background: var(--surface); }
.exam-countdown summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; min-height: 62px; padding: 8px 0; cursor: pointer; }
.exam-date { display: block; color: var(--muted); font-size: 12px; }
.exam-remaining { color: var(--blue); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.exam-remaining::after { content: '⌄'; margin-left: 7px; }
.exam-countdown[open] .exam-remaining::after { content: '⌃'; }
.exam-countdown .course-edit { margin-top: 2px; }
.exam-countdown .hint { margin: 8px 0 12px; }
.poem blockquote { margin: 3px 0 4px; font-size: clamp(20px, 4.8vw, 31px); line-height: 1.45; }
.view-heading, .mode-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.view-heading { margin-bottom: 12px; }
.view-heading h2 { font-size: 20px; }
.view-heading .btn, .mode-toolbar .btn { flex: none; }
.mode-toolbar { margin: 8px 0; }
.mode-toolbar .hint { margin: 0; }
.custom-empty { margin: 12px 0; padding: 15px; border: 1px dashed var(--edge); border-radius: 14px; color: var(--muted); font-size: 14px; }
.course-cards { display: grid; gap: 12px; min-width: 0; }
.course-card { min-width: 0; margin-bottom: 0; }
.course-card .panel-title { align-items: start; }
.course-card .badge { flex: none; }
.course-name { min-width: 0; overflow-wrap: anywhere; font-size: 18px; line-height: 1.4; }
.course-count { color: var(--muted); font-size: 14px; }
.course-count strong { color: var(--ink); font-size: 34px; font-variant-numeric: tabular-nums; }
.course-card progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--soft); accent-color: var(--green); }
.course-card progress::-webkit-progress-bar { border-radius: 99px; background: var(--soft); }
.course-card progress::-webkit-progress-value { border-radius: 99px; background: var(--green); }
.course-card progress::-moz-progress-bar { border-radius: 99px; background: var(--green); }
.course-edit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-top: 12px; }
.course-edit label { grid-column: 1 / -1; }
.course-edit label, .focus-options label { color: var(--muted); font-size: 13px; font-weight: 650; }
.course-edit input, .focus-options select, .focus-options input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 6px 8px; border: 1px solid var(--edge); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.focus-panel { background: var(--soft); }
.focus-panel .badge { background: var(--surface); }
.focus-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(92px, .45fr); gap: 8px; margin-top: 12px; }
.focus-options select, .focus-options input { margin-top: 4px; }
.focus-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.focus-presets .btn, .focus-reminder .btn { background: var(--surface); }
.focus-reminder { margin-top: 14px; }
.focus-reminder summary { min-height: 44px; padding: 10px 0; font-weight: 650; cursor: pointer; }
.focus-clock-mode { margin-top: 12px; }
.focus-browser-notifications { margin-top: 10px; }
.focus-alert { position: fixed; z-index: 7; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 32px), 440px); display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px; border: 1px solid var(--edge); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 24px #17294440; }
.focus-alert p { min-width: 0; overflow-wrap: anywhere; padding-left: 4px; font-weight: 650; }
.focus-alert .btn { flex: none; }
.clock { padding: 6px 0 0; font-size: clamp(44px, 9vw, 64px); text-align: center; letter-spacing: -.055em; font-weight: 750; font-variant-numeric: tabular-nums; }
.focus-status { min-height: 1.7em; text-align: center; }
.history-focus { text-align: right; color: var(--muted); font-size: 11px; }
.metrics strong { font-size: clamp(16px, 4vw, 24px); }

.study-dock {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(calc(100% - 28px - env(safe-area-inset-left) - env(safe-area-inset-right)), 484px);
  pointer-events: none;
}
body:has(.study-dock[data-section="focus"]) { --mini-height: 0px; }
.study-dock[data-section="focus"] .focus-mini { display: none; }
.section-nav, .focus-mini {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 1px 2px var(--glass-shine), inset 0 -1px 1px var(--glass-shine), 0 5px 16px #17294422, 0 1px 2px #17294436;
  pointer-events: auto;
}
.section-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 5px;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .section-nav, .focus-mini {
    background: linear-gradient(180deg, var(--glass-shine), transparent 32%, transparent 68%, var(--glass-shine)), var(--glass);
    -webkit-backdrop-filter: blur(9px) saturate(155%);
    backdrop-filter: blur(9px) saturate(155%);
  }
}
.section-nav::before { content: ''; position: absolute; inset: 5px auto 5px 5px; width: calc((100% - 10px) / 4); border-radius: 999px; background: var(--glass-selected); box-shadow: inset 0 1px 2px var(--glass-shine); transform: translateX(calc(var(--tab-index, 0) * 100%)); transition: transform .32s cubic-bezier(.22, .8, .25, 1); pointer-events: none; }
.section-nav a { position: relative; display: grid; place-content: center; justify-items: center; gap: 2px; min-height: 47px; border-radius: 999px; color: var(--ink); font-size: 11px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.study-dock svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.section-nav a[aria-current="page"] { color: var(--blue); }
.section-nav a[aria-current="page"] svg { stroke-width: 2.3; }
.section-nav a:active { transform: scale(.96); }
.focus-mini { display: flex; align-items: center; padding: 3px 5px; }
.focus-mini-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 3px 6px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.focus-mini-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--glass-selected); color: var(--blue); }
.focus-mini-copy { min-width: 0; flex: 1; display: grid; line-height: 1.35; }
.focus-mini-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.focus-mini-copy span { font-size: 11px; color: var(--ink); }
.focus-mini-time { flex: none; font: 700 13px ui-monospace, "SF Mono", Menlo, monospace; }
.focus-mini-arrow { color: var(--ink); font-size: 20px; }
.focus-mini-toggle { flex: none; min-width: 52px; min-height: 44px; padding: 3px 8px; border: 0; border-radius: 999px; background: var(--glass-selected); color: var(--ink); font-size: 12px; font-weight: 700; }

.cover.has-cover-image { background-image: var(--cover-image); background-size: cover; background-position: center; }
.cover.has-cover-image .cover-art { visibility: hidden; }
.cover.has-cover-image::after { background: linear-gradient(95deg, #edf4ffdc, #edf4ff91); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cover-settings { margin: 0 clamp(20px, 4vw, 40px) 16px; }
.cover-settings summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-size: 13px; font-weight: 700; color: inherit; }
.cover-settings-body { padding: 10px; border-radius: 14px; background: var(--surface); color: var(--ink); }
.cover-settings input { width: 100%; min-height: 44px; max-width: 100%; font-size: 16px; }
.editor { display: grid; gap: 8px; min-width: 0; margin: 8px 0 12px; }
.editor label { min-width: 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.editor input, .editor select { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: 6px 9px; border: 1px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.editor .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-error { color: var(--warning); font-size: 13px; overflow-wrap: anywhere; }
.edit-sheet {
  position: fixed; inset: 0; width: min(480px, calc(100% - 24px));
  max-height: min(90vh, 640px); max-height: min(90dvh, 640px);
  margin: auto; padding: 20px; overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--edge); border-radius: 24px;
  background: var(--surface); color: var(--ink); box-shadow: 0 14px 50px #17294438;
}
.edit-sheet[open] { animation: sheet-in .24s cubic-bezier(.2, .7, .3, 1) both; }
.edit-sheet::backdrop { background: #17253659; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.edit-sheet h2 { font-size: 20px; }
.edit-sheet h2:focus { outline: none; }
.edit-sheet .editor { gap: 11px; margin-bottom: 0; }
.edit-sheet .editor label > :is(input, select) { margin-top: 3px; font-weight: 400; }
.edit-sheet .editor input[type="time"] { -webkit-appearance: none; appearance: none; }
.edit-sheet .editor input[type="time"]::-webkit-date-and-time-value { min-width: 0; text-align: start; }
.edit-sheet .actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); margin-top: 3px; }
body:has(.edit-sheet[open]) { overflow: hidden; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(36px); } }
@media (max-width: 560px) {
  .edit-sheet { inset: auto 0 0; margin: 0 auto; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .edit-sheet[open] { animation: none; } }
.task-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.task-actions button { min-height: 44px; padding: 5px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--blue); font-size: 13px; font-weight: 650; }
@media (prefers-color-scheme: dark) {
  .cover.has-cover-image::after { background: linear-gradient(95deg, #142238ec, #142238a8); }
}
#records { margin-top: 19px; }
#records summary { min-height: 44px; padding: 12px 15px; border-radius: 14px; background: var(--surface); border: 1px solid var(--edge); color: var(--blue); font-weight: 650; cursor: pointer; }
.clock { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.progress-number, .course-count strong { font-family: Georgia, "Times New Roman", serif; }
.focus-panel { padding: clamp(18px, 5vw, 30px); }
@media (prefers-reduced-transparency: reduce) {
  .section-nav, .focus-mini { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) { .section-nav::before { transition: none; } }

@media (prefers-color-scheme: dark) {
  .cover { border-color: #384d68; background: #1d2a3e; color: #f1f5ff; }
  .cover::after { background: linear-gradient(90deg, #1d2a3e 0%, #1d2a3ef0 48%, #1d2a3e22 100%); }
  .cover .eyebrow, .cover .date, .poem figcaption, .poem cite { color: #c0d4ed; }
  .cover .eyebrow span { color: #f4b9bc; }
  .cover-art { opacity: .72; }
}
