/* GiveTill — one stylesheet, no build step.
   Calm gray desk, soft white cards, big confident numbers, black for the one thing to do,
   the organization's color for its own data, hatching for targets and estimates. */

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin-wght-normal-5e6b0c47.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --bg: #f1f1ef;
  --surface: #fafaf9;
  --raised: #ffffff;
  --ink: #111113;
  --ink-2: #46464c;
  --ink-3: #616168;
  --line: #e6e6e3;
  --line-2: #d6d6d2;
  --hover: #e8e8e5;
  --track: #e9e9e6;
  --primary: #141416;
  --primary-ink: #ffffff;
  --danger: #c2185b;
  --pink: #e0177a;
  --pink-ink: #c0136a;
  --green: #22a447;
  --green-ink: #167a34;
  --orange: #f29a1a;
  --orange-ink: #975400;
  --sky: #9db7f2;
  --warn-soft: #fdf0e1;
  --up: var(--green-ink);
  --down: var(--pink-ink);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 1px 1px rgb(0 0 0 / .02);
  --shadow-pop: 0 6px 20px rgb(0 0 0 / .08), 0 1px 3px rgb(0 0 0 / .06);
  --focus-color: #c98a00;
  --spring: cubic-bezier(0.25, 1.25, 0.5, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fresh: #fff1a8;
  --stamp: #c0136a;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11; --surface: #16171a; --raised: #1e1f23;
    --ink: #f1f1f3; --ink-2: #c3c3c9; --ink-3: #9a9aa3;
    --line: #26272c; --line-2: #36373d; --hover: #232428; --track: #2a2b30;
    --primary: #f1f1f3; --primary-ink: #111113;
    --danger: #ff6fa8; --pink: #ff4f9e; --pink-ink: #ff7ab4; --green: #3ccf68; --green-ink: #6ee08f;
    --orange: #f5a83a; --orange-ink: #f7b955; --sky: #5d7cc4; --warn-soft: #2e2416;
    --shadow: 0 1px 2px rgb(0 0 0 / .3); --shadow-pop: 0 8px 24px rgb(0 0 0 / .45), 0 1px 3px rgb(0 0 0 / .4);
    --focus-color: #f2b705; --fresh: #4a3f12; --stamp: #ff7ab4;
    color-scheme: dark;
  }
}

