:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #10213a;
  background: #f4f7fc;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(145deg, #f7f9fd, #eef3fb); }
.page { max-width: 1120px; margin: 0 auto; padding: 28px 32px 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.brand { color: #526783; font-size: 12px; font-weight: 850; letter-spacing: .16em; }
.refresh { border: 1px solid #d9e2ee; border-radius: 13px; background: white; color: #10213a; padding: 12px 16px; font-weight: 750; cursor: pointer; box-shadow: 0 3px 12px #172b4510; }
.refresh:hover { background: #f8fbff; border-color: #b8c9de; }
.intro { margin: 0 0 30px; }
h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 46px); letter-spacing: -.045em; line-height: 1.1; }
.intro p { margin: 0; color: #758198; font-size: 16px; }
.hero { padding: 34px 40px; margin-bottom: 34px; border-radius: 26px; background: linear-gradient(120deg, #173353, #234a75); color: white; box-shadow: 0 18px 38px #17335320; }
.hero-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.eyebrow { color: #c8d7ea; font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.total { margin-top: 8px; font-size: 25px; font-weight: 850; }
.percent { font-size: clamp(48px, 8vw, 68px); font-weight: 900; line-height: .95; letter-spacing: -.06em; }
.track-wrap { position: relative; margin: 28px 0 15px; padding-bottom: 46px; }
.track { height: 20px; overflow: hidden; border-radius: 99px; background: #ffffff37; }
.fill { height: 100%; min-width: 7px; border-radius: inherit; background: linear-gradient(90deg, #69dfb1, #2cc79d); transition: width .35s ease; }
.marker { position: absolute; top: -6px; height: 32px; width: 2px; background: #fff; opacity: .95; transform: translateX(-50%); }
.marker-label { position: absolute; top: 31px; transform: translateX(-50%); color: #d7e3f1; text-align: center; font-size: 11px; line-height: 1.35; white-space: nowrap; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; gap: 5px; align-items: center; border-radius: 99px; padding: 9px 14px; background: #ffffff20; color: #f7fbff; font-size: 13px; font-weight: 650; }
.section { margin: 0 0 34px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.section-title h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.section-title p { margin: 0; color: #758198; font-size: 13px; }
.subjects, .milestones, .categories { display: grid; gap: 14px; }
.subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.milestones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .milestone { min-width: 0; padding: 19px 20px; border: 1px solid #e3e9f2; border-radius: 18px; background: #fff; }
.stat-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stat-top h3, .cat-group h3 { margin: 0; font-size: 16px; }
.stat-num { font-size: 22px; font-weight: 850; }
.stat-sub { margin: 7px 0 13px; color: #758198; font-size: 13px; }
.mini-track { height: 8px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #e8edf4; }
.mini-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5c91ef, #34c59e); }
.mile-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mile-name { font-size: 14px; font-weight: 800; }
.badge { flex: 0 0 auto; border-radius: 99px; padding: 7px 9px; background: #edf1f6; color: #6c788c; font-size: 11px; font-weight: 800; }
.mile-reward { margin-top: 10px; line-height: 1.35; }
.mile-target { margin-top: 10px; color: #2f65a5; font-size: 12px; font-weight: 400; }
.milestone.reached { border-color: #a7e2c3; background: #eaf8ef; }
.milestone.reached .badge { background: #d8f5e4; color: #18764a; }
.cat-group h3 { margin: 0 0 16px; }
.cat-row { margin: 14px 0; }
.cat-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.cat-name { font-weight: 650; }
.cat-name.complete { color: #18764a; }
.cat-count { color: #6c788c; white-space: nowrap; }
.cat-row .mini-track { height: 7px; margin-top: 7px; }
.loading, .error { padding: 24px; border-radius: 16px; background: white; color: #758198; }
footer { padding: 6px 0 0; color: #8894a6; text-align: center; font-size: 12px; }
@media (max-width: 760px) {
  .page { padding: 22px 18px 32px; }
  .hero { padding: 28px 24px; border-radius: 22px; }
  .milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .topbar { margin-bottom: 24px; }
  .subjects, .categories, .milestones { grid-template-columns: 1fr; }
  .hero-head { gap: 12px; }
  .total { font-size: 21px; }
  .percent { font-size: 48px; }
  .section-title { align-items: flex-start; flex-direction: column; gap: 4px; }
}
