:root,
html[data-theme="volt-grid"] {
  color-scheme: dark;
  --bg: #0c090d;
  --bg-2: rgba(28, 19, 29, 0.78);
  --card: rgba(32, 22, 34, 0.82);
  --card-solid: #211724;
  --ink: #fff5f6;
  --muted: #bca9b1;
  --line: rgba(235, 171, 188, 0.17);
  --accent: #f3a6b7;
  --accent-2: #cd718b;
  --accent-ink: #fff5f6;
  --cool: #f3a6b7;
  --ok: #7dffb3;
  --bad: #ff6b8a;
  --violet: #b388ff;
  --heat: #ff8a4c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 220, 230, 0.05);
  --radius: 8px;
  --font: "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --topbar-bg: linear-gradient(180deg, rgba(35, 20, 31, 0.96), rgba(20, 15, 23, 0.9));
  --nav-hover: rgba(235, 171, 188, 0.08);
  --nav-current: rgba(243, 166, 183, 0.14);
  --chip-bg: rgba(39, 26, 40, 0.92);
  --input-bg: rgba(12, 9, 14, 0.75);
  --focus-ring: rgba(243, 166, 183, 0.55);
  --hover-card: rgba(48, 29, 43, 0.9);
  --hover-border: rgba(243, 166, 183, 0.45);
  --flash-error-bg: rgba(255, 107, 138, 0.14);
  --flash-error-ink: #ffd2d2;
  --flash-ok-bg: rgba(125, 255, 179, 0.1);
  --flash-ok-ink: #c8ffe0;
  --badge-bg: rgba(40, 28, 42, 0.9);
  --ok-bg: rgba(125, 255, 179, 0.12);
  --bad-bg: rgba(255, 107, 107, 0.14);
  --paused-bg: rgba(243, 166, 183, 0.12);
  --cool-bg: rgba(243, 166, 183, 0.14);
  --button-grad: linear-gradient(115deg, #a32b47, #7d203b 55%, #5e1b35);
  --secondary-bg: rgba(39, 26, 40, 0.92);
  --surface-2: rgba(16, 10, 18, 0.55);
  --drawer-bg: rgba(29, 20, 32, 0.98);
  --auth-card: linear-gradient(155deg, rgba(48, 27, 39, 0.94), rgba(22, 18, 27, 0.96) 60%, rgba(29, 19, 31, 0.94));
  --blob-a: radial-gradient(circle, rgba(145, 35, 66, 0.22), transparent 68%);
  --blob-b: radial-gradient(circle, rgba(104, 54, 96, 0.18), transparent 70%);
  --bg-image:
    radial-gradient(ellipse at 15% 10%, rgba(126, 29, 57, 0.3), transparent 55%),
    radial-gradient(ellipse at 90% 90%, rgba(87, 43, 84, 0.24), transparent 58%),
    repeating-linear-gradient(118deg, transparent 0 22px, rgba(235, 171, 188, 0.035) 22px 23px),
    linear-gradient(145deg, #180d16, #0c090d 55%, #160f1b);
  --bg-image-mobile: var(--bg-image);
  --tap: 44px;
}

html[data-theme="easy-read"] {
  color-scheme: light;
  --bg: #faf8f5;
  --bg-2: #f2ece8;
  --card: #ffffff;
  --card-solid: #ffffff;
  --ink: #241b20;
  --muted: #51434b;
  --line: #817078;
  --accent: #701c3a;
  --accent-2: #701c3a;
  --accent-ink: #ffffff;
  --cool: #701c3a;
  --ok: #205331;
  --bad: #8a1730;
  --violet: #553570;
  --heat: #783516;
  --shadow: none;
  --topbar-bg: #ffffff;
  --nav-hover: #f2ece8;
  --nav-current: #f2ece8;
  --chip-bg: #ffffff;
  --input-bg: #ffffff;
  --focus-ring: #701c3a;
  --hover-card: #faf8f5;
  --hover-border: #701c3a;
  --flash-error-bg: #f7e9ed;
  --flash-error-ink: #8a1730;
  --flash-ok-bg: #eaf2ec;
  --flash-ok-ink: #205331;
  --badge-bg: #f2ece8;
  --ok-bg: #eaf2ec;
  --bad-bg: #f7e9ed;
  --paused-bg: #f2ece8;
  --cool-bg: #f2ece8;
  --button-grad: #701c3a;
  --secondary-bg: #f2ece8;
  --surface-2: #f2ece8;
  --drawer-bg: #ffffff;
  --auth-card: #ffffff;
  --blob-a: none;
  --blob-b: none;
  --bg-image: none;
  --bg-image-mobile: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { overflow-x: clip; }
body {
  position: relative;
  isolation: isolate;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image: var(--bg-image);
  background-attachment: scroll;
  overflow-x: clip;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
}
body::before {
  width: 42vw;
  height: 42vw;
  min-width: 280px;
  min-height: 280px;
  top: -8%;
  left: -6%;
  border-radius: 50%;
  background: var(--blob-a);
  animation: drift-a 28s ease-in-out infinite alternate;
}
body::after {
  width: 48vw;
  height: 48vw;
  min-width: 320px;
  min-height: 320px;
  right: -10%;
  bottom: -12%;
  border-radius: 46% 54% 42% 58%;
  background: var(--blob-b);
  animation: drift-b 36s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(8%, 12%) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-10%, -8%) rotate(12deg); }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  button, .btn, .unit-card, .nav-link, .step { transition: none; }
}
@media (max-width: 859px) {
  body::before, body::after { width: 90vw; height: 90vw; }
  body { background-image: var(--bg-image-mobile); }
}

a { color: var(--cool); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 0.4rem; letter-spacing: -0.03em; }
h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 650; }
h2 { font-size: 1.05rem; font-weight: 650; }
h3 { font-size: 0.95rem; font-weight: 650; margin-top: 1.1rem; }
p { margin: 0 0 0.75rem; }
.muted { color: var(--muted); }
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.55rem 0.8rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.wrap {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 1.25rem));
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0.85rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: calc(0.7rem + env(safe-area-inset-top, 0px)) 0.75rem 0.7rem;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 52px;
  height: auto;
}
.brand-short { display: none; }
.brand-full { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mark {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.topbar-end {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex: 0 0 auto;
}
.who {
  color: var(--muted);
  font-size: 0.78rem;
  max-width: 22vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.who { color: var(--ink); text-decoration: none; font-weight: 600; }
a.who:hover { text-decoration: none; color: var(--accent); }
.nav-toggle {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  margin: 0;
  padding: 0;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}
.nav-toggle span {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
}
.nav-drawer {
  display: none;
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  top: calc(100% + 0.35rem);
  min-width: 0;
  background: var(--drawer-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.6rem;
  box-shadow: var(--shadow);
  z-index: 60;
}
.nav-drawer.open { display: grid; gap: 0.35rem; }
.nav-drawer a, .nav-drawer button, .nav-drawer span {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.7rem;
  min-height: 2.5rem;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: inherit;
}
.nav-drawer a:hover, .nav-drawer button:hover { background: var(--nav-hover); text-decoration: none; }
.desktop-nav { display: none; align-items: center; gap: 0.35rem; }
.desktop-nav form { margin: 0; }
.nav-link {
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}
.nav-link:hover { text-decoration: none; background: var(--nav-hover); }
.nav-link[aria-current="page"] {
  background: var(--nav-current);
  color: var(--accent);
}
.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.28rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.site-foot {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero { display: grid; gap: 0.85rem; margin: 0.4rem 0 1.1rem; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  backdrop-filter: blur(12px);
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat b {
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.card, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.1rem;
  margin-bottom: 0.9rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  min-width: 0;
}
.card .intake-actions { margin-top: 0.75rem; }
.card-interactive:hover {
  border-color: var(--hover-border);
  background: var(--hover-card);
}
.flash-error, .flash-ok {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  margin: 0 0 0.8rem;
}
.flash-error { background: var(--flash-error-bg); color: var(--flash-error-ink); }
.flash-ok { background: var(--flash-ok-bg); color: var(--flash-ok-ink); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--muted);
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.cool { background: var(--cool-bg); color: var(--cool); }
.badge.paused { background: var(--paused-bg); color: var(--accent); }

label { display: block; margin: 0.75rem 0 0.35rem; color: var(--muted); font-size: 0.82rem; }
.req::after { content: " *"; color: var(--bad); }
input[type=text],
input[type=password],
input[type=email],
input[type=search],
input[type=url],
input[type=tel],
input[type=number],
input[type=date],
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.8rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
  max-width: 100%;
}
textarea { min-height: 6.5rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.85; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus-ring); border-color: transparent; }
.check-row, .check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}
.check-row input, .check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 0.85rem;
}
.field-grid > * { min-width: 0; }
.field-grid .span-2 { grid-column: 1 / -1; }
input[type=date] { min-width: 0; }
.hint { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.75rem; }

button, .btn {
  -webkit-appearance: none;
  appearance: none;
  background: var(--button-grad);
  color: var(--accent-ink);
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  min-height: 2.5rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  touch-action: manipulation;
}
button:hover, .btn:hover { filter: brightness(1.06); }
button:active, .btn:active { transform: translateY(1px); }
button.secondary, .btn.secondary {
  background: var(--secondary-bg);
  color: var(--ink);
  border: 1px solid var(--line);
}
button.full, .btn.full { width: 100%; margin-top: 1rem; }
button.ghost, .btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}
button.ghost:hover, .btn.ghost:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--secondary-bg);
}
button:disabled { opacity: 0.45; cursor: not-allowed; filter: none; transform: none; }
button:focus-visible, .btn:focus-visible, .nav-toggle:focus-visible, .nav-link:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.empty {
  padding: 1.4rem 0.4rem;
  text-align: center;
  color: var(--muted);
}
.progress {
  height: 0.45rem;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin: 0.55rem 0 0.2rem;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--button-grad);
  border-radius: inherit;
  width: var(--pct, 0%);
}
.p0 { --pct: 0%; } .p5 { --pct: 5%; } .p10 { --pct: 10%; } .p15 { --pct: 15%; }
.p20 { --pct: 20%; } .p25 { --pct: 25%; } .p30 { --pct: 30%; } .p35 { --pct: 35%; }
.p40 { --pct: 40%; } .p45 { --pct: 45%; } .p50 { --pct: 50%; } .p55 { --pct: 55%; }
.p60 { --pct: 60%; } .p65 { --pct: 65%; } .p70 { --pct: 70%; } .p75 { --pct: 75%; }
.p80 { --pct: 80%; } .p85 { --pct: 85%; } .p90 { --pct: 90%; } .p95 { --pct: 95%; }
.p100 { --pct: 100%; }
.kv { display: grid; grid-template-columns: 1fr; gap: 0.65rem 1rem; margin: 0; }
.kv div { min-width: 0; }
.kv dt {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kv dd { margin: 0.15rem 0 0; font-weight: 650; overflow-wrap: anywhere; }

.user-pick {
  display: grid;
  gap: 0.55rem;
}
.user-pick label.pick {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.8rem 0.9rem;
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.92rem;
  cursor: pointer;
}
.user-pick label.pick:has(input:checked) {
  border-color: var(--hover-border);
  background: var(--nav-current);
}
.notice-card.unread {
  border-color: var(--hover-border);
  background: var(--nav-current);
}
.notice-meta { color: var(--muted); font-size: 0.75rem; font-family: var(--mono); }
.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  margin: 0.35rem 0 0.75rem;
}
.copy-row input { flex: 1 1 12rem; font-family: var(--mono); font-size: 0.82rem; }
.invite-result { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.copy-row input { letter-spacing: 0.08em; }

.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 0.85rem calc(1rem + env(safe-area-inset-bottom, 0px));
}
.auth .auth-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 166, 183, 0.7), transparent);
}
.auth-card {
  width: min(420px, 100%);
  background: var(--auth-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem 1.15rem 1.35rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(140%);
  text-align: center;
  position: relative;
  z-index: 1;
}
.auth-lockup {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  margin: 0 0 1.45rem;
}
.auth-lockup .auth-logo {
  display: block;
  width: min(176px, 65%);
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(180, 30, 40, 0.14));
}
.auth-title {
  display: inline-flex;
  align-items: center;
  gap: 0.08em;
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}
.auth-title .mark {
  width: 0.98em;
  height: 1.18em;
  border-radius: 0.24em;
  font-size: 0.78em;
  letter-spacing: 0;
}
.auth-org {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.auth-card h1 {
  margin: 0 0 1.05rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-card form { text-align: left; }
.auth-card label { margin-top: 0.85rem; }
.auth-card .check-row { margin-top: 0.95rem; }
.auth-card input[type=text],
.auth-card input[type=password],
.auth-card input[type=email] {
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
}
.auth-card .flash-error,
.auth-card .flash-ok { text-align: left; }
.auth-card button.full {
  margin-top: 1.2rem;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.auth-links { margin: 1.05rem 0 0; text-align: center; }
.auth-links a { color: var(--muted); font-size: 0.82rem; font-weight: 650; }
.auth-links a:hover { color: var(--ink); }

.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0 0 1rem;
}
.step {
  appearance: none;
  display: grid;
  justify-items: center;
  gap: 0.12rem;
  background: var(--chip-bg);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem 0.2rem;
  min-height: 2.75rem;
  min-width: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.15;
}
.step b {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.step span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.step[aria-current="step"], .step.active {
  background: var(--nav-current);
  color: var(--accent);
  border-color: var(--hover-border);
}
.step-panel[hidden] { display: none !important; }
.intake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}
.intake-actions .btn,
.intake-actions button,
.intake-actions a.btn {
  flex: 1 1 8rem;
}
.review-block { margin-bottom: 1rem; }
.child-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 0.85rem;
  padding: 0.75rem 0 0.15rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .field-grid, .kv, .child-row { grid-template-columns: 1fr 1fr; }
  .desktop-nav { display: flex; }
  .nav-toggle, .nav-drawer, .topbar-end .who { display: none; }
}
@media (pointer: coarse) {
  button, .btn, .nav-link, .step, .nav-toggle, .user-pick label.pick, a.btn {
    min-height: var(--tap);
  }
}
@media (max-width: 719px) {
  input[type=date]::-webkit-datetime-edit { font-size: 16px; }
  .table-wrap thead { display: none; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td {
    display: block;
    width: 100%;
  }
  .table-wrap tr {
    padding: 0.55rem 0 0.7rem;
    border-bottom: 1px solid var(--line);
  }
  .table-wrap td {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.45rem 0.7rem;
    padding: 0.22rem 0;
    border: 0;
  }
  .table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

[hidden] { display: none !important; }
body { overflow-wrap: break-word; }
.auth { grid-template-rows: 1fr auto; gap: 1rem; }
.auth-main { width: 100%; display: grid; place-items: center; align-self: center; }
.auth .site-foot { margin-top: 0; max-width: 34rem; }
.auth-card { width: min(420px, 100%); }
.signup-note { margin-top: 1rem; }
.site-foot { padding: 0 1rem 1.5rem; }
.site-foot a { color: inherit; }
.site-foot a:hover { color: var(--cool); }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn:hover { text-decoration: none; }
.hero { margin: 1rem 0 1.5rem; gap: 0.35rem; }
.hero .toolbar { margin: 0; }
.hero .kicker { margin-bottom: 0.35rem; }
.hero p:last-child { margin-bottom: 0; }
.card-title { margin: 0; font-size: 1.1rem; }
.intake-list { display: grid; gap: 0 1rem; }
.account-line { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.account-line > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.account-line small, .pick small { display: block; font-size: 0.8rem; }
.pick > span { min-width: 0; overflow-wrap: anywhere; }
.pick input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); flex-shrink: 0; }
.role-form { display: flex; align-items: end; flex-wrap: wrap; gap: 0.8rem; }
.role-form > div { flex: 1 1 16rem; }
fieldset.panel { min-inline-size: 0; margin-inline: 0; padding-top: 0.75rem; }
fieldset legend { color: var(--ink); font-size: 1.15rem; font-weight: 650; padding: 0 0.4rem; }
.section-intro { margin: 0.5rem 0; }
.children-list { margin-top: 1.2rem; }
.child-row .span-2 { grid-column: 1 / -1; margin-top: 0; }
.child-row { margin-top: 1rem; padding-top: 1rem; }
.address-hint { padding: 0.75rem; border: 1px solid var(--line); border-radius: 10px; }
.address-required-hint { color: var(--accent); border-color: var(--hover-border); background: var(--nav-current); }
.address-required label { color: var(--accent); }
.address-required input { border-color: var(--hover-border); }
.stepper { display: none; }
.intake-enhanced .stepper { display: grid; }
[data-step-direction] { display: none; }
.intake-enhanced [data-step-direction] { display: inline-flex; }
.step-controls { align-items: stretch; }
.save-hint { margin-top: 0.8rem; }
.notice-body { white-space: pre-line; }
.kv { margin-top: 1rem; }
.kv > div { padding: 0.75rem 0; border-top: 1px solid var(--line); }
.kv dd p:last-child { margin-bottom: 0; }
.hero h1 { overflow-wrap: anywhere; }
.stamp-line { margin: 0.35rem 0 0; font-size: 0.86rem; }
.intake-list { gap: 0; }
@media (min-width: 720px) {
  .wrap { padding-top: 1.75rem; padding-bottom: 2rem; width: min(1080px, calc(100% - 1.5rem)); }
  .intake-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .topbar { padding-inline: max(1rem, calc((100vw - 1160px) / 2)); }
  .auth-card { padding: 2.15rem 1.7rem 1.65rem; }
  .card, .panel { padding: 1.05rem 1.1rem; }
  .step { font-size: 0.78rem; padding: 0.55rem 0.4rem; }
  .intake-enhanced .step-controls {
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .intake-enhanced .save-hint { margin-bottom: 0; }
}
@media (min-width: 720px) and (max-width: 1000px) {
  .brand-full { max-width: 10rem; }
  .nav-link { padding-inline: 0.45rem; }
}
@media (max-width: 719px) {
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .topbar-end .who { display: none; }
  h1 { font-size: 1.45rem; }
  .hero { margin: 0.55rem 0 1rem; }
  .card, .panel { padding: 0.9rem 0.85rem; border-radius: 14px; }
  .stats { gap: 0.5rem; }
  .stat { padding: 0.7rem 0.75rem; }
  .stat b { font-size: 1.2rem; }
  .intake-enhanced .stepper {
    position: sticky;
    top: calc(3.9rem + env(safe-area-inset-top, 0px));
    z-index: 40;
    padding: 0.4rem 0 0.5rem;
    margin: 0 0 0.75rem;
    background: var(--topbar-bg);
    backdrop-filter: blur(16px);
  }
  .intake-enhanced .step-controls {
    position: sticky;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0.9rem -0.625rem 0;
    padding: 0.65rem 0.625rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: var(--topbar-bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 28px rgba(2, 4, 16, 0.35);
  }
  .intake-enhanced .step-controls > button { flex: none; width: 100%; min-height: var(--tap); }
  .intake-enhanced .save-hint { margin-bottom: 0.4rem; }
  .intake-actions .btn,
  .intake-actions button,
  .intake-actions a.btn { min-height: var(--tap); }
  .site-foot { padding: 0 0.85rem calc(1.1rem + env(safe-area-inset-bottom, 0px)); font-size: 0.74rem; }
  .role-form { display: grid; }
  .role-form > div, .role-form button { width: 100%; }
  input[type=date], input[type=number], select { min-height: var(--tap); }
}
@media (pointer: coarse) {
  .check-row, .auth-links a, .site-foot a { min-height: var(--tap); }
  .nav-drawer a, .nav-drawer button { min-height: var(--tap); }
  a.btn { min-height: var(--tap); }
}

.notification-controls { display: flex; align-items: center; gap: 0.35rem; }
.notification-controls > .nav-link { flex: 0 1 auto; width: auto; }
.theme-preference .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.topbar { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; }
.desktop-nav { justify-content: flex-end; flex-wrap: wrap; }
.topbar-end { grid-column: 3; }
.theme-header { display: flex; justify-content: flex-end; width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 0.75rem; }
.auth { grid-template-rows: auto 1fr auto; }
.theme-preference {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
}
.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.55rem;
  min-height: 44px;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
}
.theme-switch input {
  position: absolute;
  inset: 0 auto 0 0;
  width: 48px;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.theme-track,
.nav-drawer .theme-track {
  display: inline-block;
  width: 48px;
  height: 28px;
  min-height: 0;
  flex: 0 0 auto;
  padding: 3px;
  border: 2px solid var(--muted);
  border-radius: 20px;
  background: var(--card-solid);
}
.theme-track::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
}
.theme-switch input:checked + .theme-track { background: var(--accent); border-color: var(--accent); }
.theme-switch input:checked + .theme-track::before { transform: translateX(20px); background: var(--bg); }
.theme-switch input:focus-visible + .theme-track { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.theme-save { min-height: 44px; }
.theme-status { flex-basis: 100%; color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.theme-status:empty { display: none; }
.theme-status.is-error { color: var(--bad); font-weight: 650; }
.intake-enhanced .stepper { top: var(--header-height, 10rem); }
@media (max-width: 719px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .topbar-end { grid-column: 2; }
}
@media (max-height: 500px) {
  .topbar, .intake-enhanced .stepper { position: static; }
}

html[data-theme="easy-read"] { font-size: 112.5%; }
html[data-theme="easy-read"] body { font-size: 1rem; line-height: 1.6; }
html[data-theme="easy-read"] body::before,
html[data-theme="easy-read"] body::after,
html[data-theme="easy-read"] .auth .auth-card::before { display: none; }
html[data-theme="easy-read"] *,
html[data-theme="easy-read"] *::before,
html[data-theme="easy-read"] *::after { animation: none !important; transition: none !important; }
html[data-theme="easy-read"] .topbar,
html[data-theme="easy-read"] .card,
html[data-theme="easy-read"] .panel,
html[data-theme="easy-read"] .stat,
html[data-theme="easy-read"] .auth-card,
html[data-theme="easy-read"] .stepper,
html[data-theme="easy-read"] .step-controls { backdrop-filter: none; box-shadow: none; }
html[data-theme="easy-read"] .auth-logo { filter: none; }
html[data-theme="easy-read"] a { text-decoration: underline; text-underline-offset: 0.18em; }
html[data-theme="easy-read"] a.brand,
html[data-theme="easy-read"] a.btn { text-decoration: none; }
html[data-theme="easy-read"] h1,
html[data-theme="easy-read"] h2,
html[data-theme="easy-read"] h3 { letter-spacing: normal; line-height: 1.3; }
html[data-theme="easy-read"] h2 { font-size: 1.2rem; }
html[data-theme="easy-read"] h3 { font-size: 1.1rem; }
html[data-theme="easy-read"] :is(label, .hint, .kicker, .badge, .stat span, .kv dt, .notice-meta, .auth-org, .auth-card h1, .auth-links a, .site-foot, .step, .step b, .who, th, .account-line small, .pick small, .copy-row input, .stamp-line, .nav-link, .theme-hint, .theme-status) {
  font-size: 0.95rem;
  letter-spacing: normal;
}
html[data-theme="easy-read"] :is(input, select, textarea) { font-size: 1rem; }
html[data-theme="easy-read"] :is(input, textarea)::placeholder { opacity: 1; }
html[data-theme="easy-read"] :is(button, .btn, .nav-link, .nav-toggle, .check-row, .check, .auth-links a, .site-foot a) { min-height: 44px; }
html[data-theme="easy-read"] :is(.nav-link, .auth-links a, .site-foot a) { display: inline-flex; align-items: center; }
html[data-theme="easy-read"] .nav-drawer a { display: block; }
html[data-theme="easy-read"] .site-foot a { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
html[data-theme="easy-read"] button.ghost { border-color: var(--line); }
.auth > * { min-width: 0; }
html[data-theme="easy-read"] :is(.check-row input, .check input, .pick input) { width: 1.5rem; height: 1.5rem; }
html[data-theme="easy-read"] :is(button, .btn):hover { filter: none; text-decoration: underline; }
html[data-theme="easy-read"] button:disabled { opacity: 1; background: var(--secondary-bg); color: var(--muted); border: 1px solid var(--line); }
html[data-theme="easy-read"] .skip-link,
html[data-theme="easy-read"] .nav-badge { color: #ffffff; }
html[data-theme="easy-read"] .nav-badge { font-size: 0.85rem; min-width: 1.5rem; height: 1.5rem; }
html[data-theme="easy-read"] :is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
html[data-theme="easy-read"] .step span { white-space: normal; overflow-wrap: anywhere; }
html[data-theme="easy-read"] .table-wrap td { overflow-wrap: anywhere; }
html[data-theme="easy-read"] .table-wrap td::before { font-size: 0.95rem; letter-spacing: normal; }
@media (max-width: 400px) {
  html[data-theme="easy-read"] .table-wrap td { grid-template-columns: 1fr; gap: 0.1rem; padding-block: 0.5rem; }
}
@media (forced-colors: active) {
  .theme-track { border-color: ButtonText; }
  .theme-track::before { background: ButtonText; }
  .theme-switch input:checked + .theme-track { background: Highlight; border-color: Highlight; }
  .theme-switch input:checked + .theme-track::before { background: HighlightText; }
  .theme-switch input:focus-visible + .theme-track { outline-color: Highlight; }
}