/* The accent belongs to the organization: its own data, links and highlights. */
body {
  --accent: var(--org-accent, #2357e8);
  --accent-ink: var(--org-accent-ink, #ffffff);
  --accent-soft: color-mix(in oklch, var(--accent) 12%, var(--surface));
  --accent-hatch: color-mix(in oklch, var(--accent) 45%, var(--surface));
}
@media (prefers-color-scheme: dark) {
  body { --accent: var(--org-accent-dark, #7d9cff); --accent-ink: var(--org-accent-dark-ink, #0b1020); --accent-soft: color-mix(in oklch, var(--accent) 18%, var(--surface)); }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus-color); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in oklch, var(--accent) 26%, transparent); }
input, textarea { caret-color: var(--accent); }
h1 { font-size: clamp(2rem, 3.4vw, 2.85rem); line-height: 1.08; margin: 0 0 .35rem; font-weight: 500; letter-spacing: -0.035em; }
h2 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .75rem; font-weight: 560; letter-spacing: -0.01em; }
h3 { font-size: 1rem; margin: 0 0 .5rem; font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--raised); padding: .5rem 1rem; z-index: 50; border-radius: 10px; }
.skip-link:focus { left: .5rem; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; stroke-width: 1.75; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }

/* ---------- Layout ---------- */
body.has-sidebar { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.sidebar { padding: 1.5rem 1rem 1rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.org-name { display: flex; align-items: center; gap: .7rem; padding: 0 .4rem; }
.org-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 1.05rem; flex: none; box-shadow: inset 0 -2px 0 rgb(0 0 0 / .12); }
.org-name > a:first-of-type { font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; line-height: 1.2; min-width: 0; }
.org-name .switch { margin-left: auto; font-size: .8rem; color: var(--ink-3); }
.sidebar-search { display: flex; align-items: center; gap: .55rem; padding: 0 .75rem; height: 44px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); color: var(--ink-3); text-decoration: none; box-shadow: var(--shadow); }
.sidebar-search input { border: 0; background: none; min-height: 0; padding: 0; flex: 1; min-width: 0; font-size: .95rem; }
.sidebar-search input:focus-visible { outline: none; }
.sidebar-search:focus-within { outline: 3px solid var(--focus-color); outline-offset: 2px; }
.kbd { font-size: .75rem; padding: .1rem .4rem; border-radius: 6px; background: var(--hover); color: var(--ink-3); font-weight: 500; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: .8rem; min-height: 44px; padding: .5rem .8rem; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 450; }
.nav-link .icon { color: var(--ink-2); }
.nav-link:hover { background: var(--hover); }
.nav-link.is-active { background: var(--accent); color: var(--accent-ink); font-weight: 550; box-shadow: 0 6px 14px color-mix(in oklch, var(--accent) 35%, transparent); }
.nav-link.is-active .icon { color: var(--accent-ink); }
.nav-link.is-active .badge { box-shadow: 0 0 0 2px var(--accent); }
.nav-link .badge { margin-left: auto; }
.nav-heading { margin: 1.1rem .8rem .35rem; font-size: .8rem; color: var(--ink-3); font-weight: 450; }
.badge { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; background: var(--orange); color: #1b1200; border-radius: 999px; font-size: .75rem; font-weight: 650; }
.me { margin-top: auto; padding: .9rem .4rem 0; border-top: 1px solid var(--line); display: flex; gap: .65rem; align-items: center; }
.me .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: .65rem; margin: -.35rem; padding: .35rem; border-radius: 12px; color: var(--ink); text-decoration: none; }
.me .who:hover, .me .who.is-active { background: var(--hover); }
.me .who-text { min-width: 0; line-height: 1.25; }
.me .who-text strong { display: block; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .who-text span { font-size: .8rem; color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); color: var(--ink-2); cursor: pointer; }
.icon-button:hover { background: var(--hover); color: var(--ink); }
main { padding: 1.75rem clamp(1rem, 2.6vw, 2.5rem) 4rem clamp(1rem, 1.6vw, 1.5rem); max-width: 1320px; width: 100%; }
main.is-wide { max-width: none; }
main:focus { outline: none; }

/* Tablets and phones: a slim top bar, and the sidebar slides in as a drawer behind Menu. */
.topbar, .nav-backdrop, .drawer-close { display: none; }
@media (max-width: 1024px) {
  body.has-sidebar { display: block; }
  .topbar { display: flex; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 20; padding: .6rem clamp(1rem, 2.6vw, 2.5rem) .6rem 1rem; background: color-mix(in oklch, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .topbar-menu { min-height: 44px; padding: .4rem .85rem .4rem .7rem; background: var(--raised); border-color: var(--line); box-shadow: var(--shadow); }
  .topbar-org { display: flex; align-items: center; gap: .6rem; min-width: 0; flex: 1; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
  .topbar-org .org-mark { width: 2rem; height: 2rem; font-size: .95rem; border-radius: 9px; }
  .topbar-org-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .icon-button { width: 44px; height: 44px; }

  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(320px, 86vw); height: 100dvh; background: var(--bg); box-shadow: 0 0 40px rgb(0 0 0 / .18); padding-top: 1rem;
    transform: translateX(-105%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s; }
  .nav-open .sidebar { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  .drawer-close { display: inline-grid; align-self: flex-end; margin-bottom: -.5rem; width: 44px; height: 44px; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 30; background: rgb(0 0 0 / .32); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .nav-open { overflow: hidden; }
}

.page-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem; }
.page-header p { margin: 0; color: var(--ink-3); font-size: 1rem; }
.crumbs { display: flex; gap: .4rem; align-items: center; color: var(--ink-3); font-size: .9rem; margin-bottom: .35rem; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------- Flash and errors ---------- */
.flash { padding: .8rem 1rem .8rem 1.1rem; border-radius: var(--radius); margin: 0 0 1.25rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--raised); box-shadow: var(--shadow-pop); border: 1px solid var(--line); }
/* A confirmation with Undo stays in reach while you work down a long list. */
.flash:has(form) { position: sticky; top: .75rem; z-index: 5; }
.flash { --dot: var(--green); }
.flash.alert, .error-summary { --dot: var(--pink); background: var(--raised); }
.flash > :first-child::before, .error-summary h2::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--dot); margin-right: .6rem; vertical-align: .08em; }
.error-summary { padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.error-summary h2 { font-size: 1rem; margin: 0 0 .25rem; }
.error-summary ul { margin: 0; padding-left: 1.25rem; }

/* ---------- Buttons ---------- */
.button, button, input[type=submit] {
  font: inherit; font-weight: 520; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px;
  padding: .5rem 1.05rem; border-radius: 12px; border: 1px solid transparent; background: var(--hover); color: var(--ink);
  text-decoration: none; cursor: pointer; transition: background-color .15s, box-shadow .15s, transform .1s;
}
.button:hover, button:hover, input[type=submit]:hover { background: color-mix(in oklch, var(--hover) 80%, var(--ink) 8%); }
.button:active, button:active { transform: translateY(1px); }
.button.primary, button.primary, input[type=submit].primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 14px rgb(0 0 0 / .16); }
.button.primary:hover, button.primary:hover, input[type=submit].primary:hover { background: color-mix(in oklch, var(--primary) 86%, var(--bg)); }
.button.quiet, button.quiet { background: var(--raised); border-color: var(--line); box-shadow: var(--shadow); }
.button.danger, button.danger { color: var(--danger); }
.button.small, button.small { min-height: 34px; padding: .25rem .7rem; font-size: .875rem; border-radius: 10px; }
button:disabled, .button[aria-disabled=true] { opacity: .55; cursor: not-allowed; }
.link-button { border: 0; background: none; padding: 0; min-height: 0; color: var(--accent); font-weight: 450; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; }
.link-button:hover { background: none; }
form.button_to { display: inline; }

/* Segmented control: a gray track, the chosen one lifted onto white. */
.segmented { display: inline-flex; gap: 2px; padding: 4px; border-radius: 13px; background: var(--track); }
.segmented > a, .segmented > button, .segmented > label { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .3rem .85rem; border-radius: 10px; border: 0; background: none; color: var(--ink-3); font-weight: 500; font-size: .92rem; text-decoration: none; cursor: pointer; box-shadow: none; }
.segmented > a:hover, .segmented > button:hover { color: var(--ink); background: none; }
.segmented > [aria-current], .segmented > [aria-pressed="true"], .segmented > label:has(input:checked) { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-pop); }
.segmented > label input { position: absolute; opacity: 0; pointer-events: none; }
.segmented > label:has(input:focus-visible) { outline: 3px solid var(--focus-color); outline-offset: 1px; }

/* Pills: status with a colored dot, change with a triangle. */
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem; border-radius: 999px; background: var(--raised); box-shadow: var(--shadow-pop); font-size: .85rem; font-weight: 550; color: var(--ink); white-space: nowrap; }
.pill::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--dot, var(--ink-3)); }
.pill.no-dot::before { display: none; }
.pill.is-good { --dot: var(--green); }
.pill.is-risk { --dot: var(--orange); }
.pill.is-bad { --dot: var(--pink); }
.pill.is-info { --dot: var(--accent); }
.delta-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; background: var(--raised); box-shadow: var(--shadow-pop); font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta-pill::before { content: ""; border: .3rem solid transparent; }
.delta-pill.up::before { border-bottom: .42rem solid var(--green); border-top: 0; }
.delta-pill.down::before { border-top: .42rem solid var(--pink); border-bottom: 0; }

/* ---------- Cards and stats ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.75rem; min-width: 0; box-shadow: var(--shadow); }
.card > h2:first-child, .card-head h2 { font-size: 1.3rem; margin-bottom: .2rem; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.card-head p { margin: 0; color: var(--ink-3); font-size: .92rem; }
.card-table { overflow-x: auto; padding: 1.4rem 1.25rem .75rem; }
.card-table > h2, .card-table > .card-head { padding: 0 .5rem; }
.grid { display: grid; gap: 1.25rem; }
.stats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 1.5rem; }
/* Several numbers in one card, split by hairlines, like a ledger strip. */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 1.5rem .5rem; margin-bottom: 1.25rem; }
.stat-strip .stat { padding: 0 1.25rem; border-left: 1px solid var(--line); }
.stat-strip .stat:first-child { border-left: 0; }
.stat { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.stat .label { color: var(--ink-3); font-size: .92rem; }
.stat .value { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat a.value { color: var(--ink); text-decoration: none; }
.stat a.value:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.stat .value.is-good { color: var(--green-ink); }
.stat .value.is-bad { color: var(--pink-ink); }
.card { container-type: inline-size; }
.big-number { font-size: clamp(2.4rem, 17cqi, 4.6rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; margin: .4rem 0 .9rem; font-variant-numeric: tabular-nums; }
.delta { font-size: .85rem; color: var(--ink-3); }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.two-col { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.three-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .three-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 900px) { .two-col, .three-col { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .stat-strip { grid-template-columns: minmax(0, 1fr); padding: .5rem 0; }
  .stat-strip .stat { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 1.1rem; }
  .stat-strip .stat:first-child { border-top: 0; }
  .card { padding: 1.25rem; }
}
/* Label/value rows under a big number. */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.ledger li > span:first-child { color: var(--ink-2); }
.ledger strong { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.05rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .5rem .75rem; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .85rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .88rem; color: var(--ink-3); font-weight: 450; background: transparent; }
td small, td .sub { display: block; color: var(--ink-3); font-size: .85rem; margin-top: .1rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color .12s; }
tbody tr:hover td { background: var(--raised); }
tbody tr:hover td:first-child { border-radius: 12px 0 0 12px; }
tbody tr:hover td:last-child { border-radius: 0 12px 12px 0; }
td a { color: var(--ink); font-weight: 520; text-decoration: none; }
td a:hover { text-decoration: underline; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.date { white-space: nowrap; color: var(--ink-2); }
tfoot td { font-weight: 650; border-top: 1px solid var(--line-2); border-bottom: 0; background: var(--raised); }
tfoot td:first-child { border-radius: 12px 0 0 12px; }
tfoot td:last-child { border-radius: 0 12px 12px 0; }
/* Narrow screens: rows of .stacked tables become cards, each cell labelled from data-label. */
@media (max-width: 640px) {
  table.stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stacked, table.stacked tbody, table.stacked tr, table.stacked td { display: block; }
  table.stacked tr { padding: .8rem .4rem; border-bottom: 1px solid var(--line); }
  table.stacked tbody tr:last-child { border-bottom: 0; }
  table.stacked td { border: 0; padding: .15rem 0; text-align: left; }
  table.stacked tbody tr:hover td { background: none; }
  table.stacked td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); font-size: .85rem; }
}
.empty { padding: 2rem; text-align: center; color: var(--ink-3); }

/* Filters bar */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 1.25rem; padding: 4px; border-radius: 13px; background: var(--track); width: fit-content; max-width: 100%; }
.chip { padding: .4rem .8rem; border-radius: 10px; color: var(--ink-3); text-decoration: none; font-size: .9rem; font-weight: 500; }
.chip:hover { color: var(--ink); }
.chip[aria-current] { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-pop); }

/* ---------- Forms ---------- */
.form { max-width: 760px; }
fieldset { min-inline-size: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem 1.4rem; margin: 0 0 1.25rem; background: var(--surface); box-shadow: var(--shadow); }
legend { font-weight: 600; padding: 0 .4rem; font-size: 1.05rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label, .label-text { font-weight: 550; font-size: .9rem; }
.req { font-weight: 400; color: var(--ink-3); }
.hint { color: var(--ink-3); font-size: .85rem; margin: 0; }
.row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=date], input[type=password], input[type=number], input[type=url], select, textarea {
  font: inherit; color: var(--ink); background: var(--raised); border: 1px solid var(--line-2); border-radius: 11px; padding: .55rem .75rem; min-height: 44px; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink-3); }
