:root {
  --bg-header: #e6ecf8;
  --navy: #1e2461;
  --blue: #324dc7;
  --blue-dark: #2a3fb0;
  --text: #1e1e1e;
  --border: #6b6b6b;
  --hover: #eeeeee;
  --red: #d0263b;
  --green: #1d7f3c;
  --serif: "Noto Serif", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Roboto", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  overflow: hidden;
}
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ================= 首页 ================= */
#home { height: 100%; overflow-y: auto; background: var(--bg-header); }
.home-inner { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.home-inner h1 { font-size: 34px; font-weight: 500; margin: 0 0 6px; }
.home-sub { font-size: 17px; color: #444; margin: 0 0 32px; }
.mod-list { display: grid; gap: 14px; }
.mod-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.mod-card .info { flex: 1; }
.mod-card h2 { font-size: 19px; font-weight: 500; margin: 0 0 4px; }
.mod-card .meta { font-size: 14px; color: #555; }
.mod-card .score { font-size: 22px; font-weight: 700; color: var(--navy); min-width: 70px; text-align: right; }
.mod-card.missing { opacity: .5; }
.mod-card .actions { display: flex; gap: 8px; }
.ghost-btn {
  background: #fff;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: 22px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 15px;
}
.ghost-btn:hover { background: #f1f3f9; }
.solid-btn {
  background: var(--blue);
  border: none;
  color: #fff;
  border-radius: 22px;
  padding: 9px 22px;
  font-weight: 700;
  font-size: 15px;
}
.solid-btn:hover { background: var(--blue-dark); }
.solid-btn:disabled { background: #aaa; cursor: default; }
.text-btn { margin-top: 28px; background: none; border: none; color: #666; text-decoration: underline; font-size: 14px; padding: 0; }

/* ================= 考试外框 ================= */
#exam { height: 100%; display: flex; flex-direction: column; }
header {
  position: relative;
  background: var(--bg-header);
  height: 98px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 12px 53px 0;
}
.dash-line {
  height: 2px;
  flex-shrink: 0;
  background: repeating-linear-gradient(90deg, #7fd3f2 0 34px, transparent 34px 40px, #7fd3f2 40px 74px, transparent 74px 80px, #d63cd6 80px 114px, transparent 114px 120px, #c5e33a 120px 154px, transparent 154px 160px, #7fd3f2 160px 194px, transparent 194px 200px, #7fd3f2 200px 234px, transparent 234px 240px, #8b5a2b 240px 274px, transparent 274px 280px, #d63cd6 280px 314px, transparent 314px 320px, #7fd3f2 320px 354px, transparent 354px 360px, #c5e33a 360px 394px, transparent 394px 400px, #7fd3f2 400px 434px, transparent 434px 440px, #8b5a2b 440px 474px, transparent 474px 480px, #7fd3f2 480px 514px, transparent 514px 520px, #d63cd6 520px 554px, transparent 554px 560px, #c5e33a 560px 594px, transparent 594px 600px);
}
.hdr-left h1 { margin: 0; font-size: 25px; font-weight: 500; white-space: nowrap; }
.directions-btn {
  margin-top: 14px; background: none; border: none; padding: 0;
  font-size: 18px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; color: var(--text);
}
.directions-btn svg, .qnav-btn svg { transition: transform .15s; }
.directions-btn.open svg, .qnav-btn.open svg { transform: rotate(180deg); }
.hdr-center { text-align: center; }
.timer { font-size: 30px; font-weight: 500; line-height: 1; margin-top: 2px; height: 30px; }
.timer.hidden { visibility: hidden; }
.timer.low { color: var(--red); }
.timer-toggle {
  margin-top: 14px; border: 2px solid #1e1e1e; background: transparent; border-radius: 14px;
  padding: 2px 14px; font-size: 15px; font-weight: 700; min-width: 66px;
}
.timer-toggle:hover { background: #d5ddef; }
.hdr-right { justify-self: end; display: flex; gap: 22px; margin-top: 16px; }
.tool-btn {
  background: none; border: none; padding: 0; display: flex; flex-direction: column; align-items: center;
  gap: 4px; font-size: 16px; font-weight: 500; color: var(--text);
}
.tool-btn .icons { display: flex; gap: 6px; height: 22px; align-items: center; }
.tool-btn.on { color: var(--blue); }
body.is-math .rw-only, body:not(.is-math) .math-only { display: none; }

.popover { position: absolute; background: #fff; border-radius: 10px; box-shadow: 0 4px 24px rgba(0,0,0,.22); z-index: 50; }
#directionsPanel {
  left: 53px; top: 96px; width: 680px; max-height: 70vh; overflow-y: auto;
  padding: 24px 28px; font-family: var(--serif); font-size: 17px; line-height: 1.6;
}
#directionsPanel ul { padding-left: 22px; margin: 8px 0; }
#directionsPanel .close-row { text-align: right; margin-top: 12px; }
.pill-btn { background: #fedb00; border: none; border-radius: 22px; padding: 8px 22px; font-weight: 700; font-size: 15px; color: #1e1e1e; font-family: "Roboto", sans-serif; }
#moreMenu { right: 30px; top: 90px; width: 230px; padding: 8px 0; }
#moreMenu button { display: block; width: 100%; text-align: left; background: none; border: none; padding: 12px 20px; font-size: 16px; }
#moreMenu button:hover { background: #f1f3f9; }

.banner-wrap { padding: 0 53px; flex-shrink: 0; }
.banner {
  background: var(--navy); color: #fff; text-align: center; font-size: 15px; font-weight: 700;
  height: 44px; line-height: 44px; border-radius: 0 0 16px 16px; letter-spacing: .2px;
}

/* ================= 双栏 ================= */
main { flex: 1; display: flex; min-height: 0; position: relative; }
.pane { overflow-y: auto; min-width: 0; }
#leftPane { width: 50%; padding: 56px 53px 40px; }
#rightPane { flex: 1; padding: 58px 70px 40px 53px; }
main.single #leftPane, main.single #divider { display: none; }
main.single #rightPane { padding: 46px 53px 40px; }
main.single .q-wrap { max-width: 880px; margin: 0 auto; }

#leftContent, .stem {
  font-family: var(--serif);
  font-size: 19.5px;
  line-height: 1.56;
  user-select: text;
}
#leftContent p { margin: 0 0 14px; }
#leftContent p.indent { padding-left: 28px; }
#leftContent ul { margin: 8px 0 14px; padding-left: 26px; }
#leftContent li { margin-bottom: 6px; }
#leftContent img, #qFigure img { max-width: min(100%, 560px); display: block; margin: 0 auto 18px; }
#leftContent h4 { font-family: "Roboto", sans-serif; font-size: 20px; margin: 0 0 14px; }
table { border-collapse: collapse; margin: 10px auto 18px; font-size: 17px; }
caption { font-weight: 700; margin-bottom: 8px; }
th, td { border: 1px solid #444; padding: 6px 12px; text-align: center; }
th { font-weight: 700; }
.blank {
  display: inline-block; width: 54px; border-bottom: 1.5px solid #1e1e1e; transform: translateY(-4px);
}
mark.hl { background: #fff2a8; }
.divider { width: 4px; background: #8a8a8a; position: relative; flex-shrink: 0; cursor: col-resize; }
.divider .handle {
  position: absolute; top: 184px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 34px; background: #1e1e1e; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}

/* 题头 */
.q-head { display: flex; align-items: center; background: #f0f0f0; height: 42px; position: relative; }
.q-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: repeating-linear-gradient(90deg, #7fd3f2 0 34px, transparent 34px 40px, #7fd3f2 40px 74px, transparent 74px 80px, #d63cd6 80px 114px, transparent 114px 120px, #c5e33a 120px 154px, transparent 154px 160px, #7fd3f2 160px 194px, transparent 194px 200px, #7fd3f2 200px 234px, transparent 234px 240px, #8b5a2b 240px 274px, transparent 274px 280px, #d63cd6 280px 314px, transparent 314px 320px, #7fd3f2 320px 354px, transparent 354px 360px, #c5e33a 360px 394px, transparent 394px 400px, #7fd3f2 400px 434px, transparent 434px 440px, #8b5a2b 440px 474px, transparent 474px 480px, #7fd3f2 480px 514px, transparent 514px 520px, #d63cd6 520px 554px, transparent 554px 560px, #c5e33a 560px 594px, transparent 594px 600px);
  background-size: 600px 2px;
}
.q-num { background: #000; color: #fff; font-weight: 700; font-size: 21px; min-width: 35px; padding: 0 6px; height: 42px; display: flex; align-items: center; justify-content: center; }
.mark-btn { background: none; border: none; display: flex; align-items: center; gap: 6px; margin-left: 22px; font-size: 18px; color: var(--text); padding: 0; }
.mark-btn.on svg path { fill: var(--red); stroke: var(--red); }
.result-tag { margin-left: 18px; font-weight: 700; font-size: 16px; }
.result-tag.ok { color: var(--green); }
.result-tag.bad { color: var(--red); }
.abc-btn {
  margin-left: auto; margin-right: 12px; width: 38px; height: 34px; border-radius: 6px;
  border: 1.5px solid #1e1e1e; background: #fff; display: flex; align-items: center; justify-content: center;
  padding: 0; color: #1e1e1e;
}
.abc-btn.on { background: var(--blue); border-color: var(--navy); color: #fff; }
.q-note { margin-top: 16px; background: #fff7e0; border-left: 4px solid #e0a800; padding: 8px 12px; font-size: 15px; line-height: 1.5; }
#qFigure { margin-top: 22px; }
#qFigure:empty { display: none; }
.stem { margin: 20px 0 14px; }
.stem p { margin: 0 0 10px; }
.stem .figure-note { font-size: 16px; text-align: center; font-style: italic; }
.katex { font-size: 1.05em; }

/* 选项 */
.choices { list-style: none; padding: 0; margin: 0; }
.choice-row { display: flex; align-items: center; margin-bottom: 20px; }
.choice {
  flex: 1; display: flex; align-items: center; min-height: 61px; border: 1.5px solid var(--border);
  border-radius: 8px; background: #fff; padding: 10px 16px; font-family: var(--serif); font-size: 19px;
  line-height: 1.4; color: var(--text); text-align: left; position: relative; transition: background .08s;
}
.choice:hover { background: var(--hover); }
.choice img { max-height: 220px; max-width: 100%; }
.choice .letter {
  width: 32px; height: 32px; border-radius: 50%; border: 1.8px solid #1e1e1e;
  display: flex; align-items: center; justify-content: center; font-family: "Roboto", sans-serif;
  font-size: 16px; font-weight: 500; margin-right: 25px; flex-shrink: 0;
}
.choice.selected { border: 3px solid var(--blue); padding: 8.5px 14.5px; }
.choice.selected:hover { background: #fff; }
.choice.selected .letter { background: var(--blue); border-color: var(--blue); color: #fff; }
.choice.crossed { color: #9a9a9a; }
.choice.crossed img { opacity: .4; }
.choice.crossed .letter { border-color: #b5b5b5; color: #b5b5b5; }
.choice.crossed::after { content: ""; position: absolute; left: -8px; right: -6px; top: 50%; height: 2.5px; background: #000; }
/* 交卷后 */
body.submitted .choice { cursor: default; }
body.submitted .choice:hover { background: #fff; }
.choice.correct { border: 3px solid var(--green); padding: 8.5px 14.5px; background: #eef8f1 !important; }
.choice.correct .letter { background: var(--green); border-color: var(--green); color: #fff; }
.choice.wrong { border-color: var(--red); background: #fdf0f1 !important; }
.choice.wrong .letter { background: var(--red); border-color: var(--red); color: #fff; }

.strike-slot { width: 70px; flex-shrink: 0; display: flex; justify-content: center; }
.strike-btn { background: none; border: none; padding: 0; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; position: relative; }
.strike-btn .circ { width: 28px; height: 28px; border-radius: 50%; border: 1.6px solid #1e1e1e; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.strike-btn::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.6px; background: #1e1e1e; }
.undo-btn { background: none; border: none; font-size: 18px; font-weight: 700; color: #1e1e1e; padding: 0; }
.undo-btn:hover { text-decoration: underline; }
body:not(.crossout) .strike-slot, body.submitted .strike-slot, body.submitted .abc-btn { visibility: hidden !important; }

/* 填空题 */
#spr { margin-top: 10px; }
#sprInput {
  width: 180px; height: 52px; font-size: 24px; font-family: "Roboto", sans-serif;
  border: 1.5px solid var(--border); border-radius: 8px; padding: 0 14px; outline: none;
  border-bottom: 3px solid #1e1e1e;
}
#sprInput:focus { border-color: var(--blue); }
#sprInput.ok { border-color: var(--green); }
#sprInput.bad { border-color: var(--red); }
.spr-preview { margin-top: 14px; font-size: 18px; font-weight: 700; }
.spr-preview span { font-weight: 400; margin-left: 6px; font-size: 20px; }
.spr-key { margin-top: 12px; font-size: 17px; color: var(--green); font-weight: 700; }
.spr-directions { font-family: var(--serif); font-size: 17px; line-height: 1.6; }
.spr-directions table { font-size: 16px; }

/* ================= 底栏 ================= */
footer {
  flex-shrink: 0; height: 66px; background: var(--bg-header);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 56px; position: relative;
}
.student { font-size: 25px; font-weight: 500; }
.qnav-btn {
  background: #1e1e1e; color: #fff; border: none; border-radius: 6px; height: 50px; padding: 0 22px;
  font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px;
}
.qnav-btn.open { background: #4a4a4a; }
.nav-right { justify-self: end; display: flex; gap: 14px; margin-right: -12px; }
.nav-pill { background: var(--blue); color: #fff; border: none; border-radius: 26px; height: 52px; padding: 0 32px; font-size: 19px; font-weight: 700; }
.nav-pill:hover { background: var(--blue-dark); }

#qnavPanel { left: 50%; bottom: 94px; transform: translateX(-50%); width: 652px; padding: 24px 32px 30px; border-radius: 6px; }
#qnavPanel::after {
  content: ""; position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 28px; height: 28px; background: #fff; box-shadow: 4px 4px 8px rgba(0,0,0,.08);
}
#qnavPanel h2 { text-align: center; font-size: 24px; font-weight: 700; margin: 0 30px 26px; line-height: 1.25; }
.close-x { position: absolute; right: 28px; top: 28px; background: none; border: none; padding: 4px; }
.legend {
  border-top: 1px solid #cfcfcf; border-bottom: 1px solid #cfcfcf;
  display: flex; justify-content: center; gap: 30px; padding: 14px 0; font-size: 18px;
}
.legend span { display: flex; align-items: center; gap: 8px; }
.legend .dashbox { width: 20px; height: 20px; border: 1.5px dashed #1e1e1e; }
.legend .okbox { width: 20px; height: 20px; background: var(--green); }
.legend .badbox { width: 20px; height: 20px; background: var(--red); }
.grid { display: grid; grid-template-columns: repeat(10, 40px); column-gap: 19.5px; row-gap: 30px; margin: 36px 6px 34px; }
.cell {
  position: relative; width: 40px; height: 40px; border: 1.5px dashed #1e1e1e; background: #fff;
  color: var(--blue); font-size: 24px; font-weight: 700; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.cell:hover { background: #f1f3f9; }
.cell.answered { border: none; background: var(--blue); color: #fff; }
.cell.ok { border: none; background: var(--green); color: #fff; }
.cell.bad { border: none; background: var(--red); color: #fff; }
.cell.omit { border: 1.5px dashed var(--red); color: var(--red); }
.cell.current { text-decoration: underline; text-underline-offset: 3px; }
.cell .pin { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); }
.cell .flag { position: absolute; top: -7px; right: -7px; }
.review-link { display: block; margin: 0 auto; background: #fff; border: 1.5px solid var(--blue); color: var(--blue); border-radius: 22px; padding: 9px 22px; font-size: 18px; font-weight: 700; }
.review-link:hover { background: #f1f3f9; }

#reviewPage { flex: 1; overflow-y: auto; text-align: center; padding: 40px 20px; }
#reviewPage h2 { font-size: 34px; margin: 10px 0 12px; font-weight: 500; }
#reviewPage p { font-size: 18px; margin: 0 0 30px; line-height: 1.5; }
#reviewPage .card { display: inline-block; text-align: left; background: #fff; border-radius: 8px; box-shadow: 0 2px 16px rgba(0,0,0,.14); padding: 26px 32px; }
#reviewPage .card h3 { margin: 0 0 20px; font-size: 22px; }
#reviewPage .grid { margin: 40px 6px 6px; }
#scoreBox { margin-top: 26px; font-size: 18px; }
#scoreBox .big { font-size: 48px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 6px; }

/* 浮动面板 */
.float-panel {
  position: fixed; top: 150px; right: 40px; z-index: 80; background: #fff; border-radius: 10px;
  box-shadow: 0 6px 30px rgba(0,0,0,.28); overflow: hidden; display: flex; flex-direction: column;
}
#calcPanel { width: 520px; height: 520px; }
#refPanel { width: 560px; max-height: 70vh; left: 60px; right: auto; }
.float-head {
  background: #1e1e1e; color: #fff; padding: 10px 14px; font-weight: 700; cursor: move;
  display: flex; justify-content: space-between; align-items: center; user-select: none;
}
.close-x-sm { background: none; border: none; color: #fff; font-size: 16px; }
#calcBody { flex: 1; }
.ref-body { padding: 18px 22px; overflow-y: auto; font-size: 16px; line-height: 1.7; }
.ref-body h4 { margin: 14px 0 4px; font-size: 16px; }
.ref-body h4:first-child { margin-top: 0; }

.toast {
  position: fixed; left: 50%; top: 160px; transform: translateX(-50%);
  background: #1e1e1e; color: #fff; padding: 10px 18px; border-radius: 6px; font-size: 15px; z-index: 100;
}

/* ================= 单卡首页 ================= */
#testCard { flex-wrap: wrap; }
#testCard .meta { margin-top: 4px; line-height: 1.5; }
#testCard .progress { display: flex; gap: 6px; margin-top: 10px; }
#testCard .progress i { width: 44px; height: 6px; border-radius: 3px; background: #d9dff0; }
#testCard .progress i.done { background: var(--blue); }
#testCard .progress i.cur { background: #8fa0e6; }

/* ================= 蓝屏（休息 / 结束） ================= */
.blue-screen {
  position: fixed; inset: 0; z-index: 60; background: #1f3f96; color: #fff;
  display: flex; flex-direction: column; overflow: hidden;
}
.blue-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px; font-size: 16px; font-weight: 500; position: relative; z-index: 2;
}
.blue-link { background: none; border: none; color: #fff; font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.blue-link:hover { text-decoration: underline; }

.break-inner { flex: 1; display: flex; align-items: center; justify-content: center; gap: 80px; padding: 0 60px 60px; }
.break-left { text-align: center; min-width: 300px; }
.break-label { font-size: 20px; margin-bottom: 8px; }
.break-timer { font-size: 96px; font-weight: 700; line-height: 1; margin-bottom: 36px; }
.break-right { background: #fff; color: var(--text); border-radius: 10px; padding: 26px 34px; max-width: 560px; font-size: 16px; line-height: 1.55; }
.break-right h2 { margin: 0 0 10px; font-size: 24px; font-weight: 500; }
.break-right h3 { margin: 14px 0 6px; font-size: 18px; }
.break-right hr { border: none; border-top: 1px solid #ddd; margin: 16px 0; }
.break-right ol { padding-left: 22px; margin: 4px 0 0; }
.break-right li { margin-bottom: 4px; }

#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.done-inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; padding-top: 60px; }
.done-inner h1 { font-size: 40px; font-weight: 500; margin: 0 0 14px; }
.done-sub { font-size: 20px; font-weight: 700; margin: 0 0 22px; }
.done-card {
  background: #fff; color: var(--text); border-radius: 8px; padding: 40px 56px;
  display: flex; align-items: center; gap: 80px; box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.done-text p { margin: 0 0 22px; font-size: 19px; line-height: 1.45; max-width: 300px; }
.done-text p:last-child { margin-bottom: 0; }
.done-text b { font-weight: 700; }
#doneNext { margin-top: 40px; background: #fff; color: var(--blue); }
#doneNext:hover { background: #e9edfb; }

/* ================= 成绩页 ================= */
#scorePage { position: fixed; inset: 0; z-index: 60; background: #fff; overflow-y: auto; }
.score-inner { max-width: 900px; margin: 0 auto; padding: 60px 40px 80px; color: #1e1e1e; }
.score-inner h1 { font-size: 40px; font-weight: 400; margin: 0 0 16px; }
.score-intro { font-size: 22px; line-height: 1.45; color: #333; margin: 0 0 36px; }
.score-intro a { color: #3b5fc0; }
.score-card { border-radius: 12px; overflow: hidden; background: #f1f4fb; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.score-card-head { background: #b7cbef; padding: 26px 28px 22px; }
.score-card-title { font-size: 26px; font-weight: 700; }
.score-card-meta { margin-top: 4px; font-size: 16px; display: flex; align-items: center; }
.score-card-meta .sep { width: 1px; height: 16px; background: #1e1e1e; margin: 0 12px; }
.score-card-body { display: flex; align-items: flex-start; justify-content: space-between; padding: 40px 28px 30px; }
.score-label { font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.score-label.sec { font-weight: 400; font-size: 17px; line-height: 1.25; }
.score-big { font-size: 96px; font-weight: 700; line-height: 1; margin: 12px 0 8px; }
.score-mid { font-size: 44px; font-weight: 700; line-height: 1; margin: 10px 0 6px; }
.score-range { font-size: 15px; color: #333; }
.score-sections { display: flex; gap: 90px; padding-top: 12px; padding-right: 60px; }
.score-details {
  display: block; width: calc(100% - 56px); margin: 0 28px 28px; background: #fff; border: 1.5px solid #1e1e1e;
  border-radius: 40px; padding: 16px; font-size: 18px; font-weight: 700; color: #1e1e1e;
}
.score-details:hover { background: #f4f6fc; }
.score-detail-list { padding: 0 28px 28px; display: grid; gap: 18px; }
.score-section { background: #fff; border-radius: 8px; padding: 18px 24px 8px; border: 1px solid #d5dcef; }
.score-section h3 { margin: 0; font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; }
.score-section h3 span { font-weight: 400; color: #444; }
.score-section .grid { margin: 22px 4px 26px; grid-template-columns: repeat(auto-fill, 40px); column-gap: 14px; row-gap: 18px; }
.score-section .cell { font-size: 20px; }
.score-detail-row {
  background: #fff; border-radius: 8px; padding: 14px 18px; display: flex; align-items: center; gap: 16px;
  border: 1px solid #d5dcef;
}
.score-detail-row .t { flex: 1; font-size: 17px; font-weight: 500; }
.score-detail-row .raw { font-size: 18px; font-weight: 700; color: var(--navy); }
.score-note { font-size: 14px; color: #666; margin: 22px 0 0; }
.score-actions { display: flex; gap: 12px; margin-top: 24px; }

/* 5 分钟提醒 */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; display: flex; align-items: center; justify-content: center; }
.modal { background: #fff; border-radius: 10px; padding: 32px 40px; width: 460px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.modal h2 { margin: 0 0 12px; font-size: 26px; font-weight: 500; }
.modal p { margin: 0 0 24px; font-size: 17px; line-height: 1.5; }
.timer.low { color: var(--red); }
.timer-toggle.low { border-color: var(--red); color: var(--red); }
