/* Seller surfaces on checkout402.com.
 *
 * Same tokens as pay.css and the landing page — black/white brand, sea green
 * as the only accent. This is a third surface in one product, not a third
 * product, so it inherits rather than restates.
 */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url("/static/fonts/inter-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700;
  font-display: swap; src: url("/static/fonts/space-grotesk-latin-var.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0a0a0b; --surface: #101012; --surface-2: #16161a;
  --border: #262630; --border-strong: #36363f;
  --text: #ffffff; --text-secondary: #8e9ba0; --text-dim: #6b7378;
  --brand: #ffffff; --brand-hover: #e8e8ea; --on-brand: #0a0a0b;
  --accent: #2dd4bf; --accent-hover: #5eead4; --accent-bg: rgba(45,212,191,.12);
  --error: #ff5d6c; --error-bg: rgba(255,93,108,.1);
  --radius: 10px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff; --surface: #f6f7f9; --surface-2: #eef0f4;
  --border: #e2e5ea; --border-strong: #cbd0d8;
  --text: #0a0a0b; --text-secondary: #5b6469; --text-dim: #858e93;
  --brand: #0a0a0b; --brand-hover: #262630; --on-brand: #ffffff;
  --accent: #0d9488; --accent-hover: #14b8a6; --accent-bg: rgba(13,148,136,.1);
}

* { box-sizing: border-box; }
/* `hidden` is only `display:none` at UA-stylesheet strength, so ANY later
   display rule silently defeats it — .first-run{display:flex} did exactly
   that and the first-run stepper showed to sellers who already had
   checkouts. Global, so no component has to remember. */
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, sans-serif; line-height: 1.55;
  -webkit-font-smoothing: antialiased; }
a { color: var(--text); }
h1 { font-family: "Space Grotesk", sans-serif; font-size: 30px;
  letter-spacing: -0.025em; margin: 0 0 8px; line-height: 1.15; }
h2 { font-family: "Space Grotesk", sans-serif; font-size: 17px;
  letter-spacing: -0.01em; margin: 32px 0 12px; }
.lead { color: var(--text-secondary); font-size: 15px; margin: 0 0 26px; }
.muted { color: var(--text-secondary); font-size: 13.5px; }
.wordmark { font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 19px; letter-spacing: -0.03em; text-decoration: none; color: var(--text); }
.caret { color: var(--accent); }

/* ── app shell ────────────────────────────────────────────────────────── */
.topbar { border-bottom: 1px solid var(--border); background: var(--bg);
  position: sticky; top: 0; z-index: 10; }
.topbar-in { max-width: 940px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 22px; }
.topbar nav { display: flex; gap: 18px; font-size: 14px; margin-left: 6px; }
.topbar nav a { color: var(--text-secondary); text-decoration: none; }
.topbar nav a:hover { color: var(--text); }
.topbar nav a.on { color: var(--text); font-weight: 500; }
.topbar .right { margin-left: auto; display: flex; align-items: center;
  gap: 14px; font-size: 13px; color: var(--text-secondary); }
.wrap { max-width: 940px; margin: 0 auto; padding: 34px 20px 80px; }
.wrap.narrow { max-width: 620px; }

/* ── auth ─────────────────────────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .wordmark { display: inline-block; margin-bottom: 34px; }
.auth-card h1 { font-size: 26px; }
.tick { width: 42px; height: 42px; border-radius: 50%; display: grid;
  place-items: center; background: var(--accent-bg); color: var(--accent);
  font-size: 20px; margin-bottom: 16px; }

/* ── forms ────────────────────────────────────────────────────────────── */
label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-secondary); margin: 18px 0 6px; }
/* Match by exclusion, not enumeration. `input[type=text]` misses a bare
   <input> (no type attribute at all, which defaults to text) and misses every
   future type — usdreceipt's stylesheet omitted `select` the same way and the
   app grew inline style attributes to compensate. */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]),
textarea, select {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 11px 13px; font: inherit;
  font-size: 14.5px; transition: border-color .12s, box-shadow .12s; }