textarea { min-height: 5rem; resize: vertical; }
input[type=file] { font: inherit; }
.check { display: flex; gap: .55rem; align-items: center; margin-bottom: .5rem; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--primary); }
.radio-row { display: flex; flex-wrap: wrap; gap: 1rem; border: 0; padding: 0; margin: 0 0 1rem; background: none; box-shadow: none; }
.radio-row legend { padding: 0; margin-bottom: .3rem; font-size: .9rem; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.money-input { position: relative; }
.money-input span { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.money-input input { padding-left: 1.5rem; }
.field_with_errors { display: contents; }
.field_with_errors input, .field_with_errors select { border-color: var(--danger); }
@media (pointer: coarse) { input, select, textarea { font-size: 16px; } }

/* ---------- Contact profile ---------- */
.profile-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 1.75rem; }
.tags { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .55rem; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; background: var(--raised); box-shadow: var(--shadow-pop); color: var(--ink); font-weight: 550; }
.tag::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: var(--ink-3); }
.tag.good::before { background: var(--green); }
.tag.warn::before { background: var(--orange); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.25rem; margin: 0; }
dl.facts dt { color: var(--ink-3); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--ink-3); font-size: .875rem; }
.timeline .what { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.timeline .body { white-space: pre-line; color: var(--ink-2); margin: .25rem 0 0; }
.kind { font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.kind.gift { color: var(--accent); }
.stack > * + * { margin-top: 1.25rem; }

/* Sign-in */
.auth { max-width: 400px; margin: 12vh auto; }
.auth h1 { margin-bottom: 1.25rem; }

/* Import mapping */
.mapping td:first-child { font-weight: 600; }
.sample { color: var(--ink-3); font-size: .85rem; }
pre.log { white-space: pre-wrap; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; max-height: 320px; overflow: auto; font-size: .85rem; }

/* Pagination: round steps, the current one black. */
.pagination { display: flex; gap: .5rem; justify-content: flex-end; align-items: center; margin-top: 1rem; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); text-decoration: none; font-weight: 500; }
.pagination span { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* ---------- Charts ---------- */
/* Hatching marks plans, targets and estimates; solid marks what actually happened. */
.hatch { background: repeating-linear-gradient(-45deg, var(--c, var(--accent-hatch)) 0 2px, transparent 2px 5px); }
.hatch-pink { --c: var(--pink); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0; padding: 0; list-style: none; font-size: .88rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.legend i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); }
.legend i.bar { width: 1.1rem; height: .5rem; border-radius: 3px; }
.legend i.hatch { background: repeating-linear-gradient(-45deg, var(--c) 0 2px, transparent 2px 4px); }
.legend b { font-weight: 600; color: var(--ink); }

/* A progress bar toward a goal: solid fill, a tick at the target. */
.meter { display: grid; gap: .45rem; }
.meter-track { position: relative; height: .7rem; border-radius: 999px; background: var(--track); overflow: visible; }
.meter-track span { display: block; height: 100%; border-radius: inherit; background: repeating-linear-gradient(-45deg, var(--accent) 0 2px, var(--accent-hatch) 2px 5px); transition: width .8s var(--ease-out); }
.meter.is-met .meter-track span { background: var(--green); }
.meter-text { margin: 0; font-size: .92rem; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.meter-text strong { color: var(--ink); font-weight: 600; }
.campaign-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.campaign-list a { color: var(--ink); font-weight: 550; text-decoration: none; }
.campaign-list a:hover { text-decoration: underline; }

/* Column chart: one bar per period, hatched until the current one. */
.columns-chart { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end; gap: clamp(3px, .7vw, 8px); height: 190px; position: relative; padding-top: 1.75rem; }
.columns-chart .col { position: relative; height: 100%; display: flex; align-items: flex-end; }
.columns-chart .col > i { display: block; width: 100%; height: var(--h); min-height: 2px; border-radius: 6px 6px 3px 3px; background: repeating-linear-gradient(-45deg, var(--accent) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 35%, transparent); }
.columns-chart .col.is-current > i { background: var(--accent); box-shadow: none; }
.columns-chart .col > b { position: absolute; bottom: calc(var(--h) + .3rem); left: 50%; transform: translateX(-50%); font-size: .8rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.columns-chart .col .tip { position: absolute; bottom: calc(var(--h) + .5rem); left: 50%; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2; }
.columns-chart .col:hover .tip, .columns-chart .col:focus-within .tip { opacity: 1; }
.columns-chart .col:hover > i { filter: saturate(1.4); }
.chart-axis { display: flex; justify-content: space-between; color: var(--ink-3); font-size: .82rem; margin-top: .5rem; }
.chart-tip { display: inline-flex; gap: .5rem; align-items: center; padding: .35rem .7rem; border-radius: 999px; background: var(--raised); box-shadow: var(--shadow-pop); font-size: .82rem; white-space: nowrap; color: var(--ink); }
.chart-tip > * + * { padding-left: .5rem; border-left: 1px solid var(--line); }

/* Dot strip: one dot per person, placed by how long since they last gave. */
.dotstrip { position: relative; padding: 2.25rem 0 0; }
.dotstrip-plot { position: relative; height: var(--plot-h, 160px); border-bottom: 1px solid var(--line); }
.dotstrip-plot .dot { position: absolute; left: var(--x); bottom: var(--y); width: var(--d, 10px); height: var(--d, 10px); margin-left: calc(var(--d, 10px) / -2); border-radius: 50%; background: var(--c); }
.dotstrip-plot a.dot:hover, .dotstrip-plot a.dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; z-index: 3; }
.dotstrip-plot .dot .chart-tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .12s; }
.dotstrip-plot .dot:hover .chart-tip, .dotstrip-plot .dot:focus-visible .chart-tip { opacity: 1; }
.dotstrip-plot .marker { position: absolute; top: -1.6rem; bottom: 0; left: var(--x); border-left: 1.5px dashed var(--ink-2); }
.dotstrip-plot .marker span { position: absolute; top: 0; left: .4rem; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.dotstrip-axis { position: relative; height: 1.5rem; margin-top: .45rem; color: var(--ink-3); font-size: .8rem; }
.dotstrip-axis span { position: absolute; left: var(--x); transform: translateX(-50%); white-space: nowrap; }
.dotstrip-axis span:first-child { transform: none; }
.dotstrip-axis span:last-child { transform: translateX(-100%); }

/* Bridge (waterfall): how we got from last year to this year. */
.bridge { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.bridge li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) minmax(5rem, auto); gap: .9rem; align-items: center; min-height: 2.6rem; }
.bridge .name { color: var(--ink); font-weight: 500; }
.bridge .name small { display: block; color: var(--ink-3); font-weight: 400; font-size: .8rem; }
.bridge .lane { position: relative; height: 1.4rem; }
.bridge .lane i { position: absolute; top: 0; bottom: 0; left: var(--from); width: var(--w); min-width: 3px; border-radius: 5px; }
.bridge .is-total i { background: var(--accent); }
.bridge .is-start i { background: repeating-linear-gradient(-45deg, var(--ink-3) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--line-2); }
.bridge .is-up i { background: repeating-linear-gradient(-45deg, var(--green) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--green) 50%, transparent); }
.bridge .is-down i { background: repeating-linear-gradient(-45deg, var(--pink) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--pink) 50%, transparent); }
.bridge .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.bridge .is-up .amt { color: var(--green-ink); }
.bridge .is-down .amt { color: var(--pink-ink); }
@media (max-width: 640px) { .bridge li { grid-template-columns: minmax(0, 1fr) auto; } .bridge .lane { grid-column: 1 / -1; grid-row: 2; } }

