/* Pitch demos — the rep tool. Phone first, at home on an iPad in a meeting and on a laptop. */
:root {
  --bg: #f4f3ef; --panel: #ffffff; --panel-2: #faf9f6; --ink: #16171a; --muted: #5f636a; --line: #e3e1db; --line-2: #d4d1c9;
  --accent: #1f5ae0; --accent-ink: #ffffff; --ok: #157347; --warn: #9a5800; --bad: #b3261e;
  --radius: 16px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 20, 15, .05), 0 6px 20px rgba(20, 20, 15, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1012; --panel: #18191c; --panel-2: #1d1f22; --ink: #eceae6; --muted: #9da0a6; --line: #2a2c30; --line-2: #383a3f;
    --accent: #7aa2ff; --accent-ink: #0b0c0e; --ok: #5fcb8e; --warn: #f0b04a; --bad: #ff8a80; --shadow: none; color-scheme: dark; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; min-height: 100dvh; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1 { font-size: clamp(24px, 4.2vw, 30px); line-height: 1.15; margin: 0 0 6px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
h2 { font-size: 17px; line-height: 1.3; margin: 0 0 2px; font-weight: 650; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
svg { flex: none; }

/* ── top bar ─────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap;
  padding: 10px 16px 0; padding-top: max(10px, env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
  background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); text-decoration: none; min-height: 44px; margin-right: auto; }
.logo-mark, .brandmark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--bg); font: 800 15px/1 system-ui, sans-serif; }
.me { display: flex; align-items: center; gap: 2px; min-width: 0; }
.who { font-size: 13px; color: var(--muted); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
.tabs { display: flex; gap: 2px; overflow-x: auto; order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 12px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
/* more tabs off to the right: fade the edge so it reads as scrollable */
.tabs.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
.tabs a { white-space: nowrap; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; min-height: 40px; display: inline-flex; align-items: center; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); }
@media (min-width: 900px) {
  .top { padding-bottom: 10px; }
  .tabs { order: 0; width: auto; margin: 0; padding: 0; }
  .tabs.more { -webkit-mask-image: none; mask-image: none; }
  .logo { margin-right: 10px; }
  .me { margin-left: auto; }
  .who { display: block; }
}

/* ── layout ──────────────────────────────────────────────────────────── */
.view { max-width: 960px; margin: 0 auto; padding: 22px 16px 80px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); outline: none; }
@media (min-width: 700px) { .view { padding-top: 32px; } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head > div { min-width: 0; flex: 1 1 260px; }
.head .muted { margin: 0; }
.back { display: inline-flex; align-items: center; min-height: 36px; margin: -6px 0 4px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--ink); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card.flush { padding: 0; }
.card.dim { opacity: .7; }
.card.notice { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); background: color-mix(in srgb, var(--warn) 9%, var(--panel)); color: var(--ink); margin-bottom: 12px; }
.card.empty { text-align: left; padding: 24px; }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.two .span2 { grid-column: 1 / -1; } }
@media (min-width: 760px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease; }
.btn svg { width: 20px; height: 20px; }
.btn:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.ghost { background: var(--panel); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--panel-2); border-color: var(--muted); }
.btn.bad { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.bad:hover { background: color-mix(in srgb, var(--bad) 8%, transparent); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 17px; }
.btn.wide { width: 100%; }
.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px 10px; min-height: 44px; border-radius: 10px; }
.link:hover { color: var(--ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: 2px; }
.view:focus, .view:focus-visible { outline: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; margin: 0 -16px; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, color-mix(in srgb, var(--bg) 0%, transparent)); }
.sticky-actions .btn { white-space: nowrap; }
@media (max-width: 519px) { .sticky-actions .btn:first-child { flex: 1; } .sticky-actions .btn.ghost { padding: 0 18px; } }

/* ── sign in ─────────────────────────────────────────────────────────── */
.login { max-width: 420px; margin: min(12vh, 96px) auto 0; }
.login .brandmark { width: 44px; height: 44px; border-radius: 13px; font-size: 21px; margin: 0 0 22px; }
.login h1 { margin-bottom: 8px; }
.login > .muted { margin-bottom: 20px; }
.login .link { margin-top: 10px; }
.dev-login { margin-top: 16px; border-style: dashed; }
.dev-login .btn { justify-content: flex-start; text-align: left; height: auto; min-height: 44px; padding-block: 10px; flex-wrap: wrap; gap: 4px 8px; }

