/* ============================================================
   MemberCairn shared components. Loaded after tokens.css so all
   custom properties resolve. Component primitives only —
   page-specific styles stay in their template.
   ============================================================ */

/* ----- Muted helper text ----- */
/* Captions / hints / "optional" markers. Was relied on by ~50 call sites across
   admin templates but only ever defined page-scoped, so most rendered at full
   text color. Defining it once here makes the intended grey appear everywhere.
   More-specific scoped variants (.stat-tile.muted, .member-line.muted) still win. */
.muted { color: var(--color-text-secondary); }
/* A short phrase that must stay one token in a table cell ("0 of 2"). */
.nowrap { white-space: nowrap; }
/* A muted second line under a table cell's name (an address that tells two
   same-named families apart); breaks anywhere so it never widens the column. */
.meta-line { display: block; overflow-wrap: anywhere; }

/* ----- Placeholder ink ----- */
/* There was no ::placeholder rule anywhere the admin loads, so every field hint
   took the browser default over a white card: Firefox's darkgray measures
   2.35:1 (fails AA) and modern Chrome's rgba(0,0,0,.54) reaches only 4.61:1 —
   failing on one major engine and unstable across the rest. The token clears
   4.5:1 on all three backgrounds an admin input actually renders on (see
   tokens.css) while staying lighter than real entered text.
   Color plus an opacity reset, and nothing else: modern Firefox implements its
   default as color-mix() on currentColor, which `color` overrides outright, but
   Firefox before Sept 2024 used a literal opacity: 0.54 that would composite
   this token down to 2.28:1 and quietly undo the fix. `opacity: 1` costs
   nothing on every current engine and closes that. No font-style, no second
   signal. The public site is unaffected (it loads website.css, not this file,
   and scopes its own .cs-form rule). */
input::placeholder,
textarea::placeholder {
  color: var(--color-text-placeholder);
  opacity: 1;
}

/* ----- [hidden] always wins ----- */
/* Any author display rule (even a bare class) outranks the UA stylesheet's
   [hidden] { display: none }, so el.hidden = true was a silent no-op on most
   styled elements — hand-patched 17 times across 10 files (and once shipped as
   a live bug: the inbox chip whose dismiss did nothing) before this rule.
   !important so no component display can defeat the attribute. To show an
   element, remove the attribute (el.hidden = false) — never out-specific this.
   Deliberate-reveal patterns use :not([hidden]) and stay compatible. */
[hidden] { display: none !important; }

/* ----- Screen-reader-only utility ----- */
/* Visually hidden but available to assistive tech — for skip links, field
   labels, and aria-live announcement regions. Shared so a11y work doesn't
   re-define it per page (was previously only in page-scoped CSS). */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* ----- Cards ----- */
.card {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

/* Explain-before-the-ask info box — used to explain a concept (what Stripe
   is, how a flow works) before asking for anything. Deliberately white with
   only a hairline border, NOT --color-bg-tint: a tint would match a nearby
   flow/step strip and read as another tinted step rather than a standalone
   explainer. */
/* A <details class="callout"> summary is a control: pointer cursor and the
   24px floor (the money "New to Stripe?" fold measured 22px, no cursor). */
details.callout > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 0;
}
.callout {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: 14px;
  color: var(--color-text-secondary);
}
.callout b, .callout strong { color: var(--color-text-primary); }

/* Disclosure summary — the collapsed <summary> for a bottom-of-page
   "Inactive X (N)" fold (roster_list.html's "Inactive members",
   parents_list.html's "Inactive adults"). Promoted from two identical
   inline `style=` blocks. components.css can't reach the --text-muted /
   --border aliases (admin/_base.html's :root remap only), so this uses
   --color-text-secondary / --color-border directly, same as .muted above. */
.disclosure-summary {
  cursor: pointer;
  padding: 12px 14px;
  background: var(--color-bg-tint);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* RSVP tally disclosure — a compact one-line summary that opens a bulleted
   list of the families coming, each with the heads it brings. TWO hosts, and
   they show deliberately different things:
     admin/_rsvp_tally.html  — staff. "N of M spots filled · N yes · N
       awaiting", on the events list row and the event editor rail beside
       "See RSVPs". The full picture, declines included.
     rsvp/_summary_readonly.html — the family RSVP page (/e/<token>), which
       rsvp/_base.html loads this file for. Attending families only, never a
       decliner, never a person's name.
   Only the disclosure MECHANICS live here: each host passes its own text
   class to the <details> wrapper (.lead-row-note / .ev-rail-rsvps-tally /
   .rsvp-muted), so the line keeps the size and colour of the surface it sits
   in and the list inherits them. Marker idiom matches .cd-upsell (a ▸ that
   rotates open, native marker suppressed). */
.rsvp-tally { min-width: 0; }
/* Deliberately NOT a flex row: the line is a sentence that wraps to two or
   three lines on a phone, and as a flex item the marker became its own row
   above the text instead of sitting in front of the first word. An
   inline-block ::before keeps it on the first line at every width. */
.rsvp-tally > .rsvp-tally-line {
  cursor: pointer;
  list-style: none;
  /* The line is a sentence of two clauses; without this the 375px wrap
     orphaned the last word onto its own row ("...coming so" / "far"). */
  text-wrap: pretty;
}
.rsvp-tally > .rsvp-tally-line::-webkit-details-marker { display: none; }
.rsvp-tally > .rsvp-tally-line::before {
  content: "\25B8";
  display: inline-block;
  width: 1em;
  font-size: 0.85em;
  line-height: 1;
  transition: transform 0.15s ease;
}
/* The marker is decoration, but a generated ::before joins the accessible
   name, so a screen reader read the summary as "black right-pointing small
   triangle, 11 of 16 spots filled...". The `/ ""` alt-text form empties it
   for assistive tech while leaving the glyph on screen. Guarded, because an
   engine that does not parse the alt syntax drops the whole declaration and
   would lose the marker entirely. */
@supports (content: "a" / "b") {
  .rsvp-tally > .rsvp-tally-line::before { content: "\25B8" / ""; }
}
.rsvp-tally[open] > .rsvp-tally-line::before { transform: rotate(90deg); }
.rsvp-tally > .rsvp-tally-line:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.rsvp-tally-families {
  margin: var(--space-2) 0 0;
  padding-left: var(--space-5);
}
.rsvp-tally-families li { padding: 1px 0; }
@media (prefers-reduced-motion: reduce) {
  .rsvp-tally > .rsvp-tally-line::before { transition: none; }
}

/* .card modifiers — a left accent stripe that tells the two nudge shapes
   apart at a glance. Amber (attention) = a gate: something you must do
   before you can proceed. Brand (pine) = an opportunity nudge: a suggestion,
   nothing is blocked. */
.card--nudge-attention { border-left: 3px solid var(--color-attention-text); }
.card--nudge-brand { border-left: 3px solid var(--brand); }

/* Card-stack spacing utility — replaces repeated `style="margin-top: 12px;"`
   on a run of sibling .card blocks (e.g. leads_list.html's season panel).
   Wrap the stack in `.card-stack` instead of styling each card. */
.card-stack > * + * { margin-top: var(--space-3); }

/* Flush card — zeroes the default .card padding so content (usually a
   table) can bleed to the card's own rounded edges instead of sitting in
   from them. Replaces repeated `style="padding: 0;"` (parents_list.html). */
.card--flush { padding: 0; }

/* Table-scroll — horizontal-scroll wrapper for a table too wide for a
   phone-width card, with a right-edge fade cueing "there's more to see"
   at phone widths. Mirrors the mask-image idiom in _web_address_card.html's
   `.cd-card .cd-record-scroll` rule (website.html's own bare
   `.cd-record-scroll { overflow-x: auto; min-width: 0; }` rule is a
   candidate to fold onto this primitive — left alone here since another
   pass owns website.html). Do not put a [data-tip] trigger inside a
   .table-scroll: mask-image clips the tooltip bubble along with everything
   else near the masked edge, even though the tooltip's own
   overflow-visible rule (above) lifts ordinary overflow clipping. */
.table-scroll { overflow-x: auto; min-width: 0; position: relative; }
@media (max-width: 640px) {
  .table-scroll {
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 20px), transparent 100%);
            mask-image: linear-gradient(to right, black calc(100% - 20px), transparent 100%);
  }
}

/* Stat tile — a big display-font number over a small muted label. Promoted
   from money_collection_detail.html's page-scoped .m-tile/.m-num/.m-label
   (the grid that lays tiles out stays page-local; only the tile's own look
   is shared). Note: components.css can't reach the --text-muted alias (it
   only exists inside admin/_base.html's remap block), so the label uses
   --color-text-secondary directly, same as .muted above. */
.stat-tile {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--color-cairn-dark);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}
/* Optional actionable sub-line under a stat-num/stat-label pair, e.g. "3
   waiting for review" linking straight to the queue behind the count. Most
   .stat-tile call sites render fine without it. */
.stat-sub {
  display: inline-block;
  margin-top: 4px;
  /* 24px tap floor for an 11px link: measured 99x21 with 2px padding. */
  padding: 5px 0;
  min-height: 24px;
  font-size: var(--text-xs);
  font-weight: 600;
}

/* File chip — downloadable-file chip (icon + name + size). Promoted from the
   inbox reader's .rd-attach (agent/templates_html/admin/_inbox_reading.html);
   next consumers: welcome attachments, import receipts. Markup shape:
     <a class="file-chip" href="..." download="...">
       <span class="clip" aria-hidden="true">...</span>
       <span class="name">filename</span>
       <span class="meta">12 KB</span>
     </a> */
.file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-primary);
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}
.file-chip:hover { border-color: var(--brand); }
.file-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.file-chip .clip { font-size: 16px; line-height: 1; flex: 0 0 auto; }
.file-chip .name { font-weight: 600; font-size: 13px; word-break: break-word; }
.file-chip .meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-secondary);
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Panel empty/error line — a muted one-liner inside a dashboard panel
   ("nothing to show", "couldn't load this"), used across admin/home.html's
   panels (16 call sites) and elsewhere a panel needs a quiet placeholder
   instead of reading as new content. */
.panel-empty {
  color: var(--color-text-secondary);
  font-size: 13px;
  padding: 10px 0;
  margin: 0;
}
/* An empty state's one action link keeps the accent so it reads as the way
   out, not more muted placeholder text (primitive decision, 2026-08-17). */
.panel-empty a { color: var(--color-accent); }
/* Inside an overflow menu (the "Insert document" empty state), the primitive's
   dashboard-card padding would sit the sentence flush against the panel edge,
   out of line with the 12px gutter every menu item and .menu-hint uses. Same
   ink and size, menu gutter. */
.actions-menu-panel .panel-empty { padding: 2px 12px 6px; }

