
/* checkout402's token system, monochrome edition: white, black and gray
   shading only — dark default + light by scheme. No hue anywhere. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900;
  font-display: optional; 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: optional; src: url("/static/fonts/space-grotesk-latin-var.woff2") format("woff2"); }
/* Width-matched fallbacks (measured against Arial, same ratios the
   checkout402 landing ships): if the woff2 misses one paint, the swap moves
   letterforms, not line breaks. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica");
  size-adjust: 106.69%; }
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"), local("Helvetica");
  size-adjust: 101.78%; }

:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --surface: #101012;
  --surface-2: #16161a;
  --border: #262630;
  --border-strong: #36363f;
  --text: #ffffff;
  --text-soft: #dde7ea;
  --text-secondary: #8e9ba0;
  --brand: #ffffff;
  --brand-hover: #e8e8ea;
  --on-brand: #0a0a0b;
  /* Monochrome by decree: white, black, and shades between. The accent IS
     the text color at full strength; emphasis comes from weight and value,
     never hue. Every former color role keeps its token so nothing downstream
     (including the canvas scenes, which read these at draw time) changes. */
  --accent: #ffffff;
  --accent-hover: #e8e8ea;
  --accent-ink: #ffffff;
  --accent-bg: rgba(255, 255, 255, 0.08);
  --success: #ffffff;
  --success-bg: rgba(255, 255, 255, 0.08);
  --warning: #a1a1aa;
  --warning-bg: rgba(161, 161, 170, 0.14);
  --error: #ffffff;
  --error-bg: rgba(255, 255, 255, 0.14);
  --glow-a: rgba(255, 255, 255, 0.05);
  --glow-b: rgba(255, 255, 255, 0.02);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  /* The pixel scenes' palette, split by SURFACE, not by theme — the sibling's
     own values verbatim. A value that reads on a drawn wall does not read on
     the card behind it, and the walls invert between themes while the agent's
     teal and the wallet's slot do not. */
  --coin: #ffffff;          /* money ON the card — full-strength white */
  --scene-solid: #101012;   /* wall */
  --scene-inset: #1c1c21;   /* a sign face, recessed into a wall */
  --scene-edge:  #3a3a44;   /* outlines and the ground line */
  --scene-label: #dde7ea;   /* primary text on a wall */
  --scene-mute:  #8e9ba0;   /* secondary text on a wall */
  --scene-brand: #ffffff;   /* highlight ON a wall */
  --scene-coin:  #ffffff;   /* money ON a wall */
  --scene-face: #101012;    /* the agent's features — dark on its white body */
  --scene-hole: #16161a;    /* the wallet's opening: a slot is a hole */
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #f1f3f6;
    --border: #e2e5ea;
    --border-strong: #cbd0d8;
    --text: #0b0b0f;
    --text-soft: #3a4248;
    --text-secondary: #5d6670;
    --brand: #0a0a0b;
    --brand-hover: #262630;
    --on-brand: #ffffff;
    --accent: #0b0b0f;
    --accent-hover: #262630;
    --accent-ink: #0b0b0f;
    --accent-bg: rgba(0, 0, 0, 0.06);
    --success: #0b0b0f;
    --success-bg: rgba(0, 0, 0, 0.06);
    --warning: #71717a;
    --warning-bg: rgba(113, 113, 122, 0.12);
    --error: #0b0b0f;
    --error-bg: rgba(0, 0, 0, 0.08);
    --glow-a: rgba(0, 0, 0, 0.04);
    --glow-b: rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --coin: #0b0b0f;
    --scene-solid: #e9ebf0;
    --scene-inset: #d4d8e1;
    --scene-edge:  #aab1be;
    --scene-label: #16161a;
    --scene-mute:  #5d6670;
    --scene-brand: #16161a;
    --scene-coin:  #16161a;
    /* The agent's body is the accent — black on this theme — so its
       features flip light or the face vanishes. The hole stays dark in
       both themes: a slot is a hole. */
    --scene-face: #f6f7f9;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", "Inter Fallback", system-ui, sans-serif;
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  /* Quiet sea-green atmosphere, same recipe as the checkout402 landing. */
  background-image:
    radial-gradient(ellipse 70% 45% at 72% 28%, var(--glow-a), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 88%, var(--glow-b), transparent 50%);
  background-attachment: fixed; }
h1, h2, h3, .display { font-family: "Space Grotesk", "Space Grotesk Fallback",
  "Inter", system-ui, sans-serif; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { overflow-wrap: anywhere; }

.top, main, footer { max-width: 984px; margin-left: auto; margin-right: auto;
  padding-left: 24px; padding-right: 24px; }
body.wide .top, body.wide main, body.wide footer { max-width: 1180px; }
@media (max-width: 560px) {
  .top, main, footer { padding-left: 18px; padding-right: 18px; }
}

/* -------------------------------------------------------------- header */
.top { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 26px; padding-bottom: 10px; }
.wordmark { font-family: "Space Grotesk", "Space Grotesk Fallback", system-ui,
  sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--brand); }
.wordmark:hover { text-decoration: none; }
.wordmark .caret { color: var(--brand); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wordmark .caret { animation: none; } }
.top-links { display: flex; align-items: center; gap: 18px; }
.top-link { font-size: 13px; color: var(--text-secondary); }
.top-link:hover { color: var(--text); text-decoration: none; }
/* The ONE filled header button (the measured norm: 32px tall in a 64px
   header, 14/500, radius 6, inverted fill) — and it is the business's
   top conversion: connecting an agent. Everything else in the header
   is a ghost of identical geometry. */
.top-cta { font-family: "Space Grotesk", sans-serif; font-size: 14px;
  font-weight: 500; color: var(--bg); background: var(--text);
  border: 1px solid var(--text); border-radius: 6px; height: 32px;
  display: inline-flex; align-items: center; padding: 0 12px;
  line-height: 1; }
.top-cta:hover { opacity: 0.85; text-decoration: none; }
.top-ghost { font-family: "Space Grotesk", sans-serif; font-size: 14px;
  font-weight: 500; color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 6px; height: 32px; display: inline-flex;
  align-items: center; padding: 0 12px; line-height: 1; }
.top-ghost:hover { background: var(--surface-2); text-decoration: none; }
/* Signed-out state: the account link becomes a door, not a whisper. */
.top-link.top-signin { color: var(--text); font-weight: 600; }
.signin-nudge { font-size: 13.5px; color: var(--text-secondary);
  line-height: 1.6; margin: -6px 0 18px; max-width: 60ch; }
.signin-nudge a { color: var(--text); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px; }
/* The agents pointer yields on a phone; the account link stays — a seller
   with only a phone still needs the door to their stores. */
@media (max-width: 560px) { .top-link.top-agents { display: none; } }

