/*
 * Stockimus app stylesheet (css/app.css), for /app. The layout and components of the original app, one for one,
 * in the Stockimus palette: red is the brand and the yToken (the drip), blue is the pToken (the price) and fixed
 * rates. Small red text uses --acc-hi. Light theme is the app's toggle (html[data-theme="light"]).
 */
:root {
  --bg: #0A0909; --s1: #121010; --s2: #191515; --s3: #221C1C;
  --hair: rgba(255,255,255,.06); --hair2: rgba(255,255,255,.10);
  --t1: #F4F1F1; --t2: #ADA5A5; --t3: #8A8181; /* t3 at 4.5:1 or better on bg and s1, so small labels stay readable */
  --acc: #E8141B; --acc-hi: #FF3B3B; --acc-ink: #FFFFFF; --acc-glow: rgba(232,20,27,.45);
  --acc-dim: rgba(232,20,27,.12); --acc-dim2: rgba(232,20,27,.18);
  --blue: #4FB4FF; --blue-hi: #8FD0FF; --blue-dim: rgba(79,180,255,.12); --blue-dim2: rgba(79,180,255,.2);
  --amb: #E3B93C; --amb-dim: rgba(227,185,60,.12); --up: #3DDC97; --down: #FF6B5A; --red: #FF6B5A;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Archivo", -apple-system, system-ui, sans-serif;
  --pixel: "Silkscreen", "Geist Mono", ui-monospace, monospace;
  --shadow: none;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F6F3F3; --s1: #FFFFFF; --s2: #F0ECEC; --s3: #E6E0E0;
  --hair: rgba(0,0,0,.07); --hair2: rgba(0,0,0,.12);
  --t1: #140F0F; --t2: #5E5555; --t3: #6B6262;
  --acc: #C8101A; --acc-hi: #C8101A; --acc-ink: #FFFFFF; --acc-dim: rgba(200,16,26,.09); --acc-dim2: rgba(200,16,26,.15);
  /* blue and amber a shade deeper than the first pass, so small numerals and "example" chips stay AA on tinted cards */
  --blue: #145FA6; --blue-hi: #145FA6; --blue-dim: rgba(22,103,179,.09); --blue-dim2: rgba(22,103,179,.15);
  --amb: #7A5800; --amb-dim: rgba(227,185,60,.16); --up: #0E7A4B; --down: #C0392B; --red: #C0392B;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.05);
  color-scheme: light;
}
:root[data-theme="light"] #bgfx { opacity: .55; }
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
body { background: var(--bg); color: var(--t1); font-family: var(--sans); font-size: 14.5px; line-height: 1.5; font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: var(--acc-hi); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--acc-hi); outline-offset: 2px; }
input { font: inherit; color: inherit; }
::selection { background: rgba(232,20,27,.3); }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.dim { color: var(--t3); }
.vb { color: var(--blue); } .vr { color: var(--acc-hi); }
.lnk { color: var(--acc-hi); text-decoration: underline; text-underline-offset: 3px; min-height: 0; }
/* the design pass: flat buttons, three levels, one press motion */
.btnp:hover:not(:disabled) { filter: brightness(1.08); } .btnp:active:not(:disabled), .btns:active:not(:disabled), .btn2:active:not(:disabled), .acts button:active:not(:disabled) { transform: translateY(1px); filter: brightness(.96); }
.btnp, .btns, .btn2, .acts button { transition: transform .12s, filter .12s, background .12s; } @media (prefers-reduced-motion: reduce) { .btnp, .btns, .btn2, .acts button { transition: none; } }
.btns, .btn2 { border: 1px solid var(--hair2); }
.btn2, a.btnp, a.btns, span.btnp, span.btns { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; text-decoration: none; white-space: nowrap; line-height: 1; }
.btns:hover:not(:disabled), .btn2:hover:not(:disabled) { background: var(--s3); }
.acts button.hi, .acts a.hi { background: var(--acc-dim); color: var(--acc-hi); border-color: rgba(0,0,0,0); } .acts button.hi:hover, .acts a.hi:hover { background: var(--acc-dim2); }
/* the pixel grid lives on the login page only, desktop only */
body:not(.atlogin) #bgfx, body:not(.atlogin) #bgmark { display: none; } @media (max-width: 900px) { #bgfx, #bgmark { display: none; } }
body.atlogin .a2hs { display: none; }
#bgfx, #bgmark { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
#bgmark { transition: opacity .25s linear; opacity: .5; }
.side .nav i { display: none; }
/* one header button: Account · address */
.bar .acctb { height: 40px; padding: 0 16px; border-radius: 10px; background: var(--s2); border: 1px solid var(--hair2); color: var(--t1); font-size: 14px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; } .bar .acctb:hover { background: var(--s3); } .bar .acctb .ad { font-family: var(--mono); font-size: 12.5px; color: var(--t2); }
.acctbtn .bal.word { font-family: var(--sans); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: rgba(0,0,0,0); display: inline-block; margin-right: 8px; animation: spin .8s linear infinite; vertical-align: -3px; } @keyframes spin { to { transform: rotate(360deg); } } @media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.login .facts { font-size: 13px; color: var(--t2); line-height: 1.6; max-width: 520px; }
.acchead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 4px 0 20px; flex-wrap: wrap; } .acchead h1 { font-size: 40px; font-weight: 400; letter-spacing: -.02em; margin: 0 0 6px; } .acchead .tot { font-family: var(--mono); font-size: 32px; } .acchead .line { font-size: 13.5px; color: var(--t2); margin-top: 4px; } .acchead .money { display: flex; gap: 8px; } .acchead .money .btnp, .acchead .money .btn2 { width: auto; height: 48px; padding: 0 20px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.card, .kpi, .door, .step, .rows, .pos, .sum, .amt, .stock button, .pw button, .quick button, .mk, .stat, .chart, .tbox, .card2 { box-shadow: var(--shadow); }

/* ---- shell ---- */
.app { min-height: 100vh; display: grid; grid-template-rows: calc(64px + env(safe-area-inset-top)) 1fr; max-width: 1680px; margin: 0 auto; }
.bar { display: grid; grid-template-columns: 232px 1fr auto; align-items: center; border-bottom: 1px solid var(--hair); position: sticky; top: 0; z-index: 20; background: var(--bg); padding-top: env(safe-area-inset-top); height: calc(64px + env(safe-area-inset-top)); }
.havebox { background: var(--s1); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; display: grid; gap: 4px; border: 1px solid var(--hair2); } .havebox .k { font-size: 13px; color: var(--t3); } .havebox .v { font-family: var(--mono); font-size: 34px; color: var(--t1); line-height: 1.2; } .havebox .f { font-size: 13px; color: var(--t2); } .havebox .go { margin-top: 6px; font-size: 13px; color: var(--acc-hi); justify-self: start; }
/* add to home screen: one quiet line above the tabs, once per phone */
.a2hs { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 25; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--s2); border: 1px solid var(--hair2); box-shadow: var(--shadow); font-size: 13.5px; color: var(--t2); }
.a2hs img { width: 36px; height: 36px; border-radius: 9px; flex: none; } .a2hs b { color: var(--t1); font-weight: 500; } .a2hs svg { vertical-align: -3px; margin: 0 2px; }
.a2hs .go { height: 44px; padding: 0 14px; border-radius: 10px; background: var(--acc); color: var(--acc-ink); font-weight: 600; font-size: 13px; flex: none; } .a2hs .x { width: 44px; height: 44px; border-radius: 10px; color: var(--t3); flex: none; margin-left: auto; display: flex; align-items: center; justify-content: center; } .a2hs .x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--t1); min-width: 0; }
.brand img { width: 28px; height: 28px; border-radius: 8px; flex: none; display: block; }
.brand .word { font-family: var(--pixel); font-weight: 700; font-size: 12px; letter-spacing: .24em; color: var(--t1); white-space: nowrap; }
.bar .brand { padding-left: 24px; }
.bar .crumb { padding: 0 24px; font-size: 13px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .crumb b { color: var(--t2); font-weight: 400; }
.bar .right { padding-right: 24px; display: flex; align-items: center; gap: 8px; }
.acct { position: relative; } .acct .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--s1); border: 1px solid var(--hair2); border-radius: 14px; box-shadow: 0 18px 44px rgba(0,0,0,.32); padding: 6px; z-index: 60; }
.acct .menu .sub { font-family: var(--mono); font-size: 11.5px; color: var(--t3); padding: 8px 12px 6px; }
.acct .menu button, .acct .menu a { display: flex; align-items: center; width: 100%; min-height: 40px; text-align: left; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--t1); } .acct .menu button:hover, .acct .menu a:hover { background: var(--s2); } .acct .menu .out { color: var(--t2); }
.mode { display: inline-flex; background: var(--s1); border-radius: 999px; padding: 3px; height: 36px; border: 1px solid var(--hair); }
.mode button { height: 28px; padding: 0 12px; border-radius: 999px; display: flex; align-items: center; font-size: 13px; color: var(--t2); white-space: nowrap; }
.mode button.on { background: var(--s3); color: var(--t1); }
.icobtn { width: 40px; height: 40px; border-radius: 999px; background: var(--s1); border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; color: var(--t2); flex: none; }
.icobtn svg { width: 17px; height: 17px; } .icobtn:hover { color: var(--t1); }
.cols { display: grid; grid-template-columns: 232px 1fr 348px; min-height: calc(100vh - 64px); }
.cols.norail { grid-template-columns: 264px minmax(0, 1fr); }
.side { border-right: 1px solid var(--hair); padding: 24px 16px; display: flex; flex-direction: column; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; align-self: start; scrollbar-width: none; }
.side .nav { flex: 1; }
.foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 0 0; }
.fi { height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--t2); background: var(--s1); border: 1px solid var(--hair2); } .fi:hover, .fi.on { color: var(--t1); border-color: var(--t3); }
.fi svg { width: 16px; height: 16px; flex: none; } .fi svg.solid { width: 14px; height: 14px; fill: currentColor; } .fi.coin img { width: 20px; height: 20px; border-radius: 6px; display: block; }
.acctbtn { margin-top: 20px; display: block; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--s1); color: var(--t1); border: 1px solid var(--hair2); transition: border-color .15s; }
.acctbtn:hover, .acctbtn.on { border-color: var(--acc); } .acctbtn .r1 { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; color: var(--t2); } .acctbtn .chev { color: var(--t3); font-size: 18px; line-height: 1; }
.acctbtn .bal { display: block; font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: -.02em; margin: 6px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .acctbtn small { display: block; font-size: 12px; color: var(--t3); }
.side .nav a, .side .nav button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--t2); font-size: 14px; width: 100%; }
.side .nav a:hover { color: var(--t1); }
.side .nav a.on, .side .nav button.on { background: var(--s1); color: var(--t1); box-shadow: inset 2px 0 0 var(--acc); }
.side .h { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); margin: 20px 12px 6px; padding-top: 16px; border-top: 1px solid var(--hair); cursor: default; user-select: none; }
.stabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--s1); border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.stabs button { height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; color: var(--t2); }
.stabs button.on { background: var(--s3); color: var(--t1); }
.main { padding: 24px; min-width: 0; }
h2.sec { font-size: 13px; color: var(--t3); font-weight: 400; margin: 0 0 12px; min-height: 20px; line-height: 20px; }
.sech { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 20px; margin-bottom: 12px; }
.sech .note { font-size: 12.5px; color: var(--t3); display: flex; gap: 8px; align-items: center; }
.lh { font-size: 17px; font-weight: 600; }
.rate { display: flex; justify-content: space-between; gap: 10px; min-height: 40px; align-items: center; border-top: 1px solid var(--hair); font-size: 13.5px; }
.rate:first-of-type, h2.sec + .rate { border-top: 0; }
.rate em { font-style: normal; font-family: var(--mono); color: var(--t1); text-align: right; } .rate em.dim { color: var(--t3); } .rate em a { color: var(--acc-hi); font-family: var(--sans); }
.side .rate { min-height: 36px; font-size: 13px; }
.side h2.sec { margin: 18px 0 6px; }