/* ----- Empty states ----- */
/* Section-level empty state: the dashed, centered "nothing here yet" box.
   Promoted from admin/_base.html (empty-state census, 2026-08-08).
   Quiet in-panel placeholders use .panel-empty above instead. */
.empty {
  color: var(--color-text-secondary);
  font-size: 14px;
  padding: 14px;
  background: var(--color-bg-tint);
  border: 1px dashed var(--color-cairn-mid);
  border-radius: var(--radius-sm);
  text-align: center;
}
/* Rich variant breathes: the section-label + headline first-run box needs
   the room its hand-rolled ancestors had. */
.empty:has(.empty-headline) {
  padding: 32px 20px;
}
/* Rich first-run variant: display-face headline above the body copy,
   extracted from leads_list.html's local dialect. */
.empty .empty-headline {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-cairn-dark);
  margin-bottom: 10px;
}

/* ----- Buttons ----- */
.btn-primary {
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary:hover {
  background: var(--color-accent-strong);
}
.btn-primary:active {
  background: var(--color-accent-strong);
  transform: translateY(1px);
}
.btn-primary:focus-visible {
  outline: 2px solid transparent; outline-offset: 2px; /* painted by forced-colors mode */
  box-shadow: 0 0 0 3px var(--focus-ring-color);
}
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.btn-secondary:hover {
  background: var(--color-bg-tint);
  border-color: var(--color-accent-strong);
}
.btn-secondary:active {
  background: var(--color-bg-tint);
  transform: translateY(1px);
}
.btn-secondary:focus-visible {
  outline: 2px solid transparent; outline-offset: 2px; /* painted by forced-colors mode */
  box-shadow: 0 0 0 3px var(--focus-ring-color);
}
.btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-secondary { transition: none; }
  .btn-primary:active, .btn-secondary:active { transform: none; }
}
/* Quiet tertiary button — a hide/state-change or "+ add" action that must not
   out-shout .btn-secondary (e.g. Archive an inbox item, add an FAQ row, add an
   outside address). Neutral border + muted text; warms on hover. */
/* Quiet by default: the border only shows on hover/focus. With a resting
   border it carried the same box as .btn-secondary, so "Not now" beside
   "See plans" read as two equal choices (ghost card review, 2026-09-08). */
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}
.btn-ghost:hover {
  background: var(--color-bg-tint);
  color: var(--color-text-primary);
  border-color: var(--color-cairn-mid);
}
.btn-ghost:focus-visible {
  outline: 2px solid transparent; outline-offset: 2px; /* painted by forced-colors mode */
  box-shadow: 0 0 0 3px var(--focus-ring-color);
}
.btn-ghost:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
/* Stacks with .btn-primary/.btn-secondary/.btn-ghost (e.g. class="btn-primary
   btn-sm"). Same padding/font-size those already use -- its real job is
   guaranteeing the 44px tap floor on a button that's visually secondary to
   its card (a paging control, an inline "Draft with AI" trigger) rather than
   shrinking it. Promoted here from a page-scoped copy in setup_interview.html
   (the only page that had ever defined it) after finding call sites on
   admin/profile.html silently had NO matching rule at all -- the class
   rendered but did nothing. */
.btn-sm { font-size: var(--text-sm); padding: var(--space-2) var(--space-4); min-height: 44px; }

/* Commit bar — a form's primary submit (plus an optional secondary link).
   `.commit-bar` alone is a plain flex row: no phone-width pinning. Add
   `.commit-bar--pinned` when the bar should PIN to the bottom of the screen
   on a phone so it's reachable without hunting to the fold -- the right
   call for a bar that's the one primary action on its page/panel, wrong for
   a bar that shares the viewport with another commit bar (two `position:
   fixed` bars at the same bottom edge stack and cover each other; only the
   later one in DOM order stays clickable -- roster_tools_joined.html's
   manual "Add a family" card and its batch commit bar are exactly this
   case, so only the batch bar (the page's primary action) pins; the manual
   bar stays a plain in-flow row).
   Promoted from three page-local copies: prospect_promote.html's
   .promote-commit, roster_tools_joined.html's .jt-commit-bar (rendered
   twice — the manual "Add a family" card and the batch commit bar), and
   roster_tools_notice_add.html's .na-commit-bar. Markup shape (start_controls
   is the shared macro in admin/_onboarding_start.html):
     <div class="card commit-bar commit-bar--pinned">
       {{ start_controls(...) }}
       <button type="submit" class="btn-primary">...</button>
       <a class="link-tap" href="...">...</a>
     </div>
   `.card` is optional — the joined tool's manual-add card renders the bar
   bare, inline with the rest of its own disclosure (and unpinned, per above).
   `form:has(.commit-bar--pinned)` reserves bottom padding at phone widths so
   the fixed bar never permanently covers the form's last field; the safe-area
   inset clears a notched device's home indicator. A form with more fields
   than the 170px default clears needs a page-local override with higher
   selector specificity — see roster_tools_notice_add.html's
   `.na-form:has(.commit-bar--pinned)`.
   `position: fixed`, not `sticky` (RT-17/U6 RULING, roster_tools_joined.html):
   `scripts/ux_layout_probe.js`'s reachability check measures the button's
   real on-screen position at scroll=0 — `sticky` only takes over once
   scrolling would otherwise carry the bar off past its own natural
   (in-flow) position, so on a list tall enough to need this bar at all,
   `sticky` still measures "below the fold" on first paint; `fixed`
   genuinely is on-screen immediately. An earlier plain-card (no pin) call
   was reverted for the same reason. */
.commit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }

@media (max-width: 640px) {
  .commit-bar--pinned {
    flex-direction: column; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    margin: 0; border-radius: 0;
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--shadow-bar-up);
  }
  .commit-bar--pinned button { width: 100%; }
  .commit-bar--pinned .link-tap { text-align: center; }
  form:has(.commit-bar--pinned) { padding-bottom: 170px; }
}

/* ----- Status pills -----
   Status pills carry a semantic color from the tokens below. For a neutral /
   pending / default / "off" state use --color-cold-bg + --color-cold-text (the
   warm grey `.pill-cold`/`.pill-neutral` pair). NEVER build a status pill from
   the muted/parchment pair (--color-bg-tint / --color-cairn-parchment +
   --color-text-muted / --color-cairn-clay) — at pill size that reads as an ugly
   brown on parchment (retired platform-wide 2026-07-22; the Front Door dropped
   its .fd-pill status pills entirely). Those tokens are for fills/hovers/help
   text, not status chips. */
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
}
.pill-needs-you { background: var(--color-needs-you-bg); color: var(--color-needs-you-text); }
.pill-confirmed { background: var(--color-confirmed-bg); color: var(--color-confirmed-text); }
.pill-reached   { background: var(--color-reached-bg);   color: var(--color-reached-text); }
.pill-new       { background: var(--color-new-bg);       color: var(--color-new-text); }
.pill-attention { background: var(--color-attention-bg); color: var(--color-attention-text); }
/* Same visual on purpose: "cold" is a lead-temperature state, "neutral" is a
   non-semantic chip. One rule so the two names can't drift apart silently. */
.pill-cold, .pill-neutral { background: var(--color-cold-bg); color: var(--color-cold-text); }
/* Money/state actively transiting (clearing, refunding, processing) --
   the cool neutral, distinct from .pill-cold's warm settled grey. */
.pill-in-motion { background: var(--color-in-motion-bg); color: var(--color-in-motion-text); }
/* Fixture marker, not a status -- flags a practice/test record (the PRACTICE
   badge). Built from the cold-bg family like pill-cold/pill-neutral, but the
   dashed border is deliberate: it has to read as "this isn't real data" at a
   glance, distinct from every solid-fill status pill above, so don't drop it
   chasing pill uniformity. Replaces `.b-test`'s raw hex (#ececec/#555) in
   _base.html -- that rule stays defined there until the badge mechanism
   retires (follow-on slice) but no markup renders it anymore. Border uses
   --color-cold-text, not --color-border -- the border-token alone measures
   under 1.5:1 against this pill's own fill, well short of the 3:1 UI-boundary
   floor; cold-text clears 5.6:1 (ux-reviewer, status-display sweep Task 5). */
.pill-test {
  background: var(--color-cold-bg);
  color: var(--color-cold-text);
  border: 1px dashed var(--color-cold-text);
  letter-spacing: 0.6px;
  font-weight: 600;
}

/* ----- Delivery badge (Delivered / Opened / Clicked / Bounced) -----
   One outbound email's fate, attributed by provider MessageID and rendered by
   the _engagement_badge.html macro. Was scoped to `.timeline .meta` inside
   _conversation.html; promoted here unscoped once the Member CRM's `.chat`
   bubbles needed the same badge and a second copy would have drifted.
   Deliberately NOT a `.pill`: pills are read-only STATUS on the record itself,
   this reports what happened to one message, and it sits inline in a dense
   metadata line at a smaller size than .pill's 11px/3px-9px. */
.eng-badge {
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  cursor: help;
}
.eng-badge.eng-delivered { background: var(--color-cold-bg); color: var(--text-muted); }
.eng-badge.eng-opened { background: var(--color-confirmed-bg); color: var(--ok-text); }
.eng-badge.eng-bounced { background: var(--danger-bg); color: var(--danger); }
/* Quietest of the four: "sent, nothing heard back yet" is the normal resting
   state of a fresh send, so it must not compete with a real signal. Rendered
   only where a blank cell would be ambiguous (the group-email table). */
.eng-badge.eng-sent { background: var(--color-bg-secondary); color: var(--text-muted); }
/* Every badge is a tab stop (the tooltip is its only explanation), and the
   group-email table adds dozens of them. Without this they draw Chrome's
   default blue 1px ring, which is neither ours nor visible on parchment.
   Matches .provenance-badge's ring. */
.eng-badge:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 999px;
}

/* "Feature" treatment for a scheduled Open House: a dark banded card used
   on the Recruiting Season settings panel and the Leads season card so the
   two surfaces read as the same feature. Was settings.html-only local CSS;
   promoted here once leads_list.html needed the same look and a page-scoped
   copy would have drifted. */