/* ── fields ──────────────────────────────────────────────────────────── */
label.f { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
label.f small { font-weight: 450; color: var(--muted); margin-left: 4px; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
input, select, textarea { width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel); color: var(--ink); font: inherit; font-size: 17px; transition: border-color .15s ease, box-shadow .15s ease; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
textarea { min-height: 96px; resize: vertical; }
input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
[aria-invalid="true"] { border-color: var(--bad); }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 18%, transparent); border-color: var(--bad); }
.field-err { display: flex; gap: 6px; align-items: flex-start; color: var(--bad); font-size: 14px; font-weight: 600; margin: 6px 0 0; line-height: 1.35; }
.field-err::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--bad); color: var(--panel); font-size: 12px; font-weight: 800; }
.field-err + .hint { margin-top: 4px; }
.code-in { font: 650 30px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .4em; text-align: center; padding-left: calc(14px + .4em); }
.err { color: var(--bad); font-weight: 600; margin: 0; }
.err:empty { display: none; }

/* pick-several lists */
fieldset.checks { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.checks legend { padding: 0; margin-bottom: 8px; }
.check-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; background: var(--panel); font-size: 15px; line-height: 1.3; }
.check input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); }
.check:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.check:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: 2px; }

/* colour choices and link length */
.pals { display: flex; flex-wrap: wrap; gap: 10px; }
.pal { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; min-height: 48px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; background: var(--panel); font-weight: 600; font-size: 15px; }
.pal input, .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.pal i { width: 34px; height: 34px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.pal:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pal:has(input:focus-visible), .seg label:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.seg label { position: relative; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--muted); text-align: center; }
.seg input:checked + span { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ── kinds of business ───────────────────────────────────────────────── */
.icps { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .icps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .icps { grid-template-columns: repeat(3, 1fr); } }
.icp { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; padding: 20px 18px; min-height: 120px; transition: border-color .15s ease, transform .15s ease; }
.icp:hover { border-color: var(--muted); }
.icp:active { transform: scale(.99); }
.icp b { font-size: 18px; line-height: 1.25; margin-top: auto; }
.icp-dots { display: flex; margin-bottom: 14px; }
.icp-dots i { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); }
.icp-dots i + i { margin-left: -6px; }

/* ── lists ───────────────────────────────────────────────────────────── */
.list { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.row .grow .small.wrap { white-space: normal; }
.row { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.demo-row { padding: 14px 16px; transition: border-color .15s ease; }
.demo-row:hover { border-color: var(--muted); }
.row .grow { flex: 1; min-width: 0; }
.row .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.row .grow .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; flex: none; }
.row-end .muted { display: none; }
@media (min-width: 560px) { .row-end .muted { display: block; } }
.av { --av: var(--muted); display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; font-weight: 750; font-size: 15px; letter-spacing: .02em;
  color: color-mix(in srgb, var(--av) 72%, var(--ink)); background: color-mix(in srgb, var(--av) 15%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--av) 30%, transparent); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); white-space: nowrap; letter-spacing: .01em; }
.pill.off { background: color-mix(in srgb, var(--muted) 16%, transparent); color: var(--muted); }
.pill.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }

/* ── one demo ────────────────────────────────────────────────────────── */
.hero-card { padding: 20px; border-top: 4px solid var(--av, var(--accent)); }
.link-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.linkbox { font: 600 16px/1.35 ui-monospace, "SF Mono", Menlo, Consolas, monospace; word-break: break-all; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, transparent); user-select: all; -webkit-user-select: all; }
/* phone: one column, Present first · tablet: Present across, the three sends
   beneath · laptop: one row, Present widest */