/* Two bars per row: what was planned (hatched) over what happened (solid). */
.pair-bars { list-style: none; margin: 0; padding: 0; }
.pair-bars li { display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); }
.pair-bars li:first-child { border-top: 0; }
.pair-bars .bars { display: grid; gap: 4px; }
.pair-bars .bars i { display: block; height: .55rem; width: var(--w); min-width: 3px; border-radius: 999px; }
.pair-bars .bars i.plan { background: repeating-linear-gradient(-45deg, var(--accent) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 30%, transparent); }
.pair-bars .bars i.actual { background: var(--accent); }
.pair-bars .figures { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }
@media (max-width: 640px) { .pair-bars li { grid-template-columns: minmax(0, 1fr) auto; } .pair-bars .bars { grid-column: 1 / -1; grid-row: 2; } }

/* Horizontal steps, like a story told left to right. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; position: relative; }
.steps::before { content: ""; position: absolute; top: .4rem; left: .4rem; right: .4rem; border-top: 1.5px solid var(--line-2); }
.steps li { position: relative; padding-top: 1.4rem; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; width: .8rem; height: .8rem; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 0 3px var(--surface); }
.steps time { color: var(--ink-3); font-size: .85rem; display: block; }
.steps strong { display: block; font-weight: 600; margin: .15rem 0; }
.steps p { margin: 0; color: var(--ink-2); font-size: .9rem; }

/* "Needs you": a short list of things to act on. */
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li + li { border-top: 1px solid var(--line); }
.todo-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .9rem .25rem; color: var(--ink); text-decoration: none; border-radius: 12px; }
.todo-list a:hover { background: var(--raised); }
.todo-list .todo-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: color-mix(in oklch, var(--c) 14%, var(--surface)); color: var(--c); }
.todo-list strong { display: block; font-weight: 600; }
.todo-list span.sub { color: var(--ink-3); font-size: .88rem; }
.todo-list .icon-chev { color: var(--ink-3); }

