@font-face { font-family: Geist; font-weight: 400; font-display: swap; src: url(/fonts/geist-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Geist; font-weight: 500; font-display: swap; src: url(/fonts/geist-latin-500-normal.woff2) format("woff2"); }
:root {
  --bg:#fff; --fg:#0b0d10; --muted:#5b6470; --card:#fff; --line:#d9dde3; --line-soft:#eceef1; --wash:#f6f8fa;
  --accent:#1d5fd6; --accent-dark:#1749a8; --accent-fg:#fff; --ink:#0b0d10;
  --danger:#b42318; --ok:#15803d; --focus:#1d5fd6;
  --r1:#c62828; --r2:#d1520b; --r3:#8a6100; --r4:#4d7c0f; --r5:#15803d;
  --g-sky: linear-gradient(160deg,#cfeeff 0%,#e9f7ff 55%,#fff 100%);
  --g-peach: linear-gradient(160deg,#ffe3d2 0%,#fff0e6 55%,#fff 100%);
  --g-mint: linear-gradient(160deg,#d6f5e6 0%,#eefaf3 55%,#fff 100%);
  --g-lav: linear-gradient(160deg,#e4defc 0%,#f2effd 55%,#fff 100%);
  --font: Geist, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; background:var(--bg); color:var(--fg); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 680px; margin: 0 auto; padding: 24px 20px 48px; }
.wrap.narrow { max-width: 440px; padding-top: 40px; }
.wide { max-width: 1040px; margin: 0 auto; padding: 24px 20px 56px; }
h1 { font-size: 2rem; font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; margin: .4em 0 .4em; }
h2 { font-size: 1.3rem; font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; margin: 2em 0 .6em; }
h3 { font-size: 1rem; font-weight: 500; margin: 0 0 .6em; }
p { margin: .6em 0; }
b, strong { font-weight: 500; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.brand-link { font-weight: 500; color: var(--fg); text-decoration: none; }
.kicker { font-weight: 400; color: var(--muted); margin: 0; font-size: .95rem; }
.lead { font-size: 1.05rem; color: var(--muted); }
.small { font-size: .875rem; color: var(--muted); }
.note { font-weight: 400; color: var(--muted); font-size: .95rem; }
.error { color: var(--danger); font-weight: 500; min-height: 1.2em; }
.notice { background: var(--wash); border-radius: 12px; padding: 12px 16px; }
label { display:block; font-weight:500; font-size: .92rem; margin: 18px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=file], select, textarea {
  width: 100%; font: inherit; padding: 10px 14px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--fg); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
textarea { resize: vertical; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding: 8px 22px; font: inherit; font-weight:500; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 999px; text-decoration:none; cursor:pointer; }
.btn:hover { background: var(--wash); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #2a2f36; }
.btn.danger { color: var(--danger); }
.btn.small { min-height: 44px; padding: 4px 16px; font-size: .9rem; }
.btn.block { width:100%; margin-top: 24px; }
.btn.text { border-color: transparent; background: transparent; color: var(--muted); padding: 8px 12px; }
.btn.text:hover { background: var(--wash); color: var(--fg); }
.btn:disabled { opacity:.5; cursor: default; }
.row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin: 16px 0; }
.card { border-top: 1px solid var(--line-soft); padding: 20px 0; margin: 0; }
.card:first-of-type { border-top: 0; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.status { min-height: 1.4em; margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-weight:500; }
summary::before { content: "+"; margin-right: 10px; color: var(--muted); width: 12px; }
details[open] > summary::before { content: "\2212"; }
.card .btn { margin-top: 8px; }
.card .row .btn { margin-top: 0; }
.prose h1 { margin-top: .8em; }
.prose ul { padding-left: 1.2em; } .prose li { margin: .4em 0; }
.prose code { background: var(--wash); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* student page */
.survey-head { margin-bottom: 4px; }
.faces { display:grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.face { display:flex; flex-direction:column; align-items:center; gap: 4px; min-height: 84px; padding: 8px 2px 6px; border: 1px solid var(--line); background: #fff; color: var(--fg); border-radius: 16px; font: inherit; cursor:pointer; }
.face svg { display:block; width: 40px; height: 40px; }
.face .lbl { font-size: .78rem; color: var(--muted); }
.face[aria-pressed=true] { border: 2px solid var(--ink); padding: 7px 1px 5px; background: var(--wash); }
.face[aria-pressed=true] .lbl { color: var(--fg); font-weight: 500; }
.face:disabled { opacity: .4; cursor: default; }
.check { display:flex; align-items:center; gap: 10px; margin: 12px 0; }
.check input { width: 26px; height: 26px; flex: none; accent-color: var(--ink); }
.check label { margin: 0; font-weight: 400; font-size: 1rem; }

/* admin */
.topbar { background: #fff; border-bottom: 1px solid var(--line-soft); }
.topbar .wide { display:flex; flex-wrap:wrap; gap: 4px 12px; align-items:center; padding-top: 8px; padding-bottom: 8px; }
.topbar strong { font-weight: 500; }
.topbar nav { display:flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.topbar nav a, .topbar .link { padding: 8px 14px; border-radius: 999px; text-decoration:none; font-weight: 400; min-height: 44px; display:flex; align-items:center; color: var(--muted); }
.topbar nav a:hover, .topbar .link:hover { background: var(--wash); color: var(--fg); }
.topbar nav a[aria-current=page] { background: var(--wash); color: var(--fg); font-weight: 500; }
.topbar .link { background:none; border:0; font:inherit; cursor:pointer; }
.topbar .tools { display:flex; gap: 2px; }
.tiles { display:grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.tile { padding: 16px 16px 16px 0; }
.tile b { display:block; font-size: 2rem; line-height: 1.25; font-weight: 400; letter-spacing: -0.02em; }
.tablewrap { overflow-x:auto; }
.tablewrap table { min-width: 460px; }
table { border-collapse: collapse; width:100%; font-size: .95rem; font-variant-numeric: tabular-nums; }
th, td { text-align:left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th { font-weight: 400; color: var(--muted); font-size: .85rem; }
.tile b, ol.ranked, .small, .status { font-variant-numeric: tabular-nums; }
td input[type=text] { min-height: 44px; padding: 6px 10px; }
meter { width: 100%; height: 6px; min-width: 80px; }
.cols { display:grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cols { grid-template-columns: 1fr 1fr; gap: 40px; } }
.comment { border-top: 1px solid var(--line-soft); padding: 12px 0; margin: 0; }
.comment.hidden { opacity: .55; }
.comment p { margin: .2em 0; }
.warn { background: #fff7e6; border-radius: 12px; padding: 10px 16px; margin: 8px 0; }
.sharelink { font-size: 1.15rem; font-weight: 500; word-break: break-all; }
.preview { max-width: 300px; width: 100%; border-radius: 12px; background:#fff; box-shadow: 0 2px 16px rgba(11,13,16,.1); }
.sample-box { background: var(--g-sky); border-radius: 18px; padding: 18px 20px; margin: 16px 0; }
.sample-box p { margin: 0 0 10px; }
@media print { .topbar, .btn { display:none; } }
.row select { width: auto; min-width: 200px; }
@media (max-width: 719px) {
  .topbar strong { flex: 1 0 100%; padding-top: 4px; }
  .topbar nav { flex: 1 1 100%; margin-left: -14px; }
  .topbar .tools { flex: 1 1 100%; margin-left: -14px; border-top: 1px solid var(--line-soft); }
  .topbar nav a { padding: 8px 10px; }
}

/* onboarding guide + checklist */
.guide { background: var(--g-sky); border-radius: 20px; padding: 20px; margin: 0 0 24px; }
.guide-top { display:flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.guide-count { font-size: .85rem; font-weight: 500; color: var(--accent-dark); margin: 0; }
.guide h2 { margin: 6px 0 4px; font-size: 1.25rem; }
.guide p { margin: 0 0 14px; color: #2b3340; }
.dots { display:flex; gap: 6px; margin: 10px 0 14px; padding: 0; list-style: none; }
.dots li { flex: 1; height: 4px; border-radius: 2px; background: rgba(11,13,16,.12); }
.dots li.done { background: var(--ink); }
.dots li.cur { background: var(--accent); }
.guide .row { margin: 0; }
.guide .row .spacer { flex: 1; }
.checklist { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 14px 0; margin: 0 0 24px; }
.checklist h2 { margin: 0 0 6px; font-size: 1rem; font-weight: 500; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { display:flex; align-items: center; gap: 10px; padding: 6px 0; min-height: 36px; }
.tick { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid #9aa3ad; display:inline-flex; align-items:center; justify-content:center; }
.tick svg { display:none; }
li.done .tick { background: var(--ink); border-color: var(--ink); }
li.done .tick svg { display:block; }
li.done span.t { color: var(--muted); }
.checklist .dismiss { margin-top: 6px; }
.site-foot { max-width: 1040px; margin: 0 auto; padding: 16px 20px 32px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line-soft); }
.site-foot a { color: var(--muted); }
.small-foot { max-width: 680px; border-top: 0; padding-top: 0; }
.guide-flash { background: rgba(255,255,255,.75); border-radius: 10px; padding: 8px 12px; font-weight: 500; color: var(--fg) !important; }

/* menu coverage + merge review */
h2.flush { margin: 0 0 4px; }
.cov-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin: 8px 0 16px; }
.cov-status { margin: 0; color: var(--muted); }
.cal { display: grid; gap: 6px; max-width: 560px; }
.cal-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cal-head span { font-size: .8rem; color: var(--muted); text-align: center; }
.cal-day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; border: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.cal-day b { font-weight: 400; font-size: .95rem; }
.cal-day i { font-style: normal; font-size: .72rem; color: var(--muted); min-height: 1em; }
.cal-day.has { background: #dbeafe; border-color: #bcd3f7; }
.cal-day.gap { border: 1.5px dashed #8a939d; }
.cal-day.past { opacity: .55; }
.cal-day.today { box-shadow: 0 0 0 2px var(--ink); }
.cal-key { margin-top: 10px; }
.tag { display: inline-block; font-size: .78rem; padding: 2px 10px; border-radius: 999px; background: var(--wash); color: var(--muted); }
.tag.replace { background: #fff1e0; color: #8a4a00; }
.merge { border: 0; padding: 0; margin: 8px 0 12px; }
.merge legend { padding: 0; margin-bottom: 6px; font-size: .92rem; }
.merge .opt { display: inline-flex; align-items: center; gap: 8px; margin: 0 20px 4px 0; min-height: 44px; font-weight: 400; font-size: 1rem; }
.merge .opt input { width: 22px; height: 22px; accent-color: var(--ink); }
