/* Civly customer site: the same product as the Revit pane (DESIGN.md), set
   for a browser. Warm paper ground, white only where a decision is made, ink
   as the accent, one UI sans. Light and dark follow the system; html[data-theme]
   pins one for screenshots. */

:root {
  --bg: #f1f0ee;
  --surface: #ffffff;
  --surface-2: #e7e6e3;
  --surface-3: #f7f6f4;
  --ink: #141413;
  --ink-2: #55544f;
  --ink-3: #6d6c67;
  --line: rgba(20, 20, 19, 0.1);
  --line-strong: rgba(20, 20, 19, 0.18);
  --line-focus: rgba(20, 20, 19, 0.38);
  --hover: rgba(20, 20, 19, 0.055);
  --press: #141413;
  --on-press: #ffffff;
  --disabled-bg: #e2e1de;
  --disabled-ink: #8e8d88;
  --ok: #1e7b3c;
  --warn: #9a5800;
  --warn-bg: #fbf1e1;
  --bad: #b42318;
  --bad-bg: #fbeae8;
  --focus: #2563eb;
  --selection: rgba(37, 99, 235, 0.2);
  --shadow-card: 0 1px 2px rgba(20, 20, 19, 0.04), 0 4px 18px rgba(20, 20, 19, 0.05);
  --shadow-pop: 0 4px 10px rgba(20, 20, 19, 0.08), 0 14px 36px rgba(20, 20, 19, 0.12);
  --mark-filter: none;

  --font-sans: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, Menlo, monospace;
  /* Type scale: caption 12, note 13, body 15, title 17, heading 28. */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-hero: 28px;
  --gutter: 16px;
  --col: 560px;
  --col-read: 680px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #141414;
  --surface: #1e1e1e;
  --surface-2: #2b2b2a;
  --surface-3: #181818;
  --ink: #ededec;
  --ink-2: #b9b8b4;
  --ink-3: #93928e;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --line-focus: rgba(255, 255, 255, 0.36);
  --hover: rgba(255, 255, 255, 0.065);
  --press: #ededec;
  --on-press: #141414;
  --disabled-bg: #2c2c2c;
  --disabled-ink: #77766f;
  --ok: #4cc27a;
  --warn: #e3a64a;
  --warn-bg: #2e2414;
  --bad: #f28b82;
  --bad-bg: #33191a;
  --focus: #7aa2f7;
  --selection: rgba(122, 162, 247, 0.3);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 20px rgba(0, 0, 0, 0.22);
  --shadow-pop: 0 4px 12px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);
  --mark-filter: invert(1) hue-rotate(180deg);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141414;
    --surface: #1e1e1e;
    --surface-2: #2b2b2a;
    --surface-3: #181818;
    --ink: #ededec;
    --ink-2: #b9b8b4;
    --ink-3: #93928e;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.17);
    --line-focus: rgba(255, 255, 255, 0.36);
    --hover: rgba(255, 255, 255, 0.065);
    --press: #ededec;
    --on-press: #141414;
    --disabled-bg: #2c2c2c;
    --disabled-ink: #77766f;
    --ok: #4cc27a;
    --warn: #e3a64a;
    --warn-bg: #2e2414;
    --bad: #f28b82;
    --bad-bg: #33191a;
    --focus: #7aa2f7;
    --selection: rgba(122, 162, 247, 0.3);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 20px rgba(0, 0, 0, 0.22);
    --shadow-pop: 0 4px 12px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);
    --mark-filter: invert(1) hue-rotate(180deg);
    color-scheme: dark;
  }
}

/* ---- base ---- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; }
body {
  min-height: 100%; margin: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--fs-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column;
}
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::selection { background: var(--selection); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
input { caret-color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--ink); }
code, kbd { font-family: var(--font-mono); font-size: 0.88em; }
code { background: var(--hover); padding: 1px 5px; border-radius: 5px; }
kbd { font-family: var(--font-sans); font-weight: 600; font-size: 0.94em; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 6px; white-space: nowrap; }
strong { font-weight: 600; }
.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; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---- page frame: a single centred column ---- */
.page { flex: 1 0 auto; width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 48px; }
.page-read { max-width: calc(var(--col-read) + 2 * var(--gutter)); }
@media (min-width: 720px) { .page { padding-top: 72px; } }