input:focus, textarea:focus, select:focus { outline: none;
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
textarea { min-height: 90px; resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.hint { color: var(--text-dim); font-size: 12.5px; margin: 6px 0 0; }
.field-error { color: var(--error); font-size: 12.5px; margin: 6px 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 8px; padding: 11px 18px;
  font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer;
  text-decoration: none; transition: background .12s, border-color .12s, opacity .12s; }
.btn-primary { background: var(--brand); color: var(--on-brand); width: 100%; margin-top: 22px; }
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-ghost { background: transparent; border-color: var(--border-strong);
  color: var(--text); padding: 8px 14px; font-size: 13.5px; }
.btn-ghost:hover:not(:disabled) { border-color: var(--text-secondary); }

/* The filled button for an action inside a row. `.btn-primary` is the
   full-width, 22px-margin-top one that ends the create form; using it for
   "Save wallets" would stretch it across the panel, and using nothing at all
   is what left these rendering as the browser's default grey. */
.btn-solid { background: var(--brand); color: var(--on-brand);
  padding: 8px 16px; font-size: 13.5px; }
.btn-solid:hover:not(:disabled) { background: var(--brand-hover); }

/* The one that spends money or reveals a key gets the accent, so the
   consequential button in a row is never the same weight as Cancel. */
.btn-accent { background: var(--accent); color: #042f2a;
  padding: 8px 16px; font-size: 13.5px; }
.btn-accent:hover:not(:disabled) { filter: brightness(1.07); }
.linkish { background: none; border: none; padding: 0; font: inherit;
  color: var(--accent); cursor: pointer; text-decoration: underline; }

.spinner { width: 14px; height: 14px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; }
.spinner.big { width: 30px; height: 30px; border-width: 3px; color: var(--accent);
  margin-bottom: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice { margin-top: 18px; padding: 11px 13px; border-radius: 8px; font-size: 13.5px;
  background: var(--surface); border: 1px solid var(--border); }
.notice.error { background: var(--error-bg); border-color: var(--error); color: var(--error); }

/* ── dashboard ────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin: 4px 0 8px; }
.stat { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; }
.stat .n { font-family: "Space Grotesk", sans-serif; font-size: 25px;
  letter-spacing: -0.02em; display: block; }
.stat .k { font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-secondary); margin-top: 3px; display: block; }

.list { list-style: none; padding: 0; margin: 0; }
.row { border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 17px; margin-bottom: 10px; background: var(--surface);
  display: flex; gap: 14px; align-items: flex-start; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 500; font-size: 15px; }
.row .u { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; color: var(--text-secondary); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .price { font-family: "Space Grotesk", sans-serif; font-size: 16px;
  white-space: nowrap; }
/* Transparent on desktop: price and Copy stay direct flex children of .row, so
   the wide layout is untouched. The mobile rule turns it into a real box. */
.row .foot { display: contents; }
.tag { display: inline-block; font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 5px;
  border: 1px solid var(--border-strong); color: var(--text-secondary);
  margin-left: 8px; vertical-align: 1px; }
.tag.accent { color: var(--accent); border-color: var(--accent); }

.empty { border: 1px dashed var(--border-strong); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; color: var(--text-secondary); }
.empty h2 { margin: 0 0 6px; }

/* ── copy affordance ──────────────────────────────────────────────────── */
.copy { background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; display: flex; gap: 10px;
  align-items: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; }
.copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
/* The anchor too — "Add to Claude ↗" is an <a>, and without this it collapses
   to a couple of characters next to a long URL.
   The font reset matters: `.copy` is monospace so the URL lines up, and `.btn`
   is `font: inherit`, so the button labels were coming out monospace too. */
.copy button, .copy a { flex-shrink: 0;
  font-family: "Inter", system-ui, sans-serif; }

@media (max-width: 560px) {
  /* URL on its own line, the two actions sharing the next one. Three items in
     one row at 375px leaves the URL about eight characters wide. */
  .copy { flex-wrap: wrap; }
  .copy code { flex: 1 0 100%; }
  .copy button, .copy a { flex: 1 1 auto; justify-content: center; min-height: 40px; }
}

.result { border: 1px solid var(--accent); background: var(--accent-bg);
  border-radius: var(--radius); padding: 20px; margin-top: 26px; }
.result h2 { margin: 0 0 4px; }

details.adv { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 6px; }
details.adv summary { cursor: pointer; font-size: 13.5px; color: var(--text-secondary);
  padding: 10px 0; list-style: none; }
details.adv summary::-webkit-details-marker { display: none; }
details.adv summary::before { content: "▸ "; color: var(--text-dim); }
details.adv[open] summary::before { content: "▾ "; }

@media (max-width: 560px) {
  /* The row goes vertical, and in a COLUMN flex container `min-width: 0` on
     the child no longer constrains it — the checkout URL grew past the card
     edge and pushed the page into horizontal scroll. An explicit 100% width
     plus the ellipsis rule is what actually truncates it. */
  /* Two rows, not four. Stacking title / URL / price / full-width Copy made
     one checkout 350px tall, so four of them filled a phone screen and the
     list stopped being scannable — the thing a list is for. Title and URL take
     the top; price and Copy share the bottom, where the price is the value
     you scan and Copy is the action you take. */
  .row { flex-direction: column; align-items: stretch; gap: 10px;
    padding: 14px 15px; }
  .row .grow, .row .u { width: 100%; max-width: 100%; min-width: 0; }
  .row .foot { display: flex; align-items: center; justify-content: space-between;
    gap: 12px; }
  .row .price { font-size: 17px; }
  .row .foot .btn { flex: none; padding: 7px 16px; }

  /* One row, always. The row needs 356px and a phone gives 343, so wrapping
     dropped "Sign out" onto a line of its own — floating right under the nav,
     which reads as a mistake — and doubled the header height, which is what
     put the section rail behind it. Nothing wraps now: the email goes (you
     know who you are), the nav scrolls if it must, and Sign out holds its
     place at the end of the row. */
  .topbar-in { gap: 12px; flex-wrap: nowrap; padding: 11px 16px; }
  .wordmark { font-size: 17px; flex: none; }
  .topbar nav { gap: 15px; margin-left: 0; min-width: 0;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { white-space: nowrap; }
  .topbar .right { margin-left: auto; flex: none; }
  #who { display: none; }
  /* A real target, not a 13px word. */
  #signout { padding: 6px 0; font-size: 13.5px; }

  /* Drop "Create" from the header: the row still overflows by 28px with it,
     and a half-visible "D" where "Docs" should be is the kind of detail that
     makes people distrust the rest. It is not lost — the section rail
     directly below has a Create chip pointing at the same anchor. */
  .topbar nav a[href$="#s-create"] { display: none; }

  .wrap { padding: 24px 16px 60px; }
  h1 { font-size: 25px; }
  .first-run { gap: 12px; }
  .fr-link { margin-left: 0; }
}

/* ── skeletons ─────────────────────────────────────────────────────────
   Never the string "Loading…". A skeleton keeps the layout stable so the
   page does not jump, and a re-fetch does not look like an error. */
.skel { display: inline-block; height: .85em; width: 100%; border-radius: 5px;
  vertical-align: -1px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%; animation: skel 1.3s ease-in-out infinite; }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.stat .n .skel { width: 60%; height: 22px; }

/* ── first run ─────────────────────────────────────────────────────────
   One row, gone the moment a checkout exists. A stepper that never leaves
   becomes furniture nobody reads. */
.first-run { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 14px 18px; margin-bottom: 20px; }
.fr-title { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-secondary); font-weight: 600; }
.fr-steps { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0;
  flex-wrap: wrap; font-size: 13.5px; color: var(--text-secondary); }
.fr-steps li { display: flex; align-items: center; gap: 7px; }
.fr-num { width: 20px; height: 20px; border-radius: 50%; display: grid;
  place-items: center; background: var(--accent-bg); color: var(--accent);
  font-size: 11px; font-weight: 600; }
.fr-link { margin-left: auto; font-size: 13.5px; color: var(--accent);
  text-decoration: none; white-space: nowrap; }

/* ── layout helpers ────────────────────────────────────────────────────── */
.page-head { margin-bottom: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; gap: 0; } }
label.check { display: flex; align-items: center; gap: 9px; text-transform: none;
  letter-spacing: 0; font-size: 14px; font-weight: 400; color: var(--text);
  margin: 14px 0 0; cursor: pointer; }
label.check input { width: auto; }

/* Empty state names the next action — a dead end is worse than no list. */
.empty { display: block; border: 1px dashed var(--border-strong);
  border-radius: var(--radius); padding: 30px 22px; text-align: center; }
.empty strong { display: block; margin-bottom: 4px; }
.empty .hint { color: var(--text-secondary); font-size: 13.5px; }

.notice.ok { border-color: var(--accent); background: var(--accent-bg); }
.notice code { font-size: 12.5px; word-break: break-all; }
#msg:empty { display: none; }
#msg .notice { margin-top: 16px; }


/* ── dashboard layout: sticky section rail ─────────────────────────────────
   One authenticated page with an outline, not tabs. The rail is a scroll-spy
   over anchors — no router, no state to get out of sync with the URL, and
   Back still leaves the page rather than cycling tabs. */
.dash { display: grid; grid-template-columns: 180px 1fr; gap: 34px;
  align-items: start; max-width: 1060px; margin: 0 auto; padding: 30px 20px 90px; }
/* Offsets come from --topbar-h, published by the header itself (see
   _topbar.html). Every one of these used to be a hard-coded guess. */
.rail { position: sticky; top: calc(var(--topbar-h, 57px) + 17px); min-width: 0; }
.rail-title { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 10px; }
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail a { display: block; padding: 6px 0 6px 11px; font-size: 13.5px;
  color: var(--text-secondary); text-decoration: none;
  border-left: 2px solid var(--border); transition: color .12s, border-color .12s; }
.rail a:hover { color: var(--text); }
.rail a.on { color: var(--text); border-left-color: var(--accent); font-weight: 500; }
.dash-main { min-width: 0; }

/* Mobile: the rail becomes a horizontal chip strip under the header. */
@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; gap: 18px; padding: 20px 16px 70px; }
  .rail { position: sticky; top: var(--topbar-h, 57px); background: var(--bg);
    z-index: 5; margin: 0 -16px; padding: 10px 16px;
    border-bottom: 1px solid var(--border); }
  .rail-title { display: none; }
  .rail ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .rail ul::-webkit-scrollbar { display: none; }
  .rail a { white-space: nowrap; border-left: none; border: 1px solid var(--border);
    border-radius: 999px; padding: 5px 12px; font-size: 12.5px; }
  .rail a.on { border-color: var(--accent); color: var(--accent); }
}