/* -------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--border); margin-top: 88px;
  padding-top: 28px; padding-bottom: 48px; font-size: 13px;
  color: var(--text-secondary); }
.foot-row { display: flex; gap: 8px 18px; flex-wrap: wrap;
  align-items: baseline; margin: 0 0 16px; }
.foot-row .wm { font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 14px; color: var(--brand); }
footer p { margin: 0 0 8px; max-width: 78ch; line-height: 1.7; }
footer a { color: var(--text-secondary); text-decoration: underline;
  text-decoration-color: var(--border-strong); text-underline-offset: 2px; }
footer a:hover { color: var(--text); }

/* ------------------------------------------------------------- landing */
.hero { padding: 72px 0 8px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05;
  letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 700;
  max-width: 22ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(16px, 2vw, 18px); color: var(--text-soft);
  max-width: 52ch; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
a.btn { display: inline-block; padding: 13px 24px; border-radius: 8px;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 15px; }
a.btn:hover { text-decoration: none; }
a.btn-primary { background: var(--brand); color: var(--on-brand);
  transition: background 0.15s; }
a.btn-primary:hover { background: var(--brand-hover); }
a.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); }
a.btn-ghost:hover { background: var(--surface-2); }

/* The hero's second column: the commit graph. On desktop it rides
   beside the pitch; on a phone it follows the CTAs, scaled and
   centered — BELOW them, so the fold still belongs to the pitch and
   the buttons. The phone keeps the PROMPT too: the typed line under
   the lede is the product as a shell command. */
.hero-anim { display: block; width: min(300px, 82vw); height: auto;
  margin: 34px auto 0; }
.hero-prompt { display: block; width: min(340px, 100%); height: auto;
  margin: 26px 0 0; }
@media (min-width: 880px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px; align-items: center; }
  .hero-anim { display: block; width: 380px; height: auto; margin: 0; }
  .hero-prompt { display: none; }
}

/* ---------------------------------------------- how a sale happens */
/* The storyboard card: canvas on top, four beats underneath. The beats are
   real text — the explanation survives JavaScript being off — and the JS
   lights each one at the moment the scene is showing it. */
.how-sec { margin-top: 72px; }
.how-sec h2 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 8px; }
.how-sec .sub { font-size: 15px; color: var(--text-secondary);
  margin: 0 0 24px; max-width: 62ch; line-height: 1.6; }
.how { border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); padding: 0 0 20px; overflow: hidden; }
.scene { position: relative; background: var(--surface-2);
  border-bottom: 1px solid var(--border); }
.scene canvas { display: block; width: 100%; height: auto; }
.beats { list-style: none; margin: 22px 24px 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.beats li { opacity: .45; transition: opacity .35s; padding-top: 12px;
  border-top: 2px solid var(--border-strong); cursor: pointer; }
.beats li.on { opacity: 1; border-top-color: var(--accent); }
.beats .k { display: block; font-family: ui-monospace, monospace;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--text-secondary); margin-bottom: 6px; }
.beats li.on .k { color: var(--accent-ink); }
.beats .t { font-size: 14px; font-weight: 500; color: var(--text-soft);
  line-height: 1.5; }
.beats li.on .t { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .beats { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (max-width: 560px) {
  .beats { grid-template-columns: 1fr; gap: 0; margin: 14px 14px 0; }
  .beats li { border-top: 0; border-left: 2px solid var(--border-strong);
    padding: 8px 0 8px 12px; }
  .beats li.on { border-left-color: var(--accent); }
  /* Quieter captions on a phone, so the animation leads — but they are
     sentences someone reads, so they stay on the 13px floor. */
  .beats .t { font-size: 13px; line-height: 1.4; }
  .beats .k { font-size: 9.5px; margin-bottom: 3px; }
  .how { padding-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .beats li { transition: none; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 64px; }
.step { background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.step:hover { border-color: var(--border-strong); transform: translateY(-2px);
  box-shadow: var(--shadow-lg); }
.step .k { font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent-ink); }
.step h3 { font-size: 16px; letter-spacing: -0.01em; margin: 12px 0 8px; }
.step p { font-size: 13.5px; color: var(--text-secondary); margin: 0;
  line-height: 1.6; }
@media (max-width: 680px) { .steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .step, .store, a.btn-primary, .buy { transition: none; }
}

/* The form panel: form left, what-happens-next right. */
.panel { background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; margin-top: 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0 48px; scroll-margin-top: 24px; }
.panel h2 { grid-column: 1 / -1; grid-row: 1; margin: 0 0 8px;
  font-size: 22px; letter-spacing: -0.015em; }
.panel form { grid-column: 1; grid-row: 2; }
.panel .out { grid-column: 1; grid-row: 3; }
.panel-side { grid-column: 2; grid-row: 2 / span 2;
  border-left: 1px solid var(--border); padding-left: 40px;
  font-size: 13.5px; }
@media (max-width: 880px) {
  .panel { display: block; padding: 24px 20px; }
  .panel-side { border-left: 0; padding-left: 0;
    border-top: 1px solid var(--border); padding-top: 24px; margin-top: 28px; }
}
/* Two doors, juxtaposed: the seller funnel and the buyer's guide, equal
   boxes. The children drop the landing panel's grid — these hold lists
   and buttons, not the form. */
.panel-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 64px; scroll-margin-top: 24px; }
.panel-duo .panel { display: block; margin-top: 0; }
@media (max-width: 880px) { .panel-duo { grid-template-columns: 1fr; } }
.panel-side h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-secondary); margin: 4px 0 16px; }
.next { list-style: none; counter-reset: nx; margin: 0; padding: 0; }
.next li { counter-increment: nx; position: relative; padding: 0 0 18px 36px;
  color: var(--text-soft); line-height: 1.55; }
.next li:last-child { padding-bottom: 0; }
.next li::before { content: counter(nx); position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 7px;
  border: 1px solid var(--border-strong); color: var(--text-secondary);
  font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.next li:not(:last-child)::after { content: ""; position: absolute; left: 11px;
  top: 27px; bottom: 5px; width: 1px; background: var(--border); }
.promises { margin-top: 24px; padding: 14px 16px; border-radius: 10px;
  background: var(--accent-bg); border: 1px solid var(--border-strong); }
.promises b { display: block; font-family: "Space Grotesk", sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.promises p { margin: 0 0 6px; font-size: 13px; color: var(--text-soft);
  line-height: 1.55; }
.promises p:last-child { margin-bottom: 0; }

label { display: block; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); margin: 20px 0 8px; line-height: 1.5; }
input, textarea { width: 100%; padding: 11px 14px; border-radius: 8px;
  font-size: 14px;
  font-family: inherit; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); }
input:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg); }
input::placeholder { color: var(--text-secondary); opacity: 0.6; }
button { margin-top: 24px; width: 100%; padding: 14px; border-radius: 8px;
  border: 0; background: var(--brand); color: var(--on-brand);
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: background 0.15s; }
button:hover:not(:disabled) { background: var(--brand-hover); }
button:disabled { opacity: 0.55; cursor: wait; }
/* ---- one button system. The base <button> above is the FORM idiom
   (full-width, brand fill). Every other button belongs to one of two
   families whose box and voice are declared once, here; each variant
   below keeps only its deltas (padding, a color, a margin).
   Solid-compact: .btn-compact, .ghgo, #kmint.
   Quiet-outline: .ghost, .ghdisc, .copy, .krevoke. */
