/* The design system (UI redesign spec 2026-10-20, §3). The font addresses
   below are replaced by their current, hashed ones when this is served. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/static/fonts/inter.3100e775.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/fraunces-600.170a928c.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --bg: #FBF8F3; --surface: #FFFFFF; --fg: #1F2A2E; --muted: #4A5558;
  --line: #EFE9DF; --line-strong: #E3DCD0;
  --accent: #0F6E6A; --accent-hover: #0A4F4C; --accent-tint: #DCEEEC; --on-accent: #FFFFFF;
  --band: #E8F1EF; --error: #B3261E; --warn-bg: #FFF4E5; --warn-fg: #7A4B00;
  --foot-bg: #1F2A2E; --foot-fg: #D7DCDD; --foot-link: #FFFFFF;
  --badge-0: #0F6E6A; --badge-1: #B4553A; --badge-2: #3D5A80;
  --shadow: 0 12px 32px rgba(31, 42, 46, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 88px;
}
/* Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 17px/1.6 var(--sans); color: var(--fg); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); margin: 0 0 var(--s4); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.3rem); margin: var(--s7) 0 var(--s4); }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 var(--s2); font-weight: 600; }
p, ul, ol, dl { margin: 0 0 var(--s4); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 640px) { .wrap { padding: 0 var(--s6); } }

/* Header and menu */
header.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; justify-content: space-between; padding-top: var(--s4); padding-bottom: var(--s4); }
.site { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.site svg { color: var(--accent); }
.top nav { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); align-items: center; font-size: 1rem; }
.top nav a { color: var(--fg); text-decoration: none; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover { color: var(--accent); }
.top nav a.pill { padding: 8px 20px; border: 1.5px solid var(--accent); border-radius: 999px; color: var(--accent); font-weight: 600; }
.top nav form { display: inline; margin: 0; }
.who { color: var(--muted); }
details.menu { position: relative; }
details.menu summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; list-style: none; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu summary::after { content: "▾"; color: var(--muted); }
details.menu > div { display: flex; flex-direction: column; padding: var(--s2) var(--s4); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); }
@media (min-width: 720px) { details.menu > div { position: absolute; top: 100%; left: -16px; z-index: 10; min-width: 13rem; } }

/* Page layouts */
main { flex: 1; }
main.page { width: 100%; max-width: calc(760px + 2 * var(--s4)); margin: 0 auto; padding: var(--s7) var(--s4) var(--s8); }
main.page.wide { max-width: calc(1160px + 2 * var(--s4)); }
main.page.centred { max-width: calc(600px + 2 * var(--s4)); }
main.page > h1:first-child, main.page .card > h1:first-child { margin-top: 0; }
main.home h2 { margin-top: 0; }
@media (min-width: 640px) { main.page { padding-left: var(--s6); padding-right: var(--s6); max-width: calc(760px + 2 * var(--s6)); } main.page.wide { max-width: calc(1160px + 2 * var(--s6)); } main.page.centred { max-width: calc(600px + 2 * var(--s6)); } }