/* Sections get scroll-margin so the sticky header never covers a heading. */
/* Clear BOTH sticky bars, or an anchor lands on a heading hidden behind them. */
section[id] { scroll-margin-top: calc(var(--sticky-h, 84px) + 12px); }
section[id] + section[id] { margin-top: 44px; }
section > h2:first-child { margin-top: 0; }

/* ── receipts ─────────────────────────────────────────────────────────── */
.rcpt { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px;
  align-items: baseline; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 13px 16px; margin-bottom: 8px; }
.rcpt .when { font-size: 12.5px; color: var(--text-secondary);
  font-variant-numeric: tabular-nums; }
.rcpt .what { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.rcpt .amt { font-family: "Space Grotesk", sans-serif; font-size: 15px;
  font-variant-numeric: tabular-nums; }
.rcpt .meta { grid-column: 1 / -1; font-size: 12px; color: var(--text-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcpt.undelivered { border-color: var(--error); }
.rcpt .warn { grid-column: 1 / -1; color: var(--error); font-size: 12.5px; }

/* Per-checkout revenue. Deliberately a table and not more .rcpt cards: these
   are figures to compare down a column, and cards defeat that. */
.perf { width: 100%; border-collapse: collapse; margin-top: 6px; }
.perf td { border-bottom: 1px solid var(--border); padding: 11px 4px; font-size: 14px; }
.perf tr:last-child td { border-bottom: 0; }
.perf td.grow { width: 100%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 0; }
.perf td:not(.grow) { white-space: nowrap; text-align: right; padding-left: 18px;
  color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.perf td.amt { font-family: "Space Grotesk", sans-serif; color: var(--text); }
.perf td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; color: var(--text); }

/* ── Payout wallet generator ─────────────────────────────────────────────
   Everything here shows key material, so it is styled to be read carefully
   rather than skimmed past. */
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.genwrap { margin-top: 18px; border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 18px; background: var(--surface); }
.notice.warn { border-color: var(--warn, #d97706); color: var(--text);
  background: rgba(217, 119, 6, .1); }

/* One chip per word. A phrase set as prose is the easiest thing in the world
   to transcribe wrongly, and the mistake only surfaces when a restore fails. */
.phrase { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px; margin: 16px 0; }
.phrase .word { display: flex; align-items: baseline; gap: 8px;
  border: 1px solid var(--border); border-radius: 7px; padding: 8px 11px;
  background: var(--bg); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px; user-select: all; }
.phrase .word i { font-style: normal; color: var(--text-dim); font-size: 11px;
  min-width: 14px; text-align: right; }

/* One-shot copy. Deliberately the largest control in the panel: it is the
   action that prevents the failure mode, which is saving the phrase and
   losing the keys. */
/* A button and a caption, not one full-width slab with two lines in it — that
   read as a banner, which is the one thing a button must not look like. The
   description sits OUTSIDE the control so the clickable area is button-shaped. */
.grab { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 16px 0 20px; }
.grab .grab-note { font-size: 12.5px; color: var(--text-secondary); }
/* Already accent via .btn-accent, so "copied" reads as a brief dim rather than
   a colour change that would look like a different button. */
.grab .btn.done { opacity: .8; }

.genrow { margin: 18px 0; }
.genrow-head { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 9px; }
.genrow-head h3 { margin: 0; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-dim); font-weight: 600; }

/* Small inline copy. `flex: none` so it never shrinks under a long address. */
.chip { flex: none; padding: 5px 11px; font-size: 12px; border-radius: 6px;
  background: transparent; border: 1px solid var(--border2);
  color: var(--text-secondary); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.done { border-color: var(--accent); color: var(--accent); }

/* label / value / copy. `minmax(0,1fr)` on the value is what actually lets it
   shrink — a grid track defaults to min-content, so a 44-character address
   would push the copy button off the side of a phone instead of wrapping. */
.val { display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px; align-items: center; padding: 9px 0;
  border-bottom: 1px solid var(--border); }
.val:last-child { border-bottom: 0; }
.val-k { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }
.val-v { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; min-width: 0; overflow-wrap: anywhere; user-select: all;
  color: var(--text); }

.reveal { margin: 18px 0; }
.reveal summary { cursor: pointer; font-size: 13px; color: var(--text-secondary);
  letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
  padding: 6px 0; }
.reveal summary:hover { color: var(--accent); }
.reveal > .muted { font-size: 13px; margin: 4px 0 10px; }

/* `label` is uppercased for form fields; this one is a sentence the seller has
   to actually read, and shouting it makes it read as boilerplate to skip. */
.ack { display: flex; gap: 9px; align-items: flex-start; margin: 16px 0 12px;
  font-size: 14px; cursor: pointer; text-transform: none; letter-spacing: normal;
  color: var(--text); font-weight: 400; }
.ack input { width: auto; margin: 2px 0 0; flex: none; }

/* Two products, chosen explicitly. A number box with placeholder "1" asked the
   seller to infer that a single call and a package are different things with
   different rules; this states it. */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.seg button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  text-align: left; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  color: var(--text-secondary); font: inherit; }
.seg button b { font-size: 14px; font-weight: 600; color: var(--text); }
.seg button span { font-size: 12.5px; line-height: 1.4; }
.seg button:hover { border-color: var(--border2); }
.seg button.on { border-color: var(--accent); background: var(--accent-bg); }
.seg button.on b { color: var(--accent); }

.hint.error { color: var(--error); }

/* The paste block. Wide by nature — it is markup — so it scrolls inside its
   own box; without this the PAGE scrolled sideways, which is the one thing a
   phone layout must never do. */
.embed-out { margin: 0; padding: 12px 14px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px;
  overflow-x: auto; max-width: 100%; }
.embed-out code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; line-height: 1.5; white-space: pre; color: var(--text-secondary);
  background: none; border: 0; padding: 0; }
#s-embed .reveal .muted { margin: 6px 0 0; }

@media (max-width: 560px) { .seg { grid-template-columns: 1fr; gap: 8px; } }

/* Confirm-before-change. Bordered in the accent rather than the error colour:
   this is a deliberate action being checked, not a mistake being reported. */
.confirm { margin-top: 16px; border: 1px solid var(--accent);
  border-radius: var(--radius); background: var(--accent-bg); padding: 16px; }
.confirm h3 { margin: 0 0 10px; font-size: 14.5px; }
.confirm ul { margin: 0 0 10px; padding-left: 20px; font-size: 14px; }
.confirm li { margin-bottom: 6px; }
.confirm code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; overflow-wrap: anywhere; }
.confirm .muted { font-size: 13px; margin: 0 0 12px; }

/* Change history. Three columns on desktop, stacked on a phone. */
.hist { display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 14px; align-items: baseline; padding: 10px 0;
  border-bottom: 1px solid var(--border); font-size: 13px; }
.hist:last-child { border-bottom: 0; }
.hist .when { color: var(--text-secondary); font-variant-numeric: tabular-nums;
  white-space: nowrap; font-size: 12.5px; }
.hist .what { min-width: 0; overflow-wrap: anywhere; }
.hist .what code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; color: var(--text-secondary); }
.hist .who { color: var(--text-dim); font-size: 12px; white-space: nowrap; }

