:root{
  --bg:#070E1A; --bg2:#0F1A2C; --bg3:#16233A; --ink:#F4EDEE; --ink2:#8C99AE;
  --accent:#FF3B5C; --accent-ink:#FFE3E9; --line:#233252;
  --disp:'Rubik Mono One',sans-serif; --mono:'IBM Plex Mono',ui-monospace,monospace;
  --bar-h:120px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--bg);color:var(--ink);font-family:var(--mono);font-size:15px;line-height:1.55;
  padding-top:var(--bar-h);padding-bottom:90px;min-height:100vh}
a{color:var(--accent);text-decoration:none}
code{font-family:var(--mono)}
img{max-width:100%}
button{font-family:var(--mono);cursor:pointer}

/* ---- dispatch bar: fixed to the TOP at every width — this IS the buy control (site.buy_selector #dispatch-bar).
   No separate nav strip anywhere else on the page; the bar carries both identity and the CA because the bar
   already occupies the "top" chrome slot. Two explicit rows (identity+connect, then the full CA) below ~900px,
   where a single row has no room for the address without truncating it; one row above that, where it does.
   app.js measures the rendered height after paint and writes --bar-h, so the body's padding-top and the desktop
   rail's sticky offset always match the bar's real height exactly. ---- */
.dbar{position:fixed;top:0;left:0;right:0;z-index:50;display:flex;flex-direction:column;gap:8px;
  padding:8px 12px;background:var(--bg2);border-bottom:2px solid var(--accent)}
.dbar-row1{display:flex;align-items:center;gap:10px}
.dbar-row2{display:flex;align-items:center;gap:10px}
.dbar-brand{display:flex;align-items:center;gap:7px;font-family:var(--disp);font-size:14px;letter-spacing:.02em;color:var(--ink);flex:0 0 auto}
.dbar-brand img{width:24px;height:24px;border-radius:5px}
.dbar-row1 .dbar-purse{margin-left:auto}
.dbar-ca{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto;background:var(--bg3);border:1px solid var(--line);
  border-radius:10px;padding:6px 10px}
.dbar-ca-label{font-size:9px;letter-spacing:.1em;color:var(--ink2);text-transform:uppercase;flex:0 0 auto}
.dbar-ca-text{min-width:0;overflow-wrap:anywhere;word-break:break-all;white-space:normal;font-size:11px;color:var(--accent-ink);flex:1 1 auto}
.dbar-copy{flex:0 0 auto;background:var(--accent);color:#1a0509;border:none;border-radius:12px;padding:5px 9px;font-size:10px;
  text-transform:uppercase;letter-spacing:.04em}
.dbar-copy.done{background:#3f8f5f;color:#fff}
.dbar-gmgn{flex:0 0 auto;font-size:10.5px;color:var(--ink2);border:1px solid var(--line);border-radius:12px;padding:5px 9px}
.dbar-purse{flex:0 0 auto;background:var(--ink);color:var(--bg);border:none;border-radius:16px;padding:7px 12px;font-size:11px;
  text-transform:uppercase;letter-spacing:.05em}
.dbar-purse.paired{background:var(--accent);color:#1a0509}
@media (min-width:900px){
  .dbar{flex-direction:row;align-items:center;flex-wrap:nowrap}
  .dbar-row1{flex:0 0 auto}
  .dbar-row1 .dbar-purse{margin-left:0}
  .dbar-row2{flex:1 1 auto}
}

/* ---- long-scroll body: one column of sections, then a second rail once the screen is wide enough to hold
   both without squeezing the object. ---- */
#view{max-width:1150px;margin:0 auto;padding:18px 14px 8px;display:flex;flex-direction:column;gap:22px}
.col-primary{display:flex;flex-direction:column;gap:22px;min-width:0}
.col-rail{display:flex;flex-direction:column;gap:22px;min-width:0}

.secname{font-family:var(--disp);font-size:14px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink2);margin:0 0 10px}

/* hero: a printed dispatch sheet — the "text" chassis axis. First big thing under the bar is this paragraph,
   not the ladder object. */
.hero{background:var(--bg2);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:4px;padding:20px 18px}
.dispatch-head{display:flex;justify-content:space-between;gap:10px;font-size:10px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--ink2);border-bottom:1px dashed var(--line);padding-bottom:8px;margin-bottom:12px;flex-wrap:wrap}
.dl-mid{color:var(--accent)}
.headline{font-family:var(--disp);font-size:clamp(26px,7vw,40px);line-height:1.05;margin:0 0 10px}
.dek{margin:0;color:var(--ink2);font-size:14.5px;max-width:46ch}

/* the ladder object */
.objectcard{background:var(--bg2);border:1px solid var(--line);border-radius:14px;padding:18px}
.tag{display:inline-block;font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;background:var(--accent);color:#1a0509;
  border-radius:10px;padding:4px 10px;margin-bottom:12px}
.tag.settled{background:var(--bg3);color:var(--ink2)}
.rungline{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:baseline;margin-bottom:14px;padding:12px;background:var(--bg);
  border:1px solid var(--line);border-radius:10px}
.rungline .k{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink2);display:block}
.rungline .v{font-family:var(--disp);font-size:24px}
.rungline .v.who{font-family:var(--mono);font-size:14px;color:var(--accent-ink)}
.clockrow{margin-bottom:14px;font-size:13px;color:var(--ink2)}
.clockrow b{color:var(--ink)}
.climbform{display:flex;flex-direction:column;gap:10px}
.climbform .row{display:flex;gap:10px}
.climbform input{flex:1;font-family:var(--mono);font-size:17px;padding:11px 13px;border:2px solid var(--line);border-radius:10px;
  background:var(--bg);color:var(--ink)}