.oh-feature {
  /* ux-lint: allow hardcoded-hex - decorative gradient stop, no matching token */
  background: linear-gradient(135deg, var(--color-cairn-dark) 0%, #3a362b 100%);
  color: var(--color-cairn-parchment);
  border: none;
  padding: 22px 24px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
/* Paused variant: a cooler, duller gradient than the default (warm, live)
   card so an at-capacity pause reads as dormant at a glance. Was leads_list.html
   inline style="background:linear-gradient(...)"; promoted here so the
   hardcoded-hex pair lives beside its sibling gradient above instead of in a
   template. */
.oh-feature--paused {
  /* ux-lint: allow hardcoded-hex - decorative gradient stop, no matching token */
  background: linear-gradient(135deg, #5a4225 0%, #3d3a2d 100%);
}
.oh-feature::before {
  content: "";
  position: absolute;
  top: -30px; right: -50px;
  width: 200px; height: 140px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 140' fill='none' stroke='%23C4A882' stroke-width='0.75' opacity='0.35'><path d='M-20 80 Q40 50 100 70 T220 60'/><path d='M-20 100 Q40 70 100 90 T220 80'/><path d='M-20 120 Q40 90 100 110 T220 100'/></svg>");
  background-repeat: no-repeat;
  pointer-events: none;
}
.oh-feature > * { position: relative; z-index: 1; }
.oh-feature .section-label {
  color: var(--color-cairn-mid);
  margin: 0 0 6px;
}
.oh-feature .oh-date {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin: 0;
  /* The admin base h2 rule paints headings brand-deep with a gold accent
     bar; on this dark card that rendered the date near-invisible (2026-09-05).
     Take the card's parchment and drop the bar. */
  color: inherit;
}
.oh-feature .oh-date::before { content: none; }
.oh-feature .oh-where {
  margin: 8px 0 0;
  color: rgba(245, 237, 216, 0.78);
  font-size: 14px;
}
/* Read-only status pill, dark-card variant: same shape as the house .pill
   (pill radius, body font, sentence case) with this card's own tint instead
   of a status color -- there's no semantic status family for "an Open House
   detail on a dark card", just its own quiet chip. */
.oh-feature .oh-status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(245, 237, 216, 0.12);
  color: var(--color-cairn-parchment);
  margin-left: 6px;
  vertical-align: 4px;
}
.oh-feature .oh-cta {
  margin: 14px 0 0;
}
/* Phone width: the 28px display headline ("Thursday, September 10 · 6:00 PM"
   plus the status pill) clipped inside the card's overflow:hidden at 375px
   (ux_pass 2026-09-05). Step the headline down and drop the pill to its own
   line so the date and time wrap instead of being cut off. */
@media (max-width: 480px) {
  /* The decorative swoosh sits 50px past the right edge on wide screens;
     on a phone that alone reads as clipped content to the layout probe. */
  .oh-feature::before { right: 0; }
  /* The headline is a flex row (shared h2 rule), so the pill is a flex item
     that rides off the right edge unless the row may wrap. */
  .oh-feature .oh-date { font-size: 22px; flex-wrap: wrap; row-gap: 6px; }
  .oh-feature .oh-status-pill {
    flex: 0 0 auto;
    margin: 0;
    vertical-align: baseline;
  }
}
/* .btn-secondary's shape (border-radius/padding/text-sm/weight-500), mirrored
   rather than reused via class: this card is a dark surface, so the accent
   border/text swap for the parchment tint the rest of the card already uses. */
.oh-feature .oh-cta a {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(245, 237, 216, 0.14);
  color: var(--color-cairn-parchment);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid rgba(245, 237, 216, 0.35);
  transition: background .15s;
}
.oh-feature .oh-cta a:hover { background: rgba(245, 237, 216, 0.22); }

/* Chip — bordered neutral tag/filter, usually tappable. Filled .pill-*
   is for status; a chip is a thing you tap (filter, variant nav, tag).
   Active state fills pine. Decided 2026-08-08 (rendered comps). */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  min-height: 24px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--color-text-secondary);
  /* bg-primary (white) measured 1.00:1 against a white card -- invisible
     fill, border-only. bg-tint (one shade darker than parchment) reads on
     both the white card AND the parchment page background (final review
     wave). Hover keeps the same fill and leans on the border-color change
     for its cue. */
  background: var(--color-bg-tint);
  text-decoration: none;
}
.chip:hover { border-color: var(--color-cairn-mid); background: var(--color-bg-tint); }
.chip:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 3px var(--focus-ring-color); }
.chip--active,
.chip--active:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-cairn-parchment); }
@media (max-width: 600px) { .chip { min-height: 44px; } }

/* Native file pickers render a ~21px control app-wide (logo, photos, gallery,
   documents, receipts); on a phone give the whole control a 44px box so the
   "Choose file" button is a real tap target. */
@media (max-width: 600px) {
  input[type="file"] { min-height: 44px; padding: 8px 0; box-sizing: border-box; }
}

/* Access-level chip — the small role tag on a user's row/detail page
   (admin, org leader, group leader, treasurer, custom). Was duplicated
   verbatim in user_detail.html and users_list.html's head_extra blocks;
   folded here (Task 6, status-display sweep) so the two pages can't drift.
   Most of these render as a plain <span>, but user_detail.html's treasurer
   chip is an <a> (links to the Money page) which defaults to underlined --
   text-decoration: none is a no-op on the <span> variants and only visible
   on that one link. font-size/padding aren't set here -- the exact same
   equal-specificity/source-order loss described below for background/color
   applies to them too, so a bare-class declaration would be dead code;
   .badge (admin/_base.html) already supplies both (final review wave). */
.access-level-chip {
  text-decoration: none;
}
/* Compound with .badge (not a bare .access-chip-* class) so these always win
   the cascade regardless of source order -- .badge is defined in
   admin/_base.html's own inline <style>, which loads AFTER this stylesheet on
   every page that extends it, so a same-specificity single-class rule here
   would lose the tie to .badge's own background/color and every chip below
   would silently render as .badge's generic grey (Task 16 review finding:
   both pages had been carrying this bug since Task 4). Moving these rules
   from page-local <style> blocks into this shared stylesheet does not
   reintroduce that bug: a compound selector's specificity (0,2,0) beats
   .badge's (0,1,0) regardless of which one loads last. */
/* Admin and org-leader share the pine family on purpose (both are
   whole-org roles) but the depth tracks the hierarchy: admin wears the
   deepest tint + darkest ink, org leader a lighter pair — previously both
   composited to near-identical pine (12% vs 10% of the same token). */
.badge.access-chip-admin {
  background: color-mix(in srgb, var(--color-pine-700) 18%, transparent);
  color: var(--color-pine-900);
}
.badge.access-chip-org_leader {
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  color: var(--color-pine-700);
}
.badge.access-chip-group_leader {
  background: color-mix(in srgb, var(--color-trail-700) 10%, transparent);
  color: var(--color-trail-700);
}
.badge.access-chip-treasurer {
  background: var(--color-attention-bg);
  color: var(--color-attention-text);
}
.badge.access-chip-custom {
  background: var(--color-cold-bg);
  color: var(--color-cold-text);
}

/* Fine print — small muted disclosure/help text (fees, SMS terms, "not sent
   yet" notes). Replaces the repeated inline `font-size:13px; color:muted` pair.
   Element-specific margins stay inline. */
.fine-print { font-size: 13px; color: var(--text-muted); }
/* Small square of color next to a fine-print line explaining what a brand
   hex renders as (agent/brand_contrast.py's report()). Sizing/border are
   fixed here; the fill itself is per-tenant data, bound inline. */
.brand-swatch {
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 3px;
  border: 1px solid var(--color-border);
  vertical-align: -0.15em;
}
/* An inline text link inside prose renders ~18px tall, under the 24px tap
   floor. Use this on links a volunteer is actually meant to follow (not every
   passing mention) to lift the hit area without disturbing the line. */
.link-tap { display: inline-block; padding: 4px 0; }
/* Inline links in key-value tables and meta lines render at line height
   (~17-20px), under the 24px floor. The padding + negative-margin pair
   grows the hit box without moving the text or reflowing the row. */
.kv td a, .meta a { display: inline-block; padding: 4px 2px; margin: -4px -2px; min-height: 24px; }

/* Sentence-case label for a section or card: the replacement for the
   retired uppercase small-caps label pattern (banned; see admin-ui-patterns.md). */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* ----- Dividers ----- */
.divider {
  height: 0.5px;
  background: var(--color-border);
  border: none;
}

/* ============================================================
   Toggle switch — the MemberCairn design standard for binary
   on/off settings. Built around a real <input type="checkbox">
   so it submits and validates like a normal form control.

   Usage:
     <label class="toggle">
       <input type="checkbox" name="x" value="1">
       <span class="toggle-track"><span class="toggle-thumb"></span></span>
       <span class="toggle-text">
         <span class="toggle-label">Title</span>
         <span class="toggle-help">Optional helper text</span>
       </span>
     </label>

   The minimum form is just .toggle > input + .toggle-track + label
   text — every other slot is optional.
   ============================================================ */
.toggle {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 24px; /* tap floor: the label row is the target, and text-only rows measured 22px */
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-primary);
  margin: 8px 0;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
/* Hide the real checkbox visually but keep it focusable + form-submittable. */
.toggle > input[type="checkbox"] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.toggle-track {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  background: var(--color-bg-tint);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--color-bg-primary);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(44, 42, 34, 0.16),
              0 1px 1px rgba(44, 42, 34, 0.10);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.toggle > input:checked + .toggle-track {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.toggle > input:checked + .toggle-track .toggle-thumb {
  transform: translateX(16px);
  background: var(--color-cairn-parchment);
}
.toggle > input:focus-visible + .toggle-track {
  outline: 2px solid transparent; outline-offset: 2px; /* painted by forced-colors mode */
  box-shadow: 0 0 0 3px var(--focus-ring-color);
}
.toggle > input:disabled + .toggle-track {
  opacity: 0.55;
  cursor: not-allowed;
}
.toggle:has(> input:disabled) { cursor: not-allowed; color: var(--color-text-secondary); }

.toggle-text { min-width: 0; display: block; }
.toggle-label {
  display: block;
  font-weight: 500;
  color: var(--color-text-primary);
}
.toggle-help {
  display: block;
  color: var(--color-text-secondary);
  font-size: 13px;
  margin-top: 2px;
}

/* Danger variant — for destructive toggles like "Pause agent" so they
   don't visually claim the same affordance as a benign setting. */
.toggle.danger > input:checked + .toggle-track {
  background: var(--color-needs-you-text);
  border-color: var(--color-needs-you-text);
}

/* Compact variant — inline with body text, no extra vertical margin. */
.toggle.compact { margin: 0; gap: 8px; font-size: 13px; }
.toggle.compact .toggle-track { width: 32px; height: 18px; }
.toggle.compact .toggle-thumb { width: 12px; height: 12px; }
.toggle.compact > input:checked + .toggle-track .toggle-thumb {
  transform: translateX(14px);
}

/* A grouped block of toggles inside a card or settings section. */
.toggle-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.toggle-stack .toggle { margin: 0; }

/* ============================================================
   Checkbox row — a native checkbox in a padded, tappable label
   row. The 24px control clears the WCAG tap floor on the control
   itself (the layout probe measures the input, not the label);
   the row padding carries it to the 44px phone ideal. Multi-select
   pickers (recipient lists, trail-item pickers) are the sanctioned
   checkbox use — binary settings stay .toggle.

   Usage:
     <label class="checkbox-row">
       <input type="checkbox" name="x" value="1">
       <span>Option text</span>
     </label>
   ============================================================ */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  min-height: 44px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-weight: 400;
  text-align: left;
}
.checkbox-row:hover {
  background: var(--color-bg-tint);
}
.checkbox-row input[type="checkbox"],
.checkbox-row input[type="radio"] {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--color-accent);
}