/* A pattern the data turned up: the one loud card on a page. */
.insight { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 1.6rem 1.75rem; color: #fff; min-height: 260px; display: flex; flex-direction: column; gap: .6rem;
  background: radial-gradient(70% 55% at 100% 100%, #e58a52 0%, transparent 70%), radial-gradient(90% 80% at 0% 0%, #1b2f6b 0%, transparent 70%), linear-gradient(160deg, #1f3780 0%, #3a5cb4 60%, #8a5f8a 100%); box-shadow: var(--shadow-pop); }
.insight .kicker { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; padding: .25rem .7rem; border-radius: 999px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .25); font-size: .82rem; font-weight: 550; }
.insight .insight-number { font-size: clamp(2.6rem, 4.5vw, 3.6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; margin: .4rem 0 0; }
.insight h2 { color: #fff; font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 550; margin: 0; }
.insight p { margin: 0; color: rgb(255 255 255 / .86); }
.insight .button { margin-top: auto; align-self: flex-start; background: #fff; color: #111; box-shadow: 0 6px 16px rgb(0 0 0 / .2); }
.callout { border-radius: var(--radius); padding: 1rem 1.15rem; background: var(--warn-soft); color: var(--ink); }
.callout .kicker { display: flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--orange-ink); margin-bottom: .25rem; }
.callout p { margin: 0 0 .75rem; }

/* ---------- Warmth ---------- */
.badge:empty { display: none; }

/* Initials avatars: warm, hashed hues, same person same color everywhere. */
.avatar { --h: 200; display: inline-grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: oklch(0.92 0.05 var(--h)); color: oklch(0.36 0.09 var(--h)); font-size: .78rem; font-weight: 650; letter-spacing: .02em; box-shadow: 0 0 0 2px var(--raised), 0 0 0 3px oklch(0.8 0.08 var(--h)); }
.avatar-sm { width: 1.7rem; height: 1.7rem; font-size: .66rem; }
.avatar-lg { width: 3.5rem; height: 3.5rem; font-size: 1.2rem; }
@media (prefers-color-scheme: dark) { .avatar { background: oklch(0.38 0.07 var(--h)); color: oklch(0.94 0.035 var(--h)); } }
.who { display: inline-flex; align-items: center; gap: .65rem; }
.profile-title { display: flex; align-items: center; gap: 1rem; }

/* Something you just did glows for a moment, then settles. */
@keyframes fresh { 0%, 35% { background-color: var(--fresh); } 100% { background-color: transparent; } }
.is-fresh { animation: fresh 2.6s ease-out; border-radius: 8px; }

.streak { margin: .45rem 0 0; color: var(--ink-2); }
.timeline li.gap { display: block; padding: .4rem 0; border-bottom: 1px dashed var(--line-2); color: var(--ink-3); font-size: .85rem; font-style: italic; text-align: center; }

/* Pencil sketches for empty states */
.sketch { display: block; margin: 0 auto .75rem; color: var(--ink-3); overflow: visible; }
.sketch path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.sketch.is-drawing path { stroke-dasharray: 1; animation: draw 700ms calc(var(--i) * 140ms + 150ms) var(--ease-out) both; }
.empty-state { text-align: center; padding: 2.75rem 1.5rem; color: var(--ink-2); }
.empty-state h2 { margin-bottom: .35rem; color: var(--ink); }
.empty-state p { margin: 0 auto 1.1rem; max-width: 44ch; }

/* The thank-you stamp */
.stamp { display: inline-block; padding: .2rem .7rem; border: 2.5px solid var(--stamp); border-radius: 8px; color: var(--stamp);
  font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; transform: rotate(-8deg); background: var(--raised); }
.stamp-lg { font-size: 1.15rem; padding: .35rem 1rem; }
@keyframes stamp-in { 0% { opacity: 0; transform: scale(2.2) rotate(-14deg); } 60% { opacity: 1; transform: scale(.94) rotate(-7deg); } 100% { transform: scale(1) rotate(-8deg); } }
.stamp.is-landing { animation: stamp-in 360ms var(--spring) both; }
[data-stamp-slot] { position: relative; }
[data-stamp-slot] > .stamp { position: absolute; left: .25rem; top: 50%; margin-top: -1rem; z-index: 2; pointer-events: none; }
.thank-row.is-leaving [data-stamp-slot] > :not(.stamp) { visibility: hidden; }
@keyframes row-out { to { opacity: 0; transform: translateX(32px); } }
.thank-row.is-leaving > * { animation: row-out 260ms 390ms ease-in both; }
.all-thanked .stamp { margin-bottom: 1rem; }

/* One-at-a-time thank-yous */
.focus-card { max-width: 800px; }
.focus-progress { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; color: var(--ink-2); }
.focus-progress .meter-track { flex: 1; }
.focus-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.focus-head h2 { font-size: 1.6rem; margin: 0; letter-spacing: -0.02em; }
.focus-amount { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; margin: 0; line-height: 1.05; }
.focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin: 1.25rem 0; }
.focus-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.focus-actions .button { min-height: 48px; padding-inline: 1.2rem; }
.suggest { font-size: .8rem; font-weight: 600; opacity: .85; }

/* Brand color swatches in Settings */
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0 1rem; }
.swatch { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .75rem .3rem .3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); font: inherit; font-size: .85rem; color: var(--ink); cursor: pointer; min-height: 40px; font-weight: 500; box-shadow: var(--shadow); }
.swatch i { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.color-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
input[type=color] { width: 3rem; height: 2.6rem; padding: 2px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raised); }

.greeting-sub { font-size: 1.05rem; color: var(--ink-3); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Dashboard */
.dash-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1240px) { .dash-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dash-top > .stack { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; } .dash-top > .stack > * + * { margin-top: 0; } }
@media (max-width: 900px) { .dash-top, .dash-top > .stack { grid-template-columns: minmax(0, 1fr); } }
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rank-list li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); }
.rank-list li:first-child { border-top: 0; }
.rank-list a { color: var(--ink); font-weight: 520; text-decoration: none; }
.rank-list a:hover { text-decoration: underline; }
.rank-list strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.rank-bar { display: block; height: .55rem; border-radius: 999px; background: var(--track); overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: inherit; background: repeating-linear-gradient(-45deg, var(--accent) 0 2px, var(--accent-hatch) 2px 5px); }
.sidebar-search input[type=search] { border: 0; background: none; min-height: 0; padding: 0; box-shadow: none; }

/* ---------- Emails ---------- */
.starter-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.starter-grid form.button_to { display: block; }
.starter { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .45rem; width: 100%; height: 100%; min-height: 190px; padding: 1.5rem; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); font-weight: 400; }
.starter:hover { background: var(--raised); box-shadow: var(--shadow-pop); }
.starter strong { font-size: 1.2rem; font-weight: 560; letter-spacing: -0.01em; margin-top: .6rem; }
.starter > span:last-child { color: var(--ink-3); }
.starter-icon, .palette-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; }
.palette-icon { width: 2rem; height: 2rem; }
.todo-list form.button_to { display: block; }
.todo-button { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; width: 100%; padding: .9rem .25rem; text-align: left; background: none; border-radius: 12px; font-weight: 400; min-height: 0; }
.todo-button:hover { background: var(--raised); }
.todo-button strong { display: block; font-weight: 600; }
.todo-button .sub { color: var(--ink-3); font-size: .88rem; }

/* The editor fills the page: palette, the email on a desk, and who you're previewing as. */
.editor { display: grid; gap: 1rem; }
.editor-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.editor-title { flex: 1 1 520px; min-width: 0; }
.envelope-fields { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .25rem 1rem; max-width: 760px; }
.env-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: .75rem; border-top: 1px solid var(--line); }
.env-row:first-child { border-top: 0; }
.env-row > span { color: var(--ink-3); font-size: .88rem; }
.env-row input { border: 0; background: none; padding: .55rem 0; min-height: 40px; border-radius: 0; }
.env-row input:focus-visible { outline: none; box-shadow: inset 0 -2px 0 var(--accent); }
.env-subject input { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.editor-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.save-status { margin: 0 .5rem 0 0; color: var(--ink-3); font-size: .88rem; min-width: 9rem; text-align: right; }
.save-status.is-error { color: var(--pink-ink); font-weight: 600; }
.more-menu { position: relative; }
.more-menu summary { list-style: none; }
.more-menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px; padding: .35rem; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); animation: pop-open 220ms var(--spring); transform-origin: top right; }
.menu-panel form.button_to { display: block; }
.menu-item { display: flex; width: 100%; justify-content: flex-start; background: none; min-height: 40px; border-radius: 9px; font-weight: 450; }
.menu-item.danger { color: var(--danger); }
@keyframes pop-open { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.03); } 100% { transform: scale(1); } }

