/* The desk, in the landing's language: black ground, solid rounded cards,
 * Uxum for headings, Inter for sentences, mono for every number, pink for
 * anything that acts or is live. Same tokens as landing.css. */
@font-face { font-family: "Uxum Grotesque"; font-weight: 500; font-style: normal; font-display: swap; src: url("https://framerusercontent.com/assets/ci6qYgtb6YEPPF81fGDWEKf7bw.woff2") format("woff2"); }
@font-face { font-family: "Uxum Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("https://framerusercontent.com/assets/p3seIywnIAnIXHuYThOPrNgZfo.woff2") format("woff2"); }
:root {
  --bg: #080808;
  --card: #111112;
  --card-2: #171718;
  --card-3: #1e1e20;
  --ink: #f4f3f0;
  --ink-2: #a3a3a0;
  --mute: #6f6f6c;
  --mute-2: #3a3a3c;
  --line: rgba(255, 255, 255, .07);
  --acc: #f95e9d;
  --acc-2: #e0186a;
  --live: #f95e9d;
  --up: #63d99a;
  --down: #ff6b78;
  --display: "Uxum Grotesque", "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --max: 1200px;
  --g: 20px;
  --r: 22px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
p, h1, h2, h3 { margin: 0; }
::selection { background: var(--acc); color: #17040c; }
.page { position: relative; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.m { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; }
.mute { color: var(--mute); }
.dim { color: var(--ink-2); }
.up { color: var(--up); }
.down { color: var(--down); }
.live { color: var(--live); }
.r { text-align: right; }

/* masthead, same as the landing's nav */
.mast { position: sticky; top: 0; z-index: 20; background: linear-gradient(var(--bg), rgba(8, 8, 8, .72)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mast .wrap { display: flex; align-items: center; height: 66px; gap: 22px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, var(--acc), var(--acc-2)); position: relative; box-shadow: 0 4px 14px rgba(249, 94, 157, .3); }
.brand .mark::after { content: ""; position: absolute; inset: 6px; background: var(--bg); border-radius: 2px; }
.mast nav { display: flex; gap: 22px; font-size: 15px; color: var(--ink-2); }
.mast nav a:hover, .mast nav a.is-here { color: var(--ink); }
.mast .sp { flex: 1; }
.clock { font-family: var(--mono); font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.clock .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mute-2); }
.clock.is-live .dot { background: var(--live); box-shadow: 0 0 0 4px rgba(249, 94, 157, .18); }
@media (max-width: 720px) { .clock, .mast nav { display: none; } }

/* buttons: pills, like the landing */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--card-2); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--card-3); }
.btn.solid { background: linear-gradient(135deg, #ff77b0, var(--acc-2)); color: #fff; box-shadow: 0 8px 28px rgba(249, 94, 157, .28); }
.btn.solid:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(249, 94, 157, .4); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.wide { width: 100%; height: 46px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn.is-busy { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* wallet chip */
.wchip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 999px; background: var(--card-2); font-family: var(--mono); font-size: 12px; transition: background .15s; }
.wchip:hover { background: var(--card-3); }
.wchip .id { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--acc), var(--acc-2)); }
.wchip .bal { color: var(--ink-2); padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .12); }
.wchip.is-wrong { color: var(--down); box-shadow: inset 0 0 0 1px rgba(255, 107, 120, .5); }
@media (max-width: 720px) { .wchip .bal { display: none; } }

/* tape: one rounded strip */
.tape { padding: 6px 0 0; }
.tape .wrap { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
.tape .wrap::-webkit-scrollbar { display: none; }
.tape .it { display: flex; gap: 8px; align-items: baseline; padding: 8px 12px; border-radius: 999px; background: var(--card); font-family: var(--mono); font-size: 12px; white-space: nowrap; color: var(--ink-2); flex: none; }
.tape .it b { font-weight: 500; color: var(--ink); }

/* statement */
.state { padding: 56px 0 28px; display: grid; grid-template-columns: minmax(0, 700px) 1fr; gap: 40px; align-items: end; }
.state h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.035em; line-height: 1.02; }
.state p { margin-top: 16px; max-width: 56ch; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.state .go { margin-top: 24px; display: flex; gap: 8px; }
.big { text-align: right; background: var(--card); border-radius: var(--r); padding: 22px 24px; }
.big .k { font-size: 13px; color: var(--ink-2); }
.big .v { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.03em; margin-top: 6px; line-height: 1; color: var(--acc); }
.big .v small { font-size: 13px; color: var(--mute); margin-left: 8px; font-family: var(--sans); font-weight: 400; }
.big .s { margin-top: 8px; font-size: 12.5px; color: var(--mute); }
@media (max-width: 900px) { .state { grid-template-columns: 1fr; padding-top: 40px; } .big { text-align: left; } }

/* sections are cards */
.sec { margin-top: 14px; background: var(--card); border-radius: var(--r); padding: 22px 24px 10px; }
.lab { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
.lab h2 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.lab .m { color: var(--mute); font-size: 12px; }
.lab a.m:hover { color: var(--ink); }

/* the blotter */
.blot { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
.blot th { text-align: left; font-weight: 400; color: var(--mute); font-size: 11.5px; padding: 8px 18px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; font-family: var(--sans); }
.blot td { padding: 13px 18px 13px 0; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.blot th:last-child, .blot td:last-child { padding-right: 0; }
.blot tbody tr:last-child td { border-bottom: 0; }
.blot td.wrap-ok { white-space: normal; min-width: 150px; }
.blot th.r, .blot td.r { text-align: right; }
.blot tbody tr.link { cursor: pointer; }
.blot tbody tr.link:hover td { background: var(--card-2); }
.blot tbody tr.link td:first-child { border-radius: 10px 0 0 10px; } .blot tbody tr.link td:last-child { border-radius: 0 10px 10px 0; }
.blot .name { font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.blot .sub { display: block; font-size: 11.5px; color: var(--mute); margin-top: 2px; font-family: var(--mono); }
.blot .sym { color: var(--ink); font-weight: 500; }
.blot .pos.long { color: var(--up); } .blot .pos.short { color: var(--down); } .blot .pos.flat { color: var(--mute); }
.blot .spark { width: 84px; height: 22px; display: block; }
.blot .arrow { color: var(--mute-2); }
.blot tr:hover .arrow { color: var(--acc); }
.blot .empty { padding: 26px 0; color: var(--mute); font-family: var(--sans); font-size: 14px; }
.blot .empty a { color: var(--acc); }
.blot .hash { color: var(--mute); }
.blot a.tx { color: var(--acc); }
.blot a.tx:hover { text-decoration: underline; }
.blot tr.open td { background: var(--card-2); }
.blot td.rec { padding: 0; }
.blot td.rec pre { margin: 0; padding: 14px 16px 16px; font: 12px/1.5 var(--mono); color: var(--ink-2); white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; background: var(--bg); border-radius: 12px; }
.wrapx { overflow-x: auto; }
.note { margin: 12px 0 10px; font-size: 12.5px; color: var(--mute); line-height: 1.5; }

/* the three-way readout */
.tri { display: inline-grid; grid-template-columns: repeat(3, 1fr); gap: 3px; width: 72px; height: 6px; vertical-align: middle; margin-right: 10px; }
.tri i { display: block; height: 100%; background: var(--mute-2); position: relative; overflow: hidden; border-radius: 3px; }
.tri i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--ink-2); border-radius: 3px; }
.tri i.long::after { background: var(--up); } .tri i.short::after { background: var(--down); }
.tri i.is-pick::after { background: var(--ink); }
.tri i.long.is-pick::after { background: var(--up); } .tri i.short.is-pick::after { background: var(--down); }

/* columns */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
@media (max-width: 1040px) { .cols { grid-template-columns: 1fr; } }

/* rules */
.rules { display: grid; grid-template-columns: 150px 1fr; gap: 0; font-size: 14px; margin: 0; }
.rules dt { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--acc); font-family: var(--mono); font-size: 12px; }
.rules dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); max-width: 74ch; }
.rules dt:nth-last-child(2), .rules dd:last-child { border-bottom: 0; }
.rules dd b { color: var(--ink); font-weight: 500; font-family: var(--mono); font-size: 12.5px; }
@media (max-width: 720px) { .rules { grid-template-columns: 1fr; } .rules dt { border-bottom: 0; padding-bottom: 2px; } }

/* inner pages */
.head { padding: 40px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.8vw, 44px); letter-spacing: -0.03em; line-height: 1.05; }
.head .sub { margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--mute); display: flex; gap: 14px; flex-wrap: wrap; }
.head .sub a { color: var(--acc); }
.crumb { font-family: var(--mono); font-size: 12px; color: var(--mute); margin-bottom: 14px; }
.crumb a:hover { color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kpis > div { padding: 20px 22px; background: var(--card); border-radius: var(--r); }
.kpis .k { font-size: 13px; color: var(--ink-2); }
.kpis .v { font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: -0.025em; margin-top: 8px; line-height: 1; }
.kpis .s { font-family: var(--mono); font-size: 12px; color: var(--mute); margin-top: 8px; }
@media (max-width: 720px) { .kpis { grid-template-columns: 1fr; } }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; margin-top: 14px; }
.two > div > .sec:first-child { margin-top: 0; }
@media (max-width: 1000px) { .two { grid-template-columns: 1fr; } }
.box { background: var(--card); border-radius: var(--r); padding: 22px 24px; }
.box h3 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.box h3 .m { color: var(--mute); font-weight: 400; }
.field { margin-top: 14px; }
.field label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-bottom: 7px; }
.in { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.in:focus-within { box-shadow: inset 0 0 0 1px rgba(249, 94, 157, .6); }
.in input, .in select { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 500 15px var(--mono); height: 100%; }
.in select { font: 400 14px var(--sans); }
.in .unit { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.in .max { font-family: var(--mono); font-size: 12px; color: var(--acc); cursor: pointer; }
textarea.ta { width: 100%; min-height: 78px; resize: vertical; border: 0; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); color: var(--ink); font: 400 14px/1.5 var(--sans); padding: 10px 12px; outline: 0; }
textarea.ta:focus { box-shadow: inset 0 0 0 1px rgba(249, 94, 157, .6); }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 999px; }
.seg button { flex: 1; height: 36px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--card-3); color: var(--ink); }
.seg button[disabled] { opacity: .3; cursor: not-allowed; }
input[type="range"] { width: 100%; accent-color: var(--acc); }
.lines { font-family: var(--mono); font-size: 12.5px; }
.lines div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lines div:last-child { border-bottom: 0; }
.lines div span:first-child { color: var(--mute); }
.lines div span:last-child { text-align: right; word-break: break-all; }
.lines a { color: var(--acc); }
.crit { margin-top: 4px; }
.crit > div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.crit > div:last-child { border-bottom: 0; }
.crit b { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--mute); }
.crit .long b { color: var(--up); } .crit .short b { color: var(--down); }
.chart { height: 150px; margin: 4px 0 10px; }
.chart svg { width: 100%; height: 100%; }
.spark { display: block; }
pre.code { margin: 4px 0 10px; font: 12px/1.5 var(--mono); color: var(--ink-2); white-space: pre-wrap; word-break: break-word; padding: 14px; border-radius: 14px; background: var(--bg); max-height: 420px; overflow: auto; }

/* toast, sheet */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(12px); opacity: 0; background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 999px; font-size: 14px; z-index: 60; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translateX(-50%); }
.toast.is-bad { background: var(--down); color: #1a0508; }
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet { width: 100%; max-width: 400px; background: var(--card); border-radius: 22px; padding: 22px; }
.sheet h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.wals { display: grid; gap: 6px; margin-top: 10px; }
.wal { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--card-2); text-align: left; font-size: 15px; }
.wal:hover { background: var(--card-3); }
.wal img, .wal .wal-ico { width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.wal small { margin-left: auto; color: var(--mute); font-family: var(--mono); font-size: 11px; }
.sheet .acct { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--card-2); margin-top: 6px; }
.sheet .acct .id { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--acc), var(--acc-2)); flex: none; }
.sheet .acct .a { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.sheet .acct .b { font-family: var(--mono); font-size: 11.5px; color: var(--mute); margin-top: 2px; }

footer { margin-top: 40px; padding: 26px 0 44px; color: var(--mute); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink-2); } footer a:hover { color: var(--ink); }
footer .fl { display: flex; gap: 18px; }

/* motion */
.has-motion [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 40ms); }
.has-motion [data-reveal].is-in { opacity: 1; transform: none; }