button.btn-compact, .ghlist button.ghgo, button.ghost, button.ghdisc,
button.copy, button.krevoke, #kmint { width: auto; margin-top: 0; }
button.ghost, button.ghdisc, button.copy, button.krevoke {
  background: none; border: 1px solid var(--border-strong);
  border-radius: 8px; cursor: pointer; }
button.ghost:hover:not(:disabled), button.copy:hover:not(:disabled) {
  background: var(--surface-2); }
/* Small utility buttons: quiet, sans, sentence case — the mono-caps
   badge voice belongs to data labels, not to things you press. */
button.ghdisc, button.copy { font-size: 12px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
  color: var(--text-secondary); }
/* One focus language for every control: keyboard and switch access get
   the same ring everywhere, not whatever each browser felt like. Inputs
   keep their own focus treatment (border + glow) above. */
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent);
  outline-offset: 2px; border-radius: 8px; }
/* Containment: nothing escapes its card on a phone. Body copy floors at
   13px; below that is the MICRO-LABEL ALLOWLIST only — deliberate,
   non-prose voices: .badge, table.stats th, .chip, .sales .when/.payer,
   .store-sold, .traffic-cols h3, and the mono badge buttons
   (.ghdisc/.copy). Nothing a seller must READ renders under 13px. */
img, svg, canvas, video { max-width: 100%; }
table { max-width: 100%; }
pre { overflow-x: auto; }
.sales .payer, .sales .amt { overflow-wrap: anywhere; }
/* Grid items default to min-width:auto, so one wide child (the section
   chip row, a URL) silently widens the whole page on a phone instead of
   scrolling inside its own box. Kill the default at the layout roots. */
.dash2 > *, .docshell > * { min-width: 0; }
/* Thumbs are not cursors: every small control grows to the 44px
   Apple/WCAG floor on coarse pointers; visual size stays the same. */
@media (pointer: coarse) {
  .ghlist button.ghgo, button.ghdisc, button.copy, button.krevoke,
  button.btn-compact, #kmint { min-height: 44px; }
  /* Filter chips are links in a dense row: 36px keeps them tappable
     without the empty-pill bloat 44px gave 11px text. */
  .chip { min-height: 36px; }
  a.btn-sm, .reveal summary { display: inline-flex; align-items: center;
    min-height: 44px; }
}
.note { background: var(--surface-2); border-radius: 10px; padding: 12px 14px;
  margin-top: 16px; font-size: 13px; color: var(--text-soft);
  overflow-wrap: anywhere; }
.note.ok { background: var(--success-bg); color: var(--accent-ink); }
.note.err { background: var(--error-bg); color: var(--error); }
.note a { font-weight: 600; }

/* ------------------------------------------------- account surfaces */
/* One narrow column for the pages that hold a single decision (sign in,
   manage a store). display:block, not a one-column grid: the landing
   panel's grid PINS its children (form to row 2, .out to row 3), and two
   forms in a solo panel would both claim row 2 and stack on each other —
   which is exactly what the delist button did to the price field. */
.panel.solo { display: block; max-width: 520px;
  margin-left: auto; margin-right: auto; }
.kicker { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary); margin: 40px 0 6px; }
.err-page { margin: 72px 0; }
.err-page h1 { font-size: clamp(26px, 5vw, 40px); margin: 0 0 12px; }
.dash h1 { font-size: clamp(26px, 5vw, 40px); letter-spacing: -0.025em;
  margin: 0 0 24px; }
/* ---- the dashboard: a sidebar of sections, one view at a time. With
   JavaScript off the views simply stack (.tabbed is only ever added by
   the page's own script). Minimal by decree; every rule below earns its
   place on a phone first. ---- */
.dash2 { display: grid; grid-template-columns: 188px minmax(0, 1fr);
  gap: 44px; align-items: start; margin-top: 44px; }
.side { position: sticky; top: 28px; }
.side-kicker { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.04em; color: var(--text-secondary);
  margin: 0 0 14px; padding: 0 12px; overflow-wrap: anywhere; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { font-size: 13.5px; font-weight: 500;
  letter-spacing: 0; color: var(--text-secondary);
  padding: 9px 12px; border-radius: 8px;
  border-left: 2px solid transparent; }
.side nav a:hover { color: var(--text); text-decoration: none;
  background: var(--surface); }
.side nav a.on { color: var(--text); background: var(--surface);
  border-left-color: var(--accent); border-radius: 0 8px 8px 0; }
.side-out { margin: 14px 0 0; }
.side-out button { width: auto; min-height: 0; font-size: 12.5px;
  font-weight: 500; color: var(--text-secondary); background: transparent;
  border: none; padding: 6px 12px; cursor: pointer; }
.side-out button:hover { color: var(--text); }
@media (max-width: 820px) { .side-out { display: none; } }
.view { margin: 0 0 56px; scroll-margin-top: 24px; }
.tabbed .view { display: none; margin: 0; }
.tabbed .view.on { display: block; }
.view h1 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.02em;
  margin: 0 0 22px; }
.view h3 { font-size: 15px; margin: 22px 0 6px; }
@media (max-width: 820px) {
  .dash2 { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  /* The drawer hid the product: on a phone, Edit lived behind a Menu
     button nobody pressed — the owner included. Dashboards get an
     always-visible strip of section chips; docs keep their drawer. */
  .dash2 .side-toggle { display: none; }
  .side { position: static; margin: 0 0 20px; padding-bottom: 14px;
    border-bottom: 1px solid var(--border); }
  .side-kicker { padding: 0; }
  .side nav { flex-direction: row; overflow-x: auto; gap: 6px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav a { flex: none; border: 1px solid var(--border);
    border-left: 1px solid var(--border); border-radius: 999px;
    padding: 8px 14px; white-space: nowrap; }
  .side nav a.on { border-color: var(--accent); border-left-color:
    var(--accent); border-radius: 999px; background: var(--surface); }
}
.dash-new { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; }
.dash-new input[type="search"] { flex: 1; min-width: 0; max-width: 340px; }
/* The inventory grid keeps the same breath below it that every card
   keeps below itself (.connect-card's 20px) — one stack, one rhythm,
   no card colliding with the grid above it. */
.dash2 .stores { margin: 0 0 20px; }
/* A compact primary button for inside cards — the global button's
   full-width is a form idiom, not a card one. */
button.btn-compact { margin-top: 14px; padding: 10px 18px;
  font-size: 14px; }
.sale-amt { margin-left: auto; font-family: ui-monospace, SFMono-Regular,
  Menlo, monospace; font-weight: 700; font-variant-numeric: tabular-nums; }
/* The GitHub pick-list rows: price + List on the right of each repo. */
.gh-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.gh-act a { font-weight: 600; font-size: 13px; white-space: nowrap; }
.ghlist { display: flex; align-items: center; gap: 8px; }
.ghlist .ghprice { width: 92px; padding: 8px 10px; font-size: 13px;
  text-align: right; font-variant-numeric: tabular-nums; }
/* What currency is this number? The input alone never said. */
.price-wrap { display: inline-flex; align-items: center; gap: 5px; }
.price-cur, .price-unit { font-size: 12px; color: var(--text-secondary);
  font-variant-numeric: tabular-nums; }
.ghlist button.ghgo { padding: 8px 16px; font-size: 13px; }
/* Narrow phones: price + List drop to their own full-width line instead
   of squeezing the repo name into ellipsis. */
@media (max-width: 480px) {
  .gh-act { flex-basis: 100%; margin-left: 0; justify-content: flex-end; }
  .gh-act .ghprice { flex: 1; width: auto; }
  .dash-new input[type="search"] { max-width: none; }
}
/* The card's footer row: management actions grouped at the bottom edge,
   destructive one pushed to the far side so a thumb never grazes it on
   the way to the safe one. */
.card-actions { display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border); }
.card-actions .spacer { flex: 1; }
a.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 8px; }
button.ghdisc { margin: 0; padding: 8px 14px;
  border-color: var(--border); }
