/* /spx/, the SPX6900 community page: the front page's tile and header with this page's look (spx/hero.html and spx/below.html are its parts).
   The look is the community's own: a light terminal, black borders with hard shadows, lime, magenta and cyan, Orbitron and Space Mono.
   Every rule starts at html[data-page="spx"], which npm run build puts on the page and nowhere else. */
@font-face { font-family: 'Orbitron'; src: url('/fonts/orbitron-latin.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/fonts/space-mono-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/fonts/space-mono-700-latin.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

html[data-page="spx"] {
  --lime: #e5ff1a; --magenta: #ff1a66; --magenta-ink: #d4004f; --cyan: #00e5ff; --black: #0a0a0a; --shadow: 4px 4px 0 var(--black);
  --paper: #f5f5f5; --card: #fff; --field: #fff; --soft: #f0f0f0;
  --ink: #0a0a0a; --mute: #3d3d3d; --faint: #6b6b6b; --hair: rgba(10,10,10,.16); --hair-2: rgba(10,10,10,.4);
  --orange: #ff1a66; --ok: #0a7234; --warn: #8a4300; --err: #c4143f;
  --off: #e4e4e4; --off-ink: #545454; --veil: rgba(10,10,10,.42);
  --scrim: rgba(10,10,10,.5); --lift: 6px 6px 0 var(--black); --float: 6px 6px 0 var(--black);
  --skel: rgba(10,10,10,.08); --skel-hi: rgba(10,10,10,.02); --bar: #8a8a8a;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --disp: 'Orbitron', 'Space Mono', ui-monospace, sans-serif;
  color-scheme: light;
}
html[data-page="spx"] body { background: transparent; }
html[data-page="spx"] body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url('/spx/bg.webp') center / cover no-repeat; }
html[data-page="spx"] :is(#how, #tac, .pg, .sx.pi) { display: none; }
html[data-page="spx"] .hero :is(.starts, .says, .tape) { display: none; }
html[data-page="spx"] ::selection { background: var(--lime); color: var(--black); }
/* Space Mono's descenders are deeper than the header chips' one-em line box, which their label (overflow: hidden) cuts: a taller line, the chip's height unchanged */
html[data-page="spx"] header.top .chip { line-height: 1.5; }
html[data-page="spx"] :focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }

/* the hero: the community on the left, the tile on the right */
html[data-page="spx"] .hero {
  display: grid; position: relative; gap: 22px 40px; padding: 0 0 8px; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  grid-template-areas: 'tick tick' 'copy tile' 'luma proof';
}
html[data-page="spx"] .spx-top { display: contents; }
html[data-page="spx"] .spx-tick { grid-area: tick; display: flex; gap: 0 26px; margin: 0; padding: 9px 14px; overflow: hidden; white-space: nowrap; background: var(--black); color: var(--lime);
  font: 700 11px/1 var(--mono); letter-spacing: .14em; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
html[data-page="spx"] .spx-tick span:nth-child(even) { color: #fff; }
html[data-page="spx"] .spx-copy { grid-area: copy; min-width: 0; padding-top: 10px; }
html[data-page="spx"] .spx-tag { margin: 0 0 10px; font: 700 11px/1.2 var(--mono); letter-spacing: .18em; color: var(--magenta-ink); }
html[data-page="spx"] .hero h1 { margin: 0; font: inherit; letter-spacing: 0; }
html[data-page="spx"] .spx-wm { display: block; width: min(400px, 100%); height: auto; }
html[data-page="spx"] .spx-flip { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; padding: 6px 12px; background: var(--lime); border: 2px solid var(--black); box-shadow: var(--shadow);
  font: 900 clamp(15px, 2.6vw, 24px)/1.15 var(--disp); letter-spacing: .05em; transform: rotate(-1deg); }
html[data-page="spx"] .spx-flip i { flex: none; width: .5em; height: 1.05em; background: var(--black); }
html[data-page="spx"] .hero .sub { max-width: 34em; margin: 20px 0 0; text-align: left; font: 400 14px/1.6 var(--mono); letter-spacing: 0; color: var(--ink); text-wrap: pretty; }
html[data-page="spx"] .hero .sub b { font: 700 1em var(--mono); background: var(--lime); padding: 0 .25em; }

/* the four moves: each opens the tile on $SPX */
html[data-page="spx"] .spx-ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; max-width: 520px; }
html[data-page="spx"] .spx-ops button { display: grid; grid-template: 'n t' auto 'n s' auto / auto 1fr; gap: 0 12px; align-items: center; width: 100%; min-height: 60px; padding: 10px 14px; text-align: left; cursor: pointer;
  background: var(--card); color: var(--ink); border: 2px solid var(--black); border-radius: 0; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s, background .12s; }
html[data-page="spx"] .spx-ops b { grid-area: n; font: 900 24px/1 var(--disp); color: var(--magenta); letter-spacing: -.02em; }
html[data-page="spx"] .spx-ops span { grid-area: t; font: 900 14px/1.2 var(--disp); letter-spacing: .08em; }
html[data-page="spx"] .spx-ops small { grid-area: s; font: 400 11px/1.3 var(--mono); color: var(--mute); letter-spacing: 0; }
@media (hover: hover) { html[data-page="spx"] .spx-ops button:hover { background: var(--lime); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--black); } }
html[data-page="spx"] .spx-ops button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--black); }