.climbform button{background:var(--accent);color:#1a0509;border:none;border-radius:10px;padding:12px 20px;
  font-size:14px;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}
.climbform button:disabled{opacity:.4;cursor:not-allowed}
.climbnote{font-size:12px;color:var(--ink2)}
.climbwarn{font-size:12px;color:var(--accent);margin-top:2px}
.myline{margin-top:12px;padding-top:12px;border-top:1px dashed var(--line);font-size:13px}
.myline b{color:var(--accent)}

/* terms */
.termsgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.term{background:var(--bg2);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.term .k{display:block;font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--ink2);margin-bottom:4px}
.term b{font-size:14px}
.termsnote{margin:12px 0 0;font-size:13px;color:var(--ink2)}

/* wallet lookup */
.lookform{display:flex;gap:10px;margin-bottom:10px}
.lookform input{flex:1;font-family:var(--mono);font-size:14px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;
  background:var(--bg2);color:var(--ink)}
.lookform button{background:var(--bg3);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px 14px;font-size:12px;
  text-transform:uppercase;letter-spacing:.05em}
.wresult{display:flex;flex-direction:column;gap:10px}
.wcard{background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:14px}
.wcard h3{font-family:var(--disp);font-size:13px;margin:0 0 8px;letter-spacing:.02em}

/* tape / ledger: div rows (never a <table> tag — see the note in app.js) laid out as a small grid per row */
.tapelist{display:flex;flex-direction:column;background:var(--bg2);border:1px solid var(--line);border-radius:10px;overflow:hidden;font-size:12px}
.trow{display:grid;grid-template-columns:auto 1fr auto;gap:4px 10px;align-items:baseline;padding:8px 9px;border-bottom:1px solid var(--line)}
.trow:last-child{border-bottom:none}
.trow .twho{grid-row:1;color:var(--accent-ink)}
.trow .tamt{grid-row:1;text-align:right;color:var(--ink)}
.trow .tdet,.trow .twhen{grid-row:2;font-size:10.5px;color:var(--ink2)}
.trow .twhen{text-align:right}
.trow .tladder{grid-row:1;color:var(--ink2);font-size:10.5px;text-transform:uppercase;letter-spacing:.05em}
.stub{display:inline-block;grid-row:1;font-size:9.5px;text-transform:uppercase;letter-spacing:.04em;padding:2px 7px;border-radius:10px;
  background:var(--bg3);color:var(--ink2);width:fit-content}
.stub.climbed{background:#3f6f8f;color:#fff}
.stub.tolled{background:var(--accent);color:#1a0509}
.hush{padding:16px;text-align:center;color:var(--ink2);font-size:12.5px}

.kv{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px solid var(--line);font-size:12.5px}
.kv:last-child{border-bottom:none}
.kv b{color:var(--ink)}

.colophon{max-width:1150px;margin:0 auto;padding:16px 14px 90px;font-size:11.5px;color:var(--ink2);
  display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;border-top:1px solid var(--line)}
.fk code{color:var(--ink)}
.fsoc{display:flex;gap:12px}
.ftag{width:100%;opacity:.8}

/* ---- tray (climb sheet) ---- */
/* an ID selector outranks the browser's default [hidden]{display:none}, so the [hidden] rule must be repeated
   here explicitly or the tray shows on every load regardless of the attribute (css-layout-traps: [hidden] vs
   display) */
#tray{position:fixed;inset:0;background:rgba(4,7,13,.65);z-index:60;display:flex;align-items:flex-end;justify-content:center}
#tray[hidden]{display:none}
.tray-card{background:var(--bg2);border-radius:16px 16px 0 0;width:100%;max-width:480px;padding:16px;border:2px solid var(--line);border-bottom:none}
.tray-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.tray-head span{font-family:var(--disp);font-size:16px}
.tray-head button{background:none;border:none;font-size:20px;color:var(--ink)}
.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:var(--ink);color:var(--bg);
  padding:10px 16px;border-radius:20px;font-size:12.5px;z-index:80}
.walletlist{display:flex;flex-direction:column;gap:8px}
.walletlist button{display:flex;align-items:center;gap:10px;background:var(--bg3);border:1px solid var(--line);color:var(--ink);
  border-radius:10px;padding:10px 12px}
.walletlist img{width:22px;height:22px;border-radius:5px}

/* ---- responsive ----
   ≤520: one column, everything full-width, thumb-reachable climb button.
   720-1000: still one column but a wider measure and larger display type.
   ≥1000: the page RECOMPOSES — the object/terms/wallet in a primary column, the tape+ledger become a second,
   sticky rail beside it. This is the chassis wide-layout axis: object centred with the ledger as a sticky rail. */
@media (min-width:720px){
  .headline{font-size:40px}
  .termsgrid{grid-template-columns:1fr 1fr 1fr 1fr}
}
@media (min-width:1000px){
  #view{flex-direction:row;align-items:flex-start;padding:28px 24px 8px;gap:26px}
  .col-primary{flex:1.6 1 0}
  .col-rail{flex:1 1 0;position:sticky;top:calc(var(--bar-h) + 20px)}
  .headline{font-size:44px}
}