button.ghdisc:hover:not(:disabled) { color: var(--error);
  border-color: var(--error); background: none; }
button.ghdisc.armed { color: var(--error); border-color: var(--error); }
/* The payout-change confirm: checkout402's pattern — replacing the single
   most consequential address on the account earns one inline, explicit
   step; a first-time save stays frictionless. */
.confirm-panel { margin-top: 16px; padding: 14px 16px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface-2); }
.confirm-panel > b { display: block; font-size: 13px; margin-bottom: 8px; }
.confirm-panel ul { margin: 0 0 4px; padding-left: 18px; font-size: 13px;
  color: var(--text-soft); }
.confirm-panel li { margin: 2px 0; overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; }
.confirm-panel .dash-new { margin-top: 12px; }
/* Manual listing upload: a disclosure an interested seller OPENS — the
   GitHub pick-list is the primary listing path and this rail must not
   compete with it visually. */
.manual-listing summary { cursor: pointer; list-style: none;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.manual-listing summary::-webkit-details-marker { display: none; }
.manual-listing summary h3 { margin: 0; }
.manual-listing summary::before { content: "\25B8";
  color: var(--text-secondary); font-size: 13px; }
.manual-listing[open] summary::before { content: "\25BE"; }
.manual-listing[open] summary { margin-bottom: 10px; }
.mlu-hint { font-size: 13px; color: var(--text-secondary); }
/* The wallet generator (vendored noble/scure bundle; see static/vendor).
   Styles adapted from checkout402's — same custody UI, gitbuyer tokens. */
.genwrap { margin-top: 16px; border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 18px; background: var(--surface-2); }
.note.warn { border: 1px solid var(--text-secondary);
  background: var(--surface); color: var(--text); }
.note.warn b { letter-spacing: 0.01em; }
.phrase { display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px; margin: 14px 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-secondary);
  font-size: 11px; min-width: 14px; text-align: right; }
.grab { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 14px 0 18px; }
.grab .grab-note { font-size: 13px; color: var(--text-secondary); }
.grab .btn-compact.done { opacity: .8; }
.genrow { margin: 16px 0; }
.genrow-head { display: flex; align-items: center;
  justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.genrow-head h4 { margin: 0; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-secondary);
  font-weight: 600; }
.chip { flex: none; width: auto; margin: 0; padding: 5px 11px;
  font-size: 12px; border-radius: 6px; background: transparent;
  border: 1px solid var(--border-strong); color: var(--text-secondary);
  cursor: pointer; white-space: nowrap; }
.chip:hover:not(:disabled) { border-color: var(--accent);
  color: var(--accent); background: transparent; }
.chip.done { border-color: var(--accent); color: var(--accent); }
.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: 13px; color: var(--text-secondary);
  white-space: nowrap; }
.val-v { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; min-width: 0; overflow-wrap: anywhere;
  user-select: all; color: var(--text); }
.reveal { margin: 16px 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); }
.confirm-panel button.ghost { margin-top: 0; }
.shopfront { font-size: 13.5px; color: var(--text-secondary);
  margin: 14px 2px 0; line-height: 1.6; }
.shopfront b { color: var(--text-soft); }
/* Stat tiles: hero numbers, not charts — the value wears the text token,
   full strength; only the label recedes. */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin: 0 0 20px; }
@media (min-width: 680px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; display: flex;
  flex-direction: column; gap: 4px; }
.tile b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(20px, 3.4vw, 28px); font-weight: 700;
  letter-spacing: -0.01em; }
.tile span { font-size: 11.5px; color: var(--text-secondary);
  letter-spacing: 0.04em; text-transform: uppercase; }
.tile-strong { border-color: var(--border-strong); }
/* The per-store table scrolls INSIDE its own box on a phone; the page
   never scrolls sideways. */
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); }
table.stats { border-collapse: collapse; width: 100%; min-width: 560px;
  font-size: 13px; }
table.stats th { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-secondary); text-align: left;
  padding: 12px 14px; border-bottom: 1px solid var(--border); }
table.stats td { padding: 11px 14px; border-bottom: 1px solid var(--border);
  color: var(--text-soft); }
table.stats tr:last-child td { border-bottom: 0; }
table.stats td:nth-child(n+2), table.stats th:nth-child(n+2)
  { text-align: right; font-variant-numeric: tabular-nums; }
/* Phones: the table sheds diagnostic columns instead of forcing a
   sideways scroll — agents/intent first, then visits/conv; .tscroll
   stays as the fallback for anything still wider. */
@media (max-width: 560px) {
  table.stats { min-width: 0; }
  table.stats th:nth-child(6), table.stats td:nth-child(6),
  table.stats th:nth-child(7), table.stats td:nth-child(7) { display: none; }
}
@media (max-width: 420px) {
  table.stats th:nth-child(5), table.stats td:nth-child(5),
  table.stats th:nth-child(8), table.stats td:nth-child(8) { display: none; }
}
table.stats td:first-child a { font-family: ui-monospace, SFMono-Regular,
  Menlo, monospace; font-weight: 600; }
/* The visitor map: golem's basemap, our monochrome. Land is a shade, not
   a color; the dots wear the accent because they are the data. */
.map-wrap { border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); margin: 14px 0 18px; overflow: hidden; }
.map-wrap svg { display: block; width: 100%; height: auto; }
.map-land { fill: var(--surface-2); }
.map-borders { stroke: var(--border); stroke-width: 0.5; fill: none; }
.map-dot { fill: var(--accent); fill-opacity: 0.75;
  stroke: var(--bg); stroke-width: 0.8; }
.tiles.funnel { margin: 14px 0 4px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 680px) { .tiles.funnel { grid-template-columns: 1fr; } }
.connect-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px; margin: 0 0 20px; }
.connect-card h3 { margin: 0 0 6px; }
/* Wizard step states: finished steps rest, later steps wait — the eye
   lands on the one open card without an arrow telling it to. */
.connect-card.wiz-done { opacity: 0.75; }
.connect-card.wiz-later { opacity: 0.55; }
/* The setup checklist: an onboarding meter, not a paragraph. A track
   that fills, numbered circles that flip to checks, whole rows that tap
   through to their fix. Monochrome by decree: done inverts (ink circle,
   paper check), next is full-strength, later steps recede. */
.chk-head { display: flex; align-items: baseline;
  justify-content: space-between; gap: 12px; }