.editor-body { display: grid; grid-template-columns: 240px minmax(0, 1fr) 236px; gap: 1rem; align-items: start; }
.palette, .preview-as { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem .9rem; box-shadow: var(--shadow); }
.palette h2, .preview-as h2 { font-size: 1rem; margin: 0 .3rem .2rem; }
.palette h2 + .hint, .preview-as h2 + .hint { margin: 0 .3rem .75rem; }
.palette h2:not(:first-child) { margin-top: 1.25rem; }
.palette > .hint, .palette [data-email-editor-target=sections] > .hint { margin: 0 .3rem; }
kbd { font: inherit; font-size: .8em; padding: .05rem .35rem; border-radius: 5px; background: var(--hover); border: 1px solid var(--line-2); }
.palette-list, .section-list, .people { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.palette-item, .person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65rem; align-items: center; width: 100%; padding: .45rem .5rem; min-height: 0; text-align: left; background: none; border-radius: 11px; font-weight: 400; }
.palette-item:hover, .person:hover { background: var(--raised); }
.palette-item strong, .person strong { display: block; font-weight: 550; font-size: .92rem; line-height: 1.25; }
.palette-item .sub, .person .sub { display: block; color: var(--ink-3); font-size: .8rem; line-height: 1.3; }
.section-list li { display: flex; align-items: center; gap: .25rem; }
.section-list .palette-item { flex: 1; }
.icon-button.small { width: 32px; height: 32px; min-height: 32px; flex: none; }
.person[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 14px color-mix(in oklch, var(--accent) 30%, transparent); }
.person[aria-pressed="true"] .sub { color: var(--accent-ink); opacity: .85; }
.preview-as .label-text { display: block; margin: 1rem .3rem .35rem; }
.preview-as input[type=search] { margin-bottom: .4rem; }