/* Footer */
footer.bottom { margin-top: auto; background: var(--foot-bg); color: var(--foot-fg); font-size: 0.94rem; }
footer.bottom .wrap { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s7); justify-content: space-between; padding-top: var(--s7); padding-bottom: var(--s7); }
footer.bottom p { margin: 0; max-width: 38rem; }
footer.bottom a { color: var(--foot-link); }
footer.bottom .languages { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); flex-basis: 100%; }
footer.bottom .languages button { all: unset; cursor: pointer; color: var(--foot-link); text-decoration: underline; }
footer.bottom .languages button[aria-current] { color: var(--foot-fg); text-decoration: none; font-weight: 600; }
footer.bottom .languages button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Buttons */
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 24px; font: 600 1rem/1.2 var(--sans); color: var(--on-accent); background: var(--accent); border: 1.5px solid var(--accent); border-radius: 999px; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
button.secondary, .button.secondary { background: var(--surface); color: var(--fg); border-color: var(--line-strong); font-weight: 500; }
button.secondary:hover, .button.secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.button.dark { background: var(--fg); border-color: var(--fg); color: var(--bg); }
/* Google's sign-in button, as its branding asks: white, grey outline, the four-colour mark. */
button.google { gap: 10px; min-height: 40px; padding: 0 14px 0 12px; background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; font: 500 14px/20px Roboto, Arial, sans-serif; letter-spacing: .25px; }
button.google:hover { background: #F8FAFF; border-color: #747775; color: #1F1F1F; box-shadow: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15); }
button.google:focus-visible { outline: 2px solid #0B57D0; outline-offset: 2px; }
.g-mark { flex: none; }
button.quiet { background: none; border: none; color: var(--muted); padding: 10px 0; font-weight: 500; }
button.quiet:hover { color: var(--accent); background: none; }
form[action$="/reject"] button, form[action$="/cancel"] button, form[action$="/withdraw"] button,
form[action$="/revoke"] button, form[action$="/remove"] button, form[action$="/disconnect"] button,
form[action$="/unlink"] button, form[action^="/profile/delete"] button, form[action="/account/delete/confirm"] button, form[action$="/pause"] button {
  background: var(--surface); color: var(--error); border-color: currentColor; }
form[action$="/reject"] button:hover, form[action$="/cancel"] button:hover, form[action$="/withdraw"] button:hover,
form[action$="/revoke"] button:hover, form[action$="/remove"] button:hover, form[action$="/disconnect"] button:hover,
form[action$="/unlink"] button:hover, form[action^="/profile/delete"] button:hover, form[action="/account/delete/confirm"] button:hover, form[action$="/pause"] button:hover {
  background: var(--error); color: var(--surface); border-color: var(--error); }

/* Forms */
form { margin: 0 0 var(--s5); }
label { display: block; margin: 0 0 var(--s4); font-weight: 500; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 14px; font: 400 1rem/1.4 var(--sans); color: var(--fg); background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: 12px; min-height: 44px; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]) { max-width: 26rem; }
textarea { max-width: 40rem; }
select { width: auto; max-width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: 3px solid var(--accent-tint); outline-offset: 0; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; margin: 0 8px 0 0; vertical-align: -4px; accent-color: var(--accent); }
label.check, label:has(> input[type=checkbox]) { font-weight: 400; }
fieldset { border: none; padding: 0; margin: 0 0 var(--s4); }
legend { padding: 0; margin-bottom: var(--s2); font-weight: 600; }
form.inline { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: flex-end; }
form.inline label { margin: 0; }
li form, td form { display: inline; margin: 0 0 0 var(--s2); }
li form button, td form button { min-height: 36px; padding: 6px 16px; font-size: 0.94rem; }

/* Text */
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.label { margin: 0 0 var(--s3); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hint { color: var(--muted); font-size: 0.94rem; }
.error { color: var(--error); margin: -8px 0 var(--s4); font-weight: 500; }
.notice { padding: var(--s3) var(--s4); background: var(--warn-bg); color: var(--warn-fg); border-radius: 12px; font-weight: 500; }
.typed { white-space: pre-line; }
.state { font-style: normal; display: inline-block; padding: 2px 12px; background: var(--accent-tint); color: var(--accent); border-radius: 999px; font-weight: 600; font-size: 0.94rem; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s5); }
dt { color: var(--muted); }
dd { margin: 0; }
main.page > p, main.page li { max-width: 70ch; }

ol.timeline { padding-left: 1.2rem; display: grid; gap: var(--s2); }
.notice-info { padding: var(--s3) var(--s4); background: var(--accent-tint); color: var(--fg); border-radius: 12px; }

/* Cards and sections */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: var(--s5); margin: 0 0 var(--s5); }
.card > h2:first-child { margin-top: 0; font-size: 1.4rem; }
.card > :last-child { margin-bottom: 0; }
main.page > section { margin-top: var(--s6); }
main.page > section > h2:first-child { margin-top: 0; }
@media (min-width: 640px) { .card { padding: var(--s6); } }

/* Tables: wide ones scroll inside their box, never the page. */
.scroll { max-width: 100%; overflow-x: auto; margin: 0 0 var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: none; }

/* Photos */
.photo { display: block; width: 100%; object-fit: cover; border-radius: 28px; }
.photo.side { display: none; }
@media (min-width: 960px) { .photo.side { display: block; position: sticky; top: var(--s5); height: 460px; } }

/* Home: hero */
main.home > section { padding-top: var(--s8); padding-bottom: var(--s8); }
.hero { display: grid; gap: var(--s7); align-items: center; padding-top: var(--s6) !important; }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.5rem); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero-photo { position: relative; }
.photo-hero { height: clamp(300px, 60vw, 460px); object-position: 55% 40%; }
.zone-card { position: absolute; left: var(--s4); bottom: calc(-1 * var(--s5)); margin: 0; display: flex; gap: var(--s3); align-items: center; padding: 14px 18px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); font-size: 0.94rem; line-height: 1.35; color: var(--muted); }
.zone-card strong { display: block; color: var(--fg); }
.zone-card svg { color: var(--accent); flex: none; }
@media (min-width: 960px) { .hero { grid-template-columns: 1fr 1.05fr; } .zone-card { left: -24px; } }