/* Table-cell checkbox — 24px control, no row-height inflation.
   The house recipe when a checkbox lives inside a <td>. */
.check-cell {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--color-accent);
}

/* ============================================================
   Toolbar — page actions row that sits above content
   (e.g. "+ Add lead", filter pills, search). Used to replace
   ad-hoc inline flex containers across templates.
   ============================================================ */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.toolbar > .toolbar-spacer { flex: 1 1 auto; }
.toolbar .toolbar-group {
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   Section header — used inside cards or below the page hero
   to introduce a block without the heavyweight h2 gold-bar.
   ============================================================ */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.section-head .section-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.05px;
  color: var(--color-text-primary);
  margin: 0;
  display: block;
}
.section-head .section-title::before {
  content: none;
  display: none;
}
.section-head .section-count {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}
.section-head .section-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
/* A form wrapping one button is itself a flex item; as a block it adds a
   line-box gap under the button, and under the default stretch alignment the
   sibling link grew to that height while the button did not (the RSVP page's
   Remind / Download pair, 2026-09-11). */
.section-head .section-actions > form { display: inline-flex; }
/* A quiet tertiary beside a bordered sibling takes the sibling's type scale:
   .btn-ghost inherits the body's larger, lighter type, so next to a 13px/500
   .btn-secondary it read bigger while being greyer (ux-reviewer 2026-09-11;
   the class-level fix is logged in the UX polish backlog). */
.section-head .section-actions .btn-ghost { font-size: var(--text-sm); font-weight: 500; }

/* ============================================================
   Help tooltips — two patterns:

     1. <span class="help-tip" data-tip="…" tabindex="0">i</span>
        Tiny "i" glyph that opens a parchment-style tooltip on
        hover/focus. Use when the surrounding element doesn't
        already invite hovering.

     2. <span data-tip="…">…</span>  (or any element)
        Adds a tooltip when the element itself is hovered/focused.
        Use on status badges, stat tiles, chips — surfaces that
        already look interactive.

   Both render the tooltip via the same ::before/::after pair on
   the element with [data-tip]. Pure CSS — no JS — so keyboard
   focus opens the tooltip too. Falls back to the browser-native
   `title=""` attribute on touch devices without :hover.
   ============================================================ */
/* The visible glyph is a 14px circle, but a 14px focusable target fails the
   24px WCAG hit-area floor. The outer element is a transparent 24x24 hit
   box; the 14px circle is drawn on ::before, centered by the outer flex, so
   the visual size never changes. The negative margin + vertical-align keep
   the extra hit area from inflating line-height where this sits inline in a
   label row. */
/* 24px hit box around the same 14px visible disc: transparent padding +
   content-box background grow the tap/focus target without moving the glyph.
   Both pseudo-elements on this span belong to the [data-tip] tooltip below
   ([data-tip]::before overrides any .help-tip::before content at equal
   specificity) — so the "?" glyph must be real text in every caller, never
   generated content. The disc stays circular: border-radius minus padding
   leaves a 7px inner radius on the 14px content box. */
.help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  /* 4px padding on the 24px box leaves a 16px disc; with 5px the 14px disc
     carried a 10px glyph that was hard to read on a phone (2026-08 review).
     The tap box stays 24px either way. */
  padding: 4px;
  border-radius: 50%;
  background: var(--color-cairn-mid);
  background-clip: content-box;
  color: var(--color-cairn-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  user-select: none;
  vertical-align: middle;
  margin: -5px 2px;
  text-decoration: none;
  outline: none;
  transition: background-color 0.12s, transform 0.08s;
}
/* background-color longhand on purpose: the background shorthand would reset
   background-clip and flood the whole 24px box. */
.help-tip:hover, .help-tip:focus-visible {
  background-color: var(--color-accent);
  color: var(--color-cairn-parchment);
}
.help-tip:focus-visible {
  box-shadow: 0 0 0 2px var(--color-cairn-parchment), 0 0 0 4px var(--color-accent);
}

[data-tip] { position: relative; }
/* When the host is hovered/focused, lift its entire stacking context so
   the tooltip can paint above neighboring elements that have their own
   stacking contexts (e.g. siblings with opacity/transform/filter). The
   pseudo's own z-index is bounded by its host's context, so the lift has
   to happen on the host itself. */
[data-tip]:hover,
[data-tip]:focus-visible,
[data-tip]:focus-within { z-index: var(--z-tooltip-active); }
/* Tooltip pseudos can't escape a parent's overflow:hidden. Several admin
   containers (.trailhead-hero, .action-panel, .card flourishes) clip
   themselves to keep decorative ::before/::after backgrounds inside the
   card. When a tooltip inside is active, temporarily lift the clip so
   the bubble can paint outside the container. Decorations may briefly
   spill during the hover, which is acceptable for the interaction
   window. Scoped to descendants (not html/body) so global scroll
   behavior is unaffected. */
*:not(html):not(body):has(:where(
  [data-tip]:hover,
  [data-tip]:focus-visible,
  [data-tip]:focus-within
)) {
  overflow: visible !important;
}
[data-tip]::after,
[data-tip]::before {
  position: absolute;
  pointer-events: none;
  /* Not laid out, and not painted, until the tooltip is actually shown.
     Two separate reasons, and the second is why `opacity: 0` alone isn't
     enough:

       1. An absolutely-positioned pseudo contributes to its containing
          block's SCROLLABLE overflow by its own laid-out size even at
          opacity:0 -- a resting bubble silently widened every [data-tip]
          host's ancestor scrollWidth, previously masked wherever a
          `.card{overflow-x:auto}` (or any other clipping ancestor) happened
          to sit in between. card-overflow-visible callers (admin/_base.html)
          removed that incidental masking on purpose (so an OPEN + menu isn't
          cut off) and surfaced it as real full-page horizontal scroll on
          mobile (found via home.html's "Needs you" row + trigger, ux sweep
          2026-08-17).

       2. A resting box is a PAINTED box, and the two halves of "show the
          tooltip" do not land in the same frame: the fade is a compositor
          opacity animation, while the bubble's geometry is main-thread
          layout. On a busy frame the fade starts against whatever was
          already painted, so a resting box of the wrong shape gets shown at
          that wrong shape first. The previous fix for (1) collapsed the
          bubble to `width: 0` at rest, which made that stale paint a 22px
          wide, ~150px tall strip of one-word-per-line text -- the "tall
          skinny tooltip" that flashed before the real bubble appeared
          (reported 2026-09-15, seen on several screens).

     `display: none` answers both: nothing is laid out, nothing is painted,
     and the first frame that exists is already the right size. */
  display: none;
  opacity: 0;
  /* Placement as two independent axes instead of one hardcoded transform:
     --tip-tx carries the horizontal offset (set by the data-tip-align
     variants below), --tip-ty carries the vertical one (set by
     data-tip-position="bottom" and by the active/interactive rule), and
     this single `transform` recomputes from whichever cascade wins each
     axis. A variant that only changes one axis now only sets that one
     custom property -- it used to have to restate the full transform on
     both axes just to change one, which is why position="bottom" combined
     with align="end" needed its own dedicated override rule (removed;
     the two axes compose on their own now). */
  --tip-tx: -50%;
  --tip-ty: 4px;
  transform: translate(var(--tip-tx), var(--tip-ty));
  /* `display` rides the transition as a discrete property so the box sticks
     around for the exit fade instead of vanishing on the first frame; the
     @starting-style block below supplies the entry's from-state. A browser
     without either feature shows and hides the tooltip instantly, which is a
     fine degradation -- never a wrongly-shaped one. */
  transition: opacity 0.12s, transform 0.12s, display 0.12s allow-discrete;
  z-index: var(--z-tooltip);
}
[data-tip]::after {
  content: attr(data-tip);
  bottom: calc(100% + 10px);
  left: 50%;
  background: var(--color-cairn-dark);
  color: var(--color-cairn-parchment);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  white-space: normal;
  /* One size, at rest and shown alike -- the resting rule's `display: none`
     is what keeps this box out of ancestor scrollWidth, so it no longer has
     to be collapsed and re-expanded around the hover. */
  width: max-content;
  max-width: 260px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(44, 42, 34, 0.22);
}
[data-tip]::before {
  /* Arrow — a small downward-pointing triangle below the bubble. */
  content: "";
  bottom: calc(100% + 4px);
  left: 50%;
  border-width: 6px 5px 0 5px;
  border-style: solid;
  border-color: var(--color-cairn-dark) transparent transparent transparent;
  width: 0;
  height: 0;
  padding: 0;
  background: transparent;
}
[data-tip]:hover::after,
[data-tip]:hover::before,
[data-tip]:focus-visible::after,
[data-tip]:focus-visible::before,
[data-tip]:focus-within::after,
[data-tip]:focus-within::before {
  display: block;
  opacity: 1;
  /* Only the vertical axis resets here: --tip-tx is left untouched, so each
     align variant's horizontal offset (0 for start/end, -50% by default)
     carries through the interactive state unchanged, with no need for a
     per-align "active" rule to restate it (removed two below). */
  --tip-ty: 0;
}
/* A click leaves the pointer hovering/focused on the trigger, so without this
   the tooltip stays visible, overlapping the panel that just opened below it.
   Two selectors because the app opens menus two ways: `aria-expanded` covers
   the button-driven ones (the nav toggle, the account menu), and `[open]`
   covers every <details>/<summary> popover -- a bare <summary> never sets
   aria-expanded, so those were sailing straight past the rule. */
[data-tip][aria-expanded="true"]::after,
[data-tip][aria-expanded="true"]::before,
details[open] > [data-tip]::after,
details[open] > [data-tip]::before {
  opacity: 0;
}
/* Place the tooltip BELOW the element when there's not enough room
   above. Opt in via data-tip-position="bottom" -- required for any trigger
   within ~56px of the viewport top (a first-card chip/badge sitting right
   under the sticky .mobile-topbar, admin/_base.html): the default top
   placement has nowhere to render and collides with that sticky bar. The
   --z-tooltip / --z-tooltip-active tokens (tokens.css) keep the bubble
   painting over the topbar's z-index when the two do overlap, but there's
   no CSS-only way to detect "how close to the viewport top is this
   trigger", so callers in that band still need to opt in here explicitly. */
