/* AdmitDesk — staff app styles. Hand-written, no build step, so it deploys on any host. */
:root {
  --bg: #FFFBF7; --surface: #FFFFFF; --row: #FEFBF8; --line: #F3E6DA;
  --brand: #8A0F50; --brand-dark: #6A0B3D; --hero: #FDF1E6; --hero-ink: #4E0830;
  --ink: #3B1029; --ink-2: #5C3A4B; --muted: #7A5566; --muted-2: #9A7A88;
  --peach: #FFE3CF; --peach-ink: #A1470C;
  --sky: #DDEBFF; --sky-ink: #2556C7;
  --mint: #D8F4E6; --mint-ink: #157347;
  --pink: #FFE0EC; --pink-ink: #B0275F;
  --butter: #FFF4D6; --butter-ink: #8A6100;
  --lavender: #ECE6FE; --lavender-ink: #5B3FD0;
  --red: #FFDCDC; --red-ink: #A61B14;
  --radius-lg: 26px; --radius: 18px; --radius-sm: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Manrope', system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shell */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.nav { flex: 1 1 220px; max-width: 260px; background: var(--surface); padding: 28px 0 24px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 26px 28px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand img { display: block; height: auto; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0 14px; padding: 0 14px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 600; }
.nav-link:hover { background: var(--hero); color: var(--ink); }
.nav-link[aria-current="page"] { background: var(--brand); color: #fff; font-weight: 700; }
.nav-badge { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: var(--peach); color: var(--peach-ink); font-size: 12px; font-weight: 700; }
.help { margin: auto 14px 0; padding: 16px; border-radius: var(--radius); background: var(--butter); display: flex; flex-direction: column; gap: 4px; }
.help strong { color: #6B4E00; font-size: 14px; }
.help span { color: #6B5A2E; font-size: 13px; }
.main { flex: 999 1 640px; min-width: 0; padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 720px) {
  .nav { max-width: none; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .brand { padding: 0 12px 8px; flex-basis: 100%; }
  .nav-link { margin: 0; }
  .help { display: none; }
  .main { padding: 20px 16px 32px; }
}

/* Top bar */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; background: var(--surface); border-radius: var(--radius-sm); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 999px; background: var(--surface); }
.me form { margin: 0; }

/* Shared bits */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--radius-sm); border: 0; background: var(--brand); color: #fff; font: 700 15px 'Manrope', sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-soft { background: var(--surface); color: var(--brand-dark); }
.btn-soft:hover { background: var(--hero); color: var(--brand-dark); }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--radius-sm); border: 0; background: var(--brand); display: grid; place-items: center; text-decoration: none; }
.icon-btn:hover { background: var(--brand-dark); }
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.card-head h2 { font-size: 18px; font-weight: 800; }
.row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.grow-3 { flex: 3 1 420px; min-width: 0; }
.grow-2 { flex: 2 1 280px; min-width: 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.t-peach { background: var(--peach); color: var(--peach-ink); }
.t-sky { background: var(--sky); color: var(--sky-ink); }
.t-mint { background: var(--mint); color: var(--mint-ink); }
.t-pink { background: var(--pink); color: var(--pink-ink); }
.t-butter { background: var(--butter); color: var(--butter-ink); }
.t-lavender { background: var(--lavender); color: var(--lavender-ink); }
.t-red { background: var(--red); color: var(--red-ink); }
.t-brand { background: var(--hero); color: var(--brand-dark); }
.empty { padding: 18px; border-radius: var(--radius); background: var(--row); color: var(--muted); }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--mint); color: var(--mint-ink); font-weight: 600; }