/* Home: bands, steps, points */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
ol.how { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
ol.how li { padding: var(--s5); background: var(--bg); border-radius: 20px; counter-increment: step; }
ol.how li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: var(--s4); border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-weight: 600; }
ol.how p { margin: 0; color: var(--muted); }
.split { display: grid; gap: var(--s7); align-items: center; }
.split > .photo { height: clamp(280px, 70vw, 480px); }
.photo-tall { object-position: 50% 30%; }
@media (min-width: 960px) {
  .split { grid-template-columns: 0.9fr 1.1fr; }
  .split.reverse { grid-template-columns: 1fr 1.1fr; }
  .split > .photo { height: 460px; }
  .split.aside { grid-template-columns: 1fr 360px; align-items: start; }
}
ul.scope { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
ul.scope li { padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
ul.scope h3 { margin-top: 0; }
ul.scope p { margin: 0; color: var(--muted); }
ul.points { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s5); }
ul.points li { display: flex; gap: var(--s4); }
ul.points svg { flex: none; color: var(--accent); margin-top: 2px; }
ul.points strong { display: block; }
ul.points span { color: var(--muted); }
ul.points strong { color: var(--fg); }

/* Teacher cards and badges (T3: photo, or initials) */
ul.teachers { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.teacher-card { display: flex; flex-direction: column; gap: var(--s3); height: 100%; padding: var(--s5); background: var(--bg); border: 1px solid var(--line); border-radius: 20px; color: var(--fg); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.teacher-card:hover { color: var(--fg); border-color: var(--accent); box-shadow: var(--shadow); }
.who-line { display: flex; gap: var(--s4); align-items: center; font-size: 1.2rem; }
.summary { color: var(--muted); flex: 1; }
.more { color: var(--accent); font-weight: 600; }
.badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; color: #FFFFFF; font: 600 1.4rem/1 var(--serif); }
.badge.big { width: 72px; height: 72px; font-size: 2rem; }
.badge-0 { background: var(--badge-0); } .badge-1 { background: var(--badge-1); } .badge-2 { background: var(--badge-2); }
.profile-head { display: flex; gap: var(--s5); align-items: flex-start; margin-bottom: var(--s5); }
.profile-head h1 { margin-bottom: var(--s2); }

/* Home: questions */
.wrap.narrow { max-width: calc(800px + 2 * var(--s6)); }
.faq { margin-top: var(--s5); border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; min-height: 44px; padding: var(--s4) 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 var(--s4); color: var(--muted); max-width: 65ch; }

/* Home: the teacher band */
.join { display: grid; overflow: hidden; background: var(--band); border-radius: 28px; }
.join img { display: block; width: 100%; height: 280px; object-fit: cover; }
.join > div { padding: var(--s6) var(--s5); }
.join h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); }
@media (min-width: 860px) { .join { grid-template-columns: 1fr 1.15fr; align-items: center; } .join img { height: 100%; min-height: 300px; } .join > div { padding: var(--s7); } }

/* Bookings */
ul.bookings { list-style: none; padding: 0; display: grid; gap: var(--s3); }
.booking-card { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); align-items: center; padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; max-width: none !important; }
.booking-card a { font-weight: 600; }
.booking-card .other { color: var(--muted); }
.booking-card .state-label { margin-left: auto; padding: 2px 12px; background: var(--accent-tint); color: var(--accent); border-radius: 999px; font-size: 0.9rem; font-weight: 600; }
nav.pages { display: flex; gap: var(--s5); margin-top: var(--s5); }