.main-actions { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .main-actions { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .main-actions { grid-template-columns: 1.3fr 1.45fr 1fr 1fr; } }
.btn.xl { min-height: 58px; font-size: 16px; border-radius: 14px; padding: 0 16px; white-space: nowrap; }
.btn.xl svg { width: 22px; height: 22px; }
@media (min-width: 600px) and (max-width: 759px) { .btn.xl { font-size: 15px; padding: 0 10px; gap: 6px; } }
#present { font-size: 18px; }
#present svg { width: 24px; height: 24px; }
@media (min-width: 600px) { #present { grid-column: 1 / -1; min-height: 64px; } }
@media (min-width: 1000px) { #present { grid-column: auto; min-height: 58px; } }
.hero-card .hint { margin-top: 12px; }
.to { margin: 12px 0 0; color: var(--muted); }
.to b { color: var(--ink); }
.qr-more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 6px; }
.qr-more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; list-style: none; border-radius: 10px; padding: 0 6px; margin-left: -6px; }
.qr-more summary::-webkit-details-marker { display: none; }
.qr-more summary svg { width: 20px; height: 20px; }
.qr-more summary:hover { color: var(--ink); }
.qr-more[open] summary { color: var(--ink); }
.qr { background: #fff; border-radius: 12px; padding: 8px; width: 200px; max-width: 100%; aspect-ratio: 1; margin-top: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
.facts { list-style: none; padding: 0; margin: 16px 0 18px; display: grid; gap: 8px; }
.facts li { position: relative; padding-left: 18px; color: var(--muted); font-size: 15px; }
.facts li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }

/* presenting: the demo over everything, full screen where the browser allows */
.present { position: fixed; inset: 0; z-index: 100; background: #000; }
.present iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* Exit sits top-centre, away from every demo's own logo (left) and menu (right), and
   takes no clicks while it is hidden, so it never blocks the page beneath */
.present-x { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 50%; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 18px 0 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(0,0,0,.66); color: #fff; font: 600 15px/1 system-ui, sans-serif; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transform: translate(-50%, -8px); transition: opacity .25s ease, transform .25s ease; }
.present-x svg { width: 18px; height: 18px; }
.present-x.on, .present-x:focus-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
/* a thin hover strip along the top edge (mouse only): reaching for the top shows Exit
   even before the demo inside has finished loading */
.present-edge { position: absolute; top: 0; left: 25%; right: 25%; height: 8px; z-index: 1; }
@media (hover: none) { .present-edge { display: none; } }
html.presenting, html.presenting body { overflow: hidden; }

/* ── tables, meters, stats ───────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 650; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: var(--panel-2); white-space: nowrap; }
td a { color: var(--ink); text-decoration: none; }
td a:hover { text-decoration: underline; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll table { min-width: 760px; }
.meter { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.meter.warn i { background: var(--warn); }
.stat b { display: block; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }

/* ── My work ─────────────────────────────────────────────────────────── */
.work-top { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.work-top .commission { grid-column: 1 / -1; }
@media (min-width: 760px) { .work-top { grid-template-columns: 2fr 1fr 1fr; } .work-top .commission { grid-column: auto; } }
.money { font-size: 34px; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sec { font-size: 17px; margin: 26px 0 10px; }
.sec-note { margin: -6px 0 10px; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 559px) { .scroll-x th, .scroll-x td { padding: 10px 8px; } .scroll-x th { letter-spacing: 0; } }

/* ── toast ───────────────────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--ink); color: var(--bg); padding: 13px 20px; border-radius: 14px; font-weight: 600; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s; max-width: calc(100vw - 32px); z-index: 120; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .toast, .btn, .present-x, .icp { transition: none; } }

/* ── states: loading, empty, error ───────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.boot-load { display: grid; place-items: center; gap: 14px; min-height: 50vh; color: var(--muted); font-size: 14px; }
.spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; }
.boot-load .spin { width: 28px; height: 28px; border-width: 3px; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--line) 0%, var(--panel-2) 50%, var(--line) 100%); background-size: 200% 100%; animation: sk 1.3s ease-in-out infinite; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-head { margin-bottom: 22px; }
.sk-h1 { height: 28px; width: min(220px, 60%); margin-bottom: 10px; }
.sk-line { height: 13px; width: min(320px, 85%); }
.sk-line.short { width: 40%; margin-top: 8px; }
.sk-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.sk-card > span { flex: 1; }
.sk-av { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.state-card { padding: 28px 24px; }
.state-card h2, .state-card .h2 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; font-weight: 700; letter-spacing: -.01em; }
.state-card > .muted { max-width: 52ch; }
.state-card .actions { margin-top: 18px; }
.state-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; font-weight: 800; font-size: 20px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
.state-icon svg { width: 22px; height: 22px; }
.state-icon.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--panel)); }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } .spin { animation-duration: 1.6s; } }

/* ── small parts ─────────────────────────────────────────────────────── */
.btn[aria-busy="true"] { opacity: .8; cursor: progress; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 88%, #000); }
.actions.end { justify-content: flex-end; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.login-more { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin-top: 8px; }
.login-more .link { margin: 0; }
.link:disabled { opacity: .6; cursor: default; }
.dev-acct { flex-direction: column; align-items: flex-start !important; gap: 0 !important; }
.dev-acct b { font-size: 15px; }
.toast.bad { background: var(--bad); color: #fff; }
.narrow-only { display: grid; }
.wide-only { display: none; }
@media (min-width: 760px) { .narrow-only { display: none; } .wide-only { display: block; } }

/* the in-app confirm */
.dlg { border: 0; padding: 0; border-radius: var(--radius); background: var(--panel); color: var(--ink); width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.dlg::backdrop { background: rgba(10, 10, 12, .45); }
.dlg form { padding: 22px 22px 18px; }
.dlg h2 { font-size: 19px; margin-bottom: 8px; }
.dlg .actions { margin-top: 18px; }
@media (max-width: 420px) { .dlg .actions .btn { flex: 1; } }

/* My work: a client's project (HQ 2026-11-05) */
.client-card { gap: 10px; }
.client-card.chase { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.bad-ink { color: var(--bad); }
.pay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pay-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.wrap-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.small-btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