html[data-page="spx"] .spx-ops .spx-farm { grid-column: 1 / -1; }
html[data-page="spx"] .spx-ops .spx-farm button { background: var(--black); color: #fff; }
html[data-page="spx"] .spx-ops .spx-farm b { color: var(--lime); }
html[data-page="spx"] .spx-ops .spx-farm small { color: #d0d0d0; }
@media (hover: hover) { html[data-page="spx"] .spx-ops .spx-farm button:hover { background: var(--magenta); color: var(--black); } html[data-page="spx"] .spx-ops .spx-farm button:hover :is(b, small) { color: var(--black); } }

/* Lumina, in a frame like the terminal's */
html[data-page="spx"] .spx-lumina { grid-area: luma; position: relative; margin: 6px 0 0; max-width: 520px; overflow: hidden; background: linear-gradient(155deg, #d9fbff, #fff 52%, #ffe3ee); border: 2px solid var(--black); box-shadow: 6px 6px 0 var(--black); }
html[data-page="spx"] .spx-lumina::after { content: ''; position: absolute; inset: 0 0 38px; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(10,10,10,.045) 0 1px, transparent 1px 3px); }
html[data-page="spx"] .spx-lumina img { display: block; width: 100%; height: auto; }
html[data-page="spx"] .spx-lumina figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 9px 12px; background: var(--black); color: var(--lime); font: 700 11px/1.2 var(--mono); letter-spacing: .14em; }
html[data-page="spx"] .spx-lumina figcaption small { color: #fff; font-weight: 400; letter-spacing: .04em; font-size: 11px; }

/* the tile and the figures under it, in their cells of the hero's grid */
html[data-page="spx"] .hx { grid-area: tile; max-width: none; margin: 0; }
html[data-page="spx"] .hero .proof-row { grid-area: proof; margin: 0; }

/* below the tile: the roster, the commandments, the links */
html[data-page="spx"] .spx-below { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; margin: 64px 0 24px; }
html[data-page="spx"] .spx-sec { min-width: 0; }
html[data-page="spx"] #spx-aeon { grid-column: 1 / -1; }
html[data-page="spx"] .spx-sec header { margin: 0 0 18px; }
html[data-page="spx"] .spx-sec h2 { margin: 0; font: 900 clamp(22px, 3.4vw, 32px)/1.1 var(--disp); letter-spacing: .03em; }
html[data-page="spx"] .spx-note { margin: 8px 0 0; font: 400 13px/1.5 var(--mono); color: var(--mute); }
html[data-page="spx"] .spx-roster { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
html[data-page="spx"] .spx-roster a { display: block; text-decoration: none; background: var(--card); border: 2px solid var(--black); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
html[data-page="spx"] .spx-roster img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 655; object-fit: cover; background: #dcdcdc; }
html[data-page="spx"] .spx-roster span { display: block; padding: 7px 8px; border-top: 2px solid var(--black); font: 700 10.5px/1.2 var(--mono); letter-spacing: .1em; transition: background .12s; }
@media (hover: hover) { html[data-page="spx"] .spx-roster a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--black); } html[data-page="spx"] .spx-roster a:hover span { background: var(--lime); } }
html[data-page="spx"] .spx-more { margin: 16px 0 0; font: 700 12px/1.2 var(--mono); letter-spacing: .12em; }
html[data-page="spx"] .spx-more a { padding: 2px 4px; background: var(--lime); color: var(--black); text-decoration: none; border-bottom: 2px solid var(--black); }
html[data-page="spx"] .spx-law { margin: 0; padding: 0; list-style: none; }
html[data-page="spx"] .spx-law li { display: flex; align-items: center; gap: 14px; margin-top: -2px; padding: 11px 14px; background: var(--card); border: 2px solid var(--black); font: 900 12.5px/1.3 var(--disp); letter-spacing: .05em; }
html[data-page="spx"] .spx-law b { flex: none; min-width: 2.3em; padding: 3px 0; text-align: center; background: var(--black); color: var(--lime); font: 700 12px/1 var(--mono); letter-spacing: .04em; }
@media (hover: hover) { html[data-page="spx"] .spx-law li:hover { background: var(--lime); } }
html[data-page="spx"] .spx-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
html[data-page="spx"] .spx-links a { display: block; padding: 11px 14px; text-decoration: none; background: var(--card); border: 2px solid var(--black); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s, background .12s; }
html[data-page="spx"] .spx-links b { display: block; font: 900 13px/1.2 var(--disp); letter-spacing: .06em; }
html[data-page="spx"] .spx-links small { display: block; margin-top: 3px; font: 400 11px/1.3 var(--mono); color: var(--mute); }
@media (hover: hover) { html[data-page="spx"] .spx-links a:hover { background: var(--cyan); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--black); } }
html[data-page="spx"] .spx-ca { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 20px 0 0; }
html[data-page="spx"] .spx-ca span { font: 700 10.5px/1.2 var(--mono); letter-spacing: .14em; color: var(--magenta-ink); }
html[data-page="spx"] .spx-ca code { font: 400 12px/1.5 var(--mono); overflow-wrap: anywhere; }
html[data-page="spx"] .spx-fine { grid-column: 1 / -1; max-width: 60ch; margin: 0; font: 400 11.5px/1.6 var(--mono); color: var(--faint); }

@media (prefers-reduced-motion: no-preference) {
  html[data-page="spx"] .spx-flip i { animation: spx-blink 1.1s steps(2, jump-none) infinite; }
}
@keyframes spx-blink { 50% { opacity: 0; } }

@media (max-width: 1020px) {
  html[data-page="spx"] .spx-roster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* a tablet keeps the two columns, the copy narrower and its moves one list */
@media (max-width: 899px) {
  html[data-page="spx"] .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 22px 28px; }
  html[data-page="spx"] .spx-ops { grid-template-columns: minmax(0, 1fr); max-width: none; }
  html[data-page="spx"] .spx-wm { width: min(320px, 100%); }
  html[data-page="spx"] .spx-flip { font-size: clamp(14px, 2.2vw, 19px); }
}
/* a phone: the masthead is one short band (the wordmark, and the file line over the flip strip), the tile comes next so its button is on the first screen, then what the page does */
@media (max-width: 719px) {
  html[data-page="spx"] .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'tick' 'mast' 'tile' 'do' 'proof' 'luma'; gap: 16px; }
  html[data-page="spx"] .spx-copy { display: contents; }
  html[data-page="spx"] .spx-mast { grid-area: mast; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); grid-template-rows: 1fr auto; grid-template-areas: 'mark tag' 'mark flip'; gap: 6px 14px; padding-top: 2px; }
  html[data-page="spx"] .spx-mast h1 { grid-area: mark; }
  html[data-page="spx"] .spx-mast .spx-tag { grid-area: tag; margin: 0; align-self: start; font-size: 10.5px; letter-spacing: .12em; text-wrap: balance; }
  html[data-page="spx"] .spx-mast .spx-flip { grid-area: flip; justify-self: start; align-self: end; margin: 0; padding: 6px 10px; font-size: clamp(11px, 3.6vw, 19px); }
  html[data-page="spx"] .spx-wm { width: 100%; }
  html[data-page="spx"] .spx-do { grid-area: do; margin-top: 14px; }
  html[data-page="spx"] .spx-do .sub { margin-top: 4px; }
  html[data-page="spx"] .spx-do .spx-ops { margin-top: 16px; max-width: 520px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-page="spx"] .hx { max-width: 560px; width: 100%; justify-self: center; }
  html[data-page="spx"] .spx-lumina { justify-self: center; width: 100%; max-width: 520px; }
  html[data-page="spx"] .spx-below { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
}
@media (max-width: 520px) {
  html[data-page="spx"] .spx-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html[data-page="spx"] .spx-ops { gap: 10px; }
  html[data-page="spx"] .spx-ops button { padding: 9px 10px; gap: 0 9px; }
  html[data-page="spx"] .spx-ops b { font-size: 20px; }
  html[data-page="spx"] .spx-links { grid-template-columns: minmax(0, 1fr); }
}

/* ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   COMMUNITY PAGE KIT: the pieces every community token page on Tacit shares, in one block, so another page can copy it.
     the frame (the tile, its tabs, main button, fields, switches) · the controls (coin chip, swap arrow, small chips, tap sizes) · what is under way (the
     strip over the tile, the header's Activity chip, the Activity sheet) · the sheets (the wallet, Activity and Bitcoin sheets, the coin picker, the help
     launcher, a bottom sheet on a phone) · the Bitcoin market · the tile that stays in view beside the copy on a wide screen.
   TO MAKE A PAGE FOR ANOTHER TOKEN: copy this block to that page's stylesheet and replace data-page="spx" with its name in every selector (a find and
   replace: the page's build puts that name on <html>, and the page's stylesheet test wants every selector to start with it). What a new page sets is
   its own token rule, the first rule of its stylesheet: the accent colours --lime (what fills a button, a chip, a bar), --magenta (the focus ring, the tab
   bar, the pip), --magenta-ink (the accent as text on the light ground: keep it 4.5:1 or darker against --paper), --cyan (a link tile's hover), the greys
   and --black (every border and hard shadow); and its wordmark and art in its hero part. Nothing in this block names a colour or a font of its own: the
   tokens are the whole skin. Rules: square corners; a 2px --black edge and a hard shadow on what can be pressed; a flat label with no shadow for what
   cannot; the accent fills what is chosen or running; a finger gets 44px (40px on a switch) wherever the pointer is coarse.
   ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── */

/* the frame */
html[data-page="spx"] .hx-h button[data-off] { opacity: .35; cursor: not-allowed; }
html[data-page="spx"] .hx-h button[data-off]:hover { color: var(--mute); }
html[data-page="spx"] .rows button:disabled { opacity: .42; cursor: not-allowed; filter: grayscale(1); }
html[data-page="spx"] .hx { border: 2px solid var(--black); border-radius: 0; box-shadow: 8px 8px 0 var(--black); }
html[data-page="spx"] .hx-h { border-bottom: 2px solid var(--black); }
html[data-page="spx"] .hx-h::after { height: 4px; border-radius: 0; background: var(--magenta); bottom: -2px; }
html[data-page="spx"] .hx-h button { min-height: 46px; padding: 0; align-content: center; font: 900 11px/1 var(--disp); font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
html[data-page="spx"] .hx-h button .w { font: inherit; }
html[data-page="spx"] :is(.hx, .swc) :is(.go, #hx-go) { color: var(--black); background: var(--lime); border: 2px solid var(--black); border-radius: 0; box-shadow: var(--shadow); font: 900 13px/1.2 var(--disp); letter-spacing: .08em; text-transform: uppercase; transition: transform .12s, box-shadow .12s; }
@media (hover: hover) { html[data-page="spx"] :is(.hx, .swc) :is(.go, #hx-go):not(:disabled):hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--black); } }
html[data-page="spx"] :is(.hx, .swc) :is(.go, #hx-go):disabled { background: var(--off); color: var(--off-ink); box-shadow: none; }
html[data-page="spx"] :is(.hx, .swc) :is(.f, .rows, .rcpt, input, select) { border-radius: 0; }
html[data-page="spx"] :is(.hx, .swc) .f { border: 2px solid var(--black); background: var(--card); }
html[data-page="spx"] .swc .f:focus-within { border-color: var(--black); outline: 3px solid var(--magenta); outline-offset: 2px; }
html[data-page="spx"] .hx-mode, html[data-page="spx"] .hx-mode button { border-radius: 0; }
html[data-page="spx"] .hx-mode button { font-weight: 700; }
html[data-page="spx"] .hx-mode button[aria-checked="true"], html[data-page="spx"] .hx-more button[aria-selected="true"] { background: var(--lime); color: var(--black); box-shadow: none; }
/* a value that needs two lines reads as a block that starts at one edge, not as ragged lines hugging the right */
html[data-page="spx"] .swc .rcpt dd { margin-left: auto; text-align: left; }
/* a note that is not ready yet (a bridge back takes hours) keeps its reason readable: only its amount is dimmed */
html[data-page="spx"] .brn.off { opacity: 1; }
html[data-page="spx"] .brn.off b { color: var(--faint); }
html[data-page="spx"] .brn.off small { color: var(--mute); }

/* the controls: a coin you can change is a button (square, black, a hard shadow), one that is fixed is only a label */
html[data-page="spx"] .swc .coin { border: 2px solid var(--black); border-radius: 0; background: var(--card); box-shadow: 2px 2px 0 var(--black); font-weight: 700; transition: transform .12s, box-shadow .12s, background .12s; }
@media (hover: hover) { html[data-page="spx"] .swc .coin:not(.one):hover { background: var(--lime); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--black); } }
html[data-page="spx"] .swc .coin:not(.one):active { transform: translate(2px, 2px); box-shadow: none; }
html[data-page="spx"] .swc .coin.one { background: transparent; border-color: var(--hair-2); box-shadow: none; }
html[data-page="spx"] .swc .coin:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }
html[data-page="spx"] .swc .flip { border: 2px solid var(--black); border-radius: 0; background: var(--lime); color: var(--black); }
html[data-page="spx"] .swc .flip:disabled { background: var(--soft); opacity: 1; color: var(--faint); border-color: var(--hair-2); }
html[data-page="spx"] .swc .mid .arr { border: 2px solid var(--black); border-radius: 0; color: var(--black); }
html[data-page="spx"] .swc .ff #max .mx { border: 2px solid var(--black); border-radius: 0; background: var(--card); font-weight: 700; line-height: 16px; }
html[data-page="spx"] .swc .slip button { border: 2px solid transparent; border-radius: 0; color: var(--ink); font-weight: 700; }
html[data-page="spx"] .swc .slip button[aria-pressed="true"] { background: var(--lime); border-color: var(--black); }
html[data-page="spx"] .swc .quick button { border: 2px solid var(--black); border-radius: 0; color: var(--ink); font-weight: 700; background: var(--card); }
@media (hover: hover) { html[data-page="spx"] .swc .quick button:hover { background: var(--lime); color: var(--black); border-color: var(--black); } }
/* a finger: the switches, the swap arrow and the small chips are sized for it, and the place label over a field ("Wallet ▾", "DeFi pool ▾") is a 44px target that
   takes no more room than its line (it reaches 11px above and below it, 8px to each side) */
@media (pointer: coarse), (max-width: 640px) {
  html[data-page="spx"] .hx-mode button { min-height: 40px; }
  html[data-page="spx"] .swc .flip { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  html[data-page="spx"] .swc .quick button { min-height: 36px; }
  html[data-page="spx"] .swc .fh :is(button.where, .where.go-pick) { position: relative; z-index: 1; min-height: 44px; margin: -11px -8px; padding: 0 8px; }
}

/* the line that says what is held where, and the link that goes with it ("... is waiting for its confirmation", "Move it first"): on a phone the words get the width and the link its own line */
@media (max-width: 640px) {
  html[data-page="spx"] .hx-pl { flex-wrap: wrap; align-items: flex-start; gap: 2px 8px; }
  html[data-page="spx"] .hx-pl > span { flex: 1 1 0; min-width: 0; font-size: 13px; line-height: 1.5; }
  html[data-page="spx"] .hx-pl .link { flex: 1 0 100%; margin: 0 0 0 26px; padding: 6px 0 8px; text-align: left; font-size: 13px; font-weight: 700; }
}

/* what is under way: the strip over the tile (it opens Activity), the header's chips, and the Activity sheet. A running item has the accent bar, a failed one the red, a
   finished one is quiet with its mark */
html[data-page="spx"] .hx-live { width: 100%; min-height: 44px; margin: 0; padding: 10px 14px; color: #fff; background: var(--black); border: 0; border-bottom: 2px solid var(--black); border-radius: 0; font: 700 12px/1.3 var(--mono); }
html[data-page="spx"] .hx-live .s, html[data-page="spx"] .hx-live .go { color: var(--lime); }
html[data-page="spx"] .hx-live .dot.live { width: 8px; height: 8px; border-radius: 0; background: var(--lime); }
@media (hover: hover) { html[data-page="spx"] .hx-live:hover .t { text-decoration: underline; text-underline-offset: 3px; } }
html[data-page="spx"] .hx-live:focus-visible { outline: 3px solid var(--magenta); outline-offset: -3px; }
html[data-page="spx"] header.top .chip { border: 2px solid var(--black); border-radius: 0; background: var(--card); box-shadow: 2px 2px 0 var(--black); font-weight: 700; }
@media (hover: hover) { html[data-page="spx"] header.top .chip:hover { background: var(--lime); border-color: var(--black); } }
html[data-page="spx"] header.top .chip:active { transform: translate(2px, 2px); box-shadow: none; }
html[data-page="spx"] header.top .chip:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }
html[data-page="spx"] header.top .chip.act { color: var(--ink); }
html[data-page="spx"] header.top .chip.act.busy { background: var(--lime); }
html[data-page="spx"] header.top .chip.act #act-n { border-radius: 0; background: var(--black); color: var(--lime); }
@media (max-width: 640px) { html[data-page="spx"] header.top { padding: 12px 0; } }
html[data-page="spx"] .acts { border-top: 2px solid var(--black); }
html[data-page="spx"] .actr { gap: 8px; padding: 14px 0 14px 14px; border-bottom: 2px solid var(--black); border-left: 6px solid var(--lime); }
html[data-page="spx"] .actr.fin { gap: 4px; padding: 11px 0 11px 14px; border-bottom: 1px solid var(--hair-2); border-left-color: transparent; }
html[data-page="spx"] .actr.fin:has(.actr-m.ok) { border-left-color: var(--ok); }
html[data-page="spx"] .actr.fin:has(.actr-m.err) { border-left-color: var(--err); }
html[data-page="spx"] .actr-h b { font-weight: 700; }
html[data-page="spx"] .actr.fin .actr-h b { font-weight: 400; }
html[data-page="spx"] .actr-h .dot.live { width: 8px; height: 8px; border-radius: 0; background: var(--magenta); }
html[data-page="spx"] .actr-m { font-weight: 900; }
html[data-page="spx"] .actr-m.ok { color: var(--ok); }
html[data-page="spx"] .actr-m.err { color: var(--err); }
html[data-page="spx"] .actr-f.err { font-weight: 700; }
html[data-page="spx"] .acts-h { font: 900 11px/1 var(--disp); letter-spacing: .1em; color: var(--ink); }
html[data-page="spx"] .acts-h .num { border-radius: 0; background: var(--black); color: var(--lime); }
html[data-page="spx"] .stp { font-weight: 700; }
html[data-page="spx"] .stp i { width: 9px; height: 9px; border: 2px solid var(--black); border-radius: 0; }
html[data-page="spx"] .stp li + li::before { height: 2px; background: var(--black); }
html[data-page="spx"] .stp .done i { background: var(--black); }
html[data-page="spx"] .stp .now i { background: var(--lime); border-color: var(--black); }
html[data-page="spx"] .stp .bad i { background: var(--err); border-color: var(--err); }
html[data-page="spx"] .actr-bar { height: 10px; border: 2px solid var(--black); border-radius: 0; background: var(--card); }
html[data-page="spx"] .actr-bar i { border-radius: 0; background: var(--lime); box-shadow: inset -2px 0 0 var(--black); }
html[data-page="spx"] #sheet-act input[type="checkbox"] { accent-color: var(--black); }

/* the sheets that rise over the page (the wallet, Activity, Bitcoin), the coin picker inside the tile, the help launcher: square and bordered like the tile, a bottom
   sheet on a phone (a 3px rule on top, no shadow, as wide as the screen) */
html[data-page="spx"] dialog.sheet { border: 2px solid var(--black); border-radius: 0; box-shadow: var(--lift); }
html[data-page="spx"] :is(.sheet-head, .bsheet-head) h2 { font: 900 20px/1.15 var(--disp); letter-spacing: .05em; text-transform: uppercase; overflow-wrap: anywhere; }
html[data-page="spx"] :is(.sheet-head .x, .bsheet .x, .swc .pk-x) { border: 2px solid var(--black); border-radius: 0; background: var(--card); color: var(--ink); box-shadow: 2px 2px 0 var(--black); }
@media (hover: hover) { html[data-page="spx"] :is(.sheet-head .x, .bsheet .x, .swc .pk-x):hover { background: var(--lime); color: var(--black); } }
html[data-page="spx"] :is(.sheet-head .x, .bsheet .x):active { transform: translate(2px, 2px); box-shadow: none; }
html[data-page="spx"] .swc .pk { border-radius: 0; background: var(--veil); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-page="spx"] .swc .pk-s { border-radius: 0; border-top: 2px solid var(--black); box-shadow: none; }
html[data-page="spx"] .swc .pk-s:has(.pk-kind) { height: min(94%, 400px); }
html[data-page="spx"] .swc .pk-h b { font: 900 15px/1.1 var(--disp); font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
html[data-page="spx"] .swc .pk-x { width: 40px; height: 40px; font-size: 22px; line-height: 1; }
html[data-page="spx"] .swc .pk-kind { border-radius: 0; background: var(--soft); }
html[data-page="spx"] .swc .pk-kind button { border-radius: 0; font-weight: 700; }
html[data-page="spx"] .swc .pk-kind button[aria-checked="true"] { background: var(--lime); color: var(--black); box-shadow: none; }
html[data-page="spx"] .swc .pk-r { border-radius: 0; border: 2px solid transparent; }
html[data-page="spx"] .swc .pk-r[aria-current="true"] { background: var(--card); border-color: var(--black); box-shadow: none; }
@media (hover: hover) { html[data-page="spx"] .swc .pk-r:hover { background: var(--lime); } }
html[data-page="spx"] :is(dialog.sheet, .bsheet) .btn { color: var(--black); background: var(--lime); border: 2px solid var(--black); border-radius: 0; box-shadow: var(--shadow); font: 900 13px/1.2 var(--disp); letter-spacing: .06em; text-transform: uppercase; transition: transform .12s, box-shadow .12s, background .12s; }
html[data-page="spx"] :is(dialog.sheet, .bsheet) .btn.ghost { background: var(--card); }
@media (hover: hover) { html[data-page="spx"] :is(dialog.sheet, .bsheet) .btn:not(:disabled):hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--black); } }
html[data-page="spx"] :is(dialog.sheet, .bsheet) .btn:not(:disabled):active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--black); }
html[data-page="spx"] :is(dialog.sheet, .bsheet) .btn:disabled { background: var(--off); color: var(--off-ink); border-color: var(--hair-2); box-shadow: none; }
html[data-page="spx"] :is(dialog.sheet, .bsheet) .opt { border: 2px solid var(--black); border-radius: 0; background: var(--card); box-shadow: var(--shadow); }
@media (hover: hover) { html[data-page="spx"] :is(dialog.sheet, .bsheet) .opt:not(:disabled):hover { background: var(--lime); border-color: var(--black); } }
html[data-page="spx"] :is(dialog.sheet, .bsheet) :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="range"], [type="file"]) { border: 2px solid var(--black); border-radius: 0; background: var(--card); }
html[data-page="spx"] :is(dialog.sheet, .bsheet) .seg { border-radius: 0; background: var(--soft); }
html[data-page="spx"] :is(dialog.sheet, .bsheet) .seg button { border-radius: 0; font-weight: 700; }
html[data-page="spx"] :is(dialog.sheet, .bsheet) .seg button:is([aria-selected="true"], [aria-checked="true"]) { background: var(--lime); color: var(--black); box-shadow: none; }
html[data-page="spx"] .bsheet-in { border: 2px solid var(--black); border-radius: 0; box-shadow: var(--lift); }
html[data-page="spx"] .bsheet-head { border-radius: 0; }
html[data-page="spx"] .bsheet-head .who { display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: 0 8px; margin: 0; padding: 5px 9px; background: var(--card); border: 2px solid var(--black); border-radius: 0; font: 11.5px/1.35 var(--mono); }
html[data-page="spx"] .hw-b { border: 2px solid var(--black); border-radius: 0; box-shadow: 3px 3px 0 var(--black); }
@media (hover: hover) { html[data-page="spx"] .hw-b:hover { transform: translate(-1px, -1px); color: var(--black); background: var(--lime); box-shadow: 4px 4px 0 var(--black); } }
html[data-page="spx"] .hw-p { border: 2px solid var(--black); border-radius: 0; box-shadow: var(--lift); }
@media (max-width: 640px) {
  html[data-page="spx"] :is(dialog.sheet, .bsheet-in, .hw-p) { border-width: 3px 0 0; box-shadow: none; }
  /* the help launcher steps in after the first scroll, so it is never over the tile's first screen */
  @supports (animation-timeline: scroll()) {
    html[data-page="spx"] .hw { animation: spx-fab linear both; animation-timeline: scroll(root block); animation-range: 0 140px; }
    @keyframes spx-fab { from { translate: 0 calc(100% + 24px); } to { translate: 0 0; } }
  }
}