/* The setup checklist */
ol.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--s3); }
ol.steps li { counter-increment: step; display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; max-width: none; }
ol.steps li::before { content: counter(step); flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line-strong); color: var(--muted); font-weight: 600; }
ol.steps li.done::before { content: "✓"; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
ol.steps li.broken::before { content: "!"; background: var(--error); border-color: var(--error); color: var(--surface); }
ol.steps a { font-weight: 600; }
.step-state { margin-left: auto; color: var(--muted); font-size: 0.94rem; }
ol.steps li.done .step-state { color: var(--accent); font-weight: 600; }
ol.steps li.broken .step-state { color: var(--error); font-weight: 600; }

/* Other lists */
section.contact { border-top: 1px solid var(--line); margin-top: var(--s5); }
section.contact h2 { font-size: 1.15rem; margin-bottom: var(--s1); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Site restructure: signed-in menu, admin area. */
.menu.me summary { display: inline-flex; align-items: center; gap: var(--s2); }
.menu.me .badge { width: 30px; height: 30px; font-size: .85rem; }
nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site .area { font: 600 .8rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-left: var(--s2); }
.admin-sections { list-style: none; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.admin-sections a { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--fg); }
.admin-sections a:hover { border-color: var(--accent); }
.admin-sections span { color: var(--muted); font-size: .95rem; }
.narrow-card { max-width: 480px; margin: var(--s6) auto; }
.tabs { display: flex; gap: var(--s1); overflow-x: auto; margin: 0 0 var(--s6); padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.tabs a { flex: none; padding: var(--s3) var(--s4); color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -3px; min-height: 44px; display: inline-flex; align-items: center; }
.tabs a:hover { color: var(--fg); }
.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* Online · In person in {city} (site restructure §9). */
.mode { display: inline-block; font-size: .85rem; color: var(--muted); }
.teacher-card .mode { margin-top: .25rem; }

/* Booking steps: 1 Choose a time, 2 Confirm, 3 Sent (site restructure §6). */
ol.progress { display: flex; gap: var(--s4); flex-wrap: wrap; list-style: none; margin: 0 0 var(--s4); padding: 0; font-size: 0.94rem; color: var(--muted); }
ol.progress li { display: flex; align-items: center; gap: 8px; }
ol.progress li span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); font-weight: 600; }
ol.progress li[aria-current] { color: var(--fg); font-weight: 600; }
ol.progress li[aria-current] span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* The setup wizard's step bar (teacher profile spec §10). */
ol.progress.wizard li.done span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.why { color: var(--muted); }
/* Wizard steps 1 and 2: the card preview beside the form, under it on phones. */
.with-preview { display: grid; gap: var(--s5); }
@media (min-width: 860px) { .with-preview { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.card-preview h2 { margin-top: 0; }
.teacher-card.preview:hover { border-color: var(--line); box-shadow: none; }

/* Free times as blocks, one column per day. */
.free-times form.inline { margin-bottom: var(--s3); }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s4); }
.day h3 { margin: 0 0 var(--s2); font-size: 1rem; }
ul.blocks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
ul.blocks a, ul.blocks span { display: block; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; text-decoration: none; font-variant-numeric: tabular-nums; color: var(--fg); }
ul.blocks a { border-color: var(--accent); color: var(--accent); font-weight: 600; }
ul.blocks a:hover { background: var(--accent-tint); }

.card.empty { text-align: center; }

/* Teaching overview: setup progress and the collapsible checklist. */
.meter-line { display: flex; align-items: center; gap: var(--s4); margin: 0 0 var(--s5); }
.meter-line p { margin: 0; }
.meter { flex: 1; max-width: 360px; height: 10px; border-radius: 999px; background: var(--line-strong); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
details.setup { margin: 0 0 var(--s5); }
details.setup summary { cursor: pointer; list-style: none; }
details.setup summary::-webkit-details-marker { display: none; }
details.setup summary h2 { display: inline; }
details.setup summary::after { content: " ▾"; color: var(--muted); }
details.setup[open] summary::after { content: " ▴"; }
.overview { display: grid; gap: var(--s4); margin: 0 0 var(--s5); }
@media (min-width: 860px) { .overview { grid-template-columns: 1fr 1fr; } }
.overview .card { margin: 0; }
.meter .done-0 { width: 0; } .meter .done-1 { width: 25%; } .meter .done-2 { width: 50%; } .meter .done-3 { width: 75%; } .meter .done-4 { width: 100%; }

/* Photos, subject pills and tags (teacher profile spec §3, §6) */
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.avatar.big { width: 96px; height: 96px; }
.photo-edit { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; margin-bottom: var(--s5); }
/* With the script, an upload form is one button: picking a file sends it. */
.auto-upload label.file-pick { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 24px; margin: 0 0 var(--s2); font-weight: 500; background: var(--surface); color: var(--fg); border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer; }
.auto-upload label.file-pick:hover { border-color: var(--accent); color: var(--accent); }
.auto-upload label.file-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.auto-upload label.file-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
fieldset.pills { border: 0; padding: 0; margin: 0 0 var(--s4); }
.pill-group { margin: var(--s4) 0 var(--s2); font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pill-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
label.pill { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
label.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.pill span { padding: .35rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; }
label.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
label.pill input:checked + span::before { content: "\2713\00a0"; }
label.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.tag { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--accent-tint); font-size: .8rem; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.filter { margin: var(--s4) 0; }
.filter a.tag { text-decoration: none; color: inherit; }
.filter a[aria-current] { background: var(--accent); color: var(--on-accent); }
