/* Wajibaty — green & white. One family (Readex Pro, Arabic + Latin). Colour only carries meaning:
   brand green = the app, red = late/urgent, amber = due soon, kid colours = which child. */
@font-face { font-family: 'Readex Pro'; src: url('/fonts/readex-latin.woff2') format('woff2'); font-weight: 160 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Readex Pro'; src: url('/fonts/readex-latin-ext.woff2') format('woff2'); font-weight: 160 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Readex Pro'; src: url('/fonts/readex-arabic.woff2') format('woff2'); font-weight: 160 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --brand: #0E5E46;
  --brand-2: #0A4636;
  --brand-soft: #E5F1EB;
  --on-brand: #FFFFFF;
  --on-brand-2: rgba(255,255,255,.78);
  --bg: #F4F6F5;
  --card: #FFFFFF;
  --ink: #13201A;
  --ink-2: #4A5751;
  --ink-3: #85908A;
  --rule: #E2E7E4;
  --red: #C2362B;
  --red-soft: #FCEBE8;
  --amber: #9A5B00;
  --amber-soft: #FFF2D9;
  --shadow: 0 1px 2px rgba(16,32,26,.05), 0 8px 24px -12px rgba(16,32,26,.18);
  --font: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #2F9B74; --brand-2: #0B3A2C; --brand-soft: #173428; --on-brand: #FFFFFF; --on-brand-2: rgba(255,255,255,.75);
    --bg: #0E1512; --card: #16201C; --ink: #E7EEEA; --ink-2: #AAB6B0; --ink-3: #75817B; --rule: #24302B;
    --red: #F07A6C; --red-soft: #3A1F1C; --amber: #F2B45A; --amber-soft: #352914;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: 640px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.caps { text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-block; border: 0; background: var(--brand); color: var(--on-brand); padding: 14px 22px; border-radius: 12px; font-weight: 500; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; }
.btn:hover { background: var(--brand-2); }
.btn.ghost { background: var(--brand-soft); color: var(--brand); }
.btn.ghost:hover { background: var(--brand); color: var(--on-brand); }
.btn.white { background: #FFFFFF; color: #0E5E46; }
.btn.white:hover { background: #E5F1EB; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; background: var(--card); border: 1.5px solid var(--rule); border-radius: 12px; padding: 13px 14px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
textarea { min-height: 150px; resize: vertical; }
input[type=file] { font-size: 14px; }
.err { color: var(--red); background: var(--red-soft); font-size: 14px; padding: 10px 14px; border-radius: 10px; }
.ok { color: var(--brand); background: var(--brand-soft); font-size: 14px; padding: 10px 14px; border-radius: 10px; }

/* ---------- app shell: green band on top, white sheet below ---------- */
.band { background: var(--brand); color: var(--on-brand); padding-top: env(safe-area-inset-top, 0px); }
@media (prefers-color-scheme: dark) { .band { background: var(--brand-2); } }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; display: block; }
.bar .hi { font-size: 14px; color: var(--on-brand-2); }
.bar .hi a, .bar .link { color: var(--on-brand); }
.hero { padding: 14px 0 46px; }
.hero .date { font-size: 14px; color: var(--on-brand-2); }
.hero h1 { font-size: clamp(34px, 9vw, 46px); line-height: 1.05; margin: 4px 0 10px; letter-spacing: -0.03em; }
.hero p { font-size: 16.5px; color: var(--on-brand-2); max-width: 32em; }
.hero p strong { color: var(--on-brand); font-weight: 600; }
.sheet { background: var(--bg); border-radius: 22px 22px 0 0; margin-top: -24px; position: relative; padding-top: 18px; min-height: 60vh; }
main.app { padding-bottom: 120px; }

/* bottom navigation */
.nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 5; }
.nav .wrap { display: flex; }
.nav a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 9px 0 10px; text-decoration: none; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.nav svg { width: 24px; height: 24px; }
.nav a.on { color: var(--brand); }

/* ---------- This week ---------- */
.kids { display: flex; gap: 6px; padding: 2px 0 6px; overflow-x: auto; scrollbar-width: none; }
.kids a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; padding: 7px 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; }
.kids a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--k); display: inline-block; flex: none; }

