/* Shep console: mobile-first, light/dark. The brand (docs/specs/shep-rebrand.md, PR 2;
   approved 2026-11-20): Pasture green on cream, Ink text, Fraunces 600 headings,
   Atkinson Hyperlegible text, 16px surface corners. On/off, ok and warning colors keep
   their meanings (warning is Clay: no alarm reds). Every text pair passes WCAG AA. */
:root {
  --bg: #fbf6ec; --surface: #ffffff; --text: #1f2421; --muted: #55605a; --border: #e6dcc8;
  --accent: #3d6b47; --accent-text: #ffffff; --ok: #3d6b47; --warn: #a4502a; --off: #9c988d; --on: #3d8b55;
  --sage: #e6efe1; --oat: #efe5d2; --cream: #fbf6ec; --fish: #8b968c;
  --radius: 16px; --gap: 16px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141915; --surface: #1d231f; --text: #f3efe6; --muted: #b9c0b6; --border: #323a34;
    --accent: #a8c69f; --accent-text: #1f2421; --ok: #a8c69f; --warn: #e8a37e; --off: #6e756f; --on: #7fc48a;
    --sage: #263028; --oat: #2b302b; --fish: #6f7a70;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.45; }
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 1.6rem; margin: 0 0 var(--gap); }
h2 { font-size: 1.15rem; margin: 0 0 8px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
/* The logo: Original B's head and the outlined Fraunces wordmark (Meadow in dark mode). */
.logo-mark { display: inline-flex; align-items: center; gap: 8px; line-height: 0; }
.logo-head { height: 34px; width: auto; }
.logo-word { height: 34px; width: auto; }
.logo-word-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-word-light { display: none; }
  .logo-word-dark { display: inline; }
  .logo-head { background: var(--cream); border-radius: 10px; padding: 2px 3px; }
}
/* The fish, alone in the corner, under the messages. */
.fish { position: fixed; right: 14px; bottom: 10px; color: var(--fish); pointer-events: none; z-index: 0; }
.brand-mark { color: var(--accent); }
.container { max-width: 720px; margin: 0 auto; padding: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--gap); margin-bottom: var(--gap); }
.card.narrow { max-width: 480px; }
.stack { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-weight: 600; }
input[type=text], input[type=email], input[type=password] { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); width: 100%; }
.button, button, input[type=submit] { font: inherit; display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.button.primary, input[type=submit].primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.link-button { background: none; border: none; color: var(--muted); padding: 4px; }
.muted { color: var(--muted); }
.mono, .command, .code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.flash { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); }
.flash.alert { border-color: var(--warn); color: var(--warn); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: var(--gap); }
.page-head h1 { margin: 0; }
.device-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.device-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.device-main { display: grid; flex: 1; min-width: 0; }
.device-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; }
.dot.on { background: var(--on); box-shadow: 0 0 0 3px color-mix(in srgb, var(--on) 25%, transparent); }
.dot.off { background: var(--off); }
.verdict { font-size: .9rem; white-space: nowrap; }
.verdict.protected { color: var(--ok); }
.verdict.attention { color: var(--warn); }
.verdict.unknown { color: var(--muted); }
.verdict.detect { color: var(--muted); }
.verdict.big { font-size: 1.25rem; font-weight: 700; margin: 8px 0; white-space: normal; }
.attention-reason { display: block; color: var(--warn); font-size: .9rem; }
.status-line { display: flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap; }
.checks { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 8px 0 0; }
.details dt { font-weight: 600; margin-top: 8px; }
.details dd { margin: 0; overflow-wrap: anywhere; color: var(--muted); }
summary { cursor: pointer; color: var(--accent); margin-top: 8px; }
.code { font-size: 2rem; letter-spacing: .12em; font-weight: 700; margin: 4px 0 12px; }
.command { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; }
.ping { margin: 12px 0 0; }
.empty p { margin: 0; }
.nav { display: flex; align-items: center; gap: 14px; }
.nav form { margin: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-weight: 700; }
.hint { margin: -6px 0 0; font-size: .9rem; }
input[type=number], select { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); width: 100%; }
fieldset.choices { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px 12px; margin: 0; display: grid; gap: 8px; }
fieldset.choices legend { font-weight: 600; padding: 0 4px; }
label.choice { display: flex; align-items: center; gap: 10px; font-weight: 400; }
label.choice input { width: 20px; height: 20px; }
.inline-form { display: grid; gap: 8px; margin-top: 8px; }
.button.danger { color: var(--warn); border-color: var(--warn); }
.flash.notice { border-color: var(--ok); color: var(--ok); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-nav { display: flex; justify-content: space-between; gap: 12px; }
.sync-line { margin: -8px 0 var(--gap); }
.sync-applied { color: var(--ok); }
.sync-pending { color: var(--muted); }
.sync-attention { color: var(--warn); }
.counts p { margin: 4px 0; }
/* Function rows on the child page: name on the left, Off · On · Scheduled on the right
   (wrapping under the name on narrow phones). */
.fn-list { display: grid; list-style: none; padding: 0; margin: 0; }
.fn-list > .fn-row + .fn-row { border-top: 1px solid var(--border); }
.fn-list.unavailable { opacity: .55; }
.fn-row { display: grid; gap: 8px; padding: 12px 0; }
.fn-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.fn-main { display: grid; flex: 1 1 140px; min-width: 0; }
.fn-name { font-weight: 600; overflow-wrap: anywhere; }
.fn-detail { font-size: .85rem; }
.fn-status { margin: 0; font-size: .85rem; }
.switch-form { margin: 0; }
/* Segmented switch: a radio group that looks like one pill. */
.switch { display: inline-flex; margin: 0; padding: 2px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.switch label { position: relative; display: block; font-weight: 500; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch span { display: block; padding: 6px 12px; border-radius: 999px; font-size: .9rem; color: var(--muted); }
.switch input:checked + span { background: var(--accent); color: var(--accent-text); }
.switch input[value=off]:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.switch input:focus-visible + span, .day input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.windows { display: grid; gap: 8px; padding: 12px; border-radius: 8px; background: var(--bg); }
.windows .hint { margin: 0; }
.window { display: grid; gap: 8px; margin: 0; padding: 8px; border: 1px solid var(--border); border-radius: 8px; }
.days { display: flex; flex-wrap: wrap; gap: 4px; }
.day { position: relative; display: block; font-weight: 500; }
.day input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.day span { display: block; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: .85rem; }
.day input:checked + span { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.times { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.times label { display: grid; gap: 4px; flex: 1 1 8rem; min-width: 0; font-weight: 500; }
/* On a phone the two fields stack and stay inside the card, so the picker they open
   does too (gate 6: it ran off the screen, hiding its Set button). */
input[type=time] { box-sizing: border-box; width: 100%; max-width: 12rem; min-width: 0; font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.windows, .window { min-width: 0; max-width: 100%; box-sizing: border-box; }
.window-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* The Explanation under each switch. */
.explain { margin: 0; }
.explain summary { margin-top: 0; font-size: 0.9rem; }
.explain p { margin: 8px 0 0; color: var(--muted); overflow-wrap: anywhere; }
/* Off hours (step 6): the status line, the windows, Give more time. */
.off-status { margin: 0; font-weight: 600; }
.off-windows { list-style: none; padding: 0; margin: 4px 0 0; }
/* Each saved time with Change and Remove; Add off hours under them (small fixes). */
.off-window { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.off-window span { margin-right: 4px; }
.inline-action { display: inline; margin: 0; }
.off-add { margin: 12px 0 0; }
.off-hours .windows { margin-top: 12px; }
.off-hours details { margin-top: 12px; }
.inventory li { overflow-wrap: anywhere; }
/* Websites (steps 4, 4b): the add form, row actions, companions and suggestions; requests. */
.add-site { display: grid; gap: 8px; margin: 8px 0 4px; }
.add-row { display: flex; gap: 8px; }
.add-row input { flex: 1; min-width: 0; }
.row-actions { display: flex; align-items: center; gap: 4px; }
.row-actions form { margin: 0; }
.link-button.remove { font-size: 1rem; padding: 6px 8px; }
.hosts ul { margin: 8px 0 0; }
.host-list { list-style: none; padding: 0; display: grid; gap: 4px; }
.host-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.host-list form { margin: 0; }
/* Sites she opened during open web: site, when, and its two buttons in columns. */
.visit-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; }
.companions { margin: 6px 0 0; }
/* The YouTube panel under its row (step 5): mode, features, approvals. */
.adapter { display: grid; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--bg); }
.adapter-row { padding: 2px 0; }
.adapter-items a { font-weight: 600; }
.companions > form { margin-top: 8px; }
.essentials { margin: 12px 0 0; }
.request-list { display: grid; }
.request-list > .request + .request { border-top: 1px solid var(--border); }
.request { display: grid; gap: 4px; padding: 12px 0; }
.request p { margin: 0; }
.request-url { font-size: .85rem; overflow-wrap: anywhere; }
.request-note { font-style: italic; }
.request-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.request-answer { margin: 0; }
/* Requests, both ways (docs/specs/ruby-feedback-2.md, PR 1) */
.request-facts { display: grid; gap: 2px; margin: 4px 0 0; }
.request-facts > div { display: flex; gap: 8px; }
.request-facts dt { min-width: 5.5em; color: var(--muted); }
.request-facts dd { margin: 0; overflow-wrap: anywhere; }
.request-effects { margin: 4px 0 0; padding-left: 1.2em; font-size: .9rem; }
.request-answer-form { display: grid; gap: 6px; margin: 4px 0 0; }
.request-parent-note-field { display: grid; gap: 4px; font-size: .9rem; }
.request-parent-note-field textarea { width: 100%; max-width: 36rem; font: inherit; }
.request-parent-note { font-style: italic; }
.badge { display: inline-block; min-width: 1.4em; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: .8rem; font-weight: 700; text-align: center; }

/* Alerts (step 7) */
.card.alerts { border-color: var(--warn); }
.alert-list { list-style: none; padding: 0; margin: 0; }
.alert-item { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.alert-item:first-child { border-top: 0; }
.alert-item form { display: inline; }
.alert-text { font-weight: 600; }

/* Step 8: kept secrets, lab mode, the safety net (docs/specs/provisioning.md). */
.banner.lab { background: #fff6d6; border: 1px solid var(--warn); border-radius: var(--radius); padding: var(--gap); margin-bottom: var(--gap); }
/* Removing a laptop and leaving Shep (docs/specs/leaving.md §3). */
.banner.leaving { background: #fff1e6; border: 1px solid var(--warn); border-radius: var(--radius); padding: var(--gap); margin-bottom: var(--gap); }
/* Phone protections (docs/specs/phone-protections.md): a powerful action waiting, and changes held for a parent's OK. */
.banner.warn { background: #fff1e6; border: 1px solid var(--warn); border-radius: var(--radius); padding: var(--gap); margin-bottom: var(--gap); }
.banner.warn p { margin: 0 0 8px; }
.banner.warn ul { margin: 0 0 8px; padding-left: 1.2em; }
.banner.warn form { margin: 0; }
.leaving-banner { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); flex-wrap: wrap; margin-bottom: var(--gap); }
.leaving-banner form { margin: 0; }
label.check { display: flex; align-items: center; gap: 8px; }
.secret-value { font-size: 1.6rem; letter-spacing: 0.08em; word-break: break-all; }
.secret-value span + span { margin-left: 0.6em; }
.findings li { margin-bottom: 0.5rem; }
form.inline { display: inline-flex; gap: 0.5rem; align-items: center; }
.button.danger { border-color: var(--warn); }
.error { color: var(--warn); }

/* Recent changes and Connect your assistant (docs/specs/cloud-mcp-auto-releases.md). */
.change-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.change-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: .95rem; }
.connector-url { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* One short address, the same for every family (docs/specs/one-connector-address.md). */
.connector-url input { flex: 1; min-width: 14rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.consent ul { margin: 4px 0 12px; }
.consent-actions { display: flex; gap: 8px; }
/* Each laptop's versions on the Releases page (docs/specs/every-laptop-the-same.md §4). */
.versions-wrap { overflow-x: auto; }
.versions { border-collapse: collapse; width: 100%; font-size: .9rem; }
.versions th, .versions td { text-align: left; padding: 4px 8px 4px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.versions .behind { color: var(--warn); }
/* The Desktop card's line per laptop, and a program's install status (§1, §3). */
.desktop-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.desktop-line .differs { color: var(--warn); }
.program-status { margin: -4px 0 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.program-add { display: grid; gap: 12px; }

/* Console UI cleanup (docs/specs/console-ui-cleanup.md): every section and item is one line
   with a summary that opens; nothing runs off a phone. */
.topbar { flex-wrap: wrap; gap: 6px 16px; }
.nav { flex-wrap: wrap; gap: 6px 14px; }
@media (max-width: 600px) {
  .topbar { padding: 10px 16px 8px; }
  .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
}
main.container { overflow-wrap: anywhere; }
details.section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
details.section > summary, details.item-more > summary { list-style: none; display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text); }
details.section > summary::-webkit-details-marker, details.item-more > summary::-webkit-details-marker { display: none; }
details.section > summary { padding: 14px 16px; }
details.section > summary::before, details.item-more > summary::before { content: "›"; flex: none; width: .7em; color: var(--muted); font-size: 1.3rem; line-height: 1; transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
.s-title { flex: none; font-weight: 650; font-size: 1.05rem; white-space: nowrap; }
.s-sum { flex: 1 1 0; min-width: 0; margin-left: auto; text-align: right; color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-sum.warn { color: var(--warn); }
.section-body { padding: 0 16px 14px; }
.section-body > .hint:first-child, .section-body > .lead { margin: 0 0 8px; }
.section .card { border: 0; padding: 0; margin: 0; background: none; }
.item { border-top: 1px solid var(--border); min-width: 0; }
.section-body > .item:first-child, .items > .item:first-child { border-top: 0; }
details.item-more > summary { padding: 10px 0; }
.i-main { display: grid; flex: 1 1 auto; min-width: 0; }
.i-name { font-weight: 600; overflow-wrap: break-word; }
.i-sub { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.i-right { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; cursor: default; }
.i-right form { margin: 0; }
.item-body { display: grid; gap: 8px; padding: 0 0 12px 20px; min-width: 0; }
.item-body:empty { display: none; }
.item-body > p, .item-body .explain p { margin: 0; }
.item > .fn-status, .item > .flash, .item > .windows { margin: 0 0 10px; }
.chip { font-size: .8rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.chip.lab { border-color: var(--warn); color: var(--warn); }
.chip.everyone { border-color: var(--ok); color: var(--ok); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd.behind { color: var(--warn); }
.more-list > summary { margin: 10px 0 0; }
.always { margin-bottom: 10px; }
@media (max-width: 420px) {
  .switch span { padding: 6px 9px; }
  .item-body { padding-left: 4px; }
}
/* Notices and alerts at the bottom of the screen. */
.toasts { position: fixed; left: 0; right: 0; bottom: 16px; z-index: 10; display: grid; gap: 8px; justify-items: center; padding: 0 16px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 8px; max-width: 688px; width: 100%; margin: 0; background: var(--surface); box-shadow: 0 4px 16px rgb(0 0 0 / .15); }
.toast span { flex: 1; }
.toast .link-button { color: inherit; }
.i-sub .behind, .behind { color: var(--warn); }
.hold-form { flex: 1 1 14rem; }
.hold-form input[type=text] { flex: 1; min-width: 0; }
form.inline select { width: auto; max-width: 100%; }
.kv .mono { font-size: .9em; }
/* The operator's Site page (docs/specs/public-site.md decision 5). */
.inquiry-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.inquiry-list p { margin: 0 0 6px; }
.counts { border-collapse: collapse; width: 100%; margin-bottom: 12px; }
.counts th, .counts td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.counts td:last-child, .counts th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* Shep in the console (docs/specs/shep-rebrand.md, PR 2): restrained, one pose per state.
   Approved sizes: 118px for a waiting or answered request, the lying pose at most
   288 x 146. His black is the brand's Ink, so he always sits on a light plate: in dark
   mode, a cream one. */
.shep { display: inline-block; line-height: 0; flex: none; }
.shep img { display: block; width: auto; max-width: 100%; }
.shep-small img { height: 118px; }
.shep-wide img { width: 288px; max-height: 146px; height: auto; object-fit: contain; }
.shep-scene { display: grid; justify-items: center; gap: 8px; padding: 12px 0 4px; text-align: center; }
.shep-scene p { margin: 0; }
.shep-scene-inline { padding: 4px 0 8px; }
.request-card .shep-scene-inline { justify-items: start; }
@media (prefers-color-scheme: dark) {
  .shep { background: var(--cream); border-radius: var(--radius); padding: 10px 14px; }
}
@media (max-width: 420px) {
  .shep-small img { height: 96px; }
  .shep-wide img { width: 240px; }
}

/* The plan and card page (docs/specs/production.md §4.1): Shep's own look around Stripe's fields. */
.billing-card { max-width: 560px; margin: 0 auto; }
.billing-card .lead { font-size: 1.1rem; }
.billing-card .plans { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.billing-card .plans legend { font-family: var(--display); font-size: 1.15rem; margin-bottom: 6px; }
.billing-card .plan { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.billing-card .plan:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.billing-card .plan input { accent-color: var(--accent); width: 20px; height: 20px; }
.billing-card .stripe-field { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-height: 48px; }
.billing-card .code summary { display: inline; }
.billing-card .small { font-size: 0.9rem; }
.billing-card button[type=submit] { justify-self: start; min-width: 200px; }
.card.next-step { border-color: var(--accent); }
.card.next-step h2 { margin-top: 0; }
.steps { padding-left: 1.4rem; display: grid; gap: 12px; }
.steps li::marker { font-weight: 700; color: var(--accent); }
kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; padding: 1px 6px; border: 1px solid var(--border);
  border-bottom-width: 2px; border-radius: 6px; background: var(--surface); }
.billing-card .field-head { font-family: var(--display); font-size: 1.15rem; margin: 8px 0 -4px; }
.billing-due { display: grid; gap: 10px; justify-items: start; margin-bottom: 8px; }
.billing-due .flash { margin: 0; }
.plain-list { margin: 0; padding-left: 1.2rem; }
.receipts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.receipts li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: baseline; }
.receipts .amount { font-variant-numeric: tabular-nums; }
#billing .stack > input[type=submit] { justify-self: start; }
.row-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.warn { color: var(--warn); border-color: var(--warn); }

/* Settings rows (Don, part 1a's local test): words on the left, the switch on the right,
   notes with room to breathe. */
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.setting-row.setting-gap { margin-top: 18px; }
.setting-text { display: grid; gap: 2px; min-width: 0; }
.setting-row .switch-form { flex: none; }
.note { margin: 8px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.invite-form { display: grid; gap: 6px; margin-top: 14px; }
.invite-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.invite-row input[type=email] { flex: 1; min-width: 14rem; margin: 0; }
.operator-links { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.connector-url { margin-top: 4px; }
.referral { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--sage); display: grid; gap: 4px; }
.referral p { margin: 0; }
.referral-title { font-family: var(--display); font-size: 1.15rem; }
.referral .more-list > summary { margin-top: 6px; }
.billing-card .price-line { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }

/* The operator's pages on mgmt (docs/specs/mgmt-site.md): another colour, and "Operator"
   beside the logo, so they're never mistaken for a family's. */
.operator-site .topbar { border-top: 5px solid #2F3A4A; }
.operator-mark { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #2F3A4A; color: #F9F1E8; vertical-align: middle; }
.operator-home { display: grid; gap: 10px; }
