:root { --bg:#f5f6f8; --card:#fff; --ink:#1c2430; --muted:#667085; --accent:#2f6fed; --teal:#12a594; --line:#e4e7ec; --err:#c0392b; --tick:#1c2430; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, sans-serif; background:var(--bg); color:var(--ink); }
header, main, footer { max-width:960px; margin:0 auto; padding-left:16px; padding-right:16px; }
header { padding-top:24px; padding-bottom:8px; }
h1 { margin:0 0 4px; font-size:1.5rem; }
.place-picker { display:inline-block; margin-top:12px; font-size:.85rem; color:var(--muted); }
.place-picker select { font:inherit; padding:6px 10px; margin-left:6px; min-width:200px; }
.sub, .note { color:var(--muted); font-size:.85rem; }
.note { margin-top:8px; }
main { padding-bottom:24px; }
footer { color:var(--muted); font-size:.8rem; padding-bottom:32px; }
[hidden] { display:none !important; }

.grid { display:grid; gap:16px; grid-template-columns: repeat(2, 1fr); }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; }
.card.wide { grid-column: 1 / -1; }
.card h2 { margin:0 0 10px; font-size:.8rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.card h3 { margin:0 0 6px; font-size:.95rem; }
.big { font-size:2rem; font-weight:700; }

.row { display:grid; grid-template-columns: 200px 1fr 130px; gap:10px; align-items:center; margin:7px 0; font-size:.88rem; }
.row.clickable { cursor:pointer; border-radius:6px; }
.row.clickable:hover, .row.clickable:focus-visible { background:#f0f4ff; outline:none; }
.row.selected { background:#e6eeff; font-weight:600; }
.track { position:relative; background:#eef1f6; border-radius:6px; height:16px; }
.fill { background:var(--accent); height:100%; border-radius:6px; }
.marker { position:absolute; top:-3px; bottom:-3px; width:2px; background:var(--tick); border-radius:1px; }
.edu .fill { background:var(--teal); }
.val { text-align:right; font-variant-numeric: tabular-nums; line-height:1.2; }
.val small { display:block; color:var(--muted); font-size:.72rem; }

.controls { display:flex; gap:12px; flex-wrap:wrap; align-items:center; justify-content:space-between; margin-bottom:8px; }
.controls h2 { margin:0; }
.tabs { display:flex; gap:6px; flex-wrap:wrap; }
.tabs button { border:1px solid var(--line); background:var(--card); padding:6px 14px; border-radius:999px; cursor:pointer; font:inherit; }
.tabs button[aria-selected="true"] { background:var(--accent); color:#fff; border-color:var(--accent); }
.controls label { font-size:.85rem; color:var(--muted); }
.controls select { font:inherit; padding:4px 8px; margin-left:6px; max-width:300px; }

.spotlight { border:2px solid #7a5195; }
.spotlight h2 { color:#7a5195; }
.callout { background:#f4effa; border-left:4px solid #7a5195; padding:10px 12px; border-radius:6px; font-size:.9rem; margin-bottom:10px; }
.two-col { display:grid; grid-template-columns: 1fr 1fr; gap:24px; }
.two-col .row { grid-template-columns: 120px 1fr 160px; }
.two-col .val small { white-space: normal; }

.status { font-size:.85rem; color:var(--muted); min-height:1px; }
.status button { margin-left:8px; padding:3px 10px; border:1px solid var(--accent); background:#fff; color:var(--accent); border-radius:6px; cursor:pointer; font:inherit; }

.about { grid-column:1 / -1; margin-top:16px; font-size:.9rem; }
.about summary { cursor:pointer; font-weight:600; }
.about li { margin:8px 0; }

.state { text-align:center; padding:48px 16px; }
.spinner { width:36px; height:36px; border:4px solid var(--line); border-top-color:var(--accent); border-radius:50%; margin:0 auto 12px; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.state.error h3 { color:var(--err); }
.retry { margin-top:12px; padding:8px 16px; border:0; border-radius:8px; background:var(--accent); color:#fff; font:inherit; cursor:pointer; }

@media (max-width:760px) {
  .grid, .two-col { grid-template-columns: 1fr; }
  .row, .two-col .row { grid-template-columns: 110px 1fr 96px; }
}