[data-tip][data-tip-position="bottom"]::after {
  bottom: auto;
  top: calc(100% + 10px);
  --tip-ty: -4px;
}
[data-tip][data-tip-position="bottom"]::before {
  bottom: auto;
  top: calc(100% + 4px);
  border-width: 0 5px 6px 5px;
  border-color: transparent transparent var(--color-cairn-dark) transparent;
  --tip-ty: -4px;
}
/* Needs its own (0,3,1) rule, not just the universal active rule above
   (0,2,1): the resting rule immediately above shares that lower
   specificity and has no :hover/:focus gate, so at a tie it would win by
   being later in source order, leaving --tip-ty stuck at the resting
   -4px instead of animating to 0. */
[data-tip][data-tip-position="bottom"]:hover::after,
[data-tip][data-tip-position="bottom"]:hover::before,
[data-tip][data-tip-position="bottom"]:focus-visible::after,
[data-tip][data-tip-position="bottom"]:focus-visible::before {
  --tip-ty: 0;
}
/* Align left edge of the bubble with the element's left edge —
   used when the trigger sits near a viewport corner. Only the bubble's
   --tip-tx changes (0, not -50%); the arrow keeps the default -50%, which
   centers it on `left` the same as before, so it doesn't need its own
   rule. No active-state override needed either -- see the note on the
   universal active rule above. */
[data-tip][data-tip-align="start"]::after {
  left: 0;
  --tip-tx: 0;
}
[data-tip][data-tip-align="start"]::before {
  left: 14px;
}
/* Mirror of "start": align the bubble's RIGHT edge with the trigger's right
   edge. Required for any trigger sitting near a container's right edge — a
   centered bubble hangs ~130px past it, and the global overflow-lifting rule
   above (which un-clips every ancestor so the bubble can escape a card) means
   nothing stops it from spilling out of the document. That spill gives the
   page horizontal overflow it otherwise never has, and the scrollbar that
   appears and disappears with the hover reads as the layout jumping. */
[data-tip][data-tip-align="end"]::after {
  left: auto;
  right: 0;
  --tip-tx: 0;
}
/* 9px + the arrow's own 10px width puts its centre 14px in from the right,
   the exact mirror of the "start" arrow — which lands it under the middle of
   a 28px icon button. Unlike "start", the arrow DOES need --tip-tx: 0 here
   too (its default -50% would center it on `right`'s anchor point rather
   than offsetting from it the way the bubble does). No active-state
   override needed for either pseudo -- see the note on the universal
   active rule above. */
[data-tip][data-tip-align="end"]::before {
  left: auto;
  right: 9px;
  --tip-tx: 0;
}
/* Combining position="bottom" with align="end" no longer needs a dedicated
   rule here: --tip-tx and --tip-ty are independent custom properties, and
   align="end" only ever sets --tip-tx while position="bottom" only ever
   sets --tip-ty, so the two compose on their own. (This comment used to
   explain a dedicated override rule; the reason it existed -- one shared
   `transform` shorthand getting clobbered wholesale by whichever variant's
   rule cascaded last -- is exactly what the --tip-tx/--tip-ty split above
   removes.) Combining position="bottom" with align="start" now composes
   correctly too, as a side effect: that pairing was never given its own
   rule and used to resolve incorrectly under the old single-`transform`
   scheme (align="start"'s resting rule clobbered position="bottom"'s
   vertical offset back to the top-placement value via source-order, a
   latent bug on a combination no current caller used). */
/* The entry's from-state. A box that did not exist a frame ago has nothing to
   animate from, so without this the fade and the 4px rise are skipped on the
   way in (the exit still reads the resting rule, which is unchanged).

   Placement is load-bearing: a @starting-style declaration and a normal one
   of equal specificity are settled by SOURCE ORDER, so this has to sit after
   every variant rule above -- parked up beside the show rule instead, the
   position="bottom" variant's own `--tip-ty: 0` (same specificity, further
   down the file) won the tie and that tooltip lost its slide entirely.

   Two groups because the direction is per-variant: the default bubble sits
   above its trigger and rises into place, the position="bottom" one sits
   below it and settles downward. The align variants need no group -- they
   only ever touch --tip-tx, which the entry leaves alone. */
@starting-style {
  [data-tip]:hover::after,
  [data-tip]:hover::before,
  [data-tip]:focus-visible::after,
  [data-tip]:focus-visible::before,
  [data-tip]:focus-within::after,
  [data-tip]:focus-within::before {
    opacity: 0;
    --tip-ty: 4px;
  }
  [data-tip][data-tip-position="bottom"]:hover::after,
  [data-tip][data-tip-position="bottom"]:hover::before,
  [data-tip][data-tip-position="bottom"]:focus-visible::after,
  [data-tip][data-tip-position="bottom"]:focus-visible::before,
  [data-tip][data-tip-position="bottom"]:focus-within::after,
  [data-tip][data-tip-position="bottom"]:focus-within::before {
    --tip-ty: -4px;
  }
}
@media (max-width: 480px) {
  [data-tip]::after { max-width: 220px; font-size: 11px; padding: 6px 9px; }
}
/* Disable the styled tooltip when the user opts in to coarse-pointer
   (touch-only) devices — the browser's native title="" attribute then
   handles long-press. Pages that want both should use `data-tip`
   AND `title` (we encourage this). */
@media (hover: none) {
  /* !important because the show rules above set `display: block` at higher
     specificity ([data-tip]:focus-within::after beats [data-tip]::after) and
     tapping a focusable trigger DOES match :focus-within on a touch device --
     without it the styled bubble would come back on tap, on top of the
     native title="" the browser is already showing. */
  [data-tip]::after,
  [data-tip]::before { display: none !important; }
}

/* ============================================================
   Retention nudge cards (_nudge_card.html). Reused on the admin
   home block, /admin/retention, and as an engagement badge on the
   roster member-edit page. Tokens only — no new color system.
   ============================================================ */
.nudge-list { display: flex; flex-direction: column; gap: 12px; }

.nudge-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(44, 42, 34, 0.04);
  padding: 14px 16px;
}
.nudge-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
/* Phone-on-file status cue beside the family name on a nudge card (says the
   check-in draft can text them). Lives here, not in _nudge_card.html, because
   that partial is included inside a for-loop on two pages. */
.nudge-phone-cue { display: inline-flex; align-items: center; gap: 3px;
  font-size: var(--text-xs); color: var(--color-text-secondary); }
.nudge-card .family-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-accent);
}
.nudge-adults { color: var(--color-text-secondary); font-size: 13px; margin-top: 2px; }

.nudge-members { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.member-line { font-size: 14px; }
.member-line.muted { opacity: 0.6; }
/* The member's name on a retention nudge card doubles as the way into their
   Family activity: before deciding how to reach out, a leader wants to see what
   this family has already been sent. inline-block + padding so the hit area
   clears the 24px tap floor. */
.member-line a.member-activity {
  display: inline-block;
  padding: 3px 0;
  color: inherit;
  border-bottom: 1px dotted currentColor;
}
.member-line a.member-activity:hover { color: var(--color-accent); }
/* Standalone .muted used inside nudge cards (the only scoped .muted lives in _base). */
.nudge-card .muted, .member-engagement .muted { color: var(--color-text-secondary); }

/* Engagement state pill. Severity escalates silent > lapsing > at_risk. */
.state-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: capitalize;
  background: var(--color-cold-bg);
  color: var(--color-cold-text);
  border: 1px solid transparent;
}
.s-silent   { background: var(--color-needs-you-bg); color: var(--color-needs-you-text); }
.s-lapsing  { background: var(--color-cold-bg); color: var(--color-accent); border-color: var(--color-cairn-mid); }
.s-at_risk  { background: #FBF3D6; color: #8A6D1F; }
.s-engaged  { background: var(--color-confirmed-bg); color: var(--color-confirmed-text); }
.s-unknown  { background: var(--color-cold-bg); color: var(--color-cold-text); }

.reason-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--color-cold-bg);
  color: var(--color-cold-text);
}
.reason-chip.urgent { background: #FBF3D6; color: #8A6D1F; }

.nudge-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.nudge-act {
  padding: 6px 11px;
  font-size: 13px;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.nudge-act:hover { background: var(--color-bg-tint); border-color: var(--color-cairn-mid); }

/* The expand panel respects its [hidden] attribute — don't force display. */
.nudge-expand:not([hidden]) {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nudge-mobile-actions { display: flex; gap: 8px; }
.nudge-desktop-banner {
  font-size: 13px;
  color: var(--color-text-secondary);
  background: var(--color-bg-tint);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.sms-link, .call-link {
  flex: 1;
  text-align: center;
  text-decoration: none;
  padding: 8px 11px;
  font-size: 13px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
}
.nudge-draft .call-points { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--color-text-secondary); }

.member-engagement { margin: 4px 0 0; }

/* ============================================================
   Page-settings band — the prominent "configure this page" region
   that distinguishes feature-page SETTINGS (Recruiting season, Interest
   form, dens, calendar, onboarding on/off) from the muted gray DATA
   disclosures (Test prospects, Inactive members) elsewhere on the page.
   Pattern B, chosen 2026-06-10. Used via the admin/_page_settings.html
   macro: {% call ps.band("sub") %} <details class="ps-item">…</details> {% endcall %}
   ============================================================ */
.page-settings {
  margin-top: var(--space-8);
  border: 1px solid var(--color-accent);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(31, 75, 59,0.06), rgba(31, 75, 59,0) 64%);
  padding: var(--space-5) var(--space-5) var(--space-3);
}
.page-settings__head { display: flex; align-items: center; gap: 10px; }
.page-settings__icon {
  width: 30px; height: 30px; border-radius: var(--radius-md); flex: none;
  background: var(--color-accent); color: #fff; display: grid; place-items: center;
}
.page-settings__icon svg { width: 17px; height: 17px; }
.page-settings__title {
  margin: 0; font-family: var(--font-body); font-size: var(--text-sm);
  font-weight: 600; color: var(--color-text-secondary);
}
.page-settings__sub { margin: 5px 0 16px; color: var(--color-text-secondary); font-size: var(--text-sm); }

/* A settings entry inside the band — a brand-accented disclosure row, distinctly
   NOT the gray data-disclosure bar. */
.page-settings details.ps-item {
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-bg-primary); margin-bottom: 10px; overflow: hidden;
}
.page-settings details.ps-item:last-child { margin-bottom: 6px; }
.page-settings details.ps-item > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: baseline; gap: 9px; padding: 13px 15px;
  font-weight: 600; color: var(--color-text-primary);
}
.page-settings details.ps-item > summary::-webkit-details-marker { display: none; }
/* Inset focus ring — .ps-item has overflow:hidden, which would clip an outset
   ring, so use an inset shadow that reads on the white summary. */