/* the Bitcoin market (trade/bound.js draws plain lists and inputs): a bid is a framed row, its words on one line and its state a tag on the next, its fields and buttons full width */
html[data-page="spx"] .bound-mkt section + section { margin-top: 22px; padding-top: 20px; border-top: 2px solid var(--black); }
html[data-page="spx"] .bound-mkt h3 { margin: 0 0 12px; font: 900 13px/1.2 var(--disp); letter-spacing: .08em; text-transform: uppercase; }
html[data-page="spx"] .bound-mkt .rows { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
html[data-page="spx"] .bound-mkt .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 12px; background: var(--card); border: 2px solid var(--black); }
html[data-page="spx"] .bound-mkt .row .num { font: 700 14px/1.3 var(--mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
html[data-page="spx"] .bound-mkt .row .num.mute { justify-self: end; text-align: right; color: var(--mute); font-weight: 400; }
html[data-page="spx"] .bound-mkt .row > .mute:not(.num) { grid-column: 1 / -1; justify-self: start; padding: 2px 8px; color: var(--ink); background: var(--soft); border: 2px solid var(--black); font: 700 11.5px/1.4 var(--mono); }
html[data-page="spx"] .bound-mkt .row :is(.part, .btn, .rows, .ok, .err) { grid-column: 1 / -1; }
html[data-page="spx"] .bound-mkt .row .btn { margin-top: 2px; }
html[data-page="spx"] .bound-mkt .row .ok { color: var(--ok); font-weight: 700; }
html[data-page="spx"] .bound-mkt .rows .rows { margin: 4px 0 0; }
html[data-page="spx"] .bound-mkt .form { display: grid; gap: 10px; margin-bottom: 16px; }
html[data-page="spx"] .bound-mkt .form .btn { margin-top: 4px; }
html[data-page="spx"] .bsheet :is(input, select, textarea):not([type="checkbox"], [type="radio"]) { font: 16px/1.3 var(--mono); min-height: 48px; padding: 8px 12px; }
html[data-page="spx"] .bsheet label.note { display: flex; align-items: flex-start; gap: 10px; }
@media (max-width: 640px) { html[data-page="spx"] .bsheet-head .who { flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 8px; font-size: 11px; } }
html[data-page="spx"] .bsheet input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--black); }
html[data-page="spx"] .bsheet .note.err, html[data-page="spx"] .bound-mkt .err { color: var(--err); font-weight: 700; }

/* a wide screen (1280 and up): the tile stays in view while the copy beside it scrolls, and lets go where its column ends. The figures that were under the tile end the left
   column, under the picture, and the tile's cell runs down beside all three, so the tile is held inside its own cell and never reaches the figures, the sections after the hero or the
   footer. A panel taller than the window scrolls inside itself (under the tabs, so the coin picker and the sheets that open over the card stay where they open). Nothing here applies
   on a tablet or a phone. */
@media (min-width: 1280px) and (min-height: 560px) {
  html[data-page="spx"] .hero { grid-template-areas: 'tick tick' 'copy tile' 'luma tile' 'proof tile'; }
  html[data-page="spx"] .hx { position: sticky; top: 16px; align-self: start; }
  html[data-page="spx"] .hx .hx-b { max-height: calc(100vh - 88px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--black) transparent; }
  html[data-page="spx"] .hx:has(.hx-live) .hx-b { max-height: calc(100vh - 132px); }
}
