.coverage-back { margin-left: auto; font-size: 13px; color: var(--accent); white-space: nowrap; }
.coverage-main { max-width: 1440px; padding-bottom: 32px; }
.coverage-intro { padding: 26px 0 24px; }
.coverage-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 10px; font-weight: 650; letter-spacing: .12em; color: var(--muted); }
.coverage-eyebrow span { padding: 4px 7px; background: var(--soft); color: var(--accent); letter-spacing: 0; }
.coverage-intro h1 { font-size: clamp(28px, 4vw, 40px); }
.coverage-intro > p:not(.coverage-eyebrow) { margin: 10px 0 22px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.coverage-stats { display: flex; gap: 30px; }
.coverage-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.coverage-mode { display: flex; margin-left: auto; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.coverage-mode button { min-height: 38px; padding: 8px 18px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 13px; }
.coverage-mode button[aria-pressed="true"] { color: #fff; background: var(--accent); }
.coverage-stat { display: flex; align-items: baseline; gap: 7px; font-size: 12px; color: var(--muted); }
.coverage-stat strong { font-size: 28px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.coverage-stat.has strong { color: var(--accent); }
.coverage-tools { display: flex; align-items: end; flex-wrap: wrap; gap: 18px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--sky); }
.coverage-search { flex: 1; min-width: 180px; }
.coverage-tools label, .coverage-view legend { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 600; color: var(--muted); }
.coverage-tools input, .coverage-tools select { height: 40px; width: 100%; border: 1px solid #bcd8e9; background: #fff; color: var(--ink); border-radius: 3px; padding: 0 12px; font-size: 13px; }
.coverage-school { width: 180px; }
.coverage-view { margin: 0; padding: 0; border: 0; }
.coverage-view-options { display: flex; }
.coverage-view button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; }
.coverage-view button + button { border-left: 0; }
.coverage-view button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.coverage-key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 17px 0 0; font-size: 12px; color: var(--muted); }
.coverage-key > span { display: flex; align-items: center; gap: 6px; }
.coverage-key p { margin: 0; font-size: 11px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot.has { background: var(--accent); }
.status-dot.missing { background: #7b8994; }
.coverage-result { font-size: 12px; color: var(--muted); margin: 22px 0 10px; }
.school-board { border: 1px solid var(--line); background: #fff; }
.school-row { display: grid; grid-template-columns: 164px minmax(0, 1fr); }
.school-row + .school-row { border-top: 1px solid var(--line); }
.school-label { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 9px; padding: 24px 14px; background: #f0f8fc; border-right: 1px solid var(--line); }
.school-label img { width: 48px; height: 48px; object-fit: contain; filter: brightness(0); opacity: .65; }
.school-label h2 { margin: 0; font-size: 16px; color: var(--ink); text-align: center; }
.school-label p { margin: 0; color: var(--muted); font-size: 11px; text-align: center; line-height: 1.6; }
.school-progress { width: 82px; height: 3px; accent-color: var(--accent); }
.school-students { min-width: 0; }
.student-lane { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 18px; }
.student-lane + .student-lane { border-top: 1px dashed var(--line); }
.lane-label { display: flex; gap: 6px; align-items: baseline; margin: 2px 0; font-size: 11px; color: var(--muted); font-weight: 500; line-height: 1.6; }
.lane-label .status-dot { margin-top: 5px; }
.student-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 14px 10px; align-items: start; }
.student-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; width: 100%; max-width: 102px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: center; }
.student-face { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 3px; background: #e9f3f8; border: 2px solid #008fc6; }
.student-tile.missing .student-face { border-color: #d4e1e9; }
.student-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.student-check { position: absolute; bottom: 0; right: 0; display: grid; place-items: center; width: 18px; height: 18px; color: #fff; background: var(--accent); font-size: 12px; border-top-left-radius: 3px; }
.student-resale-badge { display: inline-block; padding: 3px 5px; border-radius: 2px; background: #c62828; color: #fff; font-size: 10px; font-weight: 650; font-style: normal; line-height: 1.2; white-space: nowrap; }
.student-face .student-resale-badge { position: absolute; top: 3px; left: 3px; box-shadow: 0 1px 3px #17354e33; }
.student-name { font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.student-sizes { font-size: 10px; color: var(--accent); min-height: 14px; }
.student-tile:hover .student-face, .student-tile:focus-visible .student-face { border-color: #004f80; box-shadow: 0 0 0 2px #39baf02a; }
.lane-empty { margin: 5px 0; font-size: 12px; color: var(--muted); }
.coverage-empty { padding: 40px 18px; text-align: center; color: var(--muted); }
.coverage-method { margin: 30px 0 0; padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted); }
.coverage-method h2 { margin: 0 0 12px; font-size: 14px; color: var(--ink); }
.coverage-method p { margin: 8px 0; font-size: 12px; line-height: 1.9; }
.coverage-method a { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }
#student-detail { width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 22px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; }
#student-detail::backdrop { background: #17354e66; }
.student-detail-header { display: flex; align-items: start; gap: 18px; margin-bottom: 18px; }
.student-detail-header h2 { margin: 0; font-size: 20px; }
#close-student-detail { margin-left: auto; width: 32px; height: 32px; border: 1px solid var(--line); background: #f2f9fe; font-size: 24px; line-height: 1; color: var(--muted); border-radius: 3px; }
.student-product { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.student-product > div { min-width: 0; }
.student-product img { flex-shrink: 0; }
.student-product img { width: 76px; height: 90px; object-fit: contain; background: #f6fafe; }
.student-product h3 { margin: 0 0 8px; font-size: 13px; line-height: 1.6; }
.student-product p { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.student-product p.student-sale-label { color: var(--accent); font-weight: 650; }
.student-product a { font-size: 12px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.student-detail-note { margin: 0 0 18px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.sales-timeline { padding: 8px 0 12px; }
.timeline-month { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding: 0 0 30px 20px; border-left: 2px solid #bcd8e9; margin-left: 6px; }
.timeline-month::before { content: ''; position: absolute; top: 8px; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #f1f9fe; }
.timeline-date { margin: 0; padding-top: 2px; font-size: 19px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.timeline-upcoming { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 400; }
.timeline-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; align-items: start; }
.timeline-product { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); text-align: left; }
.timeline-product:hover { border-color: var(--accent); }
.timeline-product:focus-visible, .coverage-mode button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.timeline-product img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.timeline-product-name { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.timeline-product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .student-face { transition: border-color .16s, box-shadow .16s; }
}
@media (max-width: 730px) {
  .timeline-month { grid-template-columns: 1fr; gap: 14px; padding-left: 18px; }
  .timeline-date { display: flex; align-items: baseline; gap: 10px; font-size: 18px; }
  .timeline-upcoming { margin-top: 0; }
  .timeline-products { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
  .coverage-back { font-size: 11px; }
  .coverage-intro { padding-top: 10px; }
  .coverage-eyebrow { flex-wrap: wrap; font-size: 9px; gap: 7px; }
  .coverage-stats { gap: 20px; }
  .coverage-stat { flex-direction: column; gap: 2px; font-size: 11px; }
  .coverage-stat strong { font-size: 26px; }
  .coverage-tools { padding: 14px; gap: 14px 12px; }
  .coverage-search { flex: 1 1 100%; }
  .coverage-school { flex: 1; min-width: 95px; width: auto; }
  .coverage-view button { padding: 8px 10px; font-size: 11px; }
  .coverage-key p { flex-basis: 100%; line-height: 1.6; }
  .school-row { grid-template-columns: 1fr; }
  .school-label { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .school-label img { width: 28px; height: 28px; }
  .school-label h2 { font-size: 14px; }
  .school-label p { margin-left: auto; }
  .school-progress { display: none; }
  .student-lane { grid-template-columns: 1fr; padding: 14px; gap: 10px; }
  .lane-label { align-items: center; margin: 0; }
  .lane-label .status-dot { margin-top: 0; }
  .student-tiles { grid-template-columns: repeat(auto-fill, minmax(65px, 1fr)); gap: 12px 8px; }
}
@media (max-width: 370px) {
  .coverage-page .brand { font-size: 12px; }
  .coverage-view button { padding: 8px; }
  .coverage-back { font-size: 10px; }
}