.page-settings details.ps-item > summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--color-accent);
}
.page-settings details.ps-item > summary::before {
  content: "▸"; color: var(--color-accent); font-size: 11px;
  transition: transform 0.12s; align-self: center;
}
.page-settings details.ps-item[open] > summary::before { transform: rotate(90deg); }
.page-settings details.ps-item[open] > summary { border-bottom: 1px solid var(--color-border); }
.ps-item__hint { font-weight: 400; color: var(--color-text-secondary); font-size: var(--text-sm); }
.ps-item__inner { padding: 16px; }
.ps-item__inner > .card:first-child,
.ps-item__inner > form:first-child { margin-top: 0; }

/* === Field-help text =========================================================
   Muted helper / confirmation note below a form field or field group.
   Used anywhere a secondary note should appear without the mono+uppercase
   weight of .meta (which is a code/data primitive, not prose). */
.field-help {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-top: var(--space-1, 4px);
  margin-bottom: 0;
}

/* === Auto-save status (shared) ===============================================
   Per-field "Saving… / ✓ Saved / ✕ error" note for [data-autosave] controls
   (agent/static/js/autosave.js). The Profile editor carries a scoped copy in
   its macro; this shared copy serves the Settings hub + page-settings bands. */
.autosave-status { font-size: 12px; min-width: 18px; line-height: 1.2; }
.autosave-status.is-saving { color: var(--color-text-secondary); }
.autosave-status.is-ok { color: var(--color-confirmed-text); }
.autosave-status.is-err { color: var(--color-needs-you-text); }
.autosave-status.is-ok::before { content: "\2713 "; }
.autosave-status.is-err::before { content: "\2715 "; }

/* === Send settings panel (.ss-panel) =========================================
   The mail-settings panel (admin/_send_settings_panel.html) has two homes: the
   inbox's slide-over drawer fetches it, and the panel route renders it inside
   the admin shell for anyone who lands on it directly. Its type + spacing live
   here, not inline and not in either host, so the two renderings can't drift.
   Everything else it needs (.card, .ps-item, .toggle, .autosave-*) is already
   a shared primitive above. */
/* An address field is ~40 characters of content, not a full-width bar. (The
   drawer overrides this to fill its narrower panel.) */
.ss-panel input[type=email] { max-width: 420px; }
.ss-panel .card + .card { margin-top: var(--space-3); }
/* The band's summary lays the title and its hint on one baseline, which has
   room on a full-width page and none in a 560px drawer (the title wrapped to
   two lines while the hint sat beside it). Give the hint its own line. */
.ss-panel details.ps-item > summary { flex-wrap: wrap; }
.ss-panel .ps-item__hint { flex: 1 0 100%; }
/* Prose measure: settings explanations are read, not scanned. */
.ss-panel .card > p { max-width: 64ch; }
.ss-panel .card > p:first-of-type { margin-top: 0; }
.ss-panel .ss-note { margin-top: var(--space-2); }
.ss-panel .ss-actions { margin: var(--space-2) 0 0; }
/* A value the tenant can't edit here (custom-domain tenants manage their
   addresses at their email host): shown as a label + the live value. */
.ss-panel .ss-locked-label {
  margin: 0 0 2px; font-family: var(--font-body); font-size: var(--text-sm);
  font-weight: 600; color: var(--color-text-secondary);
}
.ss-panel .ss-locked-value { margin-top: 0; font-size: var(--text-base); }
/* "(optional)" beside a field label, without .meta's mono/uppercase weight. */
.ss-panel .ss-optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ss-panel .ss-toggle-row { display: flex; align-items: center; gap: 10px; }

/* Page-level autosave reassurance ("All changes saved"), used beside the
   page-settings band sub-line and at the top of the Settings Sending tab. */
.autosave-page-status { font-size: 12.5px; }
.autosave-page-status.is-saving { color: var(--color-text-secondary); }
.autosave-page-status.is-ok { color: var(--color-confirmed-text); }
.autosave-page-status.is-ok::before { content: "\2713  "; }
.autosave-page-status.is-err { color: var(--color-needs-you-text); }
.autosave-page-status.is-err::before { content: "\2715  "; }

/* === Messages hub (.msg-hub) ===============================================
   The Inbox / Compose / Announce view-switch shared by the org-inbox pages and
   the composer (agent/templates_html/admin/_messages_tabs.html). Drawn as three
   self-describing cards (icon + name + one-line purpose) so the messages home
   reads at a glance; the active face is highlighted. The card per row also lets
   each outgoing surface keep the same hub header. */
.msg-hub { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 4px 0 18px; }
.msg-hub-card {
  flex: 1 1 200px; min-width: 0; display: flex; gap: 11px; align-items: flex-start;
  text-decoration: none; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--card);
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.msg-hub-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm, 0 2px 6px rgba(0,0,0,.06)); }
@media (prefers-reduced-motion: reduce) { .msg-hub-card { transition: none; } }
.msg-hub-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Non-interactive placeholder cards (roster tools hub: "Mark who joined" /
   "Mark who moved on" before RT-4/RT-11 give them a real destination) must
   not borrow the interactive hover affordance -- the hover rule above is
   class-based, not tag-based, so a plain <div class="msg-hub-card"> would
   otherwise still paint the "clickable" highlight on hover. Compound
   selector so this wins on specificity regardless of source order. */
.msg-hub-card.msg-hub-card--static:hover { border-color: var(--border); box-shadow: none; }
.msg-hub-card.is-active { background: var(--brand-deep); border-color: var(--brand-deep); }
.msg-hub-ico {
  width: 32px; height: 32px; border-radius: var(--radius-sm); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-deep);
}
.msg-hub-ico svg { width: 18px; height: 18px; }
.msg-hub-card.is-active .msg-hub-ico { background: rgba(245, 237, 216, 0.18); color: var(--color-cairn-parchment); }
.msg-hub-text { min-width: 0; }
.msg-hub-name {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--brand-deep);
}
.msg-hub-card.is-active .msg-hub-name { color: var(--color-cairn-parchment); }
.msg-hub-desc { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.msg-hub-card.is-active .msg-hub-desc { color: var(--color-cairn-parchment); opacity: 0.78; }
/* A full-sentence status pill inside a hub card's text column (roster tools
   hub badges: "N leads look ready" / "N families may have moved on") --
   distinct from .msg-hub-badge's numeric circle inlined into the name row.
   Descendant-scoped so no extra class is needed at the call site. */
.msg-hub-text > .pill { display: block; width: fit-content; margin-top: 6px; }
.msg-hub-badge {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  background: var(--color-needs-you-text); color: #fff;
  border-radius: 999px; padding: 1px 7px; min-width: 18px; text-align: center;
  font-variant-numeric: slashed-zero tabular-nums;
}
.msg-hub-card.is-active .msg-hub-badge { background: rgba(245, 237, 216, 0.22); color: var(--color-cairn-parchment); }
/* Locked (paid-plan) hub card — the free-tier "Announce" upsell. Reads as
   quietly gated (muted icon, dashed border) but stays a real, clickable link to
   the plan ladder. The "Paid plans" tag carries the meaning in text, not color
   alone. */
.msg-hub-card--locked { border-style: dashed; }
.msg-hub-card--locked .msg-hub-ico {
  background: var(--color-bg-tint); color: var(--text-muted);
}
.msg-hub-card--locked:hover .msg-hub-ico { color: var(--brand-deep); }
.msg-hub-locktag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--color-cold-bg); color: var(--color-cold-text);
  border-radius: 999px; padding: 1px 7px;
}
/* Phone: three stacked full-width cards with a description line each cost
   ~200px above the fold, which the Inbox can least afford — that column is
   the job, not a landing page. Collapse to one row of icon-over-name tiles
   (~74px total): the same three destinations, same order, same active state,
   in the tab-bar shape a phone reader already expects. The descriptions are
   the part that only earns its space on a wide screen. */
@media (max-width: 600px) {
  .msg-hub { gap: 6px; flex-wrap: nowrap; margin-bottom: 12px; }
  /* justify-content so the tiles stay vertically centred when one of them
     grows: the free-tier Announce card wraps its "Paid plans" tag onto a
     second line and stretches the whole row, which otherwise left the two
     one-line labels hanging at the top of their tiles. */
  .msg-hub-card {
    flex: 1 1 0; min-width: 0; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px; padding: 9px 6px; text-align: center;
  }
  .msg-hub-desc { display: none; }
  .msg-hub-name {
    font-size: 12px; display: flex; flex-wrap: wrap;
    justify-content: center; align-items: center; gap: 4px;
  }
  .msg-hub-locktag { font-size: 9px; padding: 1px 5px; }
}

/* Roster tools hub opt-out: unlike the Messages tab-switcher above, this
   hub's below-Guide card carries a teaser line that IS its content (not
   decorative framing around a destination), so hiding .msg-hub-desc at this
   width would silence the only reason that card exists. Page-scoped
   (.msg-hub--stacked) so the Messages 3-tab switcher's compact phone
   treatment is unaffected. Selectors are compound (two classes) so each
   wins on specificity over the unscoped rules above regardless of source
   order. */
@media (max-width: 600px) {
  .msg-hub.msg-hub--stacked { flex-wrap: wrap; gap: var(--space-2); }
  .msg-hub--stacked .msg-hub-card {
    flex: 1 1 100%; flex-direction: row; align-items: flex-start;
    justify-content: flex-start; text-align: left; padding: 12px 14px; gap: 11px;
  }
  .msg-hub--stacked .msg-hub-desc { display: block; }
  .msg-hub--stacked .msg-hub-name {
    font-size: 15px; justify-content: flex-start; flex-wrap: wrap;
  }
  .msg-hub--stacked .msg-hub-locktag { font-size: 10px; padding: 1px 7px; }
}


/* AI-provenance badge — shared across every surface that shows AI-drafted copy
   (agent/templates_html/admin/_provenance.html). Variants reuse the looks the
   old per-surface badges had so nothing regresses on consolidation. */
.provenance-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 1px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  font-style: normal;
  font-family: var(--font-sans, sans-serif);
}
.provenance-badge:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* autonomous / insight — the old .ai-flag "✦ Assistant" look. insight is a
   read-only AI summary written for the leader (nothing was sent), sharing the
   autonomous badge's informational styling. */