/* ---- shared components ---- */
h1 { font-size: 27px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; }
.sub { font-size: 15px; color: var(--t2); line-height: 1.5; margin: 0 0 18px; }
.pill { margin-left: auto; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--acc-dim); color: var(--acc-hi); font-size: 12px; display: flex; align-items: center; font-weight: 500; }
.rows { background: var(--s1); border-radius: 16px; overflow: hidden; margin-bottom: 24px; border: 1px solid var(--hair2); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 140px 136px 300px; column-gap: 16px; align-items: center; min-height: 76px; padding: 0 18px; border-top: 1px solid var(--hair); font-size: 14px; }
.row > * { min-width: 0; }
.row.head { min-height: 40px; border-top: 0; font-size: 12px; color: var(--t3); }
.row b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row small { color: var(--t3); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .row small em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--t2); background: var(--s2); border-radius: 6px; padding: 1px 6px; margin: 0 2px; }
.row .n { font-family: var(--mono); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.acts { display: flex; gap: 8px; justify-content: flex-end; } .acts > * { min-width: 88px; padding: 0 14px; white-space: nowrap; }
.acts button { height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--s1); border: 1px solid var(--hair2); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; color: var(--t1); }
.acts button:hover { background: var(--s2); border-color: var(--t3); }
.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.door { background: var(--s1); border-radius: 16px; padding: 18px; min-height: 148px; display: grid; grid-template-rows: 36px auto 1fr; row-gap: 10px; align-content: start; text-align: left; transition: background .15s; border: 1px solid var(--hair2); }
.door:hover { background: var(--s2); }
.door .ico { min-width: 36px; width: max-content; padding: 0 6px; height: 36px; border-radius: 10px; background: var(--s3); display: flex; align-items: center; justify-content: center; font-family: var(--mono); color: var(--acc-hi); font-size: 12px; }
.door .ico.vb { color: var(--blue); } .door .ico svg { width: 18px; height: 18px; }
.door b { font-weight: 500; font-size: 14px; line-height: 22px; }
.door span { font-size: 12px; color: var(--t2); line-height: 1.4; }
.door.tool { min-height: 0; grid-template-rows: auto auto 1fr; row-gap: 10px; padding: 24px 26px 26px; } .door.tool > b { font-size: 18px; } .door.tool > span { font-size: 14px; line-height: 1.55; } .door.tool .w { color: var(--t1); }
.btnp { width: 100%; min-height: 48px; border-radius: 14px; background: var(--acc); color: var(--acc-ink); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; padding: 0 16px; text-align: center; transition: filter .15s; }
.btnp:disabled { background: var(--s3); color: var(--t2); cursor: default; filter: none; font-weight: 500; }
.btnp.off, .btns.off { background: var(--s2); color: var(--t2); border: 1px dashed var(--hair2); cursor: not-allowed; font-weight: 500; filter: none; }
.btns { width: 100%; min-height: 44px; border-radius: 12px; background: var(--s2); color: var(--t1); font-size: 14.5px; display: flex; align-items: center; justify-content: center; margin-top: 8px; padding: 0 14px; }
.btns:disabled { opacity: .55; cursor: default; }
.btn2 { min-height: 40px; border-radius: 12px; background: var(--s3); color: var(--t1); font-size: 14px; font-weight: 500; padding: 0 14px; }
.btn2.acc { background: var(--acc-dim); color: var(--acc-hi); border-color: rgba(0,0,0,0); }
.status { font-size: 13px; color: var(--t2); text-align: center; margin-top: 12px; min-height: 1.4em; line-height: 1.5; overflow-wrap: anywhere; }
.status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.status.ok { color: var(--t1); } .status.bad { color: var(--down); }
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--t1); color: var(--bg); font-size: 13.5px; padding: 10px 16px; border-radius: 12px; max-width: min(92vw, 520px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; } .toast.on { opacity: 1; transform: translate(-50%, 0); }
.q { font-size: 13px; color: var(--t3); margin: 20px 0 8px; }
.stock { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stock button { background: var(--s1); border-radius: 14px; padding: 14px 16px; min-height: 64px; border: 1px solid var(--hair); min-width: 0; }
.stock button.on { box-shadow: inset 0 0 0 1.5px var(--acc); background: var(--acc-dim); border-color: rgba(0,0,0,0); } .stock button:nth-child(odd):last-child { grid-column: 1 / -1; }
.stock b { display: block; font-size: 16px; font-weight: 500; } .stock span { font-size: 13px; color: var(--t2); } .stock em { font-style: normal; font-family: var(--mono); color: var(--blue); }
.stock button b .tag { font-style: normal; font-size: 10.5px; font-weight: 500; color: var(--amb); background: var(--amb-dim); border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: 1px; }
.amt { background: var(--s1); border-radius: 16px; padding: 18px; text-align: center; cursor: text; border: 1px solid var(--hair); min-width: 0; overflow: hidden; }
.amt .v { display: flex; align-items: center; justify-content: center; gap: 4px; font-family: var(--mono); font-size: 40px; font-weight: 500; letter-spacing: -.02em; max-width: 100%; }
.amt .v .pre, .amt .v .post { color: var(--t3); flex: none; } .amt .v .post { font-size: 20px; align-self: flex-end; margin-bottom: 9px; }
.amt input { background: none; border: 0; font-family: var(--mono); font-size: 40px; font-weight: 500; letter-spacing: -.02em; text-align: center; width: auto; min-width: max(2ch, 48px); max-width: min(240px, calc(100% - 4ch)); padding: 0; color: var(--t1); outline: none; }
.amt input::placeholder { color: var(--t3); } .amt .h { font-size: 13px; color: var(--t3); margin-top: 6px; min-height: 1.4em; }
.quick { display: flex; gap: 12px; margin-top: 12px; }
.quick button { flex: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--s1); font-size: 13px; color: var(--t2); border: 1px solid var(--hair); min-width: 0; }
.quick button.on { background: var(--s3); color: var(--t1); }
.pw { display: flex; gap: 12px; }
.pw button { flex: 1; min-width: 0; background: var(--s1); border-radius: 14px; padding: 12px 8px; text-align: center; min-height: 66px; overflow: hidden; border: 1px solid var(--hair); }
.pw button.on { box-shadow: inset 0 0 0 1.5px var(--acc); background: var(--acc-dim); border-color: rgba(0,0,0,0); }
.pw b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pw span { display: block; font-family: var(--mono); font-size: 12px; color: var(--t3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pw button.on span { color: var(--acc-hi); }
.sum { background: var(--s1); border-radius: 16px; padding: 18px; min-width: 0; border: 1px solid var(--hair); }
.sum .l { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 14.5px; }
.sum .l:first-child { border-top: 0; padding-top: 0; }
.sum .l b { font-family: var(--mono); font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; } .sum .l b a { font-family: var(--sans); } .sum .l .k { color: var(--t2); flex: none; max-width: 44%; }
.flow > * { min-width: 0; }
.sum .big { text-align: center; padding: 6px 0 14px; }
.sum .big .v { font-family: var(--mono); font-size: 38px; font-weight: 500; color: var(--acc-hi); letter-spacing: -.02em; overflow-wrap: anywhere; line-height: 1.15; } .sum .big.vb .v { color: var(--blue); } .sum .big.vr .v { color: var(--acc-hi); } .sum .big .v.dim { color: var(--t3); } .sum .big .d { font-size: 13px; color: var(--t3); margin-top: 6px; }
.exnote { font-size: 12.5px; color: var(--t2); background: var(--amb-dim); border-radius: 10px; padding: 8px 10px; margin: 0 0 12px; line-height: 1.45; text-align: left; } .exnote .ex { margin: 0 6px 0 0; }
.ex { display: inline-block; font-style: normal; font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--amb); background: var(--amb-dim); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; line-height: 1.5; white-space: nowrap; }
.two { display: flex; gap: 10px; } .two > div { flex: 1; min-width: 0; background: var(--s1); border-radius: 16px; padding: 16px; border: 1px solid var(--hair); }
.two b { display: block; font-size: 14px; font-weight: 500; } .two .n { font-family: var(--mono); font-size: 26px; font-weight: 500; margin: 8px 0 2px; overflow-wrap: anywhere; } .two span { font-size: 12px; color: var(--t3); display: block; line-height: 1.4; }
/* the steps a loop or an unwind runs, one wallet confirmation each */
.stepl { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; text-align: left; counter-reset: s; }
.stepl li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; font-size: 13px; color: var(--t2); min-height: 28px; }
.stepl .si { width: 24px; height: 24px; border-radius: 50%; background: var(--s3); color: var(--t3); font-family: var(--mono); font-size: 11.5px; display: flex; align-items: center; justify-content: center; }
.stepl .si svg { width: 14px; height: 14px; }
.stepl li.run { color: var(--t1); } .stepl li.run .si { background: var(--acc); color: var(--acc-ink); animation: pulse 1.4s infinite; }
.stepl li.done .si { background: var(--blue-dim2); color: var(--blue); } .stepl li.done { color: var(--t2); }
.stepl li.fail .si { background: var(--acc-dim2); color: var(--down); } .stepl li.fail { color: var(--down); }
.stepl li.skip { opacity: .55; } .stepl li small { color: var(--t3); font-size: 11.5px; }
@media (prefers-reduced-motion: reduce) { .stepl li.run .si { animation: none; } }
/* the wallet list */
.wpick { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.wpick .box { width: 100%; max-width: 400px; max-height: calc(100dvh - 32px); overflow: auto; background: var(--s1); border: 1px solid var(--hair2); border-radius: 18px; padding: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.wpick .hd { display: flex; justify-content: space-between; align-items: center; } .wpick h3 { font-size: 17px; font-weight: 600; margin: 0; }
.wpick .x { width: 44px; height: 44px; margin-right: -8px; border-radius: 10px; color: var(--t2); display: flex; align-items: center; justify-content: center; } .wpick .x:hover { background: var(--s2); } .wpick .x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.wpick .sub { color: var(--t2); font-size: 13.5px; margin: 4px 0 10px; line-height: 1.45; }
.wpick .w { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 56px; border-radius: 12px; background: var(--s2); margin-top: 8px; text-align: left; color: var(--t1); } .wpick .w:hover { background: var(--s3); }
.wpick .w img, .wpick .w svg { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.wpick .w b { display: block; font-size: 14.5px; font-weight: 600; } .wpick .w span { display: block; font-size: 12.5px; color: var(--t3); margin-top: 2px; }
.wpick .none { font-size: 13.5px; color: var(--t2); background: var(--s2); border-radius: 12px; padding: 12px; margin-top: 8px; line-height: 1.45; }
@media (max-width: 600px) { .wpick { align-items: flex-end; padding: 0; } .wpick .box { max-width: none; border-radius: 18px 18px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); max-height: 90dvh; } }
.fine { font-size: 12.5px; color: var(--t3); text-align: center; margin-top: 14px; line-height: 1.5; }
.det { font-size: 13px; color: var(--t3); text-align: center; margin-top: 12px; } .det button { color: var(--t2); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.details { background: var(--s1); border-radius: 14px; padding: 14px 16px; font-size: 13px; color: var(--t2); line-height: 1.55; margin-top: 12px; border: 1px solid var(--hair); } .details a { color: var(--acc-hi); text-decoration: underline; text-underline-offset: 2px; } .details b { color: var(--t1); font-weight: 500; } .details h3 { font-size: 14px; font-weight: 600; color: var(--t1); margin: 0 0 4px; } .details h3 + p { margin: 0 0 12px; } .details p:last-child { margin-bottom: 0; }
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.flow .sum { position: sticky; top: 88px; }
.done { text-align: center; padding: 44px 0 24px; } .done h1 { font-size: 34px; }
.done.enter, .done.enter + .sum { animation: rise .36s cubic-bezier(.2, .8, .2, 1) both; } @keyframes rise { from { opacity: 0; transform: translateY(12px); } } @media (prefers-reduced-motion: reduce) { .done.enter, .done.enter + .sum { animation: none; } }
.done .tick.pop { animation: tickpop .5s cubic-bezier(.2, .9, .3, 1.35) .3s both; } @keyframes tickpop { from { transform: scale(.4); opacity: 0; } } @media (prefers-reduced-motion: reduce) { .done .tick.pop { animation: none; } }
.done .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--acc-dim); color: var(--acc-hi); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; } .done .tick svg { width: 34px; height: 34px; stroke-width: 2.4; }
.narrow { max-width: 560px; }
.warn { background: var(--amb-dim); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--amb); margin-top: 12px; line-height: 1.5; }
.empty { background: var(--s1); border-radius: 16px; padding: 22px 18px; text-align: center; color: var(--t2); font-size: 14px; line-height: 1.5; border: 1px solid var(--hair); }
.empty .row2, .row2 { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; } .row2 .btnp { width: auto; padding: 0 18px; min-height: 44px; } .row2 .btn2 { min-height: 44px; padding: 0 18px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px; }
.step { background: var(--s1); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-rows: 26px auto auto auto; row-gap: 6px; border: 1px solid var(--hair2); }
.step .n { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--acc-dim); color: var(--acc-hi); font-size: 12px; font-weight: 500; width: max-content; }
.step .n.done { background: var(--acc); color: var(--acc-ink); } .step .n svg { width: 14px; height: 14px; stroke-width: 2.4; }
.step b { font-weight: 500; font-size: 15px; line-height: 22px; } .step span { font-size: 13px; color: var(--t2); line-height: 1.45; }
.step .btnp, .step .btns { min-height: 40px; font-size: 13.5px; margin: 6px 0 0; width: auto; padding: 0 16px; justify-self: start; }
.welcome { background: var(--s1); border-radius: 20px; padding: 28px 32px; margin-bottom: 24px; border: 1px solid var(--hair); }
.welcome h1 { font-size: 26px; margin: 0 0 6px; } .welcome p { color: var(--t2); font-size: 14px; margin: 0; max-width: 64ch; }
.welcome.slim { padding: 20px 24px; margin-bottom: 16px; } .welcome.slim h1 { font-size: 22px; } .welcome.slim p { font-size: 13.5px; }
.step.lit { box-shadow: inset 0 0 0 1.5px var(--acc); }
.hero { padding: 8px 0 20px; } .hero h1 { font-size: 34px; font-weight: 500; letter-spacing: -.5px; margin: 0 0 12px; } .hero p { margin: 0 0 8px; color: var(--t2); font-size: 15px; line-height: 1.6; max-width: 76ch; } .hero p b { color: var(--t1); font-weight: 500; }
.strip { background: var(--acc-dim); color: var(--t1); border-radius: 14px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 16px; line-height: 1.5; border: 1px solid rgba(232,20,27,.22); } .strip b { font-weight: 600; } .strip a { color: var(--acc-hi); font-weight: 500; margin-left: 6px; }
.strip.warn { background: color-mix(in srgb, var(--down) 14%, var(--s1)); color: var(--t1); margin-top: 0; } .strip.warn b { color: var(--down); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pcard { background: var(--s1); border-radius: 18px; padding: 20px 22px; border: 1px solid var(--hair2); box-shadow: var(--shadow); min-width: 0; }
.ph { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 14px; } .ph b, .ph .sym, .ph .tag { white-space: nowrap; } .ph b { font-size: 19px; font-weight: 500; } .ph .sym { font-family: var(--mono); font-size: 12px; color: var(--t2); background: var(--s3); border-radius: 999px; padding: 2px 8px; }
.ph .slogo { width: 26px; height: 26px; border-radius: 50%; background: var(--s3); flex: none; box-shadow: 0 0 0 1px var(--hair2), 0 0 12px rgba(232,20,27,.18); }
.ph .tag { font-style: normal; font-size: 11px; font-weight: 500; color: var(--amb); background: var(--amb-dim); border-radius: 999px; padding: 3px 8px; margin-left: 0; }
.pp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; } .pp > div { background: var(--s2); border-radius: 12px; padding: 10px 12px; border: 1px solid var(--hair); min-width: 0; } .pp small { display: block; font-size: 11.5px; color: var(--t3); margin-bottom: 2px; } .pp b { font-family: var(--mono); font-size: 17px; font-weight: 500; } .pp em { font-style: normal; font-size: 12px; color: var(--blue); margin-left: 8px; }
.pr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; } .pr > div { min-width: 0; } .pr small { display: block; font-size: 11.5px; color: var(--t3); } .pr b { display: block; font-family: var(--mono); font-size: 24px; font-weight: 500; margin: 2px 0; } .pr span { font-size: 12px; color: var(--t2); }
.pb { display: flex; gap: 8px; flex-wrap: wrap; } .pb .btnp { width: auto; min-height: 44px; padding: 0 18px; } .pb .btn2 { min-height: 44px; padding: 0 14px; }
.tick { display: flex; gap: 12px; align-items: flex-start; background: var(--s1); border-radius: 14px; padding: 14px 16px; margin-top: 12px; cursor: pointer; border: 1px solid var(--hair2); } .tick input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--acc); flex: none; } .tick b { display: block; font-size: 14px; font-weight: 500; } .tick small { display: block; font-size: 12.5px; color: var(--t2); line-height: 1.5; margin-top: 2px; }
.intro { background: var(--s1); border-radius: 20px; padding: 22px 26px; margin: 0 0 20px; border: 1px solid var(--hair); } .intro > b { display: block; font-size: 19px; font-weight: 500; margin-bottom: 8px; } .intro p { margin: 0 0 8px; color: var(--t2); font-size: 14px; line-height: 1.6; max-width: 78ch; } .intro p:last-child { margin: 0; } .intro p b { color: var(--t1); font-weight: 500; }
.addm { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.addm .wait { grid-column: 1 / -1; }
.card2 { background: var(--s1); border-radius: 16px; padding: 22px; margin: 0; display: flex; flex-direction: column; border: 1px solid var(--hair2); }
.card2 h3 { font-size: 15px; font-weight: 500; margin: 0 0 6px; } .card2 p { font-size: 13.5px; color: var(--t2); margin: 0 0 12px; line-height: 1.5; }
.card2 ol { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--t2); line-height: 1.7; } .card2 ol b { color: var(--t1); font-weight: 500; }
.addr { background: var(--bg); border-radius: 12px; padding: 4px 4px 4px 14px; font-family: var(--mono); font-size: 13px; color: var(--t1); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.addr button { color: var(--acc-hi); font-family: var(--sans); font-size: 13px; flex: none; min-height: 40px; padding: 0 12px; border-radius: 9px; } .addr button:hover { background: var(--s2); }
.wait { border: 1px dashed var(--hair2); border-radius: 16px; padding: 22px; text-align: center; color: var(--t2); font-size: 13.5px; line-height: 1.5; }
.wait b { color: var(--t1); display: block; margin-bottom: 4px; font-weight: 500; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); margin-right: 8px; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
/* waiting: a 3x3 pixel grid with a wave through it, the label shimmering beside it, and a live elapsed timer */
.pix { display: inline-grid; grid-template-columns: repeat(3, 4px); gap: 1.5px; vertical-align: middle; position: relative; top: -1px; margin-right: 9px; }
.pix i { display: block; width: 4px; height: 4px; border-radius: 1px; background: currentColor; opacity: .15; animation: pixon 650ms ease-in-out infinite; }
.pix i:nth-child(1), .pix i:nth-child(5), .pix i:nth-child(7) { animation-delay: 90ms; } .pix i:nth-child(2), .pix i:nth-child(6), .pix i:nth-child(8) { animation-delay: 180ms; }
.pix i:nth-child(3), .pix i:nth-child(9) { animation-delay: 270ms; } .pix i:nth-child(4) { animation-delay: 0ms; }
@keyframes pixon { 0%, 100% { opacity: .15; } 40% { opacity: 1; } }
.shm { background-image: linear-gradient(90deg, var(--t2) 35%, var(--t1) 50%, var(--t2) 65%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: rgba(0,0,0,0); animation: shm 1.4s linear infinite; }
@keyframes shm { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.ela { font-family: var(--mono); font-size: 12px; color: var(--t3); margin-left: 8px; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .pix i { animation: none; opacity: .5; } .shm { animation: none; color: var(--t2); } .dot { animation: none; } }
.help p { color: var(--t2); font-size: 14px; line-height: 1.6; margin: 0 0 12px; max-width: 70ch; } .help h3 { font-size: 16px; font-weight: 500; margin: 20px 0 6px; } .help a { color: var(--acc-hi); }
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 980px; }
.skel { display: inline-block; height: 1em; border-radius: 6px; background: linear-gradient(90deg, var(--s2), var(--hair2), var(--s2)); background-size: 200% 100%; animation: skel 1.4s linear infinite; vertical-align: middle; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } } @media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
/* $STOCKIMUS */
.coin .coinh { display: flex; gap: 18px; align-items: center; margin: 4px 0 18px; } .coin .coinh img { width: 64px; height: 64px; border-radius: 16px; flex: none; box-shadow: 0 0 0 1px var(--hair2), 0 0 28px rgba(232,20,27,.25); } .coin .coinh h1 { margin-bottom: 6px; } .coin .coinh .sub { margin: 0; }
.coin .coinb { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .coin .coinb .btns { margin-top: 0; } .coin .coinb .btn2 { grid-column: 1 / -1; min-height: 44px; }

/* ---- login ---- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; max-width: 1680px; margin: 0 auto; }
.login .l, .login .r { display: grid; grid-template-rows: 64px 1fr 64px; padding: 48px 64px; min-width: 0; }
.login .brand img { width: 32px; height: 32px; }
.login .mid { align-self: center; } .login h1 { font-size: 44px; margin: 0 0 12px; max-width: 12ch; } .login .sub { font-size: 17px; max-width: 40ch; margin: 0; }
.login .r { border-left: 1px solid var(--hair); justify-items: center; }
.card { width: 100%; max-width: 420px; background: var(--s1); border-radius: 20px; padding: 32px; grid-row: 2; align-self: center; border: 1px solid var(--hair2); }
.card h2 { font-size: 22px; font-weight: 500; margin: 0 0 6px; } .card p { color: var(--t2); font-size: 14px; margin: 0 0 22px; } .card .fine { margin: 12px 0 0; }

/* ---- markets, market, pools ---- */
.mk { background: var(--s1); border-radius: 16px; overflow: hidden; margin-bottom: 24px; border: 1px solid var(--hair2); }
.mk .r { display: grid; grid-template-columns: minmax(220px, 1fr) 100px 100px 100px 110px 100px; column-gap: 14px; align-items: center; min-height: 64px; padding: 0 18px; border-top: 1px solid var(--hair); font-size: 14px; text-align: left; width: 100%; }
.mk .r:first-child { min-height: 40px; border-top: 0; font-size: 12px; color: var(--t3); }
.mk button.r:hover { background: var(--s2); }
.mk .r > * { min-width: 0; }
.mk .r b { font-weight: 500; display: block; white-space: nowrap; } .mk .r small { color: var(--t3); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk .n { font-family: var(--mono); } .mk .right { text-align: right; }
.mk.five .r { grid-template-columns: minmax(220px, 1fr) 110px 90px 100px 100px 120px; }
.mk .pill { display: inline-flex; align-items: center; white-space: nowrap; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--s3); color: var(--t1); font-size: 12.5px; font-weight: 500; margin-left: auto; width: max-content; } .mk .pill.g { background: var(--acc); color: var(--acc-ink); }
.search { display: flex; align-items: center; gap: 10px; height: 44px; background: var(--s1); border-radius: 12px; padding: 0 14px; margin-bottom: 12px; color: var(--t3); max-width: 360px; box-shadow: var(--shadow); border: 1px solid var(--hair); }
.search svg { width: 16px; height: 16px; flex: none; } .search input { background: none; border: 0; outline: none; width: 100%; height: 100%; font-size: 14px; min-width: 0; }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--s3); color: var(--t2); margin-left: 8px; vertical-align: middle; font-weight: 500; }
.mhead { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin-bottom: 16px; }
.mhead h1 { font-size: 24px; margin: 0; } .mhead .sub { margin: 4px 0 0; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; } .stats.four { grid-template-columns: repeat(4, 1fr); }
.doors.three { grid-template-columns: repeat(3, 1fr); } .doors.four { grid-template-columns: repeat(4, 1fr); }
.stat { background: var(--s1); border-radius: 14px; padding: 14px 16px; min-height: 76px; display: grid; grid-template-rows: auto 1fr; row-gap: 6px; border: 1px solid var(--hair2); min-width: 0; }
.stat .k { font-size: 12px; color: var(--t3); line-height: 16px; } .stat .k .ex { font-size: 9.5px; margin-left: 4px; } .stat .v { font-family: var(--mono); font-size: 19px; font-weight: 500; align-self: center; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .stat .v .sm { display: block; font-size: 11px; color: var(--t3); }
.mgrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: stretch; margin-bottom: 16px; }
.chart { background: var(--s1); border-radius: 16px; padding: 18px; display: grid; grid-template-rows: auto 1fr 20px; row-gap: 12px; min-height: 420px; border: 1px solid var(--hair2); min-width: 0; }
.cmsg { display: flex; align-items: center; justify-content: center; color: var(--t3); font-size: 13px; height: 100%; text-align: center; padding: 0 16px; }
.tabs2 { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .tabs2 .lg { min-height: 28px; padding: 0 10px; border-radius: 8px; background: var(--s3); font-size: 12px; display: inline-flex; align-items: center; color: var(--t1); white-space: nowrap; }
.tabs2 .sp { margin-left: auto; display: flex; gap: 2px; align-items: center; background: var(--s2); border-radius: 9px; padding: 2px; } .tabs2 .sp button { min-height: 30px; min-width: 40px; padding: 0 8px; border-radius: 7px; font-size: 12px; color: var(--t3); display: flex; align-items: center; justify-content: center; } .tabs2 .sp button.on { background: var(--s3); color: var(--t1); }
.tabs2 .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--blue); margin-right: 6px; } .tabs2 .sw.sh { background: var(--t2); } .tabs2 .sw.yt { background: var(--acc-hi); }
.cwrap { position: relative; height: 100%; min-height: 0; } .cwrap svg { position: absolute; inset: 0; }
.chart svg { width: 100%; height: 100%; overflow: visible; } .chart .x { display: flex; justify-content: space-between; font-size: 11px; color: var(--t3); font-family: var(--mono); }
.cl-y { position: absolute; left: 0; transform: translateY(-100%); padding-bottom: 3px; font-family: var(--mono); font-size: 11px; color: var(--t3); pointer-events: none; }
.cl-t { position: absolute; right: 0; transform: translateY(-50%); font-family: var(--mono); font-size: 11.5px; font-weight: 500; padding: 2px 7px; border-radius: 6px; background: var(--s1); pointer-events: none; white-space: nowrap; }
.cl-t.sh { color: var(--t1); } .cl-t.pt, .cl-t.gap { color: var(--blue); } .cl-t.gap { background: var(--blue-dim); } .cl-t.yt { color: var(--acc-hi); }
.cl-r { position: absolute; right: 0; font-family: var(--mono); font-size: 11px; color: var(--blue); pointer-events: none; padding: 3px 0; } .cl-n { position: absolute; font-family: var(--mono); font-size: 11px; color: var(--t3); pointer-events: none; transform: translateX(-50%); bottom: 0; }
/* a pool position: the chart is the instrument, the numbers sit beside it */
.pos-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; } .pos-head h1 { font-size: 24px; margin: 0; } .pos-head .id { font-family: var(--mono); font-size: 12.5px; color: var(--t3); } .pos-head .badge { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--blue-dim); color: var(--blue); } .pos-head .badge.off { background: var(--s3); color: var(--t2); }
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; box-shadow: none; }
.pos .chart { min-height: 380px; grid-template-rows: auto 1fr auto; } .pos .chart .cap { font-size: 12px; color: var(--t3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .pos .chart .cap b { color: var(--t2); font-weight: 500; }
.pside { display: grid; gap: 12px; } .pstats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .pstats .stat { grid-template-rows: auto auto auto; } .pstats .stat .v { font-size: 20px; } .pstats .stat small { font-size: 11.5px; color: var(--t3); line-height: 1.4; }
.rangebar { background: var(--s1); border-radius: 14px; padding: 14px 16px; border: 1px solid var(--hair2); box-shadow: var(--shadow); } .rangebar .k { font-size: 12px; color: var(--t3); margin-bottom: 10px; } .rangebar .track { position: relative; height: 6px; border-radius: 3px; background: var(--s3); } .rangebar .band { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--blue); opacity: .55; } .rangebar .now { position: absolute; top: -5px; width: 2px; height: 16px; background: var(--t1); transform: translateX(-1px); } .rangebar .ends { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--t3); margin-top: 8px; } .rangebar .ends b { color: var(--t1); font-weight: 500; } .rangebar p { font-size: 12.5px; color: var(--t2); line-height: 1.5; margin: 10px 0 0; }
.pacts { display: grid; gap: 8px; } .pacts .btn2 { min-height: 44px; display: flex; align-items: center; justify-content: center; background: var(--s1); border: 1px solid var(--hair2); box-shadow: var(--shadow); font-weight: 500; }
.tbox { background: var(--s1); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; border: 1px solid var(--hair2); min-width: 0; }
.tpart { display: flex; flex-direction: column; flex: 1; }
.seg3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; background: var(--s2); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.seg3 button { min-height: 44px; flex-direction: column; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 13.5px; color: var(--t2); min-width: 0; } .seg3 button.on { background: var(--s3); color: var(--t1); }
.seg3 button small { display: block; font-size: 10.5px; color: var(--t3); line-height: 1; margin-top: 3px; font-weight: 400; } .seg3 button.on small { color: var(--t2); }
.tbox .why { margin: -6px 0 12px; font-size: 12.5px; color: var(--t2); line-height: 1.45; min-height: 36px; }
.bs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--s2); border-radius: 11px; padding: 3px; margin-bottom: 14px; }
.bs .th { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 8px; background: var(--s3); box-shadow: var(--shadow); transform-origin: 0 50%; } .bs .th.r { left: 50%; }
:root[data-theme="light"] .bs .th { background: var(--s1); }
.bs button { position: relative; z-index: 1; min-height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 13.5px; background: rgba(0,0,0,0); color: var(--t3); } .bs button.on { color: var(--t1); font-weight: 500; }
.fld { background: var(--bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; min-width: 0; }
.fld .t { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--t3); } .fld .t button { color: var(--acc-hi); min-height: 32px; padding: 0 2px; }
.fld .m { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.fld .m input { background: none; border: 0; font-family: var(--mono); font-size: 24px; font-weight: 500; width: 100%; min-width: 0; flex: 1; outline: none; }
.fld .m .a { font-family: var(--mono); font-size: 24px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; } .fld .m .a.dim { color: var(--t3); } .fld .m .tk { background: var(--s2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; flex: none; }
.tkpick { display: inline-flex; gap: 4px; flex: none; } .tkpick .tk { background: none; border: 1px solid var(--hair2); color: var(--t2); cursor: pointer; min-height: 36px; } .tkpick .tk.on { background: var(--s2); border-color: rgba(0,0,0,0); color: var(--t1); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--t3); min-height: 26px; align-items: center; } .kv b { color: var(--t1); font-family: var(--mono); font-weight: 500; text-align: right; } .kv b.vb { color: var(--blue); } .kv .path { font-size: 11.5px; color: var(--t2); }
.tbox .btnp { min-height: 48px; font-size: 15px; margin-top: auto; } .tbox .tpart .btnp { margin-top: 12px; }
.tbox .guided { margin: 10px 0 0; font-size: 12.5px; color: var(--t3); text-align: center; } .tbox .guided a { color: var(--acc-hi); display: inline-flex; align-items: center; gap: 2px; min-height: 32px; } .tbox .guided svg { width: 14px; height: 14px; }
.lpcard { background: var(--s1); border-radius: 16px; padding: 20px 22px; margin-bottom: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; box-shadow: var(--shadow); border: 1px solid var(--hair2); }
.lpcard .k { font-size: 12.5px; color: var(--blue); margin-bottom: 4px; } .lpcard h3 { margin: 0 0 6px; font-size: 20px; font-weight: 500; } .lpcard p { margin: 0; font-size: 13.5px; color: var(--t2); line-height: 1.5; max-width: 560px; } .lpcard p b { color: var(--t1); font-weight: 500; }
.lpn { display: flex; gap: 22px; margin-top: 12px; flex-wrap: wrap; } .lpn span { display: grid; } .lpn small { font-size: 11.5px; color: var(--t3); } .lpn b { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.lpa { display: grid; gap: 8px; min-width: 180px; } .lpa .btnp { min-height: 44px; } .lpa .btn2 { display: flex; align-items: center; justify-content: center; min-height: 44px; background: var(--s1); border: 1px solid var(--hair2); box-shadow: var(--shadow); font-weight: 500; }
.backing { background: var(--s1); border: 1.5px solid var(--acc); border-radius: 16px; padding: 18px 20px; margin-top: 12px; }
.backing > b { display: block; font-size: 12.5px; color: var(--acc-hi); font-weight: 500; } .backing .n { font-family: var(--mono); font-size: 28px; font-weight: 500; margin: 6px 0 4px; } .backing .n small { font-family: var(--sans); font-size: 14px; color: var(--t2); font-weight: 400; }
.backing > span { display: block; font-size: 13px; color: var(--t2); line-height: 1.5; } .bkb { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; } .bkb .btn2 { padding: 0 16px; min-height: 44px; }
.loopstrip { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px; background: linear-gradient(90deg, var(--acc-dim), var(--s1) 60%); border: 1px solid var(--hair2); border-radius: 16px; padding: 16px 20px; margin: 0 0 12px; color: inherit; transition: border-color .15s; } .loopstrip:hover { border-color: var(--acc); }
.loopstrip .lt > b { display: block; font-size: 12.5px; color: var(--acc-hi); font-weight: 500; } .loopstrip h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin: 4px 0; color: var(--t1); } .loopstrip .lt > span { display: block; font-size: 12.5px; color: var(--t2); line-height: 1.45; }
.loopstrip .fgs { display: flex; gap: 8px; } .loopstrip .fg { background: var(--bg); border: 1px solid var(--hair); border-radius: 12px; padding: 10px 14px; text-align: center; min-width: 96px; } .loopstrip .fg b { display: block; font-family: var(--mono); font-size: 17px; font-weight: 500; white-space: nowrap; color: var(--t1); } .loopstrip .fg b.vb { color: var(--blue); } .loopstrip .fg span { font-size: 11.5px; color: var(--t2); }
.loopstrip .cta { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 0 22px; border-radius: 12px; background: var(--acc); color: var(--acc-ink); font-weight: 600; font-size: 14px; white-space: nowrap; } .loopstrip .cta svg { width: 16px; height: 16px; }
.hint { font-size: 12.5px; color: var(--t3); margin: -12px 0 24px; }
.pos2 .row { grid-template-columns: minmax(0, 1.4fr) 1fr 1fr 1fr 1fr 216px; min-height: 56px; }
/* the theme toggle wipes the new theme out from the button; the default cross-fade is off so the circle is the whole effect */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* after a trade the button says Done while the loader's grid fills in, then the done card or status takes over */
.pix.fill i { animation: pixfill 80ms steps(1) forwards; animation-delay: calc((var(--k) - 1) * 70ms); }
@keyframes pixfill { to { opacity: 1; } }
.btnp.flashed, .btnp.flashed:disabled { color: var(--t1); text-shadow: none; background: var(--s2); } .btnp.flashed .pix { color: var(--acc-hi); }

/* the footer under every screen of the app */
.appfoot { max-width: 1680px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--t3); }
.appfoot .b { font-family: var(--pixel); font-weight: 700; letter-spacing: .2em; font-size: 11px; color: var(--t2); }
.appfoot a { color: var(--t2); min-height: 36px; min-width: 44px; padding: 0 6px; justify-content: center; display: inline-flex; align-items: center; } .appfoot a:hover { color: var(--t1); }
/* the links travel as one group: on the right of the line on a desktop, one even row of their own when the line wraps */
.appfoot .fl { display: flex; align-items: center; gap: 4px; margin-left: auto; }
/* ---- tablet and phone ---- */
.tabs { display: none; } .sheet { display: none; }
@media (max-width: 1180px) and (min-width: 901px) { .stats { grid-template-columns: repeat(3, 1fr); } .mgrid { grid-template-columns: minmax(0, 1fr) 360px; } .row { grid-template-columns: minmax(0, 1fr) 90px 120px 120px 240px; } .acts > * { min-width: 72px; padding: 0 10px; } }
@media (max-width: 900px) {
  .lpcard { grid-template-columns: 1fr; padding: 18px; } .lpa { min-width: 0; }
  .app { grid-template-rows: calc(56px + env(safe-area-inset-top)) 1fr; padding-bottom: calc(80px + env(safe-area-inset-bottom)); } .bar { height: calc(56px + env(safe-area-inset-top)); }
  .bar { grid-template-columns: minmax(0, 1fr) auto; } .bar .brand { padding-left: 16px; } .bar .crumb { display: none; } .bar .right { padding-right: 12px; gap: 6px; justify-content: flex-end; }
  .bar .acctb { height: 44px; padding: 0 14px; } .bar .acctb .ad { display: none; } .icobtn { width: 44px; height: 44px; }
  .cols, .cols.norail { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .main { padding: 16px; }
  .doors { grid-template-columns: 1fr; } .door { min-height: 0; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto; column-gap: 14px; align-items: center; padding: 16px; } .door .ico { grid-row: 1 / 3; } .door b { font-size: 16px; } .door.tool { grid-template-columns: 1fr; } .door.tool .ico { grid-row: auto; }
  .rows { display: block; } .row { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 14px 16px; row-gap: 8px; } .row small { white-space: normal; line-height: 1.45; } .row .n { white-space: normal; } .row.head { display: none; } .row .n::before { content: attr(data-l); color: var(--t3); font-family: var(--sans); margin-right: 8px; font-size: 12px; } .row > span:empty { display: none; } .acts { flex-wrap: wrap; justify-content: stretch; } .acts > * { flex: 1 1 40%; min-width: 0; } .acts button { height: 44px; }
  .flow { grid-template-columns: minmax(0, 1fr); } .flow .sum { position: static; }
  .steps3 { grid-template-columns: 1fr; }
  .addm { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; } .login .l { grid-template-rows: 56px auto auto; padding: 24px 20px 8px; row-gap: 18px; } .login .r { border-left: 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); grid-template-rows: auto; } .login h1 { font-size: 32px; } .card { padding: 24px 20px; }
  .tabs { display: block; position: fixed; left: 0; right: 0; bottom: 0; background: var(--bg); border-top: 1px solid var(--hair); padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); z-index: 40; }
  .tabs .in { display: flex; justify-content: space-around; } .tabs button { flex: 1; min-height: 56px; font-size: 11px; color: var(--t3); padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; } .tabs button svg { width: 22px; height: 22px; } .tabs button.on { color: var(--acc-hi); }
  .stats, .stats.four { grid-template-columns: 1fr 1fr; } .doors.three, .doors.four { grid-template-columns: 1fr; } .mgrid { grid-template-columns: minmax(0, 1fr); } .chart { min-height: 300px; } .pos { grid-template-columns: minmax(0, 1fr); }
  .mhead { grid-template-columns: minmax(0, 1fr); row-gap: 10px; } .mode { width: 100%; height: auto; } .mode button { flex: 1; justify-content: center; min-height: 44px; height: auto; }
  .sheet { display: block; position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; z-index: 50; background: var(--bg); overflow: auto; -webkit-overflow-scrolling: touch; padding: env(safe-area-inset-top) 16px calc(96px + env(safe-area-inset-bottom)); }
  .sheet .side { display: flex; position: static; border: 0; padding: 4px 0 0; height: auto; overflow: visible; }
  .sheet .side .nav a { height: 48px; font-size: 15px; } .sheet .fi { height: 48px; } .sheet .acctbtn { min-height: 48px; }
  .sheet-h { display: flex; justify-content: space-between; align-items: center; height: 56px; font-weight: 600; } .sheet-h button { color: var(--acc-hi); font-size: 15px; min-height: 44px; padding: 0 0 0 16px; }
  .pos2 .row { grid-template-columns: minmax(0, 1fr); }
  .tools { grid-template-columns: 1fr; }
  .sech { flex-wrap: wrap; } .sech .note { width: 100%; }
  .quick button, .stock button { min-height: 48px; } .pw button { min-height: 66px; }
  h1 { font-size: 24px; } .acchead h1 { font-size: 32px; } .acchead .tot { font-size: 28px; } .acchead .money { width: 100%; } .acchead .money > * { flex: 1; justify-content: center; }
  .loopstrip { grid-template-columns: 1fr; gap: 12px; } .loopstrip .fgs { display: grid; grid-template-columns: repeat(3, 1fr); } .loopstrip .fg { min-width: 0; }
  .search { max-width: none; height: 48px; }
  .det button { min-height: 44px; }
  .app { padding-bottom: 0; }
  /* phone footer: brand, the two lines of fine print, then X, Docs and Security on one row, each a 44px target, the
     first one's text on the same left edge as the lines above; the bottom padding clears the tab bar */
  .appfoot { display: grid; justify-items: start; gap: 2px; padding: 16px max(16px, env(safe-area-inset-right)) calc(84px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); line-height: 1.5; }
  .appfoot .b { margin-bottom: 4px; } .appfoot .fl { margin: 6px 0 0 -16px; gap: 4px; } .appfoot .fl a { min-height: 44px; padding: 0 12px; font-size: 13.5px; }
  body.atlogin .appfoot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .bar .brand { min-height: 44px; } .tabs2 .sp button { min-height: 44px; min-width: 44px; } .bs button { min-height: 44px; } .fld .t button { min-height: 44px; } .fld .m input { min-height: 44px; } .tbox .guided a { min-height: 44px; } .tkpick .tk { min-height: 44px; }
}
@media (max-width: 900px) and (min-width: 721px) { .mk .r { grid-template-columns: minmax(140px, 1fr) repeat(5, minmax(56px, 84px)); column-gap: 8px; padding: 0 14px; font-size: 13.5px; } .mk.five .r { grid-template-columns: minmax(140px, 1fr) repeat(4, minmax(56px, 84px)) 112px; } .mk .r b, .mk .r small { white-space: normal; } }
/* phones: tables become stacked cards with their labels inline */
@media (max-width: 720px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); } .hero h1 { font-size: 26px; } .pp { grid-template-columns: 1fr 1fr; } .pb { display: grid; grid-template-columns: 1fr 1fr; } .pb > :first-child, .pb > :nth-child(2):last-child, .pb > :nth-child(4):last-child { grid-column: 1 / -1; } .pb .btnp, .pb .btn2 { width: 100%; padding: 0 8px; min-height: 44px; }
  .mk .r, .mk.five .r { grid-template-columns: 1fr 1fr 1fr; column-gap: 10px; row-gap: 8px; padding: 14px 16px; min-height: 0; } .mk .r:first-child { display: none; } .mk .r > :first-child { grid-column: 1 / -1; } .mk .r b, .mk .r small { white-space: normal; }
  .mk .r .n { display: grid; text-align: left; font-size: 13.5px; } .mk .r .n::before { content: attr(data-l); color: var(--t3); font-family: var(--sans); font-size: 11px; } .mk .r > .right:last-child:not(.n) { grid-column: 1 / -1; } .mk .pill { margin-left: 0; height: 36px; }
  .coin .coinb { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sum .l { flex-direction: column; align-items: flex-start; gap: 3px; } .sum .l .k { max-width: none; font-size: 12.5px; } .sum .l b { text-align: left; font-size: 14px; }
  .two { flex-direction: column; }
  .stats .stat .v { font-size: 17px; }
  .coin .coinh { flex-direction: column; align-items: flex-start; }
  .tabs2 .sp { margin-left: 0; }
}
@media (max-width: 400px) {
  .amt .v, .amt input { font-size: 32px; } .amt .v .post { font-size: 16px; margin-bottom: 7px; }
  .sum .big .v { font-size: 30px; }
  .brand .word { font-size: 11px; letter-spacing: .16em; } .bar .brand { gap: 8px; padding-left: 12px; } .bar .right { padding-right: 10px; }
  .main { padding: 14px 12px; }
  .stock { gap: 8px; } .stock button { padding: 12px; } .quick { gap: 8px; } .pw { gap: 8px; flex-wrap: wrap; } .pw button { flex: 1 1 calc(50% - 4px); }
  .pp { grid-template-columns: 1fr; } .pr b { font-size: 21px; }
  .stats { gap: 8px; } .stat { padding: 12px; }
  .tbox { padding: 14px; } .seg3 button { font-size: 12.5px; }
}