/* Today */
.hero { position: relative; overflow: hidden; background: var(--hero); border-radius: var(--radius-lg); padding: 28px 30px; display: flex; align-items: center; gap: 18px; }
.hero-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hero-kicker { margin: 0; font-weight: 600; color: var(--brand-dark); }
.hero h1 { font-size: 32px; font-weight: 800; color: var(--hero-ink); }
.hero p { margin: 0; color: var(--ink-2); }
.hero .btn { align-self: flex-start; margin-top: 8px; }
.hero svg { flex: none; }
@media (max-width: 720px) { .hero svg { display: none; } .hero h1 { font-size: 26px; } }
.visit { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.visit-time { flex: 0 0 62px; text-align: center; padding: 8px 0; border-radius: 12px; font-size: 13px; font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { border-radius: 22px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.stat-icon { width: 46px; height: 46px; border-radius: 15px; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.stat-n { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; }
.stat-label { display: block; font-size: 14px; color: var(--ink-2); }
.call { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; margin-top: 8px; border-radius: var(--radius); background: var(--row); }
.call-who { flex: 1 1 180px; min-width: 0; }
.call-who a { display: block; color: var(--ink); font-weight: 700; text-decoration: none; }
.call-who a:hover { color: var(--brand); }
.seats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 14px; }
.seat { padding: 14px; border-radius: var(--radius); display: flex; align-items: center; gap: 12px; }
.ring { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ring span { width: 36px; height: 36px; border-radius: 50%; }

/* Families */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.page-head h1 { font-size: 28px; font-weight: 800; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.filter[aria-current="true"] { background: var(--brand); color: #fff; }
.filter .n { font-size: 12px; opacity: .75; }
.table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.table th { text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 14px; }
.table td { background: var(--surface); padding: 12px 14px; vertical-align: middle; }
.table td:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.table td:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.table a.name { color: var(--ink); font-weight: 700; text-decoration: none; }
.table a.name:hover { color: var(--brand); }
.table-wrap { overflow-x: auto; }
.pager { display: flex; gap: 8px; justify-content: center; }

/* One family */
.fam-hero { background: var(--hero); border-radius: 28px; padding: 26px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.fam-hero h1 { font-size: 30px; font-weight: 800; color: var(--hero-ink); }
.fam-hero .avatar { width: 68px; height: 68px; font-size: 22px; border: 4px solid #fff; }
.journey { list-style: none; margin: 0; padding: 14px; background: #fff; border-radius: 20px; display: flex; flex-direction: column; gap: 4px; }
.journey li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; }
.journey .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.journey .done .dot { background: var(--brand); color: #fff; }
.journey .now { background: var(--hero); font-weight: 800; }
.journey .now .dot { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.journey .next { color: var(--muted-2); }
.journey .next .dot { background: var(--row); color: var(--muted-2); border: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--row); }
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select { min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--row); font: 15px 'Manrope', sans-serif; color: var(--ink); }

/* Login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--hero); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font-size: 26px; font-weight: 800; }
.error { color: var(--red-ink); font-size: 14px; font-weight: 600; margin: 0; }
.demo-note { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--butter); color: #6B4E00; font-size: 14px; }

.qr svg { width: 100%; height: 100%; display: block; }

[hidden] { display: none !important; }

/* Step 3: family actions */
.strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.strip-item { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--surface); margin: 0; }
.strip-item label { font-size: 13px; font-weight: 700; color: var(--muted); }
.strip-item select { min-height: 36px; border: 0; border-radius: 999px; padding: 0 12px; background: var(--hero); color: var(--ink); font: 600 14px 'Manrope', sans-serif; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions form { margin: 0; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.inline-form input, .inline-form select { min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--row); font: 14px 'Manrope', sans-serif; color: var(--ink); }
.btn-tint { font-weight: 700; }
.btn-tint:hover { filter: brightness(.96); }
.btn.t-butter { color: var(--butter-ink); } .btn.t-sky { color: var(--sky-ink); } .btn.t-red { color: var(--red-ink); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-items: end; margin-top: 6px; }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius); background: var(--row); }
.doc-list form { margin: 0; }
.fact { background: #fff; border-radius: 16px; padding: 12px 14px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .week { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.day { background: var(--surface); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.day.today { outline: 2px solid var(--brand); }
.day h2 { font-size: 15px; }
.slot { display: block; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.slot:hover { filter: brightness(.97); color: var(--ink); }

/* Reports: the owner's view of the season */
.rep-hero { gap: 26px; }
.big-ring { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.big-ring > span { width: 104px; height: 104px; border-radius: 50%; background: var(--hero); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.big-ring b { font-size: 28px; font-weight: 800; color: var(--hero-ink); line-height: 1; }
.big-ring small { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 4px; }
@media (max-width: 560px) { .rep-hero { flex-direction: column; align-items: flex-start; } .big-ring { width: 104px; height: 104px; } .big-ring > span { width: 80px; height: 80px; } .big-ring b { font-size: 22px; } }
.money-n { margin: 4px 0 12px; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand-dark); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; text-align: right; }
.tip { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--butter); color: #6B4E00; font-size: 14px; }
.funnel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.funnel li { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 40px 48px; align-items: center; gap: 12px; font-size: 14px; }
.f-label { font-weight: 600; color: var(--ink-2); }
.f-track { height: 26px; border-radius: 9px; background: var(--row); overflow: hidden; }
.f-bar { display: block; height: 100%; border-radius: 9px; transform-origin: left; animation: growX .9s cubic-bezier(.22,.9,.24,1) both; }
.f-n { font-weight: 800; text-align: right; }
.f-drop { font-size: 12px; font-weight: 700; color: var(--red-ink); }
@keyframes growX { from { transform: scaleX(0); } }
@media (max-width: 560px) { .funnel li { grid-template-columns: minmax(0, 1fr) 34px 44px; gap: 4px 10px; } .f-label { grid-column: 1 / -1; } .f-track { grid-column: 1; } }
.src-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.src-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.src-name { font-weight: 700; }
.src-rate { color: var(--mint-ink); }
.src-track { display: block; height: 12px; border-radius: 6px; background: var(--row); overflow: hidden; }
.src-track span { display: block; height: 100%; border-radius: 6px; animation: growX .9s cubic-bezier(.22,.9,.24,1) both; transform-origin: left; }
.src-track .t-sky { background: #8DB4F5; } .src-track .t-pink { background: #E78AB0; } .src-track .t-peach { background: #F7AE7B; }
.src-track .t-mint { background: #7CCFA4; } .src-track .t-lavender { background: #A894F2; } .src-track .t-butter { background: #E9C35A; }
.weeks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; height: 200px; align-items: end; padding-top: 8px; }
.wk { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.wk-bar { width: 100%; max-width: 44px; border-radius: 10px 10px 4px 4px; background: #EDB3D0; transform-origin: bottom; animation: growY .8s cubic-bezier(.22,.9,.24,1) both; }
.wk.now .wk-bar { background: var(--brand); }
.wk-n { font-size: 13px; font-weight: 800; }
.wk-l { font-size: 11px; color: var(--muted); white-space: nowrap; }
@keyframes growY { from { transform: scaleY(0); } }
@media (max-width: 560px) { .weeks { gap: 5px; } .wk-l { font-size: 10px; writing-mode: vertical-rl; transform: rotate(180deg); } }
.lost-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--row); margin-top: 8px; font-size: 14px; }
.mini-bar { display: inline-block; vertical-align: middle; width: 54px; height: 8px; border-radius: 4px; background: var(--hero); overflow: hidden; margin-right: 6px; }
.mini-bar span { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.chip.soon { background: var(--lavender); color: var(--lavender-ink); }
.ai-card { display: flex; flex-direction: column; gap: 8px; background: linear-gradient(120deg, #FFFFFF 40%, #F6EFFF 100%); }
.ai-card h2 { font-size: 18px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .f-bar, .src-track span, .wk-bar { animation: none; } }

/* Setup and My settings */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: -4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: none; }
.tab:hover { background: var(--hero); color: var(--ink); }
.tab[aria-current="page"] { background: var(--brand); color: #fff; }
.flash.bad { background: var(--red); color: var(--red-ink); }
.set-card { display: flex; flex-direction: column; gap: 18px; }
.set-head h2 { font-size: 18px; font-weight: 800; }
.set-head p { margin: 4px 0 0; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px 18px; }
.span-2 { grid-column: 1 / -1; }
.hint { font-weight: 500; font-size: 13px; color: var(--muted); }
.set-foot { display: flex; flex-wrap: wrap; gap: 10px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A0F50' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .set-table input:focus, .rem select:focus, .doc-edit input:focus { outline: 3px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.set-table td { background: var(--row); padding: 8px 10px; }
.set-table input { width: 100%; min-width: 110px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 600 14px 'Manrope', sans-serif; color: var(--ink); }
.set-table input.num { min-width: 80px; max-width: 110px; }
.set-table input.num.wide { max-width: 140px; }
.link-btn { border: 0; background: none; padding: 6px; color: var(--red-ink); font: 700 13px 'Manrope', sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.swatches { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.swatches legend { font-weight: 600; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.swatch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; background: var(--row); border: 2px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { width: 26px; height: 26px; border-radius: 50%; background: var(--c); }
.swatch:has(input:checked) { border-color: var(--c); background: #fff; }
.swatch:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; flex: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle > span[aria-hidden] { width: 46px; height: 28px; border-radius: 999px; background: #E9D9CC; position: relative; transition: background .2s; flex: none; }
.toggle > span[aria-hidden]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(59,16,41,.25); transition: transform .2s; }
.toggle input:checked + span { background: var(--brand); }
.toggle input:checked + span::after { transform: translateX(18px); }
.toggle input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.radio-cards { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.radio-cards label { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--row); border: 2px solid transparent; cursor: pointer; }
.radio-cards label > span { display: flex; flex-direction: column; gap: 4px; }
.radio-cards input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.radio-cards label:has(input:checked) { border-color: var(--brand); background: #fff; }
.rem-list { display: flex; flex-direction: column; gap: 10px; }
.rem { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--row); }
.rem > span:first-child { display: flex; flex-direction: column; gap: 2px; flex: 1 1 240px; min-width: 0; }
.rem select { min-height: 44px; padding: 0 40px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A0F50' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font: 600 14px 'Manrope', sans-serif; color: var(--ink); }
.rem-toggle { cursor: pointer; }
.two-time { display: flex; align-items: center; gap: 8px; }
.two-time input { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--row); font: 15px 'Manrope', sans-serif; color: var(--ink); }
div.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--ink-2); }
.doc-edit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-edit li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); background: var(--row); }
.doc-n { width: 30px; height: 30px; border-radius: 50%; background: var(--hero); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.doc-edit input { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 600 15px 'Manrope', sans-serif; color: var(--ink); }
.staff-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.staff-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--row); }
.staff-who { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.staff-form { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; }
.staff-form select { min-height: 40px; padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A0F50' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font: 600 14px 'Manrope', sans-serif; color: var(--ink); }
.status-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.me-grid { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.me-id { display: flex; align-items: center; gap: 14px; }
.avail { background: var(--hero); }
.grid-form .btn { align-self: end; }
.demo-pick { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.demo-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.demo-roles .btn { flex-direction: column; gap: 0; min-height: 64px; padding: 8px; background: var(--hero); text-align: center; line-height: 1.25; }
.demo-roles .btn span { font-size: 11px; font-weight: 600; color: var(--muted); }
@media (max-width: 400px) { .demo-roles { grid-template-columns: 1fr; } }
label.field .hint { order: 2; }

/* Website look: gradients on solid brand colours, wavy lines inside solid panels */
:root { --brand-grad: linear-gradient(135deg, #7A0D47 0%, #9E1760 55%, #C93A78 100%); --brand-grad-hover: linear-gradient(135deg, #6A0B3D 0%, #8A0F50 55%, #B0275F 100%); }
.btn, .icon-btn, .nav-link[aria-current="page"], .filter[aria-current="true"], .tab[aria-current="page"] { background: var(--brand-grad); }
.btn:hover, .icon-btn:hover { background: var(--brand-grad-hover); }
.btn { position: relative; isolation: isolate; box-shadow: 0 10px 22px -12px rgba(138,15,80,.55); }
.btn::before { content: ""; position: absolute; inset: 1px 1px 50% 1px; border-radius: 13px 13px 10px 10px; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)); pointer-events: none; z-index: -1; }
.btn-soft, .btn-soft:hover, .btn.t-butter, .btn.t-sky, .btn.t-red, .btn.t-brand, .btn-tint { background-image: none; box-shadow: none; }
.btn-soft::before, .btn-tint::before { display: none; }
.nav-link[aria-current="page"], .filter[aria-current="true"], .tab[aria-current="page"] { box-shadow: 0 10px 22px -14px rgba(138,15,80,.6); }
.journey .done .dot, .wk.now .wk-bar, .mini-bar span, .toggle input:checked + span { background: linear-gradient(135deg, #A3135E, #C93A78); }
.dtour-btn:not(.ghost) { background: linear-gradient(135deg, #7A0D47 0%, #9E1760 55%, #C93A78 100%); }
.dbar { background: linear-gradient(100deg, #2C0A1E 0%, #4E0830 55%, #6A0B3D 100%); }
.hero { background: linear-gradient(135deg, #FFE9DA 0%, #FDF1E6 45%, #FBE3EC 100%); }
.waves-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
[data-waves] { position: relative; overflow: hidden; isolation: isolate; }
[data-waves] > :not(.waves-svg):not(.banner-deco) { position: relative; z-index: 1; }

/* Inbox */
.inbox { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 20px; align-items: start; }
.convo-list { padding: 8px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 230px); overflow-y: auto; }
.convo { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.convo:hover { background: var(--hero); color: var(--ink); }
.convo.on { background: var(--hero); box-shadow: inset 3px 0 0 var(--brand); }
.convo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.convo-top { display: flex; justify-content: space-between; gap: 8px; }
.convo-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-top time { font-size: 12px; color: var(--muted); flex: none; }
.convo-snip { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo.unread .convo-snip { color: var(--ink); font-weight: 600; }
.you { color: var(--muted-2); }
.badge-n { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand-grad, var(--brand)); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.thread { padding: 0; display: flex; flex-direction: column; min-height: 520px; max-height: calc(100vh - 230px); overflow: hidden; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.thread-who { display: flex; flex-direction: column; min-width: 0; }
.thread-who a { color: var(--ink); text-decoration: none; }
.back-link { display: none; font-weight: 700; font-size: 14px; text-decoration: none; }
.bubbles { list-style: none; margin: 0; padding: 18px 20px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
  background: radial-gradient(circle, rgba(138,15,80,.06) 1.2px, transparent 1.4px) 0 0 / 20px 20px, var(--row); }
.day-sep { align-self: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.day-sep span { background: #fff; padding: 4px 12px; border-radius: 999px; }
.bub { max-width: min(78%, 520px); padding: 10px 14px; border-radius: 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 2px 6px rgba(59,16,41,.06); }
.bub p { margin: 0; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.bub.in { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.bub.out { align-self: flex-end; background: #FBE3EC; border-bottom-right-radius: 6px; }
.bub.out.auto { background: #FFF0E3; }
.bub.failed { outline: 2px solid var(--red); }
.bub-by { font-size: 12px; font-weight: 800; color: var(--brand-dark); }
.bub-meta { align-self: flex-end; font-size: 11px; color: var(--muted); }
.st-read { color: #2556C7; font-weight: 800; }
.st-failed { color: var(--red-ink); font-weight: 700; }
.bub-err { font-size: 12px; color: var(--red-ink); font-weight: 600; }
.composer { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); background: #fff; margin: 0; }
.composer textarea { width: 100%; resize: vertical; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--row); font: 15px 'Manrope', sans-serif; color: var(--ink); }
.composer textarea:focus { outline: 3px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.composer-row { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.composer-row select { min-height: 44px; padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A0F50' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font: 600 14px 'Manrope', sans-serif; color: var(--ink); }
.composer.locked { background: var(--butter); color: #6B4E00; font-size: 14px; }
.composer.locked form { margin: 0; }
.thread-empty { flex: 1; display: grid; place-items: center; padding: 40px; }
@media (max-width: 900px) {
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox.has-thread .convo-list { display: none; }
  .inbox:not(.has-thread) .thread { display: none; }
  .back-link { display: inline; }
  .convo-list, .thread { max-height: none; }
  .thread { min-height: 70vh; }
  .bub { max-width: 88%; }
}
.mini-msg { padding: 10px 12px; border-radius: 14px; background: var(--row); margin-top: 8px; }
.mini-msg.out { background: #FBEAF1; }
.mini-msg p { margin: 2px 0 0; font-size: 14px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--row); font: 13px ui-monospace, monospace; color: var(--ink); }
.dlt summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); }
.tpl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tpl-list li { padding: 12px 14px; border-radius: var(--radius); background: var(--row); }
.tpl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tpl-top code { font: 600 13px ui-monospace, monospace; color: var(--brand-dark); overflow-wrap: anywhere; }
.tpl-list p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.link-btn.plain { color: var(--brand); margin-left: auto; }
.mini-msg p, .convo-snip { overflow-wrap: anywhere; }

/* ---------- Phones and small tablets ---------- */
.m-top, .m-tabs, .nav-close, .nav-me, .m-only { display: none; }
.cal-nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.week-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.auth-card .brand img { width: 118px; height: auto; }

@media (max-width: 720px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .shell { display: block; min-height: 0; }

  /* Top bar: logo left, avatar + menu right */
  .m-top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) 4px max(16px, env(safe-area-inset-left, 0px)); }
  .m-logo { display: block; line-height: 0; }
  .m-logo img { width: 70px; height: auto; }
  .m-menu { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 0; border-radius: 999px; background: var(--surface); color: var(--brand-dark); cursor: pointer; box-shadow: 0 4px 14px -10px rgba(59,16,41,.4); }
  .m-menu .avatar { width: 36px; height: 36px; font-size: 13px; }
  .topbar .me { display: none; }
  .search { min-height: 46px; flex-basis: 100%; }

  /* The full menu opens as a panel over the page */
  .nav { position: fixed; inset: 0; z-index: 80; max-width: none; display: none; flex-direction: column; gap: 4px; overflow-y: auto;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 0 calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--surface); }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { display: flex; animation: sheetIn .22s ease-out; }
  @keyframes sheetIn { from { opacity: 0; transform: translateY(12px); } }
  .nav .brand { flex-basis: auto; padding: 4px 22px 16px; }
  .nav .brand img { width: 80px; height: auto; }
  .nav-close { display: grid; place-items: center; position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--hero); color: var(--brand-dark); cursor: pointer; }
  .nav-link { margin: 0 14px; min-height: 52px; font-size: 16px; }
  .nav-me { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 14px 0; padding: 14px; border-radius: var(--radius); background: var(--hero); }
  .nav-me > span:nth-child(2) { flex: 1; min-width: 0; }
  .nav-me form { margin: 0; }
  .help { display: flex; margin: 10px 14px 0; }

  /* Bottom tabs for the four everyday screens */
  .m-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(59,16,41,.4); }
  .m-tabs a, .m-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px;
    border: 0; border-radius: 14px; background: none; color: var(--muted); font: 700 11px 'Manrope', sans-serif; text-decoration: none; cursor: pointer; }
  .m-tabs [aria-current="page"] { color: var(--brand); background: var(--hero); }
  .tab-dot { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand-grad, var(--brand)); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }

  /* Page rhythm */
  .main { padding: 8px 16px 28px; gap: 16px; }
  .page-head { gap: 12px; }
  .page-head h1 { font-size: 24px; }
  .page-head p { font-size: 15px; }
  .card { padding: 18px; border-radius: 22px; }
  .card-head { flex-wrap: wrap; row-gap: 4px; }
  .hero { padding: 22px 20px; }
  .hero h1 { font-size: 24px; }
  .row { gap: 16px; }

  /* Filter pills scroll sideways in one line instead of stacking */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .page-head > nav.filters, .page-head > .cal-nav { width: calc(100% + 32px); }

  /* Today: numbers two by two */
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 18px; }
  .stat-icon { width: 36px; height: 36px; border-radius: 12px; font-size: 16px; }
  .stat-n { font-size: 24px; }
  .stat-label { font-size: 13px; }
  .call { padding: 10px; gap: 10px; }
  .call .chip { order: 3; margin-left: 54px; }
  .call .icon-btn { margin-left: auto; }

  /* Families list becomes cards */
  .table-wrap:has(.fam-table) { overflow: visible; }
  .fam-table, .fam-table tbody { display: block; }
  .fam-table thead { display: none; }
  .fam-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; margin-bottom: 10px; border-radius: var(--radius); background: var(--surface); }
  .fam-table td { display: block; padding: 0; background: none; border-radius: 0 !important; }
  .fam-table .c-name { grid-column: 1; }
  .fam-table .c-stage { grid-column: 2; grid-row: 1; align-self: start; }
  .fam-table .c-child { grid-column: 1 / -1; font-size: 14px; }
  .fam-table .c-child .small { display: inline; margin-left: 4px; }
  .fam-table .c-child .small::before { content: "· "; }
  .fam-table .c-src, .fam-table .c-with, .fam-table .c-when { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
  .fam-table .c-src, .fam-table .c-with { display: inline; }
  .fam-table .c-when { margin-top: 2px; }
  .m-only { display: inline; }

  /* Calendar: whose meetings, then the week buttons in one row */
  .cal-nav { width: 100%; flex-direction: column; align-items: stretch; }
  .week-btns { display: grid; grid-template-columns: repeat(3, 1fr); }
  .week-btns .btn { padding: 0 6px; }
  .day { min-height: 0; }

  /* Family page */
  .fam-hero { padding: 22px 20px; border-radius: 24px; }
  .fam-hero h1 { font-size: 26px; }
  .strip { gap: 8px; }
  .strip-item { flex: 1 1 100%; justify-content: space-between; }
  .actions .btn, .actions form { flex: 1 1 auto; }

  /* Setup and settings */
  .set-card { gap: 16px; }
  .set-foot .btn { flex: 1 1 auto; }
  .rem { padding: 12px 14px; }
  .staff-form { width: 100%; justify-content: space-between; }
  .grid-form { grid-template-columns: minmax(0, 1fr); }
  .tabs { margin: 0 -16px; padding: 4px 16px; }

  /* Reports */
  .rep-hero { gap: 16px; }
  .money-n { font-size: 30px; }

  /* Inbox fills the screen above the tabs */
  .thread { min-height: 0; height: calc(100dvh - 210px); }
}

/* Sign-in: logo and headings centred on phones */
@media (max-width: 720px) {
  .auth { padding: 20px 16px; align-items: start; }
  .auth-card { padding: 28px 22px; border-radius: 24px; gap: 14px; }
  .auth-card .brand { justify-content: center; padding: 0 0 4px; }
  .auth-card h1 { text-align: center; font-size: 24px; }
  .demo-pick > p:first-child { text-align: center; }
  .demo-pick > p.small { text-align: center; }
}
@media (max-width: 900px) {
  [data-thread-open] { display: none; }
  .back-link { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -6px; border-radius: 12px; color: var(--brand-dark); flex: none; }
  .thread-head { padding: 12px 14px; gap: 10px; }
  .thread-who .small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 720px) {
  .thread { height: calc(100dvh - 190px); }
  .composer { padding: 10px 12px; }
  .composer textarea { min-height: 44px; }
  .week-btns .btn { background: var(--surface); }
}
@media (max-width: 720px) {
  .thread { height: auto; max-height: none; min-height: 0; overflow: visible; }
  .bubbles { overflow: visible; flex: none; }
}

@media (max-width: 720px) {
  .auth-card .brand { display: flex; justify-content: center; align-items: center; width: 100%; }
  .auth-card .brand img { margin: 0 auto; }
  .auth-card h1 { width: 100%; text-align: center; text-wrap: balance; }
}
.from-start { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--hero); color: var(--brand-dark); font-weight: 700; font-size: 14px; text-decoration: none; }
.staff-who .chip { margin-left: 6px; vertical-align: middle; }
.ready-hero { gap: 26px; }
.ready-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ready-step { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); }
.ready-step.next { box-shadow: inset 0 0 0 2px var(--brand); }
.ready-n { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; background: var(--hero); color: var(--brand-dark); }
.ready-step.done .ready-n { background: linear-gradient(135deg, #2E9E6B, #157347); }
.ready-txt { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ready-step.done .ready-txt b { color: var(--muted); }
.ready-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ready-act form { margin: 0; }
.setup-nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius); background: var(--lavender); color: var(--lavender-ink); text-decoration: none; }
.setup-nudge b { color: #3D2A8F; }
.setup-nudge .bar { flex: 1 1 140px; height: 8px; border-radius: 4px; background: #fff; overflow: hidden; }
.setup-nudge .bar span { display: block; height: 100%; background: var(--lavender-ink); border-radius: 4px; }
@media (max-width: 720px) { .ready-hero { flex-direction: column; align-items: flex-start; } .ready-act { width: 100%; padding-left: 48px; } }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.head-actions form { margin: 0; }
.payout { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius); background: var(--row); margin-top: 8px; }
.payout-date { width: 52px; flex: none; text-align: center; border-radius: 14px; background: #fff; padding: 6px 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.payout-date b { display: block; font-size: 20px; color: var(--brand); line-height: 1.1; }
.payout-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
@media (max-width: 720px) {
  .head-actions { width: 100%; }
  .head-actions > * { flex: 1 1 auto; }
  .head-actions .btn { width: 100%; }
  .table-wrap:has(.pay-table) { overflow: visible; }
  .pay-table, .pay-table tbody { display: block; }
  .pay-table thead { display: none; }
  .pay-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; margin-bottom: 10px; border-radius: var(--radius); background: var(--surface); }
  .pay-table td { display: block; padding: 0; background: none; border-radius: 0 !important; }
  .pay-table .c-name { grid-column: 1; }
  .pay-table .c-amt { grid-column: 2; grid-row: 1; text-align: right; }
  .pay-table .c-for, .pay-table .c-state, .pay-table .c-pay { grid-column: 1 / -1; font-size: 14px; }
  .pay-table .c-act { grid-column: 1 / -1; }
  .payout { flex-wrap: wrap; }
}
.campus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.campus { display: flex; flex-direction: column; gap: 14px; }
.campus.on { box-shadow: inset 0 0 0 2px var(--brand); }
.campus-top { display: flex; align-items: center; gap: 12px; }
.campus-top h2 { font-size: 17px; font-weight: 800; }
.campus-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.campus-kv div { padding: 10px; border-radius: 14px; background: var(--row); }
.campus-kv dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.campus-kv dd { margin: 2px 0 0; font-weight: 800; }
.campus-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.campus-foot form { margin: 0; }
.campus-pick { margin: 0 14px 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--hero); }
.campus-pick summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 1px; }
.campus-pick summary::-webkit-details-marker { display: none; }
.campus-pick summary small { font-size: 11px; font-weight: 700; color: var(--muted); }
.campus-pick summary b { font-size: 14px; color: var(--brand-dark); display: flex; justify-content: space-between; gap: 6px; }
.campus-pick ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.campus-pick form { margin: 0; }
.campus-pick button, .campus-pick a { width: 100%; text-align: left; border: 0; background: none; padding: 8px; border-radius: 10px; font: 600 14px 'Manrope', sans-serif; color: var(--ink); cursor: pointer; text-decoration: none; display: block; }
.campus-pick button:hover, .campus-pick a:hover { background: #fff; }
.campus-pick [aria-current] { color: var(--brand); font-weight: 800; }
@media (max-width: 720px) { .campus-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Back office */
.bo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px max(24px, env(safe-area-inset-right, 0px)) 14px max(24px, env(safe-area-inset-left, 0px)); background: var(--surface); border-bottom: 1px solid var(--line); }
.bo-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 800; }
.bo-brand span { padding: 4px 10px; border-radius: 999px; background: var(--brand-grad, var(--brand)); color: #fff; font-size: 12px; }
.bo-me { display: flex; align-items: center; gap: 10px; }
.bo-me form { margin: 0; }
.bo-main { max-width: 1280px; margin: 0 auto; }
body.bo { padding-bottom: 0; }
@media (max-width: 720px) {
  .table-wrap:has(.bo-table) { overflow: visible; }
  .bo-table, .bo-table tbody { display: block; }
  .bo-table thead { display: none; }
  .bo-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; margin-bottom: 10px; border-radius: var(--radius); background: var(--surface); }
  .bo-table td { display: block; padding: 0; background: none; border-radius: 0 !important; }
  .bo-table .c-name { grid-column: 1; }
  .bo-table .c-cost { grid-column: 2; grid-row: 1; text-align: right; }
  .bo-table .c-plan, .bo-table .c-setup, .bo-table .c-last, .bo-table .c-enq, .bo-table .c-msg { grid-column: 1 / -1; font-size: 14px; }
  .bo-top { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 720px) {
  .d-only { display: none; }
  .bo-brand span { white-space: nowrap; }
  .bo-me .muted { display: none; }
  .bo-table .c-enq .small, .bo-table .c-msg .small { display: inline; margin-left: 6px; }
}
.lp-row { display: flex; flex-direction: column; gap: 14px; }
.lp-row-main { display: flex; flex-direction: column; gap: 10px; }
.lp-row h2 { font-size: 18px; font-weight: 800; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lp-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.addr-pre { align-self: center; font: 13px ui-monospace, monospace; color: var(--muted); white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.filter.pick { cursor: pointer; }
.filter.pick input { accent-color: var(--brand); }
.filter.pick:has(input:checked) { background: var(--hero); color: var(--brand-dark); box-shadow: inset 0 0 0 2px var(--brand); }
.lp-thumb { display: grid; gap: 4px; margin-top: 8px; width: 120px; height: 72px; padding: 6px; border-radius: 10px; background: var(--row); }
.lp-thumb i { border-radius: 4px; background: #F2D6E2; }
.lp-thumb-photo { grid-template-rows: 1.4fr 1fr; grid-template-columns: 1fr 1fr; }
.lp-thumb-photo i:first-child { grid-column: 1 / -1; background: linear-gradient(135deg, #C7A08F, #8A0F50); }
.lp-thumb-split { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.lp-thumb-split i:first-child { grid-row: 1 / -1; background: linear-gradient(135deg, #C7A08F, #8A0F50); }
.lp-thumb-simple { grid-template-rows: 1fr 1.4fr; grid-template-columns: 1fr 1fr; }
.lp-thumb-simple i:first-child { grid-column: 1 / -1; background: linear-gradient(130deg, #8A0F50, #E0628F 60%, #FFB98A); }
@media (max-width: 720px) { .lp-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ads-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
.ad-card { display: flex; flex-direction: column; gap: 12px; }
.ad-card p { margin: 0; }
.ad-card .set-foot { margin-top: auto; }
.ad-top { display: flex; gap: 12px; align-items: center; }
.ad-top > div { flex: 1; min-width: 0; }
.ad-top h3 { margin: 0; font-size: 16px; font-weight: 800; }
.ad-top p { margin: 2px 0 0; }
.ad-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.pick-pages { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.card-head + .lead-row { border-top: 0; padding-top: 0; }
.lead-row .chip { flex: none; min-width: 110px; justify-content: center; }
.lead-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) { .ads-grid { grid-template-columns: 1fr; } .lead-row { flex-wrap: wrap; } .lead-row .chip { min-width: 0; } }
.ff-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ff-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--row); }
.ff-list li.dragging { opacity: .5; outline: 2px dashed var(--brand); }
.ff-grip { cursor: grab; color: var(--muted); font-size: 18px; line-height: 1.3; user-select: none; }
.ff-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.ff-edit summary { cursor: pointer; color: var(--brand); font-weight: 700; font-size: 14px; margin-top: 4px; width: max-content; }
.ff-edit form, .ff-add form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.ff-move { display: flex; gap: 4px; }
.ff-move .icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: #fff; color: var(--ink); font-weight: 800; cursor: pointer; }
.ff-move .icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ff-add > summary { list-style: none; width: max-content; }
.ff-add > summary::-webkit-details-marker { display: none; }
@media (max-width: 720px) { .ff-grip { display: none; } .ff-list li { flex-wrap: wrap; } }
.tpl-langs { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius-sm); background: var(--row); }
.tpl-tr summary { cursor: pointer; color: var(--brand); font-weight: 700; font-size: 13px; }
.tpl-tr p { margin: 8px 0 0; }
.camp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.camp-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--row); }
.camp-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.src-link { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line); }
.src-link:hover { color: var(--brand); border-color: var(--brand); }

/* Families toolbar (tablets and up): Mine/Everyone, compact dropdowns, sort at the end; active filters as chips */
.fam-desk { display: flex; flex-direction: column; gap: 12px; }
.fam-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.seg { display: flex; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.seg a { flex: 1; text-align: center; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.seg a[aria-current] { background: var(--brand-grad, var(--brand)); color: #fff; box-shadow: 0 6px 14px -8px rgba(138,15,80,.7); }
.fsel { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .15s ease, background .15s ease; }
.fsel:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.fsel:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.fsel > span { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.fsel select { appearance: none; -webkit-appearance: none; field-sizing: content; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A5566' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center; padding: 0 20px 0 0; min-height: 40px; font: 700 14px 'Manrope', sans-serif; color: var(--ink); cursor: pointer; max-width: 210px; text-overflow: ellipsis; }
.fsel select:focus { outline: none; }
.fsel.on { background: var(--hero); box-shadow: inset 0 0 0 1px rgba(138,15,80,.35); }
.fsel.on select { color: var(--brand-dark); }
.fsel-sort { margin-left: auto; min-height: 38px; }
.fsel-sort select { min-height: 34px; }
.fam-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 30px; }
.fam-sum > .small { margin-right: 4px; }
.fam-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--hero); color: var(--brand-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.fam-chip span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 14px; line-height: 1; }
.fam-chip:hover span { background: var(--brand); color: #fff; }
/* Themed dropdown lists for the filter pills (public/js/fsel.js) */
.fsel-js select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fsel-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; border: 0; background: none; font: 700 14px 'Manrope', sans-serif; color: var(--ink); cursor: pointer; white-space: nowrap; }
.fsel-btn:focus { outline: none; }
.fsel-btn svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.fsel.on .fsel-btn { color: var(--brand-dark); }
.fsel.open { box-shadow: inset 0 0 0 2px var(--brand); }
.fsel.open .fsel-btn svg { transform: rotate(180deg); }
.fsel-list { display: none; position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; min-width: 240px; max-height: 340px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 18px; box-shadow: 0 22px 44px -18px rgba(78,8,48,.4), 0 0 0 1px rgba(138,15,80,.08); }
.fsel-list.right { left: auto; right: 0; }
.fsel-list:focus { outline: none; }
.fsel.open .fsel-list { display: block; animation: fsel-in .16s cubic-bezier(.2,.8,.2,1); }
@keyframes fsel-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.fsel-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.fsel-list li.hl { background: var(--hero); color: var(--ink); }
.fsel-list li .tick { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.fsel-list li[aria-selected="true"] { color: var(--brand-dark); font-weight: 800; }
.fsel-list li[aria-selected="true"] .tick { visibility: visible; }
.fsel-list li .ct { margin-left: auto; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--row, #FBF3EE); font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.fsel-list li[aria-selected="true"] .ct { background: #FCE4EE; color: var(--brand-dark); }
@media (prefers-reduced-motion: reduce) { .fsel.open .fsel-list { animation: none; } .fsel-btn svg { transition: none; } }
@media (max-width: 720px) { .seg { flex: 1; } .seg a { padding: 9px 0; } }

/* Families on phones: a tidy bar and a bottom sheet for filters and sort */
.fam-mob, .fam-sheet { display: none; }
@media (max-width: 720px) {
  .fam-desk { display: none; }
  .fam-mob { display: flex; flex-direction: column; gap: 10px; }
  .fam-mbar { display: flex; gap: 10px; align-items: center; }
  .fam-open { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 700 14px 'Manrope', sans-serif; color: var(--ink); cursor: pointer; white-space: nowrap; }
  .fam-open:focus-visible, .fam-x:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .fam-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; display: grid; place-items: center; }

  .fam-sheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 80; }
  .fam-scrim { position: absolute; inset: 0; background: rgba(43,16,32,.42); animation: fam-fade .18s ease-out; }
  .fam-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column; background: var(--bg, #FFFBF7); border-radius: 24px 24px 0 0; box-shadow: 0 -18px 40px -20px rgba(43,16,32,.45); animation: fam-up .22s cubic-bezier(.2,.8,.2,1); }
  .fam-panel-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 8px; }
  .fam-panel-head .grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
  .fam-panel-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
  .fam-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer; }
  .fam-panel-body { overflow-y: auto; padding: 4px 20px 16px; display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; }
  .fam-panel-body fieldset { border: 0; margin: 0; padding: 0; }
  .fam-panel-body legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 800; color: var(--muted); }
  .pills { display: flex; flex-wrap: wrap; gap: 8px; }
  .pill { position: relative; }
  .pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .pill span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
  .pill i { font-style: normal; font-size: 12px; color: var(--muted); }
  .pill input:checked + span { background: var(--hero); color: var(--brand-dark); box-shadow: inset 0 0 0 2px var(--brand); font-weight: 700; }
  .pill input:checked + span i { color: var(--brand); }
  .pill input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
  .fam-panel-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
  .fam-panel-foot .btn { width: 100%; justify-content: center; }
  body.sheet-open { overflow: hidden; }
}
@keyframes fam-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fam-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fam-panel, .fam-scrim { animation: none; } }
.fam-xls svg { flex: none; }
.fam-xls { gap: 8px; }
@media (max-width: 720px) {
  .fam-head { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: nowrap; }
  .fam-head p { display: none; }
  .fam-xls { min-height: 40px; padding: 0 14px; font-size: 14px; background: var(--hero); border-radius: 999px; }
  .fam-xls span::after { content: ""; }
}
@media (max-width: 380px) { .fam-xls span { display: none; } .fam-xls { width: 40px; padding: 0; justify-content: center; } }

/* AdmitDesk AI: shared marks */
.ai-mark { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--brand); color: #fff; font: 800 11px/1 'Manrope', sans-serif; letter-spacing: .04em; }
.ai-mark.sm { width: 22px; height: 22px; border-radius: 7px; font-size: 9px; }
/* Inbox: sorted replies */
.convo-tag { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 2px; }
.convo-tag .chip { font-size: 11px; padding: 3px 8px; }
.convo-why { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ai-read { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--hero); box-shadow: inset 0 0 0 1px rgba(138, 15, 80, .12); }
.ai-read-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ai-read-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-read-actions:empty { display: none; }
/* Family page: before-you-call brief */
.brief { background: linear-gradient(180deg, var(--hero), var(--surface) 70%); }
.brief h2 { display: flex; align-items: center; gap: 8px; }
.brief-lines { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.brief-line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.brief-line dt { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
.brief-line dd { margin: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.brief-line.is-now dd { font-weight: 700; color: var(--brand-dark); }
.skel { display: inline-block; width: min(100%, 320px); height: 14px; border-radius: 7px; background: linear-gradient(90deg, rgba(138,15,80,.07), rgba(138,15,80,.15), rgba(138,15,80,.07)); background-size: 200% 100%; animation: skel 1.2s linear infinite; vertical-align: middle; }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
@media (max-width: 560px) { .brief-line { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
/* Family page: voice notes */
.voice-box { display: flex; flex-direction: column; border-radius: var(--radius-sm); }
.voice-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.voice-bar[hidden] { display: none; }
.voice-bar select { min-height: 40px; width: auto; }
.mic { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--hero); color: var(--brand-dark); font: 700 14px 'Manrope', sans-serif; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(138, 15, 80, .25); }
.mic:hover { box-shadow: inset 0 0 0 2px var(--brand); }
.mic.on { background: var(--brand); color: #fff; box-shadow: 0 0 0 0 rgba(138, 15, 80, .45); animation: mic-pulse 1.4s ease-out infinite; }
@keyframes mic-pulse { to { box-shadow: 0 0 0 12px rgba(138, 15, 80, 0); } }
@media (prefers-reduced-motion: reduce) { .mic.on { animation: none; } }
/* Families: ask in plain words */
.ask-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px rgba(138, 15, 80, .14); }
.ask-box:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.ask-box input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 40px; padding: 0 4px; font: 500 15px 'Manrope', sans-serif; color: var(--ink); outline: none; box-shadow: none; }
.ask-box .btn { border-radius: 999px; min-height: 40px; }
.ask-said { margin: 0; color: var(--ink-2); }
@media (max-width: 720px) {
  .ask-box { padding-left: 8px; }
  .ask-box input { font-size: 14px; }
}
/* Setup: visit times for Dot */
.set-sub { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.set-sub fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.set-sub legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.set-sub .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.set-sub .pill { position: relative; }
.set-sub .pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; min-height: 0; width: auto; }
.set-sub .pill span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.set-sub .pill input:checked + span { background: var(--hero); color: var(--brand-dark); box-shadow: inset 0 0 0 2px var(--brand); font-weight: 700; }
.set-sub .pill input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Today: the shape of the day */
.day-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.day-plan h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 800; }
.day-plan ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.day-plan a { display: inline-flex; align-items: baseline; gap: 6px; min-height: 40px; align-items: center; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.day-plan a b { font-size: 16px; font-weight: 800; }
.day-plan a:hover { box-shadow: inset 0 0 0 2px currentColor; }
/* Families: possible duplicates */
.dup-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--butter, #FFF7DD); }
.dup-note p { flex: 1 1 280px; margin: 0; min-width: 0; }
.dup-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.same-card { display: flex; flex-direction: column; gap: 14px; }
.same-table th[scope="row"] { width: 120px; color: var(--muted); font-weight: 700; font-size: 13px; }
.same-table td { overflow-wrap: anywhere; }
.same-table tr.same td { color: var(--muted); }
.same-table tr:not(.same) td { font-weight: 700; }
.same-pick { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.same-pick input { accent-color: var(--brand); width: 18px; height: 18px; min-height: 0; }
/* Quick answer */
.qa h2 { display: flex; align-items: center; gap: 8px; }
.qa-form { display: flex; gap: 8px; }
.qa-form input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--row); font: 15px 'Manrope', sans-serif; color: var(--ink); }
.qa-form input:focus { outline: 3px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.qa-form .btn { min-height: 44px; }
.qa-out { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--hero); }
.qa-out p { margin: 0 0 4px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.qa-hint { margin: 10px 0 0; }

/* ---------- Calmer Today (Nov 2026): one sentence, then the lists. Colour only where it means something. ---------- */
.td-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.td-kicker { margin: 0 0 6px; font-weight: 600; color: var(--muted); }
.td-head h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.td-sub { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.td-sub a { font-weight: 700; font-size: 14.5px; text-decoration: none; }
.td-sub a::before { content: "·"; color: var(--line); margin-right: 14px; font-weight: 400; }
.td-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.td-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.td-link { font-weight: 700; text-decoration: none; }
.td-row { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-top: 1px solid #F6EDF1; }
.card-head + .td-row, .td-row:first-child { border-top: 0; }
.td-row.compact { gap: 12px; padding: 10px 2px; }
.td-ini { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #FBF3EE; color: #6A4A5A; font-weight: 800; font-size: 13px; }
.td-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.td-who a { color: var(--ink); font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-who a:hover { color: var(--brand); }
.td-why { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; min-width: 0; }
.td-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #C9B3BF; }
.td-dot.is-red { background: #C2342B; } .td-dot.is-green { background: #1F8A5B; } .td-dot.is-brand { background: var(--brand); }
.td-child { width: 140px; flex: none; font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-call { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-grad, var(--brand)); }
.td-call:hover { background: var(--brand-grad-hover, var(--brand-dark)); }
.td-call svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.td-call:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.td-time { width: 46px; flex: none; color: var(--brand); font-size: 14px; }
.td-seat { display: grid; grid-template-columns: 76px 1fr 62px; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; }
.td-seat > span:first-child { font-weight: 700; }
.td-seat > span:last-child { text-align: right; }
.td-bar { height: 8px; border-radius: 99px; background: #F6EDF1; overflow: hidden; }
.td-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
@media (max-width: 1100px) { .td-grid { grid-template-columns: 1fr; } .td-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
@media (max-width: 720px) { .td-child { display: none; } .td-head .seg { width: 100%; } .td-side { display: flex; } }

/* Ask a question in the search box (quick answers) */
.search { position: relative; }
.ask-pop { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; right: 0; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 22px 44px -18px rgba(78,8,48,.4), 0 0 0 1px rgba(138,15,80,.08); font-size: 15px; line-height: 1.5; }
.ask-pop small { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.ask-pop button { float: right; border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
/* Menu in three quiet groups */
.nav-sep { display: block; height: 1px; margin: 8px 12px; background: var(--line); opacity: .7; }
.nav-help { margin: auto 12px 0; padding-top: 16px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.src-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: -6px; }
.src-tabs a { padding: 10px 14px; font-weight: 700; font-size: 14.5px; color: var(--muted); text-decoration: none; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.src-tabs a[aria-current] { color: var(--brand); border-color: var(--brand); }

/* ---------- Calmer family page (Nov 2026): one next step, the rest in tabs ---------- */
.fp-back { font-weight: 700; text-decoration: none; font-size: 14px; }
.fp-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fp-ini { width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--hero); color: var(--brand); font-weight: 800; font-size: 19px; }
.fp-title { flex: 1 1 280px; min-width: 0; }
.fp-title h1 { margin: 0; font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.fp-title p { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fp-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.fp-acts .btn svg { margin-right: 2px; }
.fp-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: -6px; }
.fp-pick { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0 6px 0 14px; min-height: 40px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.fp-pick label { font-size: 13px; font-weight: 600; color: var(--muted); }
.fp-pick select { border: 0; background: transparent; font: 700 14px 'Manrope', sans-serif; color: var(--ink); min-height: 36px; padding: 0 4px; cursor: pointer; }
.fp-due { font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 0 6px; }
.fp-due.late { color: #A12A22; }
.fp-next { display: flex; flex-direction: column; gap: 18px; padding: 24px 26px; }
.fp-steps { list-style: none; margin: 0; padding: 0; display: flex; }
.fp-steps li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #9A7E8C; text-align: center; min-width: 0; }
.fp-steps li::before { content: ""; position: absolute; top: 10px; right: 50%; left: -50%; height: 2px; background: #EAD3DE; }
.fp-steps li:first-child::before { display: none; }
.fp-steps li.done::before, .fp-steps li.now::before { background: var(--brand); }
.fp-steps i { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #E7D6DE; display: grid; place-items: center; }
.fp-steps li.done i { background: var(--brand); box-shadow: none; }
.fp-steps li.done i::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translate(0, -1px) rotate(-45deg); }
.fp-steps li.now i { box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 5px #FCE4EE; }
.fp-steps li.now { color: var(--brand); font-weight: 800; }
.fp-steps li.done { color: var(--ink-2); }
.fp-step-now { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; background: var(--hero); }
.fp-say { flex: 1 1 320px; min-width: 0; }
.fp-say h2 { margin: 0; font-size: 12px; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.fp-now { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.fp-last { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.fp-last > span:first-child { font-weight: 700; }
.fp-do, .fp-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.fp-more summary { cursor: pointer; font-weight: 700; color: var(--brand); font-size: 14px; width: max-content; max-width: 100%; }
.fp-more-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 24px; margin-top: 14px; }
.fp-more-body > div { padding: 14px 16px; border-radius: 14px; background: var(--row); }
.fp-more-body h3 { margin: 0 0 10px; font-size: 14px; font-weight: 800; }
.fp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.fp-tabs button { flex: none; padding: 12px 14px; border: 0; background: none; font: 700 14.5px 'Manrope', sans-serif; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; cursor: pointer; }
.fp-tabs button[aria-selected="true"] { color: var(--brand); border-color: var(--brand); }
.fp-tabs button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 8px; }
.fp-tabs em { font-style: normal; font-size: 12px; color: #9A7E8C; margin-left: 6px; font-weight: 700; }
.fp-panel { display: flex; flex-direction: column; gap: 20px; }
.fp-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.fp-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.fp-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px solid #F6EDF1; font-size: 14px; }
.card-head + .fp-line { border-top: 0; }
.fp-line > span:nth-child(2) { color: var(--muted); flex: 1 1 200px; }
.fp-about .fact { background: none; padding: 9px 0; border-radius: 0; border-top: 1px solid #F6EDF1; font-size: 14px; }
.fp-about .fact:first-child { border-top: 0; }
@media (max-width: 1000px) { .fp-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .fp-acts { width: 100%; } .fp-acts .btn { flex: 1; }
  .fp-steps span { display: none; } .fp-steps li.now span { display: block; position: absolute; top: 28px; white-space: nowrap; }
  .fp-steps { padding-bottom: 18px; }
  .fp-next { padding: 18px; }
  .fp-do, .fp-do .fp-row { width: 100%; } .fp-do .btn { flex: 1; }
}
@media (max-width: 720px) { .fp-num { display: none; } }

/* ---------- Calmer Fees (Nov 2026): one sentence, then only what needs a look ---------- */
.fe-look .card-head { align-items: center; }
.fe-look.is-ok h2::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1F8A5B; margin-right: 10px; vertical-align: middle; }
.fe-check { font-size: 13.5px; font-weight: 700; color: var(--brand); }
.fe-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft, #F3E6EC); color: inherit; text-decoration: none; }
.fe-row:first-of-type { border-top: 0; }
a.fe-row:hover .fe-who b { color: var(--brand); }
.fe-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fe-amt { flex: none; }
.fe-payouts { padding: 0; }
.fe-payouts > summary { cursor: pointer; padding: 18px 20px; list-style: none; display: flex; align-items: center; gap: 10px; }
.fe-payouts > summary::-webkit-details-marker { display: none; }
.fe-payouts > summary::after { content: "Show"; margin-left: auto; font-weight: 700; font-size: 13.5px; color: var(--brand); }
.fe-payouts[open] > summary::after { content: "Hide"; }
.fe-payouts > :not(summary) { margin: 0 20px; }
.fe-payouts[open] { padding-bottom: 12px; }

/* ---------- Calmer Setup: technical parts folded ---------- */
.tab-sep { flex: none; width: 1px; align-self: stretch; margin: 8px 6px; background: var(--line); }
.tech { border-radius: 14px; background: var(--row, #FBF4EF); padding: 0 16px; }
.tech > summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; color: var(--brand); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tech > summary::-webkit-details-marker { display: none; }
.tech > summary::before { content: "▸"; color: var(--brand); transition: transform .15s; }
.tech[open] > summary::before { transform: rotate(90deg); }
.tech > summary .muted { font-weight: 500; color: var(--muted); }
.tech[open] { padding-bottom: 16px; }
.tech > :not(summary) + :not(summary) { margin-top: 14px; }

/* ---------- Calmer Reports (Nov 2026): one hue for bars, colour only for problems ---------- */
.rp-line { display: flex; flex-direction: row; align-items: center; gap: 18px 26px; flex-wrap: wrap; padding: 18px 24px; }
.rp-line > div { display: grid; gap: 2px; }
.rp-line b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.rp-line span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.rp-line .rp-arrow { color: #D7C3CD; font-size: 20px; }
.rp-line .rp-rate { margin-left: auto; text-align: right; }
.rp-line .rp-rate b { color: var(--brand); }
.src-track .rp-fill { background: color-mix(in srgb, var(--brand) 55%, #fff); }
.src-rate { color: var(--ink); }
.rp-late { display: inline-flex; align-items: center; gap: 7px; color: #A61B14; font-weight: 700; }
.rp-soon { background: transparent; border: 1.5px dashed var(--line); box-shadow: none; }
.rp-soon h2 { margin: 0; }
@media (max-width: 720px) { .rp-line .rp-arrow { display: none; } .rp-line .rp-rate { margin-left: 0; text-align: left; } }
.rp-more { margin-top: 10px; }
.rp-more > summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--brand); width: max-content; }
.rp-more[open] > summary { margin-bottom: 12px; }

/* ---------- Add a family by hand (walk-ins) and upload from Excel ---------- */
.nf { display: flex; flex-direction: column; gap: 18px; }
.nf-dupe { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 14px; background: #FFF4F2; box-shadow: inset 0 0 0 1px #F3C9C3; }
.nf-dupe-h { margin: 0; display: flex; align-items: center; gap: 10px; }
.nf-dupe-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nf-dupe-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; border-radius: 10px; background: #fff; }
.nf-dupe-list a { color: var(--ink); text-decoration: none; }
.nf-dupe-list a:hover b { color: var(--brand); }
.nf-check { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; cursor: pointer; }
.nf-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.nf-pills { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nf-pill { position: relative; }
.nf-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.nf-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--row); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.nf-pill input:checked + span { background: var(--hero); color: var(--brand-dark); box-shadow: inset 0 0 0 2px var(--brand); font-weight: 700; }
.nf-pill input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.im-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 180px; padding: 24px; border-radius: 18px; border: 2px dashed color-mix(in srgb, var(--brand) 35%, transparent); background: var(--row); text-align: center; cursor: pointer; }
.im-drop.is-over { background: var(--hero); border-color: var(--brand); }
.im-drop b { font-size: 17px; }
.im-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.im-cols { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.im-col { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--row); font-size: 13px; }
.im-col.is-off { color: var(--muted); }
.im-col i { font-style: normal; color: var(--muted); }
.im-sum { display: flex; flex-wrap: wrap; gap: 10px; }
.im-sum a { display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 14px 16px; border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 2px transparent; }
.im-sum a b { font-size: 24px; font-weight: 800; }
.im-sum a span { font-size: 13px; color: var(--muted); font-weight: 600; }
.im-sum a[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--brand); background: var(--hero); }
.im-sum a.is-good b { color: #1F7A50; }
.im-sum a.is-bad b { color: #A61B14; }
.im-why { font-size: 13px; }
.im-why.is-bad { color: #A61B14; font-weight: 600; }
.im-table td { vertical-align: top; }
.fam-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fam-add .btn { gap: 8px; }
.fam-add .btn svg { flex: none; }
@media (max-width: 720px) {
  .fam-add { flex-wrap: nowrap; }
  .fam-add .btn { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 999px; }
  .fam-add .btn-soft span, .fam-add .fam-xls span { display: none; }
  .fam-add .btn-soft { width: 40px; padding: 0; justify-content: center; }
}
.fp-sibs .fp-line form { display: inline; }
.fp-sib-add { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 10px; align-items: end; margin-top: 12px; }
@media (max-width: 720px) { .fp-sib-add { grid-template-columns: 1fr; } }

/* ---------- Applications: every filled form, to read and download ---------- */
.ap-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ap-search { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); flex: 0 1 220px; }
.ap-search input { border: 0; background: none; font: 14px 'Manrope', sans-serif; color: var(--ink); width: 100%; min-width: 0; outline: none; }
.ap-search:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.ap-sum .fsel-sort { margin-left: auto; }
.ap-sum { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 14px 0 6px; }
.ap-all { margin-right: 4px; }
.ap-zipbtns { display: inline-flex; gap: 8px; }
.ap-table .c-tick { width: 36px; }
.ap-table .c-tick input { width: 18px; height: 18px; accent-color: var(--brand); }
.ap-ok { color: #1F7A50; font-weight: 700; }
.ap-bad { display: inline-flex; align-items: center; gap: 6px; color: #A61B14; font-weight: 700; }
.ap-sheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; align-items: start; }
.ap-sheet .ap-wide { grid-column: 1 / -1; }
.ap-sheet h2 { margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.ap-dl { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 0; margin: 0; }
.ap-dl dt, .ap-dl dd { margin: 0; padding: 9px 0; border-top: 1px solid #F6EDF1; font-size: 14px; }
.ap-dl dt { color: var(--muted); font-weight: 600; padding-right: 12px; }
.ap-dl dt:first-of-type, .ap-dl dt:first-of-type + dd { border-top: 0; }
.ap-docs { list-style: none; margin: 0; padding: 0; }
.ap-docs li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid #F6EDF1; font-size: 14px; }
.ap-docs li:first-child { border-top: 0; }
.ap-docs li > span:first-child { flex: 1 1 160px; font-weight: 600; }
.ap-doc-state { font-size: 13px; font-weight: 700; color: var(--muted); }
.ap-doc-state.is-verified { color: #1F7A50; } .ap-doc-state.is-rejected, .ap-doc-state.is-none { color: #A61B14; } .ap-doc-state.is-uploaded { color: var(--brand); }
@media (max-width: 720px) {
  .ap-sum .fsel-sort { margin-left: 0; }
  .ap-search { flex: 1 1 100%; }
  .ap-zipbtns { margin-left: 0; width: 100%; }
  .ap-table .c-tick { width: auto; }
}
@media (max-width: 720px) {
  .table-wrap:has(.ap-table) { overflow: visible; }
  .ap-table, .ap-table tbody { display: block; }
  .ap-table thead { display: none; }
  .ap-table tr { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 6px 10px; padding: 14px 16px; margin-bottom: 10px; border-radius: var(--radius); background: var(--surface); }
  .ap-table td { display: block; padding: 0; background: none; border-radius: 0 !important; font-size: 14px; }
  .ap-table .c-tick { grid-column: 1; grid-row: 1 / span 4; padding-top: 2px; }
  .ap-table .c-name { grid-column: 2; }
  .ap-table .c-grade { grid-column: 3; grid-row: 1; text-align: right; font-weight: 700; }
  .ap-table .c-when, .ap-table .c-fee, .ap-table .c-docs, .ap-table .c-with, .ap-table .c-act { grid-column: 2 / -1; }
  .ap-table .c-when .small { display: inline; } .ap-table .c-when .small::before { content: " · "; }
  .ap-table .c-act { padding-top: 4px; }
}
