/* BlockPanther site. One stylesheet: tokens, base, chrome (header, footer),
   marketing sections, docs prose, and the signed-in app. Colors are tokens on
   :root. The site is always light. */

:root {
  color-scheme: light;
  --bg: #e6e9ec; --panel: #f7f8f9; --panel-2: #dde1e5; --ink: #0b0c0e; --ink-2: #363b42; --muted: #565d66;
  --line: #c5cbd2; --line-soft: #d3d8de; --accent: #0b0c0e; --accent-hover: #363b42; --accent-ink: #0b0c0e; --accent-soft: #fff1a8;
  --signal: #ffd400; --signal-line: #d4b000;
  --pass: #17703a; --pass-soft: #d9efe0; --fail: #b42a20; --fail-soft: #f6dedb; --money: #7a5600; --money-soft: #f5e9c4;
  --code-bg: #dde1e5; --btn: #ffd400; --btn-ink: #0b0c0e; --btn-hover: #ffe033; --foot: #0b0c0e;
  --shadow: 0 1px 2px rgba(11, 12, 14, 0.05), 0 10px 30px rgba(11, 12, 14, 0.08);
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: 16px;
}
/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16.5px/1.6 var(--display);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-color: var(--signal-line); text-decoration-thickness: 2px; }
a:hover { color: var(--accent-hover); }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; margin: 0; }
p { margin: 0 0 14px; }
code, kbd { font-family: var(--mono); font-size: 0.86em; background: var(--code-bg); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
pre { font: 13px/1.6 var(--mono); background: var(--code-bg); border: 0; border-radius: 6px; padding: 14px 16px; overflow-x: auto; margin: 0 0 18px; }
pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--panel); padding: 8px 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1 var(--display); padding: 12px 18px; border-radius: 6px; border: 1px solid transparent;
  background: var(--btn); color: var(--btn-ink); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--btn-hover); color: var(--btn-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel-2); color: var(--ink); border-color: var(--line); }
.btn-small { font-size: 14px; padding: 9px 14px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
.bar { max-width: var(--wrap); margin: 0 auto; padding: 6px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.mark { width: 48px; height: 60px; flex: none; image-rendering: pixelated; margin: -8px 0 -6px; }
canvas[data-panther] { image-rendering: pixelated; image-rendering: crisp-edges; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font: 400 14.5px/1 var(--display); padding: 9px 12px; border-radius: 6px; }
.site-nav a:hover { background: var(--panel); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--panel-2); }
.actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu { display: none; }
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; gap: 10px 12px; }
  .menu { display: inline-flex; order: 3; font: 500 14px/1 var(--display); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; cursor: pointer; }
  .actions { order: 2; }
  .site-nav { order: 4; flex-basis: 100%; flex-direction: column; display: none; padding-bottom: 8px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; font-size: 16px; }
}