.section-h { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 2px 10px; }
.section-h h2 { font-size: 17px; }

.first { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 16px 14px; margin-top: 10px; }
.first .label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.first .item { padding: 0; border: 0; }
.first .item h3 { font-size: 20px; }

.list { list-style: none; margin: 0; padding: 0 16px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.item { display: grid; grid-template-columns: 18px minmax(0, 1fr) 28px; gap: 0 12px; padding: 15px 0; border-top: 1px solid var(--rule); align-items: start; }
.list .item:first-child { border-top: 0; }
.first .item { grid-template-columns: minmax(0, 1fr) 28px; }
.num { font-size: 14px; color: var(--ink-3); font-weight: 500; padding-top: 3px; font-variant-numeric: tabular-nums; }
.main { min-width: 0; }
.meta-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.meta { font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.side { padding-top: 26px; }
.item h3 { font-size: 16.5px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.kind { font-weight: 700; }
.details { font-size: 14.5px; color: var(--ink-2); margin-top: 3px; }
.tip { font-size: 14px; margin-top: 8px; color: var(--brand); background: var(--brand-soft); padding: 7px 10px; border-radius: 9px; display: inline-block; }
.side { display: grid; justify-items: end; }
.chip { font-size: 12.5px; font-weight: 500; padding: 4px 9px; border-radius: 8px; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.chip b { font-weight: 600; color: var(--ink); }
.item.soon .chip { background: var(--amber-soft); color: var(--amber); }
.item.soon .chip b { color: var(--amber); }
.item.late .chip { background: var(--red-soft); color: var(--red); }
.item.late .chip b { color: var(--red); }
.actions { display: flex; gap: 16px; margin-top: 8px; font-size: 13.5px; }
.actions form { display: inline; }
.actions a, .actions .link { color: var(--ink-3); font-size: 13.5px; text-decoration: none; }
.actions a:hover, .actions .link:hover { color: var(--ink-2); text-decoration: underline; }
.tick { width: 28px; height: 28px; border: 2px solid var(--ink-3); border-radius: 9px; background: transparent; cursor: pointer; position: relative; padding: 0; }
.tick:hover, .tick:focus-visible { border-color: var(--brand); background: var(--brand-soft); }
.tick:hover::after { content: ''; position: absolute; left: 8px; top: 3px; width: 7px; height: 13px; border: solid var(--brand); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.item.done h3, .item.done .details { text-decoration: line-through; color: var(--ink-3); }
.more { display: inline-block; margin: 22px 2px 0; font-size: 14px; }

.empty { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 20px; margin-top: 10px; }
.empty h2 { font-size: 22px; margin-bottom: 6px; }

.banner { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border-left: 4px solid var(--brand); padding: 14px 16px; margin-top: 10px; }
.banner h3 { font-size: 15.5px; margin-bottom: 4px; }
.banner code { font-size: 22px; letter-spacing: .08em; font-weight: 600; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* ---------- setup ---------- */
.steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; counter-reset: s; }
.step { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 18px 20px; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0 12px; }
.step::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 15px; display: grid; place-items: center; }
.step.done::before { content: '✓'; background: var(--brand); color: var(--on-brand); }
.step h2 { font-size: 19px; margin: 2px 0 6px; }
.step p { color: var(--ink-2); margin-bottom: 12px; }
.addr { display: flex; gap: 8px; align-items: stretch; margin: 10px 0 14px; }
.addr code { flex: 1; min-width: 0; background: var(--bg); border: 1.5px solid var(--rule); padding: 12px 14px; border-radius: 12px; font-size: 14.5px; overflow-x: auto; white-space: nowrap; font-family: ui-monospace, Menlo, Consolas, monospace; }
.tabs { display: flex; gap: 6px; margin: 10px 0 12px; }
.tabs button { background: var(--bg); border: 0; padding: 7px 14px; border-radius: 10px; cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.tabs button.on { background: var(--brand); color: var(--on-brand); }
.howto { margin: 0; padding-left: 20px; color: var(--ink-2); }
.howto li { margin-bottom: 6px; }
.howto[hidden] { display: none; }
.kidline { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); gap: 12px; flex-wrap: wrap; }
.kidline:last-of-type { border-bottom: 0; }
.kidline .who { display: inline-flex; align-items: center; gap: 8px; }
.row-inline { display: flex; gap: 10px; }
.row-inline > * { flex: 1; min-width: 0; }
.colors { display: flex; gap: 10px; }
.colors label { margin: 0; position: relative; }
.colors input { position: absolute; opacity: 0; }
.colors span { display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--k); border: 3px solid var(--card); box-shadow: 0 0 0 1.5px var(--rule); cursor: pointer; }
.colors input:checked + span { box-shadow: 0 0 0 2.5px var(--brand); }
.colors input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 3px; }
.cal-btns { display: flex; gap: 10px; flex-wrap: wrap; }
details summary { cursor: pointer; color: var(--ink-2); }

/* ---------- read log ---------- */
.log { list-style: none; padding: 0 16px; margin: 10px 0 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.log li { border-top: 1px solid var(--rule); padding: 14px 0; }
.log li:first-child { border-top: 0; }
.log .st { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.st-processed { color: var(--brand); } .st-failed { color: var(--red); } .st-nothing, .st-duplicate, .st-confirm { color: var(--ink-3); }

/* ---------- add ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; margin-top: 10px; }

/* ---------- auth ---------- */
.auth-band { background: var(--brand); color: var(--on-brand); padding: 22px 0 60px; }
@media (prefers-color-scheme: dark) { .auth-band { background: var(--brand-2); } }
.auth-band h1 { font-size: 34px; margin: 28px 0 6px; letter-spacing: -0.025em; }
.auth-band p { color: var(--on-brand-2); }
.auth { max-width: 440px; margin: -36px auto 60px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 24px 20px; position: relative; }
.auth-wrap { max-width: 440px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- landing ---------- */
.l-wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.l-band { background: #0E5E46; color: #FFFFFF; }
.l-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.l-top .brand { color: #FFFFFF; font-size: 21px; }
.l-top .brand img { width: 34px; height: 34px; }
.l-top nav { display: flex; gap: 22px; align-items: center; }
.l-top nav a { color: #FFFFFF; text-decoration: none; font-weight: 500; font-size: 15px; }
.l-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; padding: 40px 0 0; }
.l-copy { padding-bottom: 80px; }
.l-copy h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.l-copy h1 .ar { display: block; font-size: .5em; font-weight: 500; color: rgba(255,255,255,.7); letter-spacing: 0; margin-top: 14px; }
.l-copy p { font-size: 19px; color: rgba(255,255,255,.82); max-width: 30em; margin: 24px 0 30px; }
.l-copy .note { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.65); }
.l-phone { justify-self: end; width: 100%; max-width: 360px; background: var(--bg); border-radius: 36px 36px 0 0; padding: 10px 10px 0; box-shadow: 0 -10px 60px -20px rgba(0,0,0,.45); align-self: end; border: 8px solid #0A4636; border-bottom: 0; }
.l-phone { color: var(--ink); }
.l-phone .band { border-radius: 26px 26px 0 0; color: var(--on-brand); }
.l-phone .item { grid-template-columns: 14px minmax(0, 1fr); }
.l-phone .first .item { grid-template-columns: minmax(0, 1fr); }
.l-phone .side { display: none; }
.l-phone .wrap { padding: 0 14px; }
.l-phone .hero { padding: 8px 0 38px; }
.l-phone .hero h1 { font-size: 32px; }
.l-phone .hero p { font-size: 14px; }
.l-phone .sheet { min-height: 0; padding: 14px 0 16px; }
.l-phone .first .item h3 { font-size: 17px; }
.l-phone .item h3 { font-size: 15px; }
.l-phone .details { font-size: 13px; }
.l-phone .tip { font-size: 12.5px; }
.l-sec { padding: 76px 0; border-bottom: 1px solid var(--rule); }
.l-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.l-stat .big { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
.l-stat .src { font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.l-how h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 30px; letter-spacing: -0.025em; }
.l-how ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.l-how li { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 24px; }
.l-how .n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 600; display: grid; place-items: center; }
.l-how h3 { font-size: 22px; margin: 16px 0 8px; }
.l-how p { color: var(--ink-2); }
.l-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding: 70px 0; }
.l-cta h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.04; max-width: 14em; letter-spacing: -0.03em; }
footer.l { border-top: 1px solid var(--rule); padding: 22px 0 40px; font-size: 13.5px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .l-hero { grid-template-columns: 1fr; gap: 0; }
  .l-copy { padding-bottom: 40px; }
  .l-phone { justify-self: center; }
  .l-stat { grid-template-columns: 1fr; gap: 24px; }
  .l-how ol { grid-template-columns: 1fr; }
  .l-top nav .hide-sm { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .tick, .btn, .kids a { transition: background-color .15s, border-color .15s, color .15s; }
}

/* ---------- live progress: real steps, ticking in order ---------- */
.prog { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto; }
.prog .band .hero { padding-bottom: 40px; }
.prog .sheet { flex: 1; }
.steps-live { list-style: none; margin: 10px 0 0; padding: 6px 16px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.ps { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 0 12px; padding: 13px 0; border-top: 1px solid var(--rule); align-items: start; }
.ps:first-child { border-top: 0; }
.ps-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.ps.run .ps-ic { border: 2.5px solid var(--brand-soft); border-top-color: var(--brand); animation: ps-spin .9s linear infinite; }
.ps.done .ps-ic { background: var(--brand); }
.ps.done .ps-ic::after { content: ''; width: 6px; height: 11px; border: solid #FFFFFF; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.ps.fail .ps-ic { background: var(--red); }
.ps.fail .ps-ic::after { content: '!'; color: #FFFFFF; font-weight: 700; font-size: 14px; }
.ps-l { font-weight: 500; }
.ps.run .ps-l { color: var(--ink); }
.ps.done .ps-l { color: var(--ink-2); }
.ps-d { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
.ps.fail .ps-d { color: var(--red); }
.ps-t { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.ps-items { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ps-items li { font-size: 14px; display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.ps-items li::before { content: '✓'; color: var(--brand); font-weight: 700; }
.ps-items small { display: block; color: var(--ink-3); font-size: 12.5px; }
.prog-end { margin-top: 14px; display: grid; gap: 10px; }
.prog-end .msg { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; font-weight: 500; }
.prog-end .msg.err { color: var(--red); }
@keyframes ps-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ps.run .ps-ic { animation: none; border-color: var(--brand); opacity: .6; } }

/* ---------- slow-down screens ---------- */
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.checks li::before { content: '✓'; color: var(--brand); font-weight: 700; }
.checks.no li::before { content: '✕'; color: var(--ink-3); }
.confirm.danger .checks li::before { content: '•'; color: var(--red); }
.confirm-actions { display: grid; gap: 10px; margin-top: 16px; }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: var(--red); filter: brightness(.92); }
.btn[data-holding] { opacity: .55; cursor: not-allowed; }
.danger-text { color: var(--red) !important; }

/* ---------- account & invite ---------- */
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stats b { display: block; font-size: 26px; font-weight: 600; color: var(--brand); }
.stats span { font-size: 13px; color: var(--ink-2); }
.friends { list-style: none; margin: 14px 0 0; padding: 0; }
.friends li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rule); }
.chip.good { background: var(--brand-soft); color: var(--brand); }
.foot-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 2px 0; font-size: 14px; }
.invite-card { display: grid; gap: 2px; text-decoration: none; color: var(--ink); margin-top: 12px; border-left: 4px solid var(--brand); }
.ps-items li.dup { color: var(--ink-3); } .ps-items li.dup::before { content: '='; color: var(--ink-3); }

/* ---------- parent / student choice ---------- */
.roles { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.roles legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.role-card { display: block; margin: 0; cursor: pointer; }
.role-card input { position: absolute; opacity: 0; }
.role-card span { display: grid; gap: 2px; border: 1.5px solid var(--rule); border-radius: 12px; padding: 13px 14px; }
.role-card small { color: var(--ink-2); font-size: 13.5px; }
.role-card input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.role-card input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
/* the age question only matters for students */
form:has(.roles) .age { display: none; }
form:has(input[name=role][value=student]:checked) .age { display: block; }
.family h2 { font-size: 18px; margin-bottom: 6px; }
.advanced { margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 12px; }
.advanced summary { font-weight: 500; color: var(--brand); }