@media (max-width: 560px) {
  /* Edge-to-edge: 18px of padding on each side of a 44-character key on a
     360px screen leaves nothing for the key. */
  .genwrap { padding: 14px 12px; margin-left: -4px; margin-right: -4px; }
  .confirm { padding: 13px 12px; }
  /* Three columns of history do not fit; the timestamp and actor share a row
     above the change itself rather than squeezing the address. */
  .hist { grid-template-columns: minmax(0, 1fr) auto; }
  .hist .when { grid-column: 1; }
  .hist .who { grid-column: 2; grid-row: 1; }
  .hist .what { grid-column: 1 / -1; grid-row: 2; }

  /* Three columns cannot hold label + address + button at this width, so the
     value takes its own row and the button sits under the label. Keeps the
     copy target full-size instead of shrinking it to fit. */
  .val { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .val-k { grid-column: 1; }
  .chip { grid-column: 2; grid-row: 1; }
  .val-v { grid-column: 1 / -1; grid-row: 2; font-size: 12px; }

  /* 2 columns at 360px; auto-fill alone would try for 3 and clip the words. */
  .phrase { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
  .phrase .word { padding: 7px 9px; font-size: 13px; }

  .row-actions { gap: 8px; }
  .row-actions button { flex: 1 1 auto; min-width: 0; }

  /* 24px is a miss on a phone, and these copy a seed phrase and private keys
     — values the seller cannot get back if the tap lands wrong and they close
     the panel. Sized for a thumb, not for the label. */
  .chip { min-height: 38px; padding: 9px 14px; }
  .genrow-head .chip, .val .chip { min-height: 38px; }

  /* Full-width button, caption on its own line under it. Side by side at this
     width would squeeze the button to fit the caption. */
  .grab { gap: 8px; }
  .grab .btn { width: 100%; min-height: 42px; }
  .grab .grab-note { width: 100%; }
}

/* ── connect-to-Claude card ───────────────────────────────────────────── */
.claude { border: 1px solid var(--accent); background: var(--accent-bg);
  border-radius: var(--radius); padding: 18px 20px; }
.claude-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; }
.claude-mark { flex: none; margin-top: 1px; }
.claude-head strong { display: block; font-size: 15px; margin-bottom: 4px; }
.claude-head p { margin: 0; font-size: 13.5px; }
.claude > label { display: block; margin-bottom: 7px; }
.claude ol { margin: 16px 0 0; padding-left: 18px; font-size: 13.5px;
  color: var(--text-secondary); }
.claude li { margin-bottom: 6px; }
.claude code { background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 5px; font-size: 12.5px; }