.chk-head h3 { margin: 0; }
.chk-count { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: var(--text-secondary);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.chk-track { height: 4px; border-radius: 2px; background: var(--surface-2);
  margin: 12px 0 4px; overflow: hidden; }
.chk-fill { height: 100%; border-radius: 2px; background: var(--text);
  transition: width 0.4s ease; }
.checklist { list-style: none; margin: 6px 0 0; padding: 0; }
.checklist li { border-top: 1px solid var(--border); }
.checklist li:first-child { border-top: 0; }
.checklist li > a, .checklist li.chk-done { display: flex;
  align-items: center; gap: 12px; padding: 12px 4px; color: var(--text); }
.checklist li > a:hover { background: var(--surface-2);
  text-decoration: none; border-radius: 8px; }
.chk-mark { flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border-strong); display: inline-flex;
  align-items: center; justify-content: center; font-size: 12.5px;
  font-weight: 700; color: var(--text-secondary);
  font-variant-numeric: tabular-nums; }
.chk-body { min-width: 0; }
.chk-label { display: block; font-weight: 600; font-size: 14px; }
.chk-sub { display: block; font-size: 13px; color: var(--text-secondary);
  margin-top: 1px; }
.chk-go { margin-left: auto; color: var(--text-secondary);
  font-weight: 600; }
.checklist li.chk-done { color: var(--text-secondary); }
.checklist li.chk-done .chk-mark { background: var(--text);
  color: var(--bg); border-color: var(--text); }
.checklist li.chk-done .chk-label { font-weight: 500; }
.checklist li.chk-next .chk-mark { border-color: var(--text);
  color: var(--text); }
.checklist li.chk-next .chk-go { color: var(--text); }
.checklist li.chk-todo .chk-label { color: var(--text-soft); }
.chk-resume { font-size: 13px; margin: 12px 2px 0; }
@media (max-width: 560px) {
  /* Phone-width cards trade horizontal breathing room for content, and
     the footer actions grow into honest thumb targets. */
  .connect-card, .acct { padding: 18px 16px; }
  .card-actions a.btn-sm, .card-actions button.ghdisc {
    flex: 1 1 auto; text-align: center; }
}
.connect-card p { font-size: 13.5px; color: var(--text-secondary);
  line-height: 1.6; margin: 0 0 12px; max-width: 60ch; }
.cmd { display: flex; align-items: center; gap: 8px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px;
  margin: 0 0 10px; }
.cmd code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; overflow-x: auto; white-space: nowrap; flex: 1;
  scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
button.copy { flex: none; border-radius: 6px; padding: 7px 13px; }
button.copy:hover:not(:disabled) { color: var(--text); }
.acct { background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px; }
.acct > p { margin: 0 0 6px; }
.acct form { max-width: 460px; }
button.ghost { font-family: "Space Grotesk", sans-serif;
  font-size: 13px; font-weight: 600; color: var(--text);
  padding: 9px 16px; margin-top: 18px; }
.store .store-actions { display: flex; gap: 14px; margin-top: 2px;
  font-size: 13px; }
.store .store-actions a { font-weight: 600; }
.field-note { font-size: 13px; color: var(--text-secondary);
  margin: 8px 2px 0; line-height: 1.5; }
.check { display: flex; align-items: baseline; gap: 8px; margin-top: 14px;
  font-size: 13px; color: var(--text-secondary); }
.check input { width: auto; }
button.danger { background: none; border: 1px solid var(--error);
  color: var(--error); margin-top: 36px; }
button.danger:hover:not(:disabled) { background: var(--error-bg); }
.manage-links { display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin: 6px 0 2px; font-size: 13.5px; }
.manage-links a { font-weight: 600; }
.sales-head { display: flex; align-items: baseline; gap: 12px; }
.sales-total { font-family: "Space Grotesk", sans-serif; font-weight: 700;
  color: var(--accent); }
.sales { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13px; }
.sales li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  padding: 7px 2px; border-top: 1px solid var(--border); }
.sales .amt { font-weight: 600; min-width: 64px; }
.sales .when { color: var(--text-secondary); min-width: 84px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.sales .payer { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: var(--text-secondary); }
.badge-test { background: var(--warning-bg); color: var(--warning); }
.store-sold { font-size: 11.5px; font-weight: 600;
  color: var(--text-secondary); }
.traffic-cols { display: grid; gap: 4px 28px; margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.traffic-cols h3 { font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-secondary); margin: 10px 0 4px; }
.tlist { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.tlist li { display: flex; align-items: baseline; gap: 8px;
  padding: 4px 2px; border-top: 1px solid var(--border); }
/* Rows that hold controls (List, Revoke) center on the control, not the
   text baseline, sit a touch taller for thumbs, and wrap on a phone
   instead of shoving the action off the right edge. */
.tlist.keys li { align-items: center; flex-wrap: wrap; row-gap: 6px;
  padding: 8px 2px; }
.tlist .n { margin-left: auto; font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; }
.tlist .path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; overflow-wrap: anywhere; }
.keys .khint { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; overflow-wrap: anywhere; }
.keys .kwhen { color: var(--text-secondary); font-size: 12px; }
button.krevoke, #kmint { margin-top: 10px; padding: 6px 14px;
  font-size: 13px; }
button.krevoke { margin: 0 0 0 auto;
  border-color: var(--error); color: var(--error); }
button.krevoke:hover:not(:disabled) { background: var(--error-bg); }
#kout code { overflow-wrap: anywhere; user-select: all; }

section.recent { margin-top: 72px; }
.sec-title { font-size: 22px; letter-spacing: -0.015em; margin: 0 0 16px; }
.stores { display: grid; gap: 20px;
  /* auto-FIT, not auto-fill: empty tracks collapse, so one lonely listing
     fills the column instead of hugging a corner of it. */
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); }
.store { display: flex; flex-direction: column; gap: 10px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.store:hover { border-color: var(--border-strong); transform: translateY(-2px);
  box-shadow: var(--shadow-lg); text-decoration: none; }
.store-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; font-weight: 600; color: var(--text);
  overflow-wrap: anywhere; }
.store-meta { display: flex; justify-content: space-between;
  align-items: baseline; gap: 8px; font-size: 12px;
  color: var(--text-secondary); }
.store-price { font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: -0.01em; color: var(--accent); }
/* The card's pitch and provenance, filled from the listing's snapshot
   columns; a row written before the snapshot renders without them and
   loses nothing else. (.store class names predate the storefront /
   inventory / listing vocabulary and stay for stylesheet stability:
   a .store card IS one listing.) */
.store-desc { font-size: 12.5px; color: var(--text-soft); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere; }
.store-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-secondary); }
.store-sub .badge { padding: 2px 8px; font-size: 10px; }
/* The storefront head's voice: the seller's one-line tagline, and the
   owner name linking out to the GitHub profile it mirrors. */
.tagline { color: var(--text); font-size: 16px; margin: 2px 0 10px;
  max-width: 70ch; overflow-wrap: anywhere; }
.gh-link { font-size: 13px; color: var(--text-secondary);
  overflow-wrap: anywhere; }