.provenance-badge--autonomous,
.provenance-badge--insight { background: var(--brand-soft); color: var(--brand); }
/* draft / edited — the old .msg-ai-flag parchment pill; edited is quieter */
.provenance-badge--draft {
  background: var(--color-cairn-parchment, #F5EDD8);
  border: 1px solid var(--color-cairn-mid, #C4A882);
  color: var(--brand-deep);
}
.provenance-badge--edited {
  background: transparent;
  border: 1px solid var(--color-cairn-mid, #C4A882);
  color: var(--text-muted);
}

/* ===== Setup "what this is powering" rail =====
   Shared trail/rail component used by the pre-activation recruiting interview
   (agent/templates_html/admin/_setup_powering_rail.html) and the onboarding
   preview on the staged setup dashboard
   (admin/_setup_onboarding_rail.html). Layout/positioning of the rail's
   container (the sticky two-column shell on the interview, the centered card
   on the dashboard) stays in each page; only the rail's internal look lives
   here so both render identically. Class names are setup-rail* / setup-trail*
   so nothing bleeds onto other admin surfaces. */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.setup-rail { padding-left: var(--space-8); border-left: 1px solid var(--color-border); animation: rise 0.5s 0.22s both; }
/* The guard travels with the keyframe: the interview's reduced-motion rule is
   scoped to its own inline <style>, so the dashboard needs its own here. */
@media (prefers-reduced-motion: reduce) { .setup-rail { animation: none; } }
.setup-rail-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--color-text-primary); margin: var(--space-1) 0 2px; }
.setup-rail-lead { font-size: var(--text-xs); color: var(--color-text-secondary); line-height: 1.4; margin: 0 0 var(--space-5); }
.setup-trail { position: relative; display: flex; flex-direction: column; gap: var(--space-4); }
.setup-trail::before { content: ""; position: absolute; left: 21px; top: 14px; bottom: 14px; width: 2px; background: repeating-linear-gradient(var(--color-cairn-mid) 0 4px, transparent 4px 10px); }
.setup-trail-node { display: flex; align-items: center; gap: var(--space-3); position: relative; }
.setup-trail-tile { width: 44px; height: 44px; flex: 0 0 44px; border-radius: var(--radius-md); background: var(--color-bg-primary); border: 1px solid var(--color-border); display: grid; place-items: center; box-shadow: var(--shadow-card-sm); z-index: 1; }
.setup-trail-tile-fin { background: var(--color-confirmed-bg); border-color: var(--color-confirmed-bg); }
.setup-trail-tile svg { width: 22px; height: 22px; fill: none; stroke: var(--color-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.setup-trail-cap { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-primary); line-height: 1.2; display: block; }
.setup-trail-sub { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 500; color: var(--color-text-secondary); margin-top: 2px; display: block; }
/* website node mini front-door mock */
.setup-rail-wmock { width: 44px; flex: 0 0 44px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; background: var(--color-bg-primary); box-shadow: var(--shadow-card-sm); z-index: 1; }
.setup-rail-wmock-bar { display: flex; gap: 3px; padding: 4px 5px; background: var(--color-bg-tint); border-bottom: 1px solid var(--color-border); }
.setup-rail-wmock-bar i { width: 4px; height: 4px; border-radius: 50%; background: var(--color-cairn-mid); display: block; }
.setup-rail-wmock-hero { display: block; background: var(--color-accent); text-align: center; padding: 7px 3px 8px; }
.setup-rail-wmock-mark { width: 14px; height: 14px; border-radius: 4px; background: rgba(255,255,255,.22); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 7px; overflow: hidden; }
.setup-rail-wmock-mark img { width: 100%; height: 100%; object-fit: contain; }
.setup-rail-wmock-t { display: block; color: #fff; font-weight: 700; font-size: 6.5px; margin-top: 2px; }
.setup-rail-foot { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-secondary); margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px dashed var(--color-cairn-mid); display: flex; align-items: center; gap: var(--space-2); }
.setup-rail-gleam { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 3px rgba(139,111,71,.18); }
/* Segment label within a multi-track rail (e.g. the onboarding rail's
   "New family · the full welcome" / "Continuing family · each year" dividers). */
.setup-rail-seg { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-accent); font-weight: 600; margin-bottom: var(--space-2); }
.setup-rail-seg--gap { margin-top: var(--space-5); }
/* Small dashed note below the trail (examples are customizable). */
.setup-rail-note { font-size: var(--text-xs); color: var(--color-text-secondary); font-style: italic; margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px dashed var(--color-cairn-mid); line-height: 1.4; }

/* ===== Shared AI-action component =====
   Trigger button (.ai-action__trigger) + sparkle glyph (.ai-spark) +
   inline assist panel (.ai-action__panel).  Used by the welcome step editor
   ("Revise with AI") and available to any future AI-assist surface.

   Design rules:
   - Trigger is OUTLINE (not filled); filled treatment is reserved for the
     page's real primary action.  Matches the established house pattern in
     _messaging_composer.html (.msg-ai-spark) and the event editor's outline
     revise control.  One sparkle per AI AFFORDANCE, not per control: where a
     sparkled head already names the affordance, the button inside the panel
     stays plain (welcome/your_trail.html and the event editor both do this).
   - Sparkle color = var(--brand) = var(--color-accent) (warm cairn orange).
   - Panel background = var(--color-cairn-parchment); border = var(--color-cairn-mid).
   - Tokens only — no hardcoded hex.
*/

/* Sparkle glyph — shared across all AI-action surfaces */
.ai-spark {
  color: var(--brand);
  font-size: 13px;
  line-height: 1;
}
/* F6 fix: .btn-primary's fill IS var(--color-accent), the same token
   --brand resolves to -- the sparkle's default color goes near-invisible
   painted on its own fill color. Filled AI-triggering primaries (e.g. the
   promoted phone "Nudge" button, _attention_row.html) inherit the button's
   own (white) text color instead.

   An UNCLASSED <button> is the same trap: admin/_base.html's bare-button rule
   fills every one of them with `background: var(--brand); color: white`, so a
   sparkle inside one lands brand-on-brand at 1.00:1 (the quick-add dialog's
   "Draft it"). currentColor is the general answer for a glyph living inside a
   button -- whatever a button paints its own label with is by definition
   legible on its own fill -- so both cases share one rule. */
.btn-primary > .ai-spark,
button:not([class]) > .ai-spark {
  color: currentColor;
}

/* Buttons are inline-flex, which collapses the whitespace text node between a
   leading sparkle and its label ("✦Draft" instead of "✦ Draft"). Restore the
   gap on the glyph itself so any button can prefix one without extra markup. */
button > .ai-spark:first-child,
.button > .ai-spark:first-child,
a.btn-ghost > .ai-spark:first-child {
  margin-right: var(--space-1);
}

/* Trigger button — outline style, warm accent color */
.ai-action__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 120ms ease, box-shadow 120ms ease;
}
.ai-action__trigger:hover {
  background: color-mix(in srgb, var(--color-accent) 8%, transparent);
}
.ai-action__trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 28%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .ai-action__trigger { transition: none; }
}

/* Inline assist panel — parchment card, revealed on trigger click */
.ai-action__panel {
  background: var(--color-cairn-parchment);
  border: 1px solid var(--color-cairn-mid);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 8px;
}

/* ✦ paste-box conflict note (_application_paste.html) — a field the admin
   already typed differs from what the pasted application says. Sits right
   under the input, quiet attention color, with an inline "Use it" button. */
.conflict { display: block; font-size: var(--text-sm); color: var(--color-attention-text); margin-top: var(--space-1); }

/* Ghost card — dashed ✦ placeholder where withheld assistant work would be
   (ghost-mode upsell, pattern A). Ambient page furniture: quiet parchment
   tone, never a banner, never a modal. */
.ghost-card { display: flex; gap: 10px; align-items: flex-start;
  border: 1.5px dashed var(--color-cairn-mid); border-radius: var(--radius-md);
  background: var(--color-bg-secondary); padding: 12px 14px; margin: 14px 0; }
.ghost-card .ghost-spark { color: var(--brand); font-size: 15px;
  line-height: 1.4; flex: 0 0 auto; }
.ghost-card .ghost-body { min-width: 0; flex: 1; }
.ghost-card .ghost-headline { margin: 0; font-weight: 600; font-size: 14px; }
.ghost-card .ghost-sub { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }
.ghost-card .ghost-actions { margin-top: 8px; display: flex; flex-wrap: wrap;
  gap: 8px; align-items: center; }
.ghost-card .ghost-actions form { margin: 0; }
/* F8 fix: was --brand-deep, which computes near-ink with no underline --
   this link is the entire free-tier upgrade path, so it needs real link
   affordance, not bold body text. */
.ghost-card .ghost-upgrade-link { font-size: 13px; font-weight: 600;
  color: var(--color-accent); text-decoration: none; min-height: 44px;
  display: inline-flex; align-items: center; }
.ghost-card .ghost-upgrade-link:hover { text-decoration: underline; }
/* Stale-lead ghost line inside a pipeline row (leads_list.html). */
.lead-stale-line { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.lead-stale-line .ghost-spark { color: var(--brand); }

/* Setup step rows — the numbered-circle checklist visual. Shared by the
   setup dashboard's first-value checklist and the front-door "Path to live"
   hero, so a step on either surface reads as the same kind of step. */
.fv-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--color-border); }
.fv-row:first-child { border-top: 0; }
/* deliberately decorative: raw muted token OK (aria-hidden step digit) */
/* ux-lint: allow raw-muted-token - decorative step-digit numeral color, not body text */
.fv-dot { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; background: var(--color-bg-tint); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.fv-row.is-done .fv-dot { background: var(--color-confirmed-bg); color: var(--color-confirmed-text); border-color: var(--color-confirmed-bg); }
.fv-row.is-done { color: var(--color-text-secondary); }
/* Current step: an outline ring plus weight, never color alone (rubric). */
.fv-row.is-now .fv-dot { background: var(--color-accent); color: #fff; border-color: var(--color-accent); outline: 2px solid var(--color-accent); outline-offset: 2px; }
/* Muted via color, not opacity, so the 14px labels stay >=4.5:1 (opacity
   dimming measured ~3.8:1). The DOT follows the same rule now: opacity .55
   over the tint fill measured #c1b7a2 on #efe6cb = 1.60:1, a probe FAIL. The
   digit is aria-hidden, but it is still a numeral a sighted person reads to
   count their steps, so it gets the muted-ink token instead
   (#5C5648 on #EFE6CB = 5.85:1). The step is still visibly "not yet": the
   row label, the missing check, and the missing is-now ring all say so. */
.fv-row.is-todo { color: var(--color-text-secondary); }
.fv-row.is-todo .fv-row-label { color: inherit; }
.fv-row.is-todo .fv-dot { color: var(--color-text-secondary); }
.fv-row-body { flex: 1 1 0; min-width: 0; }
.fv-row-label { font-weight: 600; font-size: 14px; color: var(--color-text-primary); display: block; }
.fv-row.is-now .fv-row-label { font-family: var(--font-display); font-size: 17px; }
.fv-row-sub { font-size: 13px; color: var(--color-text-secondary); display: block; margin-top: 2px; line-height: 1.4; }
/* Inline links inside a sub-line get the padded-inline-link treatment
   (.kv td a idiom): 24px hit area without changing the line box. */
.fv-row-sub a { display: inline-block; padding: 4px 2px; margin: -4px -2px; min-height: 24px; }
/* Layout only: the button's own look comes from .btn-primary in components.css. */
.fv-row-act { flex: 0 0 auto; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 600px) {
  .fv-row { flex-wrap: wrap; }
  .fv-row-act { width: 100%; justify-content: center; margin-top: 8px; }
}

/* ---- Web-address teaser (shared: front-door hub + setup dashboard) ---------
   The collapsed "Your own web address" disclosure. These lived inline in
   website.html until the setup dashboard needed the same teaser; a second copy
   of the copy is exactly how the two surfaces drifted apart in the first place,
   so the primitive lives here and both pages import the pitch macro from
   admin/_web_address_card.html. */
.web-address-lede { margin: 0 0 4px; max-width: 60ch; }
.web-address-note { margin: 8px 0 0; font-size: 0.88em; max-width: 60ch; }
.cd-upsell > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; list-style: none; padding: 2px 0; }
.cd-upsell > summary::-webkit-details-marker { display: none; }
.cd-upsell > summary:hover .cd-upsell-title { color: var(--color-accent); }
.cd-upsell > summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }
.cd-upsell > summary::before { content: "\25B8"; color: var(--text-muted); font-size: 0.85em; line-height: 1; transition: transform 0.15s ease; }
.cd-upsell[open] > summary::before { transform: rotate(90deg); }
.cd-upsell-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--color-text-primary); }
.cd-plan-pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 3px 10px; border-radius: 999px; background: var(--color-accent-soft); color: var(--color-accent-strong); }
.cd-upsell-body { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .cd-upsell > summary::before { transition: none; }
}