/* Home: back to the landing page from the bar, the login card and the menu. */
.homeb { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--hair2); color: var(--t2); font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.homeb:hover { color: var(--t1); background: var(--s2); }
.homeb svg { width: 16px; height: 16px; flex: none; }
.login .ltop { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.login .ltop .homeb { height: 44px; }
.side .nav a.tohome { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; margin-bottom: 4px; border-radius: 10px; color: var(--t2); font-size: 14px; }
.side .nav a.tohome:hover { color: var(--t1); background: var(--s1); }
.side .nav a.tohome svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 900px) {
  .bar .homeb { width: 44px; height: 44px; padding: 0; }
  .bar .homeb span { display: none; }
  .sheet .side .nav a.tohome { height: 48px; font-size: 15px; }
}

/* ---- phones and tablets: the polish pass (tap sizes, iOS zoom, safe areas, the confirm button in reach) ---- */
.search input::placeholder { color: var(--t3); opacity: 1; }
.login .brand { min-height: 44px; }
.sheet, .wpick .box { overscroll-behavior: contain; }
@media (pointer: coarse) { .search input { font-size: 16px; } } /* an iPad on its side is wider than 900px and zooms too */
@media (max-width: 900px) {
  /* iOS Safari zooms into any field under 16px and leaves the page zoomed */
  .search input { font-size: 16px; }
  /* 44px rows in the account menu, and the "See everything" link on the add-money card */
  .acct .menu button, .acct .menu a { min-height: 44px; }
  .havebox .go { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; }
  /* a toast sits above the tab bar instead of on it */
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  /* an iPhone on its side: the bar, the page, the tabs and the menu sheet stay clear of the notch */
  .main { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .bar .brand { padding-left: max(16px, env(safe-area-inset-left)); } .bar .right { padding-right: max(12px, env(safe-area-inset-right)); }
  .tabs { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .sheet { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .a2hs { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); }
  /* long flows: from the moment the deal card scrolls into view its confirm button rides above the tab bar until it
     reaches its own place, with the card's colour behind it so the rows slide under cleanly */
  .flow .sum > div:has(> #confirm):not(:has(> .btns)) { position: sticky; bottom: calc(65px + env(safe-area-inset-bottom)); z-index: 2; margin-left: -18px; margin-right: -18px; padding: 10px 18px; background: var(--s1); box-shadow: 0 -14px 14px -8px var(--s1); }
}
@media (max-width: 720px) {
  /* stacked market and pool cards: an "example" chip keeps its own width, and a pool's Trade pill shares the row
     with "Your LP" instead of taking a row of its own */
  .mk .r .n .ex { justify-self: start; margin-left: 0; }
  .mk.five .r > .right:last-child:not(.n) { grid-column: 2 / -1; align-self: end; }
}
@media (max-width: 480px) {
  /* pay-with and get choices wrap their second line instead of cutting it ("$6,903 in your w...") */
  .pw b, .pw span { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
}
@media (max-width: 400px) {
  .main { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .bar .brand { padding-left: max(12px, env(safe-area-inset-left)); } .bar .right { gap: 4px; padding-right: max(10px, env(safe-area-inset-right)); } .bar .acctb { padding: 0 12px; }
}
/* under 360px the bar holds Home, the theme and the account button, so the brand is the logo alone (the link keeps
   its "Stockimus, overview" name); the wordmark is still on the login screen and in the footer */
@media (max-width: 359px) { .bar .brand .word { display: none; } }

/* The add-to-home banner never covers a flow's pinned confirm button: it waits while a flow or an exit is open. */
body:has(.flow) .a2hs { display: none; }