.gh-link:hover { color: var(--accent); }

/* ---------------------------------------------------------- store page */
.repo-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin: 40px 0 10px; }
.repo-head h1 { font-size: clamp(22px, 4.5vw, 32px); margin: 0;
  letter-spacing: -0.02em; overflow-wrap: anywhere; font-weight: 700; }
/* The owner's GitHub avatar, proxied through our origin. Decorative: it
   removes itself on error and the head reads identically without it. */
.repo-head .owner-avatar { border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2);
  flex: none; }
/* The owner half of a store title links up to their shopfront — same ink
   as the rest of the h1 until hovered, so the title stays a title. */
.repo-head h1 a { color: inherit; }
.repo-head h1 a:hover { color: var(--accent); text-decoration: none; }
.foot-note { color: var(--text-secondary); font-size: 13px; margin: 26px 0 0;
  max-width: 70ch; line-height: 1.6; }
.foot-note code { background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; font-size: 12px; }
.badge { padding: 3px 10px; border-radius: 9999px; font-size: 11px;
  font-weight: 600; letter-spacing: 0.02em; }
.badge-private { background: var(--accent-bg); color: var(--accent); }
.badge-public { background: var(--warning-bg); color: var(--warning); }
.branch { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: var(--text-secondary); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; }
.desc { color: var(--text-soft); margin: 0 0 32px; max-width: 70ch;
  overflow-wrap: anywhere; font-size: 15.5px; }

.store-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px; align-items: start; }
.store-side { grid-column: 2; grid-row: 1; position: sticky; top: 24px; }
.store-main { grid-column: 1; grid-row: 1; min-width: 0; }
@media (max-width: 979px) {
  .store-grid { display: block; }
  .store-side { position: static; margin-bottom: 32px; }
}

.deal { background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; box-shadow: var(--shadow-lg); }
.price { font-family: "Space Grotesk", "Space Grotesk Fallback", sans-serif;
  font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1;
  color: var(--accent); }
.price small { font-size: 14px; font-weight: 500; letter-spacing: 0;
  color: var(--text-secondary); }
.deal-what { font-size: 13px; color: var(--text-secondary); margin: 10px 0 0;
  line-height: 1.55; }
.buy { display: block; text-align: center; background: var(--brand);
  color: var(--on-brand); padding: 13px 20px; border-radius: 8px;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 15px;
  margin-top: 20px; transition: background 0.15s; }
.buy:hover { background: var(--brand-hover); text-decoration: none; }
.try { display: block; text-align: center; font-size: 13px; margin-top: 12px; }
.deal-agent { font-size: 12.5px; color: var(--text-secondary);
  margin: 12px 0 0; line-height: 1.55; }
/* The unclaimed page's claim strip: statement first, the door on its
   own row — a button must never float over prose. */
.claim-strip { background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px; margin: 20px 0 6px;
  display: flex; flex-direction: column; gap: 10px; max-width: 74ch; }
.claim-strip p { margin: 0; font-size: 14px; line-height: 1.6;
  color: var(--text-secondary); }
.claim-strip b { color: var(--text); }
.claim-strip .btn { align-self: flex-start; margin-top: 8px; }
/* Sidebar cards breathe apart when a page stacks more than one. */
.store-side .deal + .deal { margin-top: 16px; }
/* The indexed repo's file list: flat, mono, capped and scrollable —
   every row opens the file on GitHub. */
.tree-flat { background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 0; max-height: 480px; overflow: auto; }
.tree-flat a { display: block; padding: 6px 18px; font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-secondary); overflow-wrap: anywhere; }
.tree-flat a:hover { color: var(--accent); background: var(--surface-2);
  text-decoration: none; }
/* Start: the answer machine. One pick, the why, the paste. */
.startcmd { background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; font-size: 13px;
  line-height: 1.7; margin: 10px 0 0; white-space: pre-wrap;
  overflow-wrap: anywhere; user-select: all; }
.start-why { color: var(--text-secondary); font-size: 13.5px;
  margin: 4px 0 0; }
.start-alt { font-size: 13.5px; margin: 14px 0 0;
  color: var(--text-secondary); }

/* Browse v2: one toolbar of dropdown menus (a sentence, not a wall),
   the count and sort right-aligned, results as dense rows. All plain
   links and <details> — zero script. */
.sbar { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px;
  flex-wrap: wrap; }
.sbar-count { margin-left: auto; font-size: 13px;
  color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.dd { position: relative; }
.dd summary { list-style: none; cursor: pointer; font-size: 13px;
  color: var(--text-secondary); border: 1px solid var(--border);
  border-radius: 6px; padding: 7px 12px; line-height: 1;
  user-select: none; white-space: nowrap; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary::after { content: " \25BE"; opacity: 0.6; }
.dd summary b { color: var(--text); font-weight: 600; }
.dd[open] summary { border-color: var(--accent); color: var(--text); }
.dd-menu { position: absolute; z-index: 30; top: calc(100% + 6px);
  left: 0; min-width: 230px; max-height: 340px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px; box-shadow: none; }
.dd-item { display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 10px; border-radius: 6px; font-size: 13px;
  color: var(--text-secondary); }
.dd-item:hover { background: var(--surface-2); color: var(--text);
  text-decoration: none; }
.dd-item.on { color: var(--text); font-weight: 600; }
.dd-item small { color: var(--text-secondary); font-weight: 400;
  font-variant-numeric: tabular-nums; }
.rlist { margin-top: 10px; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; }
.rlist > .lede { padding: 18px; }
.rband { margin: 0; padding: 8px 16px 6px; font-size: 11px;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-secondary); background: var(--surface);
  border-bottom: 1px solid var(--border); }
.rband + .rband { border-top: 1px solid var(--border); }
.rrow { display: block; padding: 10px 16px;
  border-bottom: 1px solid var(--border); }
.rrow:last-child { border-bottom: none; }
.rrow:hover { background: var(--surface); text-decoration: none; }
.rline { display: flex; align-items: baseline; gap: 12px; }
.rname { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px; font-weight: 600; color: var(--text);
  overflow-wrap: anywhere; }
.rprice { margin-left: auto; font-size: 13px; font-weight: 600;
  color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.rfree { margin-left: auto; font-size: 12px;
  color: var(--text-secondary); }
.rmeta { display: block; margin-top: 3px; font-size: 12.5px;
  line-height: 1.5; color: var(--text-secondary); }
.browse-more { margin: 14px 2px; }
.browse-more a { font-size: 13.5px; font-weight: 600; }
.side-num { font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .sbar-count { display: none; } }

/* Browse: the search bar and the facet chip rows. Chips are links —
   filter state lives in the URL, shareable by construction. */
/* The search control: one field, an icon, Enter submits. A search box
   is the protagonist of a marketplace page; a bolted-on button beside
   it reads as an apology for one. */
.searchbox { display: flex; align-items: center; gap: 11px;
  max-width: 560px; height: 50px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; color: var(--text-secondary); }
.searchbox:focus-within { border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg); }
.searchbox svg { flex: none; }
.searchbox input { flex: 1; min-width: 0; margin: 0; border: none;
  background: transparent; padding: 0; height: 100%; font-size: 16px; }
.searchbox input:focus { box-shadow: none; outline: none; }
.facet { margin: 18px 0 0; }
.facet .flabel { display: block; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-secondary); margin: 0 0 8px; }
.facet-rail { display: flex; flex-wrap: wrap; gap: 8px; }
.facet-rail .chip { text-decoration: none; flex: none;
  font-family: inherit; font-size: 12.5px; }