.masthead { display: flex; align-items: center; gap: 9px; margin: 0 0 28px; }
.masthead .mark { height: 24px; width: auto; filter: var(--mark-filter); }
.masthead .wordmark { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.masthead .wordmark:hover { text-decoration: none; }
.masthead-tail { margin-left: auto; font-size: var(--fs-sm); color: var(--ink-2); display: flex; align-items: center; gap: 14px; }
.masthead-tail a { color: var(--ink-2); }
.masthead-tail a:hover { color: var(--ink); }

h1 { margin: 0 0 6px; font-size: var(--fs-hero); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
h2 { margin: 36px 0 8px; font-size: var(--fs-lg); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
h3 { margin: 24px 0 6px; font-size: var(--fs-md); font-weight: 600; line-height: 1.4; }
p { margin: 0 0 12px; }
.lead { color: var(--ink-2); margin: 0 0 24px; text-wrap: pretty; }
.note { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.caption { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }

/* ---- controls (the pane's buttons, two pixels taller for a mouse) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 0 16px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 500; line-height: 1.3;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none;
  transition: background-color 150ms, opacity 150ms; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--hover); text-decoration: none; }
.btn:disabled { opacity: 0.45; }
.btn-primary { background: var(--press); color: var(--on-press); border-color: var(--press); }
.btn-primary:hover:not(:disabled) { background: var(--press); opacity: 0.86; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--ink-2); padding: 0 10px; }
.btn-quiet:hover:not(:disabled) { color: var(--ink); }
.btn-wide { width: 100%; }
.btn-google { min-height: 40px; padding: 0 18px; font-size: var(--fs-md); }
.btn-google svg, .btn-google .i { width: 18px; height: 18px; flex: none; }
.btn .i { width: 16px; height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); font-size: inherit; }
.link-btn:hover { color: var(--ink); text-decoration-color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 4px; }
.field-label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.input {
  width: 100%; min-height: 38px; padding: 7px 11px; border-radius: 10px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  transition: border-color 150ms;
}
.input:focus { border-color: var(--line-focus); outline: none; }
textarea.input { min-height: 88px; resize: vertical; line-height: 1.5; }
/* The founders' outbox: a mail preview in a sandboxed frame, rows that link. */
.ob-frame { display: block; width: 100%; min-height: 420px; margin: 20px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ob-row { color: inherit; text-decoration: none; }
.ob-row:hover { background: var(--hover); text-decoration: none; }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.input::placeholder { color: var(--ink-3); }
.input-mono { font-family: var(--font-mono); font-size: var(--fs-md); letter-spacing: 0.02em; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 3px 0 0; flex: none; accent-color: var(--press); }
.check a { color: inherit; }
.check.is-asked { color: var(--bad); }
.check.is-asked a { color: inherit; }
.note.is-asked { color: var(--bad); margin: -4px 0 0; }
/* One line that names the problem and the recovery, under the control that failed. */
.problem { margin: 12px 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--bad); }
.card .problem { margin-top: 10px; }

/* ---- icons: 1.5 px line drawings as masks ---- */
.i { display: inline-block; flex: none; width: 16px; height: 16px; background-color: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.i-shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 2.75 4 5v4.5c0 3.6 2.5 6.4 6 7.75 3.5-1.35 6-4.15 6-7.75V5l-6-2.25Z'/%3E%3Cpath d='M7.75 10l1.6 1.6 3-3.1'/%3E%3C/svg%3E"); }
.i-pc { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.75' y='3.75' width='14.5' height='10' rx='1.75'/%3E%3Cpath d='M7.5 16.75h5M10 13.75v3'/%3E%3C/svg%3E"); }
.i-done { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7.25'/%3E%3Cpath d='M7 10.25l2 2 4-4.25'/%3E%3C/svg%3E"); }
.i-lock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.25' y='8.75' width='11.5' height='8.5' rx='2'/%3E%3Cpath d='M6.75 8.75V6.5a3.25 3.25 0 0 1 6.5 0v2.25'/%3E%3C/svg%3E"); }
.i-card { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.75' y='4.75' width='14.5' height='10.5' rx='2'/%3E%3Cpath d='M2.75 8.25h14.5M5.75 12.25h3'/%3E%3C/svg%3E"); }
.i-pen { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.75 4.25l3 3-8.5 8.5-3.75.75.75-3.75 8.5-8.5Z'/%3E%3Cpath d='M3.25 17.25h13.5'/%3E%3C/svg%3E"); }
.i-chat { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.25 5.5a2 2 0 0 1 2-2h9.5a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H9l-3.75 3v-3h0a2 2 0 0 1-2-2v-6Z'/%3E%3Cpath d='M7 7.75h6M7 10.25h3.5'/%3E%3C/svg%3E"); }
.i-support { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.25 11.5V10a5.75 5.75 0 0 1 11.5 0v1.5'/%3E%3Crect x='3.25' y='10.75' width='3' height='4.5' rx='1.25'/%3E%3Crect x='13.75' y='10.75' width='3' height='4.5' rx='1.25'/%3E%3Cpath d='M15.25 15.25c0 1.25-1.5 2-3.5 2H10'/%3E%3C/svg%3E"); }
.i-calendar { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.25' y='4.25' width='13.5' height='12.5' rx='2'/%3E%3Cpath d='M3.25 8.25h13.5M7 2.75v3M13 2.75v3'/%3E%3C/svg%3E"); }
.i-mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.75' y='4.25' width='14.5' height='11.5' rx='2'/%3E%3Cpath d='m3.5 5.5 6.5 5 6.5-5'/%3E%3C/svg%3E"); }
.i-chevron { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 8.25 10 11.75l3.5-3.5'/%3E%3C/svg%3E"); }
.i-close { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 5.5l9 9M14.5 5.5l-9 9'/%3E%3C/svg%3E"); }
.i-back { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.75 6.5 8.25 10l3.5 3.5'/%3E%3C/svg%3E"); }
.i-search { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8.75' cy='8.75' r='5'/%3E%3Cpath d='M12.5 12.5l4 4'/%3E%3C/svg%3E"); }

/* ---- the setup page: download, install, sign in from Revit ---- */
.signin { margin: 20px 0 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
/* Two ways in at one width: Google, then a code by email. The email form opens under them. */
.signin-ways { display: flex; flex-direction: column; gap: 8px; width: min(100%, 320px); }
.signin-ways .btn { width: 100%; }
.email-signin { width: min(100%, 320px); margin-top: 4px; }
.email-step { display: flex; flex-direction: column; gap: 12px; }
.email-sent { margin: 0; text-wrap: pretty; }
.email-sent strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.input-code { width: 8.5em; max-width: 100%; min-height: 44px; font-family: var(--font-mono); font-size: 20px; letter-spacing: 0.16em; }
.email-change { align-self: flex-start; font-size: var(--fs-sm); }
.email-signin .problem { margin-top: 10px; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step-n { font-size: var(--fs-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; line-height: 1.6; }
.step-title { font-weight: 600; }
.step-text { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.step-text .sep { color: var(--ink-3); margin: 0 5px; }
.step.is-now .step-n, .step.is-now .step-title { color: var(--ink); }
.step.is-now .step-n { font-weight: 600; }
.step-title a { text-decoration-color: var(--line-strong); }
/* Step 1 is the page's one primary action; its number sits level with the button's label. */
.step-btn { margin: 0 0 6px; padding: 0 22px; }
.step:has(.step-btn) .step-n { line-height: 36px; }
.price { margin: 18px 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.price .sep { color: var(--ink-3); margin: 0 6px; }

/* ---- account: label · value · action rows on the ground ---- */
.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 0; }
.who-name { font-weight: 600; }
.who-email { color: var(--ink-2); }
/* The Terms line sits under the name and email, never run into the address. */
.who .sub { display: block; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; margin-top: 2px; }
.rows { margin: 20px 0 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; column-gap: 16px; row-gap: 6px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row-label { font-size: var(--fs-sm); color: var(--ink-3); padding-top: 2px; }
.row-value { min-width: 0; }
.row-value .sub { display: block; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; margin-top: 2px; }
.row-value .sep { color: var(--ink-3); margin: 0 6px; }
.row-action { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.row-wide { grid-template-columns: 88px minmax(0, 1fr); }
@media (max-width: 519px) {
  .row { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .row-label { padding-top: 0; }
  .row-action { justify-content: flex-start; margin-top: 4px; }
}
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--ink-3); }
.status-dot.is-ok { background: var(--ok); }
.status-dot.is-warn { background: var(--warn); }
.status-dot.is-bad { background: var(--bad); }
.meter { height: 4px; margin: 8px 0 2px; max-width: 280px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 2px; background: var(--ink-2); }
.meter.is-bad > span { background: var(--bad); }

/* A tinted line for the one thing that needs attention (status is small, never a filled button or card). */
.alert { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding: 10px 12px; border-radius: 12px; font-size: var(--fs-sm); line-height: 1.5; background: var(--warn-bg); color: var(--ink); }
.alert .i { margin-top: 2px; color: var(--warn); }
.alert.is-bad { background: var(--bad-bg); }
.alert.is-bad .i { color: var(--bad); }
.alert.is-ok { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.alert.is-ok .i { color: var(--ok); }
/* The line a flow returns with sits above the heading, with the heading's own air under it. */
#return-notice { margin: 0 0 28px; }

/* An inline panel that opens under a row (packs, move seat): on the ground, under a hairline. */
.panel { grid-column: 1 / -1; padding: 6px 0 2px; }
.packs-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.packs-set legend { padding: 0; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 10px; }
@media (max-width: 519px) { .packs { grid-template-columns: minmax(0, 1fr); } }
.pack { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color 150ms, background-color 150ms; }
.pack:hover { background: var(--hover); }
.pack input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pack:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pack:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pack-usd { font-weight: 600; }
.pack-aud { font-size: var(--fs-sm); color: var(--ink-2); }
/* A plan card leads with the monthly equivalent and the saving; what is billed sits under it. */
.plan { gap: 4px; }
.plan-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 3px; }
.plan-price { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; }
.plan-per { font-size: var(--fs-sm); color: var(--ink-2); }
.plan-save { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.plan-save:not(:empty)::before { content: "·"; margin: 0 5px 0 3px; color: var(--ink-3); font-weight: 400; }

/* Seats: a slider for the common counts, a box for any count, and the live total under them. */
.seats { margin: 4px 0 10px; }
.seats-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin: 0 0 4px; }
.seats-head label { font-weight: 600; }
.seats-ctl { display: flex; align-items: center; gap: 14px; }
.seats-box { width: 64px; flex: none; padding: 6px 8px; font: inherit; font-size: var(--fs-md); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; transition: border-color 150ms; }
.seats-box:focus { border-color: var(--line-focus); outline: none; }
.seats-box:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.range { --fill: 0%; flex: 1 1 auto; min-width: 0; height: 28px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.range:focus { outline: none; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--ink) var(--fill), var(--surface-2) var(--fill)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 19, 0.12), 0 2px 6px rgba(20, 20, 19, 0.1); transition: transform 150ms var(--ease-out); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--focus); outline-offset: 2px; }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--surface-2); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 19, 0.12), 0 2px 6px rgba(20, 20, 19, 0.1); }
.range:focus-visible::-moz-range-thumb { outline: 2px solid var(--focus); outline-offset: 2px; }
.seats-total { margin: 6px 0 0; font-size: var(--fs-md); color: var(--ink); }
.seats-sum { font-weight: 600; white-space: nowrap; }
/* Due today: the charge Stripe will take, directly above the button that starts it. */
.due { margin: 14px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-md); color: var(--ink); }
.due-label { color: var(--ink-2); }
.due strong { font-weight: 600; }
#due-rest { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---- the one card: a decision (approve a device; a checkout) ---- */
.card { margin: 24px 0 0; padding: 16px 18px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); }
.card-head { display: flex; align-items: flex-start; gap: 10px; }
.card-head .i { width: 18px; height: 18px; margin-top: 3px; color: var(--warn); }
.card-title { margin: 0; font-size: var(--fs-lg); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; text-wrap: pretty; }
.card-text { margin: 8px 0 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.card-terms { margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.code { display: inline-block; margin: 14px 0 0; padding: 8px 14px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 24px; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.well { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.well dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; }
.well dt { color: var(--ink-3); }
.well dd { margin: 0; color: var(--ink); }

/* ---- read pages: help, terms, privacy ---- */
.page-read ol, .page-read ul { padding-left: 22px; }
.page-read li { margin: 6px 0; }
.page-read li::marker { color: var(--ink-3); }
.page-read table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); line-height: 1.5; margin: 8px 0 0; }
.page-read td { padding: 10px 10px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.page-read td:first-child { color: var(--ink-2); width: 40%; padding-right: 16px; }
/* The help page: short lists, and one fix-it list as term + remedy. */
.fix { margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.fix dt { padding: 10px 0 0; font-weight: 600; font-size: var(--fs-sm); line-height: 1.5; }
.fix dd { margin: 2px 0 0; padding: 0 0 10px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) {
  .fix { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 20px; }
  .fix dt { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
  .fix dd { padding: 10px 0; }
}
.foot-note { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); }
.foot-note code { white-space: nowrap; }
@media (max-width: 519px) {
  .page-read td { display: block; width: auto !important; padding: 2px 0; border: 0; }
  .page-read tr { display: block; border-top: 1px solid var(--line); padding: 10px 0; }
  .page-read td:first-child { font-weight: 600; color: var(--ink); }
}

/* ---- the invite-only pilot: /pilot, /pilot/next, the agreement ---- */
.how-title { margin-top: 28px; }
/* The data line is the page's one large statement. */
.dataline { margin: 32px 0 28px; font-size: 22px; font-weight: 400; line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; max-width: 30ch; }
@media (min-width: 720px) { .dataline { font-size: 26px; } }
.agreement-box { max-height: 280px; overflow: auto; padding: 4px 18px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-3); font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); overscroll-behavior: contain; }
.agreement-box:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.agreement-box h2 { margin: 16px 0 4px; font-size: var(--fs-sm); color: var(--ink); }
.agreement-box ul { margin: 0 0 8px; padding-left: 18px; }
.agreement-box li { margin: 3px 0; }
.agreement-box li::marker { color: var(--ink-3); }
.agreement-box .lead { margin: 12px 0 0; font-size: var(--fs-sm); }
.agreement-box p { margin: 0 0 8px; }
.signbox { display: flex; flex-direction: column; gap: 14px; }
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 519px) { .field-pair { grid-template-columns: minmax(0, 1fr); } }
.signbox .check { color: var(--ink); font-size: var(--fs-md); }
.signbox .problem { margin: 0; }
.book { margin: 28px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.book .note { margin: 0; }
.agreement ul { padding-left: 22px; }
/* The account's waiting-list line carries one link: the booking. */
.alert a { color: inherit; font-weight: 500; text-decoration-color: currentColor; }
.alert-hint { color: var(--ink-2); }
/* "Signed in as …. Invited at another address? Sign out": its own line under the notice. */
.alert-who { display: block; margin-top: 4px; color: var(--ink-2); overflow-wrap: anywhere; }
.alert-who strong { color: var(--ink); font-weight: 500; }
.alert .link-btn, .card-who .link-btn { color: inherit; font-weight: 500; text-decoration-color: currentColor; }
.card-who { margin: 12px 0 0; overflow-wrap: anywhere; }
.card-who strong { color: var(--ink); font-weight: 500; }
.book-hint { margin: 0; }

/* ---- the founders' console (/admin): the same paper, a wider column, rows on the ground ----
   Decision surfaces are the inline invite panel, the in-page confirmation and the email panel;
   a person or an email opens in the drawer. Stage is a dot and a word; status hues stay small. */
.page-console { max-width: calc(1040px + 2 * var(--gutter)); }
.foot.foot-console { max-width: calc(1040px + 2 * var(--gutter)); }
.console-head { margin-bottom: 20px; }
.console-role { font-size: var(--fs-sm); color: var(--ink-3); padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line-strong); line-height: 1.2; }
.console-email { overflow-wrap: anywhere; }
.mail-state { display: inline-flex; align-items: center; white-space: nowrap; }
@media (max-width: 519px) { .console-email { display: none; } }

.tabs { display: flex; gap: 2px; margin: 0 0 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px 11px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-radius: 8px 8px 0 0; transition: color 150ms, background-color 150ms; }
.tab:first-child { padding-left: 2px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: transparent; transition: background-color 200ms var(--ease-out); }
.tab:first-child::after { left: 2px; }
.tab.is-on { color: var(--ink); }
.tab.is-on::after { background: var(--ink); }
.tab-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--hover); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 500; line-height: 18px; text-align: center; }
.tab-count:empty { display: none; }
.tab-count.is-loud { background: var(--warn-bg); color: var(--warn); }

.panel-head { margin: 0 0 8px; }
.panel-head h1 { margin-bottom: 4px; }
.panel-head .lead { max-width: 68ch; margin-bottom: 16px; }
.list-title { margin: 28px 0 0; font-size: var(--fs-md); }
.list { border-top: 1px solid var(--line); margin-top: 8px; }
.list-empty { margin: 0; padding: 18px 0; font-size: var(--fs-sm); color: var(--ink-3); border-bottom: 1px solid var(--line); }

.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; row-gap: 10px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.item-link { color: inherit; text-decoration: none; padding-left: 10px; padding-right: 10px; margin: 0 -10px; border-radius: 10px; transition: background-color 150ms; }
.item-link:hover { background: var(--hover); text-decoration: none; }
.item-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.item-title { font-weight: 600; overflow-wrap: anywhere; }
.item-sub { font-size: var(--fs-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.item-sub.is-bad { color: var(--bad); }
.item-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 519px) { .item-actions > .btn-quiet:first-child { margin-left: -10px; } }
.item > .problem { grid-column: 1 / -1; margin: 0; }
.item-panel { grid-column: 1 / -1; animation: rise 200ms var(--ease-out); }
.facts { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 6px 0 0; font-size: var(--fs-sm); line-height: 1.5; }
.fact { display: flex; gap: 6px; min-width: 0; }
.fact dt { color: var(--ink-3); white-space: nowrap; }
.fact dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--hover); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }
.tag.is-warn { background: var(--warn-bg); color: var(--warn); }
.tag.is-bad { background: var(--bad-bg); color: var(--bad); }
.tag.is-ok { color: var(--ok); }
.tag.is-sched { background: var(--selection); color: var(--ink); }
.item-link > .tag { margin-top: 2px; }
.stage { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.stage::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.stage-invited::before, .stage-signed::before { background: var(--ink-3); }
.stage-call_booked::before { background: var(--warn); }
.stage-verified::before { background: var(--ok); }
.stage-linked { color: var(--ink); }
.stage-linked::before { background: var(--ink); box-shadow: 0 0 0 2px var(--hover); }
.btn.is-armed { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* The invite: who it is for, then the link once. The console's one card. */
.decide, .made { margin: 2px 0 0; padding: 14px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); max-width: 640px; }
.choice { border: 0; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.choice-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; cursor: pointer; transition: background-color 150ms; }
.choice-row:hover { background: var(--hover); }
.choice-row input { width: 16px; height: 16px; margin: 3px 0 0; flex: none; accent-color: var(--press); }
.choice-words { display: flex; flex-direction: column; min-width: 0; }
.choice-label { font-weight: 500; overflow-wrap: anywhere; }
.choice-sub { font-size: var(--fs-sm); color: var(--ink-2); }
.decide > .note { margin: 0 0 12px; }
.decide .problem { margin: 10px 0 0; }
.made-title { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; font-weight: 600; }
.made-title .i { width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.made .note { margin: 0 0 6px; }
.link-row { display: flex; gap: 8px; margin: 12px 0 4px; }
.link-input { flex: 1 1 auto; min-width: 0; font-size: var(--fs-sm); color: var(--ink-2); background: var(--surface-3); }
.made .caption { margin: 0; }
.made-mail { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.made-mail a { font-weight: 500; }

/* Invite by email: one quiet button above the list; the form opens under it. */
.add-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 4px 0 12px; }
.add-row .note { margin: 0; }
.add-panel { margin: 0 0 18px; }
.add-form { display: flex; flex-direction: column; gap: 12px; }
.add-form .check { color: var(--ink-2); }
.add-form .problem { margin: 0; }

/* People: stage chips and a search box on one line, wrapping under it on a phone. */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; transition: background-color 150ms, color 150ms, border-color 150ms; }
.chip:hover { background: var(--hover); color: var(--ink); }
.chip.is-on { background: var(--press); border-color: var(--press); color: var(--on-press); }
.chip-n { font-size: var(--fs-xs); opacity: 0.7; }
.search { width: min(100%, 280px); }
.search .input { min-height: 34px; padding: 5px 11px; font-size: var(--fs-sm); }

/* Waitlist: the sheet's answers, a pick box per row, and Invite selected above the list. */
.select-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 12px 0 0; }
.select-bar .check { align-items: center; }
.select-bar .check input { margin: 0; }
.pick { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--press); cursor: pointer; }
.item-wait .item-head { align-items: center; }
.tag.is-quiet { background: transparent; border: 1px solid var(--line); padding: 0 7px; }
.draft { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 4px 0 0; font-size: var(--fs-sm); line-height: 1.5; max-width: 72ch; }
.draft-k { color: var(--ink-3); white-space: nowrap; }
.draft-v { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.draft-more { min-width: 0; flex: 1 1 260px; }
.draft-more > summary { cursor: pointer; color: var(--ink); overflow-wrap: anywhere; list-style-position: inside; }
.draft-more > summary:hover { color: var(--ink-2); }
.draft-more[open] > summary { color: var(--ink-3); }
.draft-more .quote { margin: 4px 0 0; }
.import-text { min-height: 72px; font-size: var(--fs-sm); }
.import-made .draft-more { margin: 6px 0 0; font-size: var(--fs-sm); }
.import-rows { margin: 6px 0 0; padding-left: 18px; font-size: var(--fs-sm); color: var(--ink-2); }
.batch { max-width: 720px; }
.batch-list { display: flex; flex-direction: column; margin: 0 0 10px; border-top: 1px solid var(--line); }
.batch-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.batch-who { font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.choice-inline { flex-direction: row; flex-wrap: wrap; gap: 0 12px; margin: 0; }
.choice-inline .choice-row { margin: 0; padding: 2px 6px; }
.batch-note { margin: 0 0 12px; color: var(--ink); }

.quote { margin: 6px 0 0; max-width: 72ch; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.item-feedback .facts .fact dt { font-family: var(--font-mono); font-size: var(--fs-xs); padding-top: 1px; }

@media (max-width: 519px) {
  .item { grid-template-columns: minmax(0, 1fr); }
  .item-actions { justify-content: flex-start; }
  .item-link { grid-template-columns: minmax(0, 1fr) auto; }
  .facts { flex-direction: column; gap: 2px; }
  .link-row { flex-direction: column; }
  .search { width: 100%; }
  .tab { padding-left: 8px; padding-right: 8px; }
  .tab::after { left: 8px; right: 8px; }
}

/* Find a person: beside the tabs on a wide screen, above them on a phone. */
.console-bar { display: flex; align-items: flex-end; gap: 8px 20px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.console-bar .tabs { flex: 1 1 auto; min-width: 0; margin: 0; border-bottom: 0; }
.find { position: relative; flex: 0 0 260px; margin: 0 0 7px; }
.find .input { width: 100%; min-height: 34px; padding: 5px 11px 5px 32px; font-size: var(--fs-sm); }
.find-icon { position: absolute; left: 11px; top: 9px; color: var(--ink-3); pointer-events: none; }
.find-results { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: min(380px, calc(100vw - 2 * var(--gutter))); max-height: min(420px, 60vh); overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop); animation: rise 160ms var(--ease-out); }
.find-option { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.find-option:hover, .find-option.is-active { background: var(--hover); }
.find-top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.find-name { font-weight: 600; overflow-wrap: anywhere; }
.find-sub { font-size: var(--fs-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.find-empty { margin: 0; padding: 10px; font-size: var(--fs-sm); color: var(--ink-3); }
@media (max-width: 719px) {
  .console-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .find { flex: none; order: -1; margin: 0; }
  .find-results { left: 0; right: auto; width: 100%; }
}

/* Text that acts: a row title that opens the drawer, a link-like button. */
.link-btn { padding: 0; margin: 0; border: 0; background: none; color: inherit; font-family: inherit; font-size: inherit; line-height: inherit; text-align: left; cursor: pointer; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.link-btn:hover { text-decoration: underline; }
.made-mail .link-btn { font-weight: 500; text-decoration: underline; }
.made-mail .link-btn:hover { text-decoration-color: var(--ink); }
.made-mail > p { margin: 0 0 10px; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); transition: background-color 150ms, color 150ms; }
.btn-icon:hover { background: var(--hover); color: var(--ink); }

/* The in-page confirmation: what happens, then the action and Back. Never window.confirm. */
.confirm { max-width: 640px; padding: 14px 16px 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-card); animation: rise 200ms var(--ease-out); }
.confirm-title { margin: 0 0 6px; font-weight: 600; text-wrap: balance; }
.confirm-title:focus { outline: none; }
.confirm-title:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.confirm-text { margin: 0 0 10px; font-size: var(--fs-sm); color: var(--ink-2); max-width: 64ch; }
.confirm-list { display: flex; flex-direction: column; gap: 3px; max-height: 240px; overflow-y: auto; margin: 0 0 14px; padding-left: 20px; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.confirm .problem { margin: 10px 0 0; }

/* The Waitlist's prompt to bring the sheet in, while only a few people are listed. */
.bring-in { max-width: 720px; margin: 0 0 18px; padding: 16px 18px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); }
.bring-in-title { margin: 0 0 4px; font-size: var(--fs-lg); font-weight: 600; text-wrap: balance; }
.bring-in > .note { margin: 0 0 10px; max-width: 64ch; }
.bring-in-ways { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; padding-left: 20px; font-size: var(--fs-sm); color: var(--ink-2); max-width: 64ch; }
.bring-in-ways strong { color: var(--ink); }

/* Ready to send: a pick box per email, the title opens it. */
.item-mail .item-head { align-items: center; }
.item-mail > .tag { margin-top: 2px; justify-self: start; }
@media (max-width: 519px) { .item.item-mail { grid-template-columns: minmax(0, 1fr) auto; } }
.item-mail .item-title, .item-person .item-title { font-weight: 600; }
.sent-lines { margin: 0 0 12px; padding-left: 20px; font-size: var(--fs-sm); }
.sent-lines .is-bad { color: var(--bad); }

/* The drawer: a person's whole story, or one email, over the console. */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(620px, 100vw); max-width: 100vw; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-pop); flex-direction: column; }
.drawer[open] { display: flex; animation: drawer-in 220ms var(--ease-out); }
.drawer::backdrop { background: rgba(20, 20, 19, 0.32); }
@keyframes drawer-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.drawer-head { display: flex; flex: none; align-items: center; gap: 6px; min-height: 54px; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--line); }
.drawer-head .btn-icon:first-child { margin-left: -10px; }
.drawer-title { flex: 1 1 auto; margin: 0; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.drawer-title:focus { outline: none; }
.drawer-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px 36px; }
@media (max-width: 519px) {
  .drawer { width: 100vw; border-left: 0; }
  .drawer-head { padding-left: var(--gutter); }
  .drawer-body { padding: 16px var(--gutter) 32px; }
}

/* One email: what it is, the email itself, the note, then the decision. */
.mail { display: flex; flex-direction: column; gap: 16px; }
.mail-head { display: flex; flex-direction: column; gap: 6px; }
.mail-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.mail-step { margin-left: auto; font-size: var(--fs-xs); color: var(--ink-3); }
.mail-subject { margin: 2px 0 4px; font-size: var(--fs-lg); font-weight: 600; line-height: 1.35; text-wrap: balance; overflow-wrap: anywhere; }
.mail-meta { display: grid; gap: 2px; margin: 0; font-size: var(--fs-sm); }
.mail-meta-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.mail-meta dt { color: var(--ink-3); }
.mail-meta dd { margin: 0; overflow-wrap: anywhere; }
.mail-frame { display: block; width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mail-frame-empty { margin: 0; padding: 32px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: var(--fs-sm); color: var(--ink-3); text-align: center; }
.mail-note { gap: 6px; }
.mail-note-hint { margin: -2px 0 2px; }
.mail-note-input { min-height: 96px; }
.mail-note-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.mail-note-state { flex: 1 1 220px; margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.mail-note-state.is-changed { color: var(--warn); }
.mail-note-read .field-label { margin: 0; }
.mail-note .mail-note-count { align-self: flex-end; }
.mail-cc { gap: 6px; }
.mail-cc-input { min-height: 56px; }
.mail-cc-same { margin: 0; color: var(--ink-2); }
.mail-cc-warn { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); color: var(--ink); font-size: var(--fs-sm); line-height: 1.5; }
.mail-cc-warn[hidden] { display: none; }
.sched-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 10px 12px; margin: 4px 0 10px; }
.sched-when { margin: 0 0 12px; font-size: var(--fs-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sched-when.is-changed { color: var(--warn); }
.list-note { margin: 2px 0 8px; font-size: var(--fs-sm); color: var(--ink-3); max-width: 72ch; }
.item-when { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 519px) { .sched-fields { grid-template-columns: minmax(0, 1fr); } }
.mail-actions { padding-top: 16px; border-top: 1px solid var(--line); }
.mail-next { margin-left: auto; }
.mail-done { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--hover); font-size: var(--fs-sm); }
.mail > .problem { margin: 0; }
.ob-mail { margin-top: 8px; }
@media (max-width: 519px) {
  .mail-frame { height: 460px; }
  .mail-next { margin-left: 0; }
}

/* A person's story in the drawer: actions first, then emails, then the record. */
.person-head { margin: 0 0 14px; }
.person-name { margin: 0 0 6px; font-size: var(--fs-hero); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; text-wrap: balance; }
.person-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; font-size: var(--fs-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.person-actions { justify-content: flex-start; margin: 0 0 12px; }
.person-confirm { margin: 0 0 12px; }
.story { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.story-title { margin: 0 0 8px; font-size: var(--fs-md); font-weight: 600; }
.story > .note { margin: 0; }
.story-facts { display: grid; gap: 6px; margin: 0; font-size: var(--fs-sm); }
.story-fact { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
.story-fact dt { color: var(--ink-3); }
.story-fact dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-variant-numeric: tabular-nums; }
.story-mail { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; width: calc(100% + 24px); margin: 0 -12px; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color 150ms; }
.story-mail:hover { background: var(--hover); }
.story-mail-subject { font-weight: 500; overflow-wrap: anywhere; }
.story-mail-sub { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--ink-2); }
.timeline { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); }
.timeline li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
.timeline-when { color: var(--ink-3); }
.story-feedback { margin: 0 0 12px; }
.story-feedback .caption { margin: 0; }
/* Credit & trial: the numbers, then Add credit and Extend trial, each a small form that confirms in place. */
.story > .credit-note { margin: 10px 0 0; color: var(--warn); }
.credit-actions { margin: 12px 0 0; }
.credit-panel { margin: 12px 0 0; }
.story > .credit-said { margin: 10px 0 0; }
.story > .credit-said:empty { display: none; }
.input-unit { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); transition: border-color 150ms; }
.input-unit:focus-within { border-color: var(--line-focus); }
.input-unit:has(.input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.input-unit-label { padding-left: 11px; font-size: var(--fs-sm); color: var(--ink-3); }
.input-unit .input { border: 0; background: transparent; padding-left: 6px; font-variant-numeric: tabular-nums; }
.input-unit .input:focus-visible { outline: none; }
@media (max-width: 519px) {
  .story-fact, .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---- footer ---- */
.foot { flex: none; width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 32px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-sm); color: var(--ink-3); }
.page-read + .foot { max-width: calc(var(--col-read) + 2 * var(--gutter)); }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .foot-host { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---- motion: one-shot, short ---- */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card, .panel { animation: rise 200ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- the pilot path: one tracker on /pilot, /pilot/next and the account ----
   Four steps in a row. Done is an ink dot with a check and an ink line to the
   next step; the current step is an ink ring; the rest are hairline rings with
   their number. When a step completes while the page is open (the booking
   arrives), its line draws across once: the site's one authored moment. */
.path { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 10px; counter-reset: path; }
.path-step { position: relative; padding-top: 30px; font-size: var(--fs-sm); line-height: 1.35; color: var(--ink-3); counter-increment: path; text-wrap: balance; }
.path-dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--bg); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 600; line-height: 1; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: background-color 240ms var(--ease-out), border-color 240ms var(--ease-out); }
.path-dot::before { content: counter(path); }
.path-step:not(:last-child)::after { content: ""; position: absolute; top: 9.25px; left: 28px; right: -2px; height: 1.5px; border-radius: 1px; background: linear-gradient(var(--ink), var(--ink)) left / 0 100% no-repeat, var(--line-strong); }
.path-step.is-done::after { background-size: 100% 100%; }
.path-step.is-done.is-fresh::after { animation: path-draw 560ms var(--ease-out) 120ms both; }
@keyframes path-draw { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
.path-step.is-done .path-dot { background: var(--ink); border-color: var(--ink); }
.path-step.is-done .path-dot::before { content: ""; width: 12px; height: 12px; background: var(--on-press); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }
.path-step.is-now .path-dot { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 4px var(--hover); }
.path-step.is-done, .path-step.is-now { color: var(--ink); }
.path-step.is-now .path-label { font-weight: 600; }
:root { --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.25 3.25L15 6.75'/%3E%3C/svg%3E"); }
.pilot-path { margin: 24px 0 0; }
.pilot-path .path { margin-bottom: 8px; }

/* The front door for a stranger: the pilot is the decision, so it gets the card. */
.gate { margin: 28px 0 0; padding: 18px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); }
.gate-title { margin: 0; font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; }
.gate-text { margin: 4px 0 16px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.steps-how { margin-top: 0; }
.gate-invite { margin: 14px 0 0; }

/* /pilot: the sign button with what comes after it. */
.sign-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sign-foot .note { margin: 0; }

/* /pilot/next: the call first, then the install. */
.book { margin: 4px 0 0; gap: 10px; }
.book-wait { display: inline-flex; align-items: center; gap: 8px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.booked { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 12px; margin: 4px 0 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-card); animation: rise 240ms var(--ease-out); }
.booked .i { width: 18px; height: 18px; color: var(--ok); }
.booked-body { display: flex; flex-wrap: wrap; column-gap: 8px; }
.booked-title { font-weight: 600; }
.booked-when { color: var(--ink-2); }
.steps-title { margin: 36px 0 0; }
.steps-tight { margin-top: 10px; }
.step:has(.step-btn) .step-n { line-height: 36px; }
.week-note { margin: 14px 0 0; }

/* /activate: the code inside a sentence. */
.code-inline { font-family: var(--font-mono); font-size: 0.95em; letter-spacing: 0.06em; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }

@media (max-width: 519px) {
  .path { gap: 0 6px; }
  .path-step { font-size: var(--fs-xs); }
  .path-step:not(:last-child)::after { right: 2px; left: 26px; }
}