/* Footer */
.site-footer { margin-top: 96px; padding: 56px var(--gutter) 36px; background: var(--foot); color: #a3a9b1; }
.site-footer { --panther-edge: #4a4f58; }
.site-footer .brand, .site-footer .brand:hover { color: #eef0f2; }
.site-footer .cols { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer p { color: #8a919a; font-size: 15px; max-width: 34ch; margin-top: 12px; }
.site-footer h2 { font: 500 12px/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: #6b727b; margin-bottom: 12px; }
.site-footer nav a { display: block; color: #d3d8de; text-decoration: none; font-size: 15px; padding: 4px 0; }
.site-footer nav a:hover { color: #ffd400; }
.site-footer .fine { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 40px auto 0; font-size: 13px; color: #6b727b; }

/* Section scaffolding */
.section { padding: 112px 0 0; }
@media (max-width: 600px) { .section { padding-top: 80px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--signal); flex: none; }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.section .lede { font-size: 18px; color: var(--muted); max-width: 60ch; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--panel-2); border: 0; border-radius: 6px; padding: 24px; min-width: 0; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card h3:first-child { margin-top: 0; }
.card p { color: var(--ink-2); font-size: 16px; }
.card > :last-child { margin-bottom: 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--display); letter-spacing: 0.04em; padding: 5px 9px; border-radius: 99px; background: var(--panel-2); color: var(--ink-2); white-space: nowrap; }
.tag.first { background: var(--accent-soft); color: var(--accent); }
.products { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 760px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product { display: flex; flex-direction: column; }
.product .ask { margin: 4px 0 18px; padding: 14px 16px; background: var(--panel); border-radius: 4px; font-size: 15px; color: var(--ink); box-shadow: var(--shadow); }
.product dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0 0 18px; font-size: 14.5px; }
.product dt { color: var(--muted); font: 500 12px/1.9 var(--mono); text-transform: uppercase; letter-spacing: 0.03em; }
.product dd { margin: 0; color: var(--ink-2); }
.product .more { margin-top: auto; margin-bottom: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1 var(--display); padding: 5px 9px; border-radius: 99px; white-space: nowrap; background: var(--panel-2); color: var(--ink-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.pass { background: var(--pass-soft); color: var(--pass); }
.pill.fail { background: var(--fail-soft); color: var(--fail); }
.pill.money { background: var(--money-soft); color: var(--money); }
.pill.info { background: var(--accent-soft); color: var(--accent); }

/* Hero */
.hero { position: relative; padding: 40px 0 24px; overflow: hidden; }
.hero-center { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-panther { width: 288px; height: 360px; margin-bottom: 18px; }
@media (max-width: 600px) { .hero-panther { width: 192px; height: 240px; } }
.hero-float canvas { position: absolute; width: 96px; height: 120px; opacity: 0.6; }
@media (max-width: 960px) { .hero-float { display: none; } }
.hero-center h1 { max-width: 17ch; }
.hero-center .lede { margin-left: auto; margin-right: auto; }
.hero-center .cta { justify-content: center; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.hero h1 { font-size: clamp(36px, 5.6vw, 62px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 50ch; margin-bottom: 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Verdict slip: the product shot */
.slip { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; margin-top: 28px; max-width: 520px; }
.slip-head { padding: 16px 20px; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.slip-head .k { font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.slip-head .t { font: 700 17px/1.3 var(--display); margin-top: 3px; }
.slip-rows { list-style: none; margin: 0; padding: 6px 20px; }
.slip-rows li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; }
.slip-rows li:last-child { border-bottom: 0; }
.slip-rows .ok { width: 20px; height: 20px; border-radius: 50%; background: var(--pass-soft); color: var(--pass); display: grid; place-items: center; }
.slip-rows .ok svg { width: 12px; height: 12px; }
.slip-rows .no { background: var(--fail-soft); color: var(--fail); }
.slip-rows .name small { display: block; color: var(--muted); font-size: 13px; }
.slip-rows .v { font: 500 13px/1.3 var(--mono); color: var(--ink-2); text-align: right; white-space: nowrap; }
.slip-foot { background: var(--pass-soft); color: var(--pass); padding: 14px 20px; display: grid; gap: 4px; font-size: 15px; }
.slip-foot b { font-weight: 600; }
.slip-foot.failed { background: var(--fail-soft); color: var(--fail); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { counter-increment: step; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.step::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 14px/1 var(--display); margin-bottom: 14px; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 15.5px; color: var(--ink-2); margin: 0; }

/* Split section: heading on one side, a list of rows on the other */
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.rows { list-style: none; counter-reset: row; margin: 0; padding: 0; border-top: 1px solid var(--line); align-self: start; }
@media (min-width: 960px) { .rows { margin-top: 34px; } }
.rows li { counter-increment: row; display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows li::before { content: counter(row, decimal-leading-zero); grid-row: span 2; align-self: start; justify-self: start; font: 500 12px/1 var(--mono); color: #0b0c0e; background: var(--signal); padding: 5px 6px; margin-top: 2px; }
.rows h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.rows p { color: var(--muted); margin: 0; }

/* Home: one purchase, step by step, with what each step produces */
.walk { list-style: none; counter-reset: walk; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.walk > li { counter-increment: walk; display: grid; gap: 18px 56px; padding: 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .walk > li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.walk-text h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; margin-bottom: 10px; }
.walk-text h3::before { content: counter(walk, decimal-leading-zero); font: 500 12px/1 var(--mono); color: #0b0c0e; background: var(--signal); padding: 5px 6px; }
.walk-text p { color: var(--muted); }
.walk-text p:last-child { margin-bottom: 0; }
.walk > li > * { min-width: 0; }
.walk-art .slip { margin-top: 0; max-width: none; }
.walk-art pre { margin: 0; }
pre.contract .c { color: var(--muted); }
.ledger.card-ledger { width: 100%; margin: 0; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 8px; box-shadow: var(--shadow); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.ledger.card-ledger td { padding: 11px 20px; border-bottom: 1px solid var(--line-soft); }
.ledger.card-ledger td:last-child { padding-left: 12px; }
.ledger.card-ledger tr:last-child td { border-bottom: 0; }
.ledger.card-ledger .sum td { font-weight: 700; color: var(--ink); }
.ledger.card-ledger code { overflow-wrap: anywhere; }
@media (max-width: 520px) { .ledger.card-ledger td { padding: 10px 12px; } .ledger.card-ledger td:last-child { white-space: normal; } }
.walk-note { margin-top: 22px; color: var(--muted); }

/* Compare (honest vs padded delivery) */
.compare { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 760px) { .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ledger { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; margin: 10px 0 14px; }
.ledger td { padding: 7px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.ledger td:last-child { text-align: right; font: 500 13.5px/1.5 var(--mono); white-space: nowrap; padding-left: 12px; }
.ledger tr.bad td { color: var(--fail); font-weight: 600; }

/* Figures */
figure { margin: 32px 0 0; }
.fig { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow-x: auto; }
.fig svg { display: block; width: 100%; min-width: 640px; height: auto; }
figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 72ch; }
svg text { font-family: var(--display); }
svg .bx { fill: var(--panel); stroke: var(--line); stroke-width: 1.3; }
svg .bxa { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.4; }
svg .bxm { fill: var(--money-soft); stroke: var(--money); stroke-width: 1.4; }
svg .bxp { fill: var(--pass-soft); stroke: var(--pass); stroke-width: 1.4; }
svg .bxf { fill: var(--fail-soft); stroke: var(--fail); stroke-width: 1.4; }
svg .t { fill: var(--ink); font-size: 14px; font-weight: 600; }
svg .s { fill: var(--muted); font-size: 12px; }
svg .l { fill: var(--ink-2); font-size: 12px; font-weight: 500; }
svg .la { fill: var(--accent); font-size: 12px; font-weight: 600; }
svg .lp { fill: var(--pass); font-size: 12px; font-weight: 600; }
svg .lf { fill: var(--fail); font-size: 12px; font-weight: 600; }
svg .lm { fill: var(--money); font-size: 12px; font-weight: 600; }
svg .zone { fill: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; }
svg .ln { stroke: var(--ink-2); stroke-width: 1.4; fill: none; }
svg .lna { stroke: var(--accent); stroke-width: 1.6; fill: none; }
svg .lnp { stroke: var(--pass); stroke-width: 1.6; fill: none; }
svg .lnf { stroke: var(--fail); stroke-width: 1.6; fill: none; }
svg .lnm { stroke: var(--money); stroke-width: 1.6; fill: none; }
svg .dash { stroke-dasharray: 5 4; }
svg .div { stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 3 4; }
svg .ah { fill: var(--ink-2); } svg .aha { fill: var(--accent); } svg .ahp { fill: var(--pass); } svg .ahf { fill: var(--fail); } svg .ahm { fill: var(--money); }

/* Feature list */
.features { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.feature { display: grid; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.feature h3 { font-size: 18px; font-weight: 700; }
.feature p { color: var(--muted); margin: 0; }

/* Fee box */
.fees { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 760px) { .fees { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fee .big { font: 700 44px/1 var(--display); letter-spacing: -0.04em; margin: 10px 0 12px; }
.fee .k { font: 500 12px/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* Band CTA */
.band { margin-top: 112px; background: var(--btn); color: var(--btn-ink); border-radius: 8px; padding: 40px 28px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding: 48px; } }
.band h2 { color: var(--btn-ink); font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 10px; }
.band p { color: color-mix(in srgb, var(--btn-ink) 70%, transparent); }
.band pre { background: color-mix(in srgb, var(--btn-ink) 8%, transparent); color: var(--btn-ink); margin: 0; }
.band .btn { background: var(--btn-ink); color: var(--btn); }
.band .btn:hover { background: #2a2d33; color: var(--btn); }

/* Long-form page header */
.page-head { padding: 64px 0 8px; max-width: 780px; }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.06; margin-bottom: 18px; }
.page-head .lede { font-size: 19px; color: var(--muted); }
.long { max-width: 760px; }
.long h2 { font-size: clamp(26px, 3.2vw, 32px); font-weight: 700; margin: 64px 0 14px; scroll-margin-top: 80px; }
.long h3 { font-size: 20px; font-weight: 700; margin: 32px 0 8px; }
.long h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin: 26px 0 6px; }
.long ul, .long ol { padding-left: 1.3em; margin: 0 0 16px; }
.long li { margin-bottom: 6px; }
.callout { border-left: 3px solid var(--signal); background: var(--panel-2); padding: 16px 20px; border-radius: 0 6px 6px 0; margin: 28px 0; }
.callout > :last-child { margin-bottom: 0; }
.callout.warn { border-color: var(--money); background: var(--money-soft); }
.toc-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.toc-inline a { display: inline-block; font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); text-decoration: none; background: transparent; }
.toc-inline a:hover { border-color: var(--signal); color: var(--btn-ink); background: var(--signal); }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.table-wrap table, table.ref { border-collapse: collapse; width: 100%; font-size: 15px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); }
.table-wrap td:first-child { white-space: nowrap; }

/* Docs */
.docs { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter) 0; display: grid; gap: 32px; }
@media (min-width: 900px) { .docs { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; } }
.docs-nav { display: flex; flex-wrap: wrap; gap: 6px; align-self: start; }
@media (min-width: 900px) { .docs-nav { position: sticky; top: 84px; flex-direction: column; flex-wrap: nowrap; gap: 2px; } }
.docs-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line); background: transparent; }
@media (min-width: 900px) { .docs-nav a { border: 0; background: none; } }
.docs-nav a:hover { color: var(--ink); background: var(--panel); }
.docs-nav a[aria-current="page"] { color: var(--ink); background: var(--panel-2); font-weight: 500; }
.prose { min-width: 0; max-width: 760px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 16px; }
.prose h2 { font-size: 26px; font-weight: 700; margin: 48px 0 12px; scroll-margin-top: 84px; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; scroll-margin-top: 84px; }
.prose h2, .prose h3 { position: relative; }
.prose .anchor { position: absolute; right: 100%; padding-right: 0.3em; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 20px 0; border-left: 3px solid var(--signal); background: var(--panel-2); padding: 14px 18px; border-radius: 0 8px 8px 0; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose > p:first-of-type { font-size: 19px; color: var(--muted); }

/* App */
.app { padding-top: 40px; }
.signin { max-width: 560px; margin: 32px auto 0; text-align: left; }
.signin h1 { font-size: clamp(30px, 4.4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.signin .card { padding: 28px; }
.signin ul { padding-left: 1.2em; color: var(--ink-2); }
.wallets { display: grid; gap: 10px; margin: 20px 0 8px; }
.wallet { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: 600 16px/1.2 var(--display); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.wallet:hover { border-color: var(--accent); }
.wallet img { width: 28px; height: 28px; border-radius: 6px; }
.wallet small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.signin .card h2 { margin-top: 0; }
.agent-filter { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.agent-filter select, .rename input { font: 15px/1.2 var(--display); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.rename { display: flex; gap: 8px; align-items: center; }
.rename input { min-width: 0; width: 220px; }
.row-actions { text-align: right; }
.row-actions .btn + .btn { margin-left: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.link-code code { font: 700 26px/1.2 var(--mono); letter-spacing: 0.04em; }
.link-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0 12px; }
.link-line code { flex: 1 1 240px; font-size: 13.5px; overflow-wrap: anywhere; }
.status { min-height: 24px; font-size: 15px; color: var(--ink-2); margin-top: 10px; }
.status.error { color: var(--fail); }
.app-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
.app-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.addr { font: 500 14px/1 var(--mono); background: var(--panel); border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 28px; }
.tile .k { font: 600 12px/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tile .v { font: 700 28px/1.1 var(--display); letter-spacing: -0.02em; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.tile .d { font-size: 13.5px; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.tabs button { font: 600 15px/1 var(--display); color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 14px; cursor: pointer; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--signal); }
.tabs .count { font-weight: 500; color: var(--muted); margin-left: 4px; }
.jobs { background: var(--panel); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; overflow-x: auto; }
.jobs table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 640px; }
.jobs th, .jobs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.jobs th { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.jobs td.title { white-space: normal; min-width: 220px; }
.jobs td.title a { color: var(--ink); font-weight: 600; text-decoration: none; }
.jobs td.title a:hover { color: var(--accent); }
.jobs td.title small { display: block; color: var(--muted); font: 400 12.5px/1.4 var(--mono); }
.jobs td.n { text-align: right; font-variant-numeric: tabular-nums; }
.jobs tr:last-child td { border-bottom: 0; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.back { display: inline-block; font-size: 15px; margin-bottom: 16px; text-decoration: none; }
.detail-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 8px; }
.detail-head h1 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.meta-row code { font-size: 12.5px; }
.panes { display: grid; gap: 16px; }
@media (min-width: 960px) { .panes { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.card h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.checks li:last-child { border-bottom: 0; }
.checks .detail { grid-column: 2; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.verdict + .verdict { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.verdict-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: 14.5px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; background: var(--signal); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; color: var(--muted); font-size: 12.5px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
details.raw summary { cursor: pointer; color: var(--ink-2); font-size: 14px; margin-top: 12px; }
details.raw pre { margin-top: 10px; max-height: 420px; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.form label span { font-weight: 400; color: var(--muted); font-size: 14px; }
.form input, .form textarea { font: 400 16px/1.4 var(--display); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form select { font: 400 16px/1.4 var(--display); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; }
.form .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form .pair label { grid-template-rows: auto 1fr auto; }
.choices { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choices legend { font-weight: 500; font-size: 15px; padding: 0; margin-bottom: 8px; width: 100%; }
.form .choices label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.form .choices input { width: auto; accent-color: var(--accent); }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 440px) {
  .bar { gap: 10px 8px; }
  .brand { font-size: 17px; gap: 8px; }
  .mark { width: 48px; height: 60px; }
  .actions { gap: 6px; }
  .actions .btn-small { padding: 8px 10px; }
  .menu { padding: 9px 10px; }
}