.facet-rail .chip small { color: var(--text-secondary); font-weight: 400;
  font-size: 11px; }
.browse-count { margin: 28px 0 14px; font-size: 13.5px;
  color: var(--text-secondary); }
.browse-count b { color: var(--text); }
/* The money, itemized — on the store's checkout and the seller's overview. */
.breakdown { margin: 14px 0 0; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface-2); padding: 12px 14px; }
.breakdown .bd-head { font-family: ui-monospace, SFMono-Regular, Menlo,
  monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-secondary);
  margin: 0 0 8px; }
.breakdown .bd-row { display: flex; justify-content: space-between;
  gap: 12px; font-size: 13.5px; padding: 3px 0;
  font-variant-numeric: tabular-nums; }
.breakdown .bd-row span:last-child { font-weight: 600; }
.breakdown .bd-row.bd-total { border-top: 1px solid var(--border);
  margin-top: 6px; padding-top: 8px; }
.breakdown .bd-row.bd-total span { font-weight: 700; }
.breakdown .bd-note { font-size: 11.5px; color: var(--text-secondary);
  line-height: 1.5; margin: 8px 0 0; }
/* The live fee line under the create form's price field. */
.fee-explain { font-size: 12.5px; color: var(--text-secondary);
  line-height: 1.55; margin: 6px 2px 0; }
.fee-explain b { color: var(--text); }
.deal-fee { font-size: 12px; color: var(--text-secondary);
  line-height: 1.5; margin: 14px 0 0; }
.side-meta { margin-top: 20px; padding-top: 14px;
  border-top: 1px solid var(--border); }
.side-meta .row { display: flex; justify-content: space-between;
  align-items: baseline; padding: 5px 0; font-size: 13px; }
.side-meta .row span:first-child { color: var(--text-secondary); }
.side-meta .row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.langs { margin-top: 14px; padding-top: 16px;
  border-top: 1px solid var(--border); }
.langbar { display: flex; height: 8px; border-radius: 9999px;
  overflow: hidden; background: var(--surface-2); }
.langbar i { display: block; height: 100%; }
.langbar i + i { margin-left: 2px; }
.langlegend { list-style: none; margin: 10px 0 0; padding: 0; display: flex;
  flex-wrap: wrap; gap: 4px 14px; font-size: 12px;
  color: var(--text-secondary); }
.langlegend .dot { display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 6px; }
.langlegend b { color: var(--text); font-weight: 500; }
.langlegend .pct { margin-left: 4px; font-variant-numeric: tabular-nums; }

.block { margin: 0 0 32px; }
.block-head { display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap; margin: 0 0 12px; }
h2.sec { font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-secondary); margin: 0; }
.sec-note { margin: 0; font-size: 12.5px; color: var(--text-secondary); }

/* Both previews scroll INSIDE their own box. A real README (psf/requests is
   ~2500 chars) plus a real tree (130 files) once made this page 3700px tall
   and pushed the buy button and the tree off the bottom — the two things the
   visitor came for. Long content scrolls; the page does not. */
.readme { background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 28px; max-height: 480px;
  overflow-y: auto; overflow-wrap: anywhere; font-size: 14px;
  color: var(--text-soft); }
.readme > :first-child { margin-top: 0; }
.readme h1, .readme h2, .readme h3, .readme h4, .readme h5, .readme h6 {
  font-weight: 600; letter-spacing: -0.01em; color: var(--text);
  text-transform: none; margin: 24px 0 10px; }
.readme h1 { font-size: 22px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border); }
.readme h2 { font-size: 18px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border); }
.readme h3 { font-size: 15.5px; }
.readme h4, .readme h5, .readme h6 { font-size: 14px; }
.readme p, .readme ul, .readme ol { margin: 0 0 14px; }
.readme li { margin: 4px 0; }
.readme blockquote { border-left: 3px solid var(--border-strong);
  margin: 0 0 14px; padding: 2px 0 2px 16px; color: var(--text-secondary); }
/* ---- the API docs: the sibling's docs-site shape — a grouped sidebar,
   one page per topic, a content column. Prose narrow, code blocks that
   scroll in their own box on a phone. ---- */
.docshell { display: grid; grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px; align-items: start; margin-top: 40px; }
.docs-side { position: sticky; top: 28px; }
.docs-side .nav-group { margin: 0 0 22px; }
.docs-side .nav-title { font-family: ui-monospace, SFMono-Regular, Menlo,
  monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-secondary);
  margin: 0 0 6px; padding: 0 12px; }
.docs-side ul { list-style: none; margin: 0; padding: 0; }
.docs-side li a { display: block; font-size: 13.5px;
  color: var(--text-secondary); padding: 7px 12px; border-radius: 8px;
  border-left: 2px solid transparent; }
.docs-side li a:hover { color: var(--text); background: var(--surface);
  text-decoration: none; }
.docs-side li a.on { color: var(--text); background: var(--surface);
  border-left-color: var(--accent); border-radius: 0 8px 8px 0;
  font-weight: 600; }
/* Narrow screens get the sibling's drawer, never a horizontal strip: the
   sidebar hides whole, a Menu button summons it as the same vertical list
   above the content. */
.side-toggle { display: none; width: auto; justify-self: start;
  margin: 0 0 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-secondary);
  background: none; border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.side-toggle:hover:not(:disabled) { background: var(--surface-2);
  color: var(--text); }
@media (max-width: 820px) {
  .docshell { grid-template-columns: 1fr; gap: 0; margin-top: 20px; }
  .side-toggle { display: inline-block; }
  .docs-side { display: none; position: static; margin: 0 0 24px;
    padding-bottom: 16px; border-bottom: 1px solid var(--border); }
  .docs-side.open { display: block; }
}
.docs { max-width: 72ch; }
.docs h1 { font-size: clamp(26px, 5vw, 36px); letter-spacing: -0.02em;
  margin: 0 0 14px; }
.docs h2 { font-size: 19px; letter-spacing: -0.01em; margin: 40px 0 10px; }
.docs dl.fields { margin: 0 0 12px; }
.docs dl.fields dt { font-family: ui-monospace, SFMono-Regular, Menlo,
  monospace; font-size: 13px; font-weight: 700; margin: 14px 0 3px; }
.docs dl.fields dd { margin: 0; font-size: 13.5px;
  color: var(--text-secondary); line-height: 1.65; max-width: 62ch; }
.docs p { font-size: 14.5px; color: var(--text-soft); line-height: 1.7;
  margin: 0 0 12px; }
.docs pre { background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; overflow-x: auto;
  font-size: 12.5px; line-height: 1.6; margin: 0 0 12px; }
