:root {
  --ink: #182231;
  --muted: #647184;
  --muted-strong: #435064;
  --paper: #fbfaf7;
  --canvas: #f2f5f5;
  --line: #dbe2e3;
  --line-strong: #c3ced0;
  --navy: #173a4b;
  --navy-deep: #102b39;
  --teal: #0f8b8d;
  --teal-soft: #e1f4f1;
  --gold: #e6ae4a;
  --gold-soft: #fff5df;
  --purple: #7258a8;
  --purple-soft: #eee9fb;
  --coral: #cb6255;
  --coral-soft: #fff0ed;
  --shadow: 0 14px 40px rgba(23, 58, 75, 0.08);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: var(--navy-deep);
}
.skip-link:focus { top: 16px; }

.site-header {
  color: #f6fbfb;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.header-inner {
  width: min(1240px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-lockup, .header-actions { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--navy-deep);
  background: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}
.eyebrow {
  margin: 0 0 2px;
  color: #aabfc3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow.accent { color: var(--teal); }
.site-header h1 { margin: 0; font-size: 20px; line-height: 1.15; letter-spacing: -.02em; }
.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bdd2d4;
  font-size: 13px;
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #58c9a5;
  box-shadow: 0 0 0 4px rgba(88,201,165,.15);
}
.save-indicator.is-saving .status-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(230,174,74,.16); }
.save-indicator.is-saved .status-dot { background: #58c9a5; }
.save-indicator.is-error .status-dot { background: var(--coral); box-shadow: 0 0 0 4px rgba(203,98,85,.16); }

.button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 750;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .mode-button:focus-visible, .jump-button:focus-visible, .option-label:focus-within, .review-chip:focus-within { outline: 3px solid rgba(230,174,74,.55); outline-offset: 2px; }
.button-quiet { color: #eaf5f4; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }
.button-quiet:hover { background: rgba(255,255,255,.16); }
.button-primary { color: white; background: var(--teal); }
.button-primary:hover { background: #0a7476; }
.button-secondary { color: var(--navy); background: white; border-color: var(--line-strong); }
.button-secondary:hover { border-color: var(--teal); }

.app-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 64px; }
.hero-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 390px);
  gap: 36px;
  align-items: end;
  padding: 42px 48px;
  color: #f3fbfb;
  background: linear-gradient(120deg, #163b4c, #225064 62%, #2d6170);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.hero-panel::after {
  content: "";
  width: 280px;
  height: 280px;
  position: absolute;
  right: -70px;
  top: -130px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255,255,255,.03), 0 0 0 76px rgba(255,255,255,.025);
}
.hero-copy { position: relative; z-index: 1; max-width: 690px; }
.hero-copy .eyebrow { color: #73d4cc; }
.hero-copy h2 { max-width: 650px; margin: 8px 0 12px; font-size: clamp(28px, 4vw, 45px); line-height: 1.07; letter-spacing: -.045em; }
.hero-copy p:last-child { max-width: 640px; margin: 0; color: #c6dadc; font-size: 16px; }
.hero-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; z-index: 1; }
.hero-stat { padding: 16px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: rgba(255,255,255,.07); }
.stat-value { display: block; font-size: 28px; font-weight: 780; line-height: 1.1; }
.stat-unit { font-size: 13px; font-weight: 650; }
.stat-label { display: block; margin-top: 6px; color: #b8d0d2; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 26px 0 14px;
}
.mode-switcher { display: inline-flex; padding: 4px; background: #e3eaea; border-radius: 12px; }
.mode-button { border: 0; border-radius: 9px; padding: 10px 16px; color: var(--muted-strong); background: transparent; font-size: 13px; font-weight: 800; }
.mode-button.is-active { color: var(--navy); background: white; box-shadow: 0 2px 8px rgba(23,58,75,.12); }
.passage-jump { display: flex; gap: 8px; }
.jump-button { border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; color: var(--muted-strong); background: white; font-size: 12px; font-weight: 800; }
.jump-button:hover { border-color: var(--teal); color: var(--teal); }

.mode-notice {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted-strong);
  background: rgba(255,255,255,.58);
  font-size: 13px;
}
.mode-notice strong { color: var(--navy); }

.performance-panel { margin: 0 0 22px; padding: 23px 24px; border: 1px solid #b9dedd; border-radius: var(--radius-lg); color: var(--navy); background: linear-gradient(135deg, #f4fcfb, #ffffff); box-shadow: 0 8px 25px rgba(15,139,141,.06); }
.performance-empty h2 { margin: 4px 0 7px; font-size: 21px; letter-spacing: -.02em; }
.performance-empty p:last-child { max-width: 690px; margin: 0; color: var(--muted-strong); font-size: 13px; }
.performance-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.performance-heading h2 { margin: 4px 0 4px; font-size: 22px; letter-spacing: -.025em; }
.performance-heading p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.overall-score { flex: 0 0 auto; min-width: 108px; padding: 11px 15px; border-radius: 12px; color: white; background: var(--teal); text-align: center; }
.overall-score span { display: block; font-size: 30px; font-weight: 850; line-height: 1; }
.overall-score small { display: block; margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.overall-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; max-width: 560px; margin-top: 18px; }
.overall-stat-grid > div { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.overall-stat-grid strong { display: block; color: var(--navy); font-size: 21px; line-height: 1.1; }
.overall-stat-grid span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.performance-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.performance-columns section { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.78); }
.performance-columns h3 { margin: 0 0 9px; color: var(--navy); font-size: 12px; letter-spacing: .02em; }
.performance-columns ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.performance-columns li { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.performance-columns li:first-child { padding-top: 0; border-top: 0; }
.performance-columns li strong { color: var(--muted-strong); font-size: 11px; }
.performance-columns li span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.performance-student-note { margin: 14px 0 0; color: var(--muted-strong); font-size: 12px; }

.cumulative-panel { margin: 0 0 22px; padding: 23px 24px; border: 1px solid #d7e3e3; border-radius: var(--radius-lg); color: var(--navy); background: var(--paper); box-shadow: 0 8px 25px rgba(23,58,75,.05); }
.cumulative-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cumulative-heading h2 { margin: 4px 0; font-size: 22px; letter-spacing: -.025em; }
.cumulative-heading p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.cumulative-total-score { flex: 0 0 auto; min-width: 130px; padding: 11px 15px; border-radius: 12px; color: white; background: var(--navy); text-align: center; }
.cumulative-total-score span { display: block; font-size: 30px; font-weight: 850; line-height: 1; }
.cumulative-total-score small { display: block; margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.cumulative-day-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.cumulative-day { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.cumulative-day-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cumulative-day-heading h3 { margin: 0; color: var(--navy); font-size: 14px; }
.cumulative-day-heading span { color: var(--muted); font-size: 11px; font-weight: 750; }
.cumulative-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.cumulative-stat-row > div { padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fcfdfc; }
.cumulative-stat-row strong { display: block; color: var(--navy); font-size: 18px; line-height: 1.1; }
.cumulative-stat-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.cumulative-total-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.cumulative-total-row strong { color: var(--navy); }

.summary-panel { margin-bottom: 30px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 6px 24px rgba(23,58,75,.04); }
.summary-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.summary-heading h2 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.02em; }
.summary-caption { margin: 0; color: var(--muted); font-size: 13px; }
.summary-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.summary-metric { min-height: 90px; padding: 14px 13px; border: 1px solid var(--line); border-top: 3px solid var(--line-strong); border-radius: 11px; background: white; }
.summary-metric.positive { border-top-color: var(--teal); }
.summary-metric.caution { border-top-color: var(--gold); }
.summary-metric.purple { border-top-color: var(--purple); }
.summary-metric.coral { border-top-color: var(--coral); }
.summary-metric.neutral { border-top-color: var(--muted); }
.metric-number { display: block; color: var(--navy); font-size: 25px; font-weight: 800; line-height: 1.1; }
.metric-label { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 750; line-height: 1.2; }
.overall-progress-panel { margin: 26px 0 0; padding: 24px; border: 1px solid #b9dedd; border-radius: var(--radius-lg); background: linear-gradient(135deg, #f4fcfb, #ffffff); box-shadow: 0 6px 24px rgba(15,139,141,.06); }
.overall-progress-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.overall-progress-heading h2 { margin: 4px 0 0; color: var(--navy); font-size: 21px; letter-spacing: -.025em; }
.overall-progress-caption { margin: 0; color: var(--muted); font-size: 12px; }
.overall-progress-content { display: grid; grid-template-columns: minmax(180px, .6fr) 1fr; gap: 12px; margin-top: 18px; }
.overall-score-card { display: flex; flex-direction: column; justify-content: center; min-height: 115px; padding: 16px; border-radius: 12px; color: white; background: var(--navy); }
.overall-score-card strong { font-size: 32px; line-height: 1; }
.overall-score-card span { margin-top: 7px; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.overall-score-card small { margin-top: 5px; color: #b8d0d2; font-size: 11px; }
.overall-day-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.overall-day-card { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.overall-day-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.overall-day-heading h3 { margin: 0; color: var(--navy); font-size: 14px; }
.overall-day-heading span { color: var(--muted); font-size: 10px; font-weight: 750; }
.overall-day-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.overall-day-stats > div { padding: 8px 6px; border-radius: 8px; background: #f7fbfa; text-align: center; }
.overall-day-stats strong { display: block; color: var(--navy); font-size: 17px; line-height: 1.1; }
.overall-day-stats span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.progress-empty { margin: 0; color: var(--muted); font-size: 13px; }
.app-status { margin: 0 2px 16px; color: var(--muted); font-size: 13px; }

.passage-list { display: grid; gap: 28px; }
.passage-card { scroll-margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.passage-header { padding: 28px 32px 23px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #ffffff, #f8faf9); }
.passage-header-top { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.passage-title-row { display: flex; align-items: center; gap: 12px; }
.passage-id { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; padding: 5px 8px; color: white; background: var(--navy); border-radius: 7px; font-size: 12px; font-weight: 850; letter-spacing: .05em; }
.passage-title { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 3vw, 34px); line-height: 1.1; letter-spacing: -.025em; }
.passage-subtitle { margin: 10px 0 0 68px; color: var(--muted); font-size: 13px; }
.passage-metadata { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.meta-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted-strong); background: white; font-size: 12px; }
.meta-pill strong { color: var(--navy); font-weight: 800; }
.timer-box { min-width: 150px; padding: 12px 14px; border: 1px solid #b9dedd; border-radius: 12px; color: var(--navy); background: var(--teal-soft); text-align: right; }
.timer-label { display: block; color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.timer-value { display: block; margin: 1px 0 5px; font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 850; line-height: 1.1; }
.timer-value.is-expired { color: var(--coral); }
.timer-toggle { border: 0; padding: 0; color: var(--muted-strong); background: transparent; font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.timer-toggle:hover { color: var(--teal); }
.timer-box.is-paused { background: var(--gold-soft); border-color: #eed8a7; }
.timer-box.is-paused .timer-label { color: #9b741f; }

.passage-review-controls { display: none; margin-top: 21px; padding-top: 17px; border-top: 1px dashed var(--line-strong); }
.parent-mode .passage-review-controls { display: block; }
.review-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.review-heading h4 { margin: 0; color: var(--navy); font-size: 13px; }
.review-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.review-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.review-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--muted-strong); background: white; font-size: 11px; font-weight: 750; }
.review-chip input { width: 13px; height: 13px; margin: 0; accent-color: var(--teal); }
.review-chip:has(input:checked) { border-color: var(--teal); color: var(--navy); background: var(--teal-soft); }
.review-chip.issue:has(input:checked) { border-color: #dfaa45; background: var(--gold-soft); }
.review-chip.critical:has(input:checked) { border-color: var(--coral); background: var(--coral-soft); }
.custom-note { width: 100%; min-height: 68px; resize: vertical; margin-top: 10px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); background: white; font-size: 12px; }
.custom-note::placeholder { color: #8a96a1; }

.passage-content { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(440px, .98fr); gap: 0; align-items: start; }
.reading-column { min-width: 0; padding: 31px 32px 35px; border-right: 1px solid var(--line); }
.questions-column { min-width: 0; padding: 31px 27px 35px; }
.column-label { margin: 0 0 13px; color: var(--teal); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.passage-text { color: #2c3743; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.72; }
.passage-paragraph { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 12px; margin: 0 0 18px; }
.passage-paragraph:last-child { margin-bottom: 0; }
.paragraph-number { padding-top: 3px; color: var(--teal); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 11px; font-weight: 850; text-align: right; }
.paragraph-copy { margin: 0; }
.evidence-highlight { padding: 2px 3px; border-radius: 4px; color: #5e410b; background: #ffdfa0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.evidence-highlight:hover { background: #ffd27a; }
.evidence-legend { display: flex; align-items: center; gap: 7px; margin: 0 0 16px; color: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 11px; }
.legend-swatch { width: 15px; height: 15px; display: inline-block; border: 1px solid #edc56c; border-radius: 4px; background: #ffdfa0; }
.parent-mode .evidence-legend { display: flex; }
.evidence-legend { display: none; }

.question-list { display: grid; gap: 17px; }
.question-card { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.question-card.is-submitted { border-color: var(--line-strong); }
.question-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 8px; }
.question-number { color: var(--teal); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.question-status { display: none; padding: 4px 7px; border-radius: 6px; font-size: 10px; font-weight: 850; }
.question-card.is-submitted .question-status { display: inline-flex; }
.question-status.correct { color: #166850; background: var(--teal-soft); }
.question-status.incorrect { color: #914136; background: var(--coral-soft); }
.question-text { margin: 0 0 13px; color: var(--navy); font-size: 15px; font-weight: 750; line-height: 1.42; }
.option-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.option-label { display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted-strong); background: #fcfdfc; font-size: 13px; line-height: 1.42; transition: border-color .12s ease, background .12s ease; }
.option-label:hover { border-color: #9bcfca; background: #f5fbfa; }
.option-label input { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; accent-color: var(--teal); }
.option-label .option-letter { flex: 0 0 auto; color: var(--navy); font-weight: 850; }
.student-preview .option-label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.student-preview .option-label.is-correct { border-color: #4eaf90; background: var(--teal-soft); }
.student-preview .option-label.is-incorrect { border-color: #dca198; background: var(--coral-soft); }
.student-preview .option-label.is-correct .option-letter { color: #166850; }
.student-preview .option-label.is-incorrect .option-letter { color: #914136; }
.answer-reveal { display: none; }
.parent-mode .answer-reveal { display: block; }
.parent-mode .student-only { display: none; }
.answer-panel { margin-top: 15px; padding: 14px; border: 1px solid #d7cdf2; border-radius: 10px; background: var(--purple-soft); }
.answer-panel h4 { margin: 0 0 7px; color: var(--purple); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.answer-line { margin: 0; color: var(--navy); font-size: 13px; font-weight: 800; }
.answer-line span { display: inline-flex; min-width: 22px; justify-content: center; margin-right: 5px; border-radius: 5px; color: white; background: var(--purple); }
.evidence-block { margin-top: 12px; padding-top: 11px; border-top: 1px solid #d7cdf2; }
.evidence-label { display: block; margin-bottom: 3px; color: var(--purple); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.evidence-quote { margin: 0; color: #493b6e; font-family: Georgia, "Times New Roman", serif; font-size: 14px; font-style: italic; line-height: 1.5; }
.evidence-location { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.review-explanation { display: grid; gap: 9px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #d7cdf2; }
.review-explanation p { margin: 0; color: var(--muted-strong); font-size: 12px; line-height: 1.5; }
.review-explanation strong { color: var(--navy); }
.option-rationale { display: grid; gap: 7px; margin-top: 13px; padding-top: 11px; border-top: 1px dashed #d7cdf2; }
.rationale-row { display: grid; grid-template-columns: 24px 1fr; gap: 7px; color: var(--muted-strong); font-size: 11px; line-height: 1.45; }
.rationale-row .rationale-label { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; color: var(--navy); background: white; font-weight: 850; }
.rationale-row .rationale-type { display: inline-block; margin-right: 4px; color: #835d16; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .03em; }
.question-review { display: none; margin-top: 17px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.parent-mode .question-review { display: block; }
.question-review-title { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.question-review .custom-note { min-height: 58px; }
.passage-submit-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line); }
.submit-feedback { margin: 0; color: var(--muted); font-size: 12px; }
.submit-feedback strong { color: var(--navy); }
.student-result { display: none; margin-top: 14px; padding: 11px 12px; border-radius: 9px; color: #176651; background: var(--teal-soft); font-size: 12px; font-weight: 750; }
.student-result.is-visible { display: block; }
.result-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.result-kicker { display: block; margin-bottom: 3px; color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.result-heading h3 { margin: 0; color: var(--navy); font-size: 14px; }
.result-percent { color: var(--teal); font-size: 25px; font-weight: 900; line-height: 1; }
.result-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 11px; }
.result-stat-grid > div { padding: 8px; border: 1px solid rgba(15,139,141,.15); border-radius: 7px; background: rgba(255,255,255,.66); }
.result-stat-grid strong { display: block; color: var(--navy); font-size: 16px; line-height: 1.1; }
.result-stat-grid span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.result-note { margin: 11px 0 0; color: var(--muted-strong); font-size: 11px; font-weight: 600; line-height: 1.45; }

.empty-state { padding: 32px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--muted); background: white; }
.error-panel h2 { margin: 0 0 8px; color: var(--coral); font-size: 22px; }
.error-panel p { margin: 0 0 18px; }
.error-details { display: grid; gap: 10px; margin: 0; }
.error-details div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.error-details dt { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.error-details dd { margin: 0; color: var(--navy); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }
.password-modal[hidden] { display: none; }
.password-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; }
.password-backdrop { position: absolute; inset: 0; background: rgba(16,43,57,.62); backdrop-filter: blur(4px); }
.password-card { width: min(100%, 420px); position: relative; padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 24px 80px rgba(9,31,42,.3); }
.password-card-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 16px; }
.lock-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: #825d14; background: var(--gold-soft); font-size: 24px; line-height: 1; }
.modal-close { border: 0; padding: 0 3px; color: var(--muted); background: transparent; font-size: 25px; line-height: 1; }
.modal-close:hover { color: var(--navy); }
.password-card h2 { margin: 5px 0 8px; color: var(--navy); font-size: 24px; line-height: 1.12; letter-spacing: -.03em; }
.password-card form > label { display: block; margin-top: 21px; margin-bottom: 6px; color: var(--navy); font-size: 12px; font-weight: 800; }
.password-card input { width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); background: white; letter-spacing: .12em; }
.password-card input:focus { border-color: var(--teal); outline: 3px solid rgba(15,139,141,.16); }
.password-card p:not(.eyebrow):not(.password-error) { margin: 0; color: var(--muted-strong); font-size: 13px; }
.password-error { min-height: 21px; margin: 7px 0 0; color: var(--coral); font-size: 12px; font-weight: 750; }
.password-actions { display: flex; justify-content: end; gap: 8px; margin-top: 8px; }
.site-footer { padding: 24px 20px 42px; color: var(--muted); text-align: center; font-size: 12px; }
.site-footer code { color: var(--muted-strong); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.home-shell { padding-top: 42px; }
.home-hero { min-height: 300px; }
.track-section { margin-top: 26px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 6px 24px rgba(23,58,75,.04); }
.track-section-writing { background: linear-gradient(135deg, #fbfaf7, #f5faf9); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-heading h2 { margin: 4px 0 0; color: var(--navy); font-size: 25px; letter-spacing: -.03em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 13px; }
.day-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 21px; }
.day-card { min-height: 146px; display: flex; align-items: flex-start; gap: 12px; position: relative; padding: 17px 15px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: white; text-decoration: none; }
.day-card.is-ready { transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.day-card.is-ready:hover { border-color: #9bcfca; box-shadow: 0 9px 22px rgba(15,139,141,.1); transform: translateY(-2px); }
.day-card.is-planned { color: var(--muted); background: rgba(255,255,255,.55); }
.day-card-number { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--navy); font-size: 12px; font-weight: 850; letter-spacing: .06em; }
.is-planned .day-card-number { color: var(--muted-strong); background: #e7eded; }
.day-card-copy { min-width: 0; display: grid; gap: 4px; padding-right: 10px; }
.day-card-copy strong { color: var(--navy); font-size: 15px; }
.day-card-copy span { color: var(--muted-strong); font-size: 12px; line-height: 1.4; }
.day-card-copy small { color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.is-planned .day-card-copy small { color: var(--muted); }
.day-card-arrow { position: absolute; right: 14px; top: 14px; color: var(--teal); font-size: 21px; line-height: 1; }
.is-planned .day-card-arrow { color: var(--line-strong); }
.track-note { margin: 17px 0 0; color: var(--muted); font-size: 12px; }

@media (max-width: 1000px) {
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .passage-content { grid-template-columns: 1fr; }
  .reading-column { border-right: 0; border-bottom: 1px solid var(--line); }
  .day-grid { grid-template-columns: repeat(2, 1fr); }
  .overall-progress-content { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-inner, .app-shell { width: min(100% - 24px, 1240px); }
  .header-inner { min-height: 72px; }
  .header-actions { gap: 8px; }
  .save-indicator { display: none; }
  .hero-panel { grid-template-columns: 1fr; padding: 30px 25px; gap: 25px; }
  .hero-stat-grid { max-width: 430px; }
  .control-bar, .summary-heading { align-items: stretch; flex-direction: column; }
  .mode-switcher { align-self: flex-start; }
  .passage-jump { overflow-x: auto; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .performance-heading { align-items: flex-start; flex-direction: column; }
  .overall-score { width: 100%; text-align: left; }
  .overall-score span, .overall-score small { display: inline; }
  .overall-score small { margin-left: 5px; }
  .performance-columns { grid-template-columns: 1fr; }
  .cumulative-heading { align-items: flex-start; flex-direction: column; }
  .cumulative-total-score { width: 100%; text-align: left; }
  .cumulative-total-score span, .cumulative-total-score small { display: inline; }
  .cumulative-total-score small { margin-left: 5px; }
  .cumulative-day-grid { grid-template-columns: 1fr; }
  .cumulative-total-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .passage-header, .reading-column { padding: 23px 19px; }
  .questions-column { padding: 23px 14px; }
  .passage-header-top { flex-direction: column; }
  .timer-box { width: 100%; text-align: left; }
  .passage-title-row { align-items: flex-start; }
  .passage-subtitle { margin-left: 0; }
  .passage-paragraph { grid-template-columns: 21px minmax(0, 1fr); gap: 8px; }
  .passage-text { font-size: 16px; }
  .passage-submit-row { align-items: stretch; flex-direction: column; }
  .home-shell { padding-top: 24px; }
  .track-section { padding: 21px 17px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .day-grid { grid-template-columns: 1fr; }
  .overall-progress-panel { padding: 19px 16px; }
  .overall-progress-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .overall-day-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .brand-mark { width: 36px; height: 36px; }
  .site-header h1 { font-size: 17px; }
  .button-quiet { padding: 8px 10px; font-size: 11px; }
  .summary-panel { padding: 16px; }
  .summary-grid { gap: 7px; }
  .summary-metric { padding: 11px 9px; }
  .metric-number { font-size: 21px; }
  .metric-label { font-size: 10px; }
}