.desk { min-width: 0; border-radius: var(--radius-lg); background: color-mix(in oklch, var(--track) 70%, var(--bg)); padding: 1.25rem; min-height: 70vh; }
.canvas-wrap { position: relative; }
.email-canvas { max-width: 640px; margin: 0 auto; color: #1f1d1a; }
/* Inside the canvas, the email's own inline styles rule; undo the app's table styling. */
.email-canvas table { border-collapse: separate; border-spacing: 0; width: auto; font-variant-numeric: normal; }
.email-canvas table[width="100%"] { width: 100%; }
.email-canvas td, .email-canvas th { border: 0; padding: 0; vertical-align: top; background: transparent; }
.email-canvas tbody tr:hover td { background: transparent; }
.email-canvas a { color: inherit; }
.email-canvas .em-ink a { color: var(--org-accent, #2357e8); }
.email-canvas p { margin: 0 0 16px; }
.email-canvas p:last-child { margin-bottom: 0; }
.email-canvas ul, .email-canvas ol { margin: 0 0 16px; padding-left: 24px; }
.email-canvas h1, .email-canvas h2 { font-family: inherit; }
.eb-list { position: relative; }
.eb { position: relative; border-radius: 6px; outline: 1.5px solid transparent; outline-offset: 2px; transition: outline-color .12s; }
.eb:hover { outline-color: color-mix(in oklch, var(--accent) 35%, transparent); }
.eb.is-selected { outline: 2px solid var(--accent); }
.eb:focus-visible { outline: 3px solid var(--focus-color); }
.eb-field { cursor: text; border-radius: 3px; }
.eb-field:focus { outline: 2px dashed color-mix(in oklch, var(--accent) 70%, transparent); outline-offset: 3px; background: color-mix(in oklch, var(--accent) 6%, transparent); }
.eb-field:empty::before { content: "Type here"; color: #8a857c; }
.merge { display: inline-block; padding: 0 .3em; margin: 0 .05em; border-radius: 5px; background: color-mix(in oklch, var(--org-accent, #2357e8) 13%, white); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--org-accent, #2357e8) 35%, transparent); cursor: default; }
.merge.is-empty { font-style: italic; color: #6b665e; }
.eb-insert { position: relative; height: 0; z-index: 3; }
.eb-plus { position: absolute; top: -15px; right: 5px; width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-size: 1.15rem; line-height: 1; opacity: 0; transform: scale(.7); transition: opacity .12s, transform .15s var(--spring); box-shadow: var(--shadow-pop); }
.eb-list:hover .eb-plus, .eb-plus:focus-visible { opacity: .9; transform: scale(1); }
.eb-plus:hover { opacity: 1; background: var(--primary); }
.eb-list > .eb-insert:first-child .eb-plus { top: -8px; }
.eb-image-empty { width: 100%; min-height: 160px; border: 2px dashed #cfc8bc; border-radius: 8px; background: #faf8f4; color: #4f4b45; font-weight: 550; }
.eb-image-empty:hover { background: #f3efe8; border-color: #a9a194; }
.eb-img-missing-alt { outline: 3px dashed var(--orange); outline-offset: 2px; }
.eb-note { display: inline-block; font-size: 13px; color: #5c574f; background: #f3efe8; padding: .15rem .55rem; border-radius: 999px; font-family: var(--font); }
.eb-note-block { margin: -8px 40px 16px; }
.eb-hidden-for > table { opacity: .45; }
.eb-warn { color: #a85f00; font-weight: 600; }
.eb-spacer { background: repeating-linear-gradient(-45deg, #e9e5dd 0 2px, transparent 2px 7px); border-radius: 4px; margin: 0 40px; }
.eb-empty { padding: 2rem 40px; color: #6b665e; text-align: center; }
.eb.is-new { animation: slide-in 380ms var(--spring), fresh 2.4s ease-out; }
.eb.is-moved { animation: lit 1.8s ease-out; }
@keyframes slide-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes lit { 0%, 40% { background: color-mix(in oklch, var(--fresh) 85%, transparent); } 100% { background: transparent; } }

.block-toolbar { position: absolute; left: 50%; transform: translateX(-50%); z-index: 10; width: max-content; max-width: min(640px, 100%); background: var(--raised); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop); padding: .35rem; color: var(--ink); font-family: var(--font); font-size: .9rem; }
.tb-row { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.tb-label { font-weight: 600; padding: 0 .5rem 0 .4rem; font-size: .85rem; color: var(--ink-2); }
.tb-group { display: inline-flex; gap: 2px; padding-left: .3rem; margin-left: .1rem; border-left: 1px solid var(--line); }
.tb-group[hidden] { display: none; }
.tb { min-height: 34px; min-width: 34px; padding: 0 .45rem; border-radius: 9px; background: none; font-weight: 500; font-size: .85rem; }
.tb:hover { background: var(--hover); }
.tb-text { gap: .35rem; }
.tb-danger { color: var(--danger); }
.tb-settings { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: .55rem .5rem .35rem; margin-top: .35rem; border-top: 1px solid var(--line); align-items: flex-end; }
.tb-settings[hidden] { display: none; }
.tb-field { display: flex; flex-direction: column; gap: .25rem; }
.tb-field-label { font-size: .78rem; color: var(--ink-3); font-weight: 500; }
.tb-text-field { flex: 1 1 220px; }
.tb-text-field input { min-height: 36px; padding: .35rem .6rem; font-size: .9rem; }
.segmented.small { padding: 3px; border-radius: 11px; }
.segmented.small > button { min-height: 30px; padding: .15rem .6rem; font-size: .85rem; }

.real-preview { display: grid; gap: .75rem; justify-items: center; }
.real-preview .hint { max-width: 60ch; text-align: center; }
.frame-holder { width: 100%; max-width: 720px; height: 78vh; border-radius: 16px; overflow: hidden; background: var(--raised); box-shadow: var(--shadow-pop); transition: max-width .3s var(--ease-out); }
.frame-holder.is-phone { max-width: 390px; border: 10px solid var(--primary); border-radius: 36px; }
.frame-holder iframe { width: 100%; height: 100%; border: 0; display: block; }

.dialog { border: 0; border-radius: var(--radius-lg); padding: 1.5rem; width: min(520px, calc(100vw - 2rem)); background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgb(0 0 0 / .25); }
.dialog[open] { animation: pop-open 260ms var(--spring); }
.dialog::backdrop { background: rgb(15 15 18 / .35); backdrop-filter: blur(2px); }
.dialog h2 { font-size: 1.3rem; }
.insert-dialog .palette-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; margin-bottom: 1rem; }
.insert-dialog { width: min(620px, calc(100vw - 2rem)); }
.check-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .1rem; }
.check-list li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: .6rem; align-items: start; padding: .6rem 0; border-top: 1px solid var(--line); }
.check-list li:first-child { border-top: 0; }
.check-list .pill { justify-self: start; }
.check-ok { display: flex; align-items: center; gap: .4rem; color: var(--green-ink); font-weight: 600; }
.test-panel { padding: 1rem; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--line); margin-bottom: 1rem; }
.test-panel p { margin: 0; }
.test-result:not(:empty) { margin-top: .6rem !important; font-weight: 600; color: var(--green-ink); }
.test-result.is-error { color: var(--pink-ink); }

@media (max-width: 1280px) {
  .editor-body { grid-template-columns: 220px minmax(0, 1fr); }
  .preview-as { grid-column: 1 / -1; position: static; max-height: none; order: -1; }
  .preview-as .people { display: flex; flex-wrap: wrap; gap: .35rem; }
  .preview-as .person { width: auto; }
}
@media (max-width: 900px) {
  .editor-body { grid-template-columns: minmax(0, 1fr); }
  .palette { position: static; max-height: none; }
  .desk { padding: .5rem; }
}

/* Email layout settings */
.layout-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 1000px) { .layout-grid { grid-template-columns: minmax(0, 1fr); } }
.layout-preview { position: sticky; top: 1rem; }
.layout-preview .frame-holder { height: 70vh; max-width: none; }
.logo-now { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.logo-now img { max-height: 56px; max-width: 220px; background: #fff; padding: .4rem; border-radius: 8px; border: 1px solid var(--line); }
.swatch-inline { display: inline-block; width: .9rem; height: .9rem; border-radius: 50%; background: var(--c); vertical-align: -2px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.columns-chart.is-labelled .col > b { display: block; }
.chart-axis.is-even { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(3px, .7vw, 8px); text-align: center; }
.columns-chart.is-labelled { height: 150px; }
.bar-cell { width: 18%; min-width: 80px; }
@media (max-width: 640px) { table.stacked td.bar-cell { display: none; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.25rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.columns-chart.is-labelled, .chart-axis.is-even { max-width: calc(var(--n) * 140px); }

/* Hidden tooltips take no room, so they never widen the page. */
.columns-chart .col .tip, .dotstrip-plot .dot .chart-tip { display: none; }
.columns-chart .col:hover .tip, .columns-chart .col:focus-within .tip, .dotstrip-plot .dot:hover .chart-tip { display: inline-flex; }
.dotstrip, .columns-chart { overflow-x: clip; }

/* The canvas follows the email's own phone rules on narrow screens. */
@media (max-width: 620px) {
  .email-canvas .em-pad { padding-left: 16px !important; padding-right: 16px !important; }
  .email-canvas .em-outer { padding: 0 !important; }
  .email-canvas .em-col { display: block !important; width: 100% !important; padding: 0 0 16px !important; }
  .email-canvas .em-give-cell { padding: 0 2px !important; }
  .email-canvas .em-give span { padding: 10px 10px !important; font-size: 14px !important; }
  .eb-note-block { margin: -8px 16px 16px; }
}
.thank-row .who .small { white-space: nowrap; }

/* Drag and drop in the email designer */
.eb-handle { position: absolute; left: 6px; top: 4px; z-index: 4; display: grid; place-items: center; width: 26px; height: 30px; min-height: 0; padding: 0;
  border-radius: 7px; background: var(--raised); color: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: grab; opacity: 0; transition: opacity .12s; }
.eb:hover > .eb-handle, .eb.is-selected > .eb-handle { opacity: 1; }
.eb-handle:active { cursor: grabbing; }
.eb.is-dragging { opacity: .35; }
.eb-drop { position: absolute; left: 24px; right: 24px; height: 4px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 25%, transparent); z-index: 6; pointer-events: none; }
.eb-drop::before, .eb-drop::after { content: ""; position: absolute; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.eb-drop::before { left: -6px; } .eb-drop::after { right: -6px; }
.palette-item[draggable="true"] { cursor: grab; }
.palette-item[draggable="true"]:active { cursor: grabbing; }
@media (pointer: coarse) { .eb-handle { opacity: 1; } }

/* Campaigns */
fieldset.bare { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; }
.meter-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 2rem; }
@media (max-width: 1000px) { .meter-grid { grid-template-columns: minmax(0, 1fr); } }
.switch-row { align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--line); margin-bottom: 1rem; }
.switch-row .sub { display: block; color: var(--ink-3); font-size: .85rem; }
.embed { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.embed .label-text { display: block; margin-bottom: .35rem; }
textarea.code { font: .85rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--raised); min-height: 0; resize: none; }
.meter-stage { padding: 2rem 1.5rem; border-radius: var(--radius); background: repeating-linear-gradient(45deg, var(--track) 0 1px, transparent 1px 12px), var(--bg); border: 1px dashed var(--line-2); }
.meter-preview.is-dark .meter-stage { background: #0f1012; }
.campaign-row a { font-weight: 550; }

/* Long tables: a faint tint of the organization's color on every other row, for skimming across. */
tbody tr:nth-child(even) td { background: color-mix(in oklch, var(--accent) 4.5%, var(--surface)); }
tbody tr:nth-child(even) td:first-child { border-radius: 10px 0 0 10px; }
tbody tr:nth-child(even) td:last-child { border-radius: 0 10px 10px 0; }
tbody tr:hover td { background: var(--raised); }
@media (max-width: 640px) { table.stacked tbody tr:nth-child(even) { background: color-mix(in oklch, var(--accent) 4.5%, var(--surface)); border-radius: 10px; } table.stacked tbody tr:nth-child(even) td { background: none; } }
.email-canvas tbody tr:nth-child(even) td { background: transparent; }
.pill-link { text-decoration: none; gap: .3rem; }
.pill-link:hover { box-shadow: 0 0 0 2px var(--orange), var(--shadow-pop); }
.pill-link .icon { width: .85rem; height: .85rem; margin-right: -.2rem; }

/* Dashboard: a 12-column grid; cards in a row share one height. */
.dash { display: grid; gap: 1.25rem; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch; }
.dash > div { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.dash > div:not(:has(*)) { display: none; }
.dash-raised { grid-column: span 4; } .dash-compare { grid-column: span 5; } .dash-side { grid-column: span 3; }
.dash-months { grid-column: span 7; } .dash-needs { grid-column: span 5; }
.dash-recent { grid-column: span 7; } .dash-right { grid-column: span 5; }
.dash .fill, .dash-side > .insight, .dash-right > .card { flex: 1; }
.dash:not(:has(.dash-side *)) .dash-compare { grid-column: span 8; }
.chart-fill { display: flex; flex-direction: column; }
.chart-fill .columns-chart { flex: 1; height: auto; min-height: 190px; }
@media (max-width: 1240px) {
  .dash-raised, .dash-compare { grid-column: span 6; } .dash-side { grid-column: span 12; }
  .dash-months, .dash-needs, .dash-recent, .dash-right { grid-column: span 6; }
  .dash-recent, .dash-right { grid-column: span 12; }
}
@media (max-width: 900px) { .dash > div { grid-column: 1 / -1 !important; } }

.env-fonts { padding: .45rem 0; }
.font-pickers { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.font-pickers label { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--ink-3); }
.font-pickers select { width: auto; min-height: 36px; padding: .3rem .55rem; font-size: .9rem; color: var(--ink); }

/* Search everything */
.search-wrap { position: relative; }
.quick-results { position: fixed; left: var(--qx, 1rem); top: var(--qy, 4rem); z-index: 30; width: min(420px, calc(100vw - 2rem)); max-height: 70vh; overflow-y: auto;
  padding: .45rem; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); animation: pop-open 200ms var(--spring); transform-origin: top left; }
.quick-results ul { list-style: none; margin: 0; padding: 0; }
.quick-group { margin: .5rem .55rem .2rem; font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.quick-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; align-items: center; padding: .45rem .55rem; border-radius: 10px; color: var(--ink); text-decoration: none; }
.quick-item .icon { color: var(--ink-3); }
.quick-item strong { display: block; font-weight: 550; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-item .sub { display: block; font-size: .8rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-item:hover, .quick-item:focus-visible { background: var(--accent-soft); outline-offset: -2px; }
.quick-all { display: block; margin-top: .35rem; padding: .55rem; border-top: 1px solid var(--line); font-size: .88rem; font-weight: 550; }
.quick-empty { margin: .5rem; color: var(--ink-3); font-size: .9rem; }
.search-groups { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); align-items: start; }

/* AI agents */
input.code, pre.code-block { font: .85rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
pre.code-block { margin: .4rem 0 1.1rem; padding: .85rem 1rem; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); overflow-x: auto; white-space: pre; }
code { font: .88em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--hover); padding: .05rem .3rem; border-radius: 5px; overflow-wrap: anywhere; }
pre code { background: none; padding: 0; }
.connect h3 { margin: 1.4rem 0 .35rem; }
.connect dl.facts { margin-bottom: .5rem; }
.tool-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .15rem; }
.tool-list li { padding: .55rem 0; border-top: 1px solid var(--line); }
.tool-list .pill { margin-left: .35rem; font-size: .75rem; }
.tool-list .sub { display: block; color: var(--ink-3); font-size: .85rem; margin-top: .15rem; }
.new-key { margin-bottom: 1.25rem; border-color: color-mix(in oklch, var(--accent) 40%, var(--line)); }

.font-pickers label { min-width: 0; max-width: 100%; }
.font-pickers select { max-width: 100%; min-width: 0; }
@media (max-width: 620px) { .env-row { grid-template-columns: minmax(0, 1fr); gap: 0; } .env-row > span:first-child { padding-top: .5rem; } }

/* Forwarded mail */
.inbound-list { list-style: none; margin: 0; padding: 0 .5rem; }
.inbound-list > li { padding: 1rem 0; border-top: 1px solid var(--line); display: grid; gap: .6rem; justify-items: start; }
.inbound-list > li:first-child { border-top: 0; }
.inbound-head { display: flex; flex-wrap: wrap; gap: .3rem .65rem; align-items: baseline; }
.inbound-head strong { font-weight: 600; }
.inbound-person { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.inbound-person a { color: var(--ink); font-weight: 550; text-decoration: none; }
.inbound-person a:hover { text-decoration: underline; }
.inbound-person small { display: block; color: var(--ink-3); font-size: .85rem; }
.inbound-problem { margin: 0; color: var(--ink-2); }
.suggestion .sub { font-weight: 400; color: var(--ink-3); }
.how-to ol { margin: 0 0 1rem; padding-left: 1.25rem; display: grid; gap: .6rem; }

/* Supporter pages: the organization's own front door, not the staff app. */
body.supporter { display: flex; flex-direction: column; min-height: 100vh; }
.supporter-top { display: flex; align-items: center; gap: .7rem; padding: 1.1rem clamp(1rem, 4vw, 2.5rem); }
.supporter-org { font-weight: 650; font-size: 1.1rem; letter-spacing: -0.01em; margin-right: auto; }
.supporter-main { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.supporter-main.is-wide { max-width: 1040px; }
.supporter-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: 1.25rem clamp(1rem, 4vw, 2.5rem); color: var(--ink-3); font-size: .85rem; }
.auth-card h1 { font-size: 2rem; }
.auth-form { margin-top: 1.25rem; }
.button.wide { width: 100%; margin-top: .5rem; }
.auth-switch { margin: 1.25rem 0 0; text-align: center; color: var(--ink-2); }
.confirm-callout { margin-bottom: 1.25rem; }
.todo-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: center; padding: .8rem .25rem; }
.todo-row strong { display: block; font-weight: 600; }
.todo-row .sub { color: var(--ink-3); font-size: .88rem; }
.connection-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.connection-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.connection-list li:first-child { border-top: 0; }
.connection-list a { color: var(--ink); font-weight: 550; text-decoration: none; }
.connection-form { padding-top: .75rem; border-top: 1px solid var(--line); }
.kind .icon { vertical-align: -3px; }
.site-advanced { margin: .75rem 0; }
.site-advanced summary { cursor: pointer; font-weight: 550; padding: .3rem 0; }
.setup-steps { margin: 0 0 1rem; padding-left: 1.25rem; display: grid; gap: .75rem; }