.docs code { background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; font-size: 0.92em; }
.docs pre code { background: none; border: 0; padding: 0; }
.readme pre { background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px; overflow-x: auto; font-size: 12.5px;
  line-height: 1.6; margin: 0 0 14px; }
.readme code { background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; font-size: 12.5px; }
.readme pre code { background: none; border: 0; padding: 0; }
/* A wide table scrolls inside itself; a table wider than 375px must never
   widen the page — a too-wide document makes the browser scale EVERYTHING
   down to fit (checkout402 learned this per-element three times before
   making it a rule). */
.readme table { display: block; overflow-x: auto; max-width: 100%;
  border-collapse: collapse; font-size: 13px; margin: 0 0 14px; }
.readme th, .readme td { border: 1px solid var(--border); padding: 6px 12px;
  text-align: left; }
.readme th { background: var(--surface-2); }
.readme hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.no-readme, .trunc { color: var(--text-secondary); font-size: 13px; }

.tree { background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 12px; max-height: 480px;
  overflow-y: auto; }
.tree summary { cursor: pointer; min-height: 40px; display: flex;
  align-items: center; gap: 10px; list-style: none; border-radius: 8px;
  padding: 0 10px;
  font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text); }
.tree summary::-webkit-details-marker { display: none; }
.tree summary::before { content: "\25B8"; color: var(--accent-ink);
  font-size: 11px; }
.tree details[open] > summary::before { content: "\25BE"; }
.tree summary:hover { background: var(--surface-2); }
.tree .count { font-size: 11px; font-weight: 500; color: var(--text-secondary);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 9999px; padding: 1px 8px; }
.tree ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 22px; }
.tree > ul { padding-left: 4px; margin-top: 4px; }
.tree li { display: flex; justify-content: space-between;
  align-items: baseline; gap: 16px; padding: 4px 10px; border-radius: 6px;
  font: 12.5px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-secondary); }
.tree li:hover { background: var(--surface-2); }
.fpath { color: var(--text-soft); overflow-wrap: anywhere; }
.fpath:hover { color: var(--accent-ink); text-decoration: none; }
.tree-more { font-size: 12.5px; color: var(--text-secondary); margin: 0;
  padding: 6px 10px 8px; }
.fsize { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; color: var(--text-secondary); white-space: nowrap;
  font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------- file viewer */
.file-wrap { margin-top: 36px; }
.file-head { display: flex; align-items: center;
  justify-content: space-between; gap: 16px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 12px 12px 0 0;
  padding: 12px 18px; }
.crumb { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; margin: 0;
  line-height: 1.5; }
.crumb a { color: var(--text-secondary); font-weight: 500; }
.crumb a:hover { color: var(--accent-ink); text-decoration: none; }
.crumb .fname { color: var(--text); font-weight: 600; }
.chip { flex-shrink: 0; font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11.5px; color: var(--text-secondary); background: var(--surface);
  border: 1px solid var(--border); border-radius: 9999px; padding: 3px 10px;
  white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Line numbers are CSS counters on per-line blocks: no JS, and the numbers
   sit in ::before so a copied selection carries only code. Long lines
   scroll INSIDE the box (min-width: max-content keeps hover rows and the
   gutter full-width while the box itself owns the scrollbar). */
.filebox { background: var(--surface); border: 1px solid var(--border);
  border-top: 0; border-radius: 0 0 12px 12px; padding: 14px 0; margin: 0;
  max-height: 640px; overflow: auto; font-size: 12.5px; line-height: 1.6; }
.filebox code { display: block; min-width: max-content; counter-reset: line; }
.ln { display: block; white-space: pre; counter-increment: line;
  padding-right: 24px; }
.ln::before { content: counter(line); display: inline-block; min-width: 4ch;
  margin-right: 20px; padding-left: 16px; text-align: right;
  color: var(--text-secondary); opacity: 0.55;
  user-select: none; -webkit-user-select: none; }
.ln:hover { background: var(--surface-2); }
.file-note { font-size: 12.5px; color: var(--text-secondary);
  margin: 10px 2px 0; }
.file-empty { margin: 2px 18px; font-size: 13px;
  color: var(--text-secondary); }
.file-wrap.solo .file-head { border-radius: 12px; }

/* The paywall card: the locked file is the conversion moment, so it gets
   the same shape as a checkout — price loud, one B&W action. */
.locked { max-width: 460px; margin: 40px auto 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; padding: 32px;
  box-shadow: var(--shadow-lg); text-align: center; }
.locked p { margin: 0 0 8px; overflow-wrap: anywhere; }
.locked .lock-kicker { font-family: "Space Grotesk", sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-secondary); margin: 0 0 14px; }
.locked strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px; }
.locked .sub { font-size: 13.5px; color: var(--text-secondary);
  line-height: 1.6; }
.locked-price { font-family: "Space Grotesk", "Space Grotesk Fallback",
  sans-serif; font-size: 34px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--accent); margin: 18px 0 2px; }
.locked-price small { font-size: 13px; font-weight: 500; letter-spacing: 0;
  color: var(--text-secondary); }
.locked .buy { margin-top: 16px; }

/* ------------------------------------------------- the phone-scale pass
   One coherent block, last so it wins: a phone is not a narrow desktop.
   The scale drops one notch (type, paddings, section rhythm), the header
   stops wrapping, chips lose their bloat without losing their tap
   target, and inputs hold 16px — anything smaller makes iOS Safari zoom
   the page on focus, which reads as the layout breaking. */
@media (max-width: 640px) {
  .top { padding-top: 18px; gap: 10px; }
  .top-links { gap: 12px; }
  .top-link, .top-cta, .top-ghost { white-space: nowrap; }
  .top-cta, .top-ghost { padding: 7px 11px; font-size: 12.5px; }
  .wordmark { font-size: 19px; }
  .hero { padding: 40px 0 4px; }
  .hero h1 { font-size: clamp(27px, 7.5vw, 34px); margin-bottom: 14px; }
  .lede { font-size: 15px; margin-bottom: 22px; line-height: 1.6; }
  main > h1 { font-size: 27px; margin-top: 28px; margin-bottom: 12px; }
  section.recent { margin-top: 44px; }
  .sec-title { font-size: 19px; }
  footer { margin-top: 56px; }
  .repo-head { margin-top: 18px; }
  .repo-head h1 { font-size: clamp(20px, 5.5vw, 26px); }
  .deal { padding: 18px; }
  .price { font-size: 32px; }
  .claim-strip { padding: 16px 18px; margin-top: 14px; }
  .claim-strip p { font-size: 13.5px; }
  .facet { margin-top: 12px; }
  /* The chip rails scroll sideways, bleeding to the screen edge — the
     native pattern for long option rows; a five-row chip wall is not. */
  .facet-rail { flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 -18px; padding: 0 18px 4px; }
  .facet-rail::-webkit-scrollbar { display: none; }
  .chip { padding: 7px 12px; }
  .facet-rail .chip { font-size: 12px; padding: 6px 11px; }
  .browse-count { margin: 20px 0 12px; }
  .stores { gap: 10px; }
  .store { padding: 15px; }
  .block-head .sec { font-size: 19px; }
}