/* Money flow strip — "family pays / Stripe handles it / your bank". Shared by
   the Money home card and the payment setup page, so it lives here rather than
   in either page's scoped block. */
.ms-flow { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none;
           margin: 0 0 var(--space-3); padding: 0; }
.ms-flow li { flex: 1 1 190px; background: var(--color-bg-tint);
              border-radius: var(--radius-md); padding: var(--space-2) var(--space-3);
              font-size: 14px; color: var(--color-text-primary); }
.ms-flow li b { display: block; font-family: var(--font-body); font-size: var(--text-sm);
                font-weight: 600; color: var(--color-text-secondary);
                margin-bottom: var(--space-1); }

/* Money dashboards rail — side-by-side bordered panels. Started as a card-vs-
   bank comparison on the payment setup page; the Money home "ready" card
   reuses it to split what lives in MemberCairn from what lives in Stripe, so
   it lives here rather than in either page's scoped block. */
.ms-rails { display: flex; flex-wrap: wrap; gap: var(--space-3);
            margin: 0 0 var(--space-3); }
.ms-rail { flex: 1 1 220px; border: 1px solid var(--color-border);
           border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); }
.ms-rail h3 { margin: 0 0 var(--space-1); font-size: var(--text-base); }
.ms-rail p { margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); }
/* A rail's own facts list — divider rows, not bare discs, matching the
   .fv-row/.mini-list house pattern for "a list that isn't a bulleted README". */
.ms-rail ul { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.ms-rail li { padding: var(--space-1) 0; font-size: var(--text-sm);
              color: var(--color-text-secondary); }
.ms-rail li + li { border-top: 1px solid var(--color-border); }
/* A single tinted callout, for one fact that needs to stand out from the
   surrounding prose (a fee disclosure, a statement-descriptor lookup) without
   the weight of a full nested card. Pair with .fine-print for the payment
   setup page's sizing, or use alone. Shared by the payment setup page and the
   Money home "ready" card. */
.ms-note { background: var(--color-bg-tint); border-radius: var(--radius-sm);
           padding: var(--space-2) var(--space-3); margin: 0; }

/* Tucked-away list section: a dashed, collapsed <details> holding rows that
   are real but not today's work, below a main list. The leads page carries
   four of these (already on the roster, ineligible, bad email address,
   practice families); they were four identical inline-styled clones before
   this class existed. The dashed border is the "set aside, not deleted"
   signal: solid borders mean live content. */
.tuck { margin-top: var(--space-8); }
.tuck > summary { cursor: pointer; padding: var(--space-3) 14px;
                  background: var(--color-bg-tint);
                  border: 1px dashed var(--color-border);
                  border-radius: var(--radius-md);
                  font-weight: 600; color: var(--color-text-secondary); }
.tuck-note { font-weight: 400; margin-left: var(--space-1); }
.tuck-body { margin-top: var(--space-3); }

/* Tom Select tap-target fix (ux-polish sweep). The shared theme partial
   (admin/_tom_select_theme.html) already floors the outer `.ts-control` at
   42px, but the vendor stylesheet forces the nested `<input>` itself to
   `min-height: 0 !important` — and that bare <input> is what
   scripts/ux_layout_probe.js measures as the tap target (it has no special
   case for a typeahead's internal input the way it does for checkbox/radio
   labels), so it read as ~972x18px on the roster member edit page at 1440.
   _tom_select_theme.html isn't editable in this wave (another agent may be
   mid-edit on admin templates), so the fix lands here; `!important` is
   needed only because the vendor rule itself is `!important` — matches the
   `.chip` house shape (44px phone floor via media query, shorter baseline
   on desktop) rather than a flat 44px everywhere. */
.ts-wrapper .ts-control { align-items: center; }
.ts-wrapper .ts-control > input { min-height: 36px !important; }
@media (max-width: 600px) {
  .ts-wrapper .ts-control > input { min-height: 44px !important; }
}

/* Mini list: one row shape for a short list inside a card (name + meta on
   the left, one or two actions on the right). Born on the admin home's
   On the Trail cards (Needs you, pipeline, events, footsteps); lives here
   since the "Coming up this week" spotlight (admin/_rsvp_spotlight.html)
   renders it on the Events pages too. Home-only row variants (.mr-name,
   .mr-excerpt, .mr-row-link) stay in home.html. `.trail-section` is the
   card-stack rhythm those cards share. */
.trail-section + .trail-section { margin-top: var(--space-6); }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list > li + li { border-top: 1px solid var(--border-soft); }
.mini-row { display: flex; justify-content: space-between; align-items: flex-start;
            gap: var(--space-3); padding: var(--space-3) 0; }
.mini-row .mr-body { min-width: 0; flex: 1; }
/* Actions side by side; explicit flex+gap so the spacing never depends on
   incidental Jinja whitespace between the children. */
.mini-row .mr-cta { flex: 0 0 auto; display: flex; align-items: center; gap: var(--space-2); }
.ev-name { font-weight: 600; color: var(--brand-deep); }
/* The spotlight's two actions sit UNDER the event, not beside it: the home
   side column is narrow enough at desktop widths that a side-by-side pair
   squeezes the name and tally into a sliver. */
.rsvp-spotlight .mini-row { flex-direction: column; align-items: stretch; gap: var(--space-2); }
.rsvp-spotlight .mini-row .mr-cta { flex-wrap: wrap; }

/* ----- People picker (admin/_people_picker.html) -----
   Native checkbox list + search; the house "pick N people" control. Lifted
   from event_editor.html's .org-list rules when the roster's den cards
   adopted the same picker (2026-09-29). Checked rows float to the top (JS)
   and wear a wash + inset accent bar so selection survives the cursor
   leaving; a divider under the last checked row splits chosen from the rest. */
.people-picker .picker-filter {
  width: 100%; box-sizing: border-box; padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); font-size: var(--text-base);
}
.people-picker .picker-list {
  max-height: 20rem; overflow-y: auto;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: var(--space-1);
}
.people-picker .picker-row {
  display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
  padding: var(--space-2); border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 400; min-height: 44px; box-sizing: border-box;
}
.people-picker .picker-row:hover { background: var(--color-bg-tint); }
.people-picker .picker-row input { width: 24px; height: 24px; flex: 0 0 auto; accent-color: var(--color-cairn-dark); }
.people-picker .picker-name { font-size: var(--text-base); }
.people-picker .picker-email { font-size: var(--text-sm); color: var(--color-text-secondary); }
.people-picker .picker-empty { padding: var(--space-2); color: var(--color-text-secondary); font-size: var(--text-sm); }
.people-picker .picker-row:has(input:checked) {
  background: color-mix(in srgb, var(--color-cairn-dark) 8%, transparent);
  box-shadow: inset 3px 0 0 var(--color-cairn-dark);
}
.people-picker .picker-row:has(input:checked) .picker-name { font-weight: 600; }
.people-picker .picker-row[data-picker-divider] { border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-1); }
.people-picker [data-picker-status] { display: inline-block; margin-top: var(--space-1); }

/* Variable chips: read-view pills from render_preview_chips and the insert buttons. Holes the body lint marks wear a dashed clay chip (on the white fill so small clay text clears 4.5:1); bracketed placeholder text is underlined in clay. */
.var-chip, .var-insert-chip { display: inline-block; background: var(--color-bg-tint); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 2px var(--space-2); font-size: 12px; color: var(--color-accent); font-family: inherit; }
.var-chip--unknown { background: var(--color-bg-primary); border: 1px dashed var(--color-cairn-clay); color: var(--color-cairn-clay); cursor: help; }
.var-placeholder { color: var(--color-cairn-clay); background: var(--color-bg-primary); padding: 0 2px; border-bottom: 1px dashed var(--color-cairn-clay); cursor: help; }

/* Fills-in fact lists (From your Profile / From elsewhere): shared by the
   New Member Path builder and the new member welcome editor. */
.builder-sample__uses { margin-top: .5rem; font-size: .85rem; color: var(--color-cairn-dark); }
.builder-sample__uses-title { font-weight: 600; color: var(--color-text-secondary); margin: .45rem 0 .15rem; }
.builder-sample__uses ul { margin: 0; padding-left: 1.1rem; }
.builder-sample__uses li { margin: .15rem 0; }
.builder-sample__uses-value { white-space: pre-line; }
/* Attention amber, not clay: this sits on the card's tinted ground, where
   clay measures 4.03:1 (the probe's 4.5:1 floor at 14px). */
.builder-sample__uses-unset { color: var(--color-attention-text); }
/* A detail the sample has no value for (a den leader, a calendar link):
   the source sentence, muted, so it never reads as the value. */
.builder-sample__uses-note { color: var(--text-muted); font-style: italic; }
/* "Edit" is a 23px-wide word; horizontal padding gives the inline link a
   real hit box (the 24px floor is per axis, not just height). */
.builder-sample__uses a { display: inline-block; min-width: 24px; min-height: 24px;
  padding: 2px 6px; margin-left: .1rem; }
