:root { color-scheme: light; --navy: #0f2b5c; --muted: #52627a; --line: #dfe5ec; --accent: #ff4d26; --accent-surface: rgb(255 247 237 / 80%); --accent-ink: #ea580c; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--navy); background: #f8f9fc; font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: var(--navy); }
a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.brand { display: inline-flex; align-items: center; gap: 2px; height: 42px; flex: none; }
.brand-avatar { display: block; width: 42px; height: 42px; object-fit: contain; }
.brand-wordmark { display: block; position: relative; width: 84px; height: 28px; overflow: hidden; }
.brand-wordmark img { position: absolute; display: block; width: 164px; height: 164px; max-width: none; left: -68px; top: -68px; }
.page { width: min(100%, 1024px); margin: auto; padding: 40px 16px 72px; }
.page-top { margin-bottom: 32px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; min-height: 20px; margin-top: 20px; color: #434750; font-size: 12px; font-weight: 600; }
.breadcrumbs a { color: #0f2b5c; text-decoration: none; font-weight: 700; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb-chevron { color: #737781; font-size: 18px; line-height: 1; }
h2, h3, p { margin-top: 0; }
.free-section { margin-top: 44px; }
.workbook-section { margin-top: 72px; }
.section-heading { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.section-badge { display: inline-block; padding: 6px 12px; border-radius: 8px; background: var(--accent-surface); color: var(--accent-ink); box-shadow: inset 0 0 0 1px rgb(254 215 170 / 60%); font-size: 13px; font-weight: 700; }
.section-heading h2 { margin: 14px 0 8px; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; }
.section-heading p { max-width: 760px; margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.free-section .section-heading { padding-bottom: 0; border-bottom: 0; }
.paper-list { margin-top: 20px; }
.paper-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 5px #132a4a08; }
.paper-row strong { font-size: 16px; }
.paper-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.paper-links a { min-height: 36px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; text-decoration: none; }
.paper-links a:hover { color: var(--accent); text-decoration: underline; }
.subject-section { margin-top: 42px; }
.workbook-section > .subject-section:first-of-type { margin-top: 20px; }
.subject-section + .subject-section { margin-top: 58px; }
.subject-section h3 { margin-bottom: 8px; font-size: 23px; }
.subject-section > p { margin-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.score-list { display: grid; gap: 12px; }
.score-row { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(180px, .8fr) 100px; align-items: center; gap: 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 5px #132a4a08; }
.round-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.round-badge { display: grid; place-items: center; width: 48px; height: 40px; flex: none; border-radius: 8px; font-size: 13px; font-weight: 800; }
.round-badge.math, .round-badge.english { background: #eef2f7; color: var(--navy); }
.round-name strong { display: block; font-size: 14px; }
.round-name small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.score-input { display: flex; align-items: center; height: 44px; border-bottom: 1px solid #9eabbc; }
.score-input:focus-within { border-color: var(--navy); }
.score-input input { width: 100%; min-width: 0; height: 100%; padding: 0 8px; border: 0; background: none; color: var(--navy); font: inherit; font-size: 16px; }
.score-input input:focus { outline: none; }
.score-input span { padding-right: 8px; color: var(--muted); font-size: 13px; }
.score-result { text-align: right; }
.score-result span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 13px; }
.score-result output { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-error { grid-column: 2 / 4; margin: -12px 0 0; color: #b42318; font-size: 13px; }
.score-error[hidden] { display: none; }
.disclaimer { margin: 24px 0 0; color: #66758a; text-align: center; font-size: 12px; line-height: 1.6; }
.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; }
@media (max-width: 700px) {
  .page { padding: 24px 16px 52px; }
  .page-top { margin-bottom: 28px; }
  .breadcrumbs { min-height: 44px; margin-top: 10px; font-size: 14px; }
  .free-section { margin-top: 40px; }
  .workbook-section { margin-top: 54px; }
  .score-row { grid-template-columns: minmax(0, 1fr) 90px; gap: 14px; padding: 18px 16px; }
  .round-name { grid-column: 1 / -1; }
  .score-input { grid-column: 1; }
  .score-result { grid-column: 2; }
  .score-error { grid-column: 1 / -1; margin: -4px 0 0; }
}
