/* STOLEN PAD — GUST-style app UI (getgust.fun: Archivo heavy type, JetBrains Mono numbers, uppercase tracked labels, bordered panels,
   pill buttons, numbered tabs, "3s ago" sync marks) on a Zcash palette: warm black canvas, gold hairlines, ZEC yellow as the one accent.
   Green only for frozen / money in, red only for moving / money out. */
:root {
  --bg: #0a0906; --bg-2: #11100a; --bg-3: #181610; --bg-4: #1f1c14;
  --line: rgba(244,183,40,.22); --line2: rgba(244,183,40,.38); --line-soft: rgba(239,233,216,.1);
  --t1: #efe9d8; --t2: #a39b86; --t3: #7b745f;
  --zec: #f4b728; --zec-2: #f7c54d; --on-zec: #171100; --zec-bg: rgba(244,183,40,.12);
  --green: #4fd1a5; --green-bg: rgba(79,209,165,.14); --red: #ff6b57; --red-bg: rgba(255,107,87,.14);
  --r: 12px; --r2: 8px; --max: 1180px; --gut: 16px;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font: 16px/1.5 var(--sans); color: var(--t1); background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a.lnk, .ptext a, .note a, .empty a { color: var(--zec-2); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
input, textarea, select { font: inherit; color: var(--t1); background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: var(--r2); padding: 12px 14px; outline: none; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--zec); }
textarea { resize: none; min-height: 64px; }
::placeholder { color: var(--t3); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
h1 { font-size: 34px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mono { font-size: 13px; }
.muted { color: var(--t2); }
.dim { color: var(--t3); }
.small { font-size: 13px; }
.green { color: var(--green); } .red { color: var(--red); } .gold { color: var(--zec); }
.wrap { max-width: none; margin: 0; padding: 0 24px; }
.eyebrow, .lbl { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t2); }
.unit { font-family: var(--mono); font-size: .62em; color: var(--t2); margin-left: 4px; font-weight: 500; }

/* top bar: darker band, logo tile, numbered tabs, sync mark, one yellow button */
.top { position: sticky; top: 0; z-index: 20; background: #070603; border-bottom: 1px solid var(--line); padding-top: var(--sat); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { font-weight: 800; letter-spacing: -.01em; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.brand .logo { width: 34px; height: 34px; border-radius: 9px; background: #000; border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.brand .logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand .txt small { font-weight: 500; color: var(--t2); margin-left: 6px; font-size: 16px; }
.nav { display: flex; gap: 4px; margin-left: 10px; height: 100%; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; color: var(--t2); font-size: 15px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav a .n { font-family: var(--mono); font-size: 11px; width: 18px; height: 18px; border: 1px solid var(--line2); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: var(--t2); }
.nav a.on { color: var(--t1); border-bottom-color: var(--zec); }
.nav a.on .n { background: var(--zec); color: var(--on-zec); border-color: var(--zec); }
.nav a:hover { color: var(--t1); }
.top .spacer { flex: 1; }
.sync { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; color: var(--t2); white-space: nowrap; }
.sync.stale { color: var(--t3); }
.me { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; font-weight: 700; font-size: 14px; max-width: 46vw; }
.me .pava { width: 28px; height: 28px; font-size: 11px; }
.me span.n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* buttons: primary = ZEC yellow pill with dark text, secondary = outlined pill */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--t1); font-weight: 700; font-size: 15px; white-space: nowrap; }
.btn:hover { border-color: var(--zec); }
.btn.primary, .btn.dark { background: var(--zec); color: var(--on-zec); border-color: var(--zec); }
.btn.primary:hover, .btn.dark:hover { background: var(--zec-2); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.xs { height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { border-color: transparent; color: var(--t2); }
.btn.ghost:hover { color: var(--t1); border-color: var(--line2); }
.btn.following { color: var(--t2); border-color: var(--line-soft); }
.btn.following::before { content: "✓ "; }

/* avatars: wallets get a chain tint, people get initials */
.ava, .pava { border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; letter-spacing: .02em; font-family: var(--mono); }
.ava { width: 40px; height: 40px; font-size: 12px; background: var(--bg-4); color: var(--t1); border: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ava.lg { width: 64px; height: 64px; font-size: 17px; border-radius: 14px; }
.ava.xl { width: 88px; height: 88px; font-size: 22px; border-radius: 18px; border: 3px solid var(--bg-2); }
.ava.c-bitcoin, .cover.c-bitcoin { background: #3a2a18; color: #f0b06a; }
.ava.c-ethereum, .cover.c-ethereum { background: #22263a; color: #b9c2ea; }
.ava.c-tron, .cover.c-tron { background: #3d1f1c; color: #ff9a8a; }
.ava.c-xrpl, .cover.c-xrpl { background: #262520; color: #d6d2c2; }
.ava.c-solana, .cover.c-solana { background: #16312a; color: #7fe0b0; }
.ava.c-polygon, .cover.c-polygon { background: #1f2a3a; color: #9cc9ff; }
.ava.c-arbitrum, .cover.c-arbitrum { background: #1b2b38; color: #96cdf5; }
.pava { width: 40px; height: 40px; font-size: 13px; color: #fff; background: #4b5b6b; text-transform: uppercase; border-radius: 50%; }
.pava.h0 { background: #3b6cf0; } .pava.h1 { background: #0e9f8f; } .pava.h2 { background: #c9682f; } .pava.h3 { background: #c43f6e; } .pava.h4 { background: #5b6b7c; } .pava.h5 { background: #2f9e5a; }
.pava.sys { background: var(--zec); color: var(--on-zec); font-size: 16px; }

/* panels: dark card, gold hairline, uppercase title, mono "3s ago" on the right */
.card, .panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.panel .head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); min-height: 50px; }
.panel .head h2 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t1); }
.panel .head .hd { display: grid; gap: 2px; }
.panel .head .hd .eyebrow { display: none; }
.panel .head .spacer { flex: 1; }
.panel .head #readAt, .panel .head .ago { white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--t2); }
.pad { padding: 14px 18px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--t1); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; background: transparent; white-space: nowrap; }
.chip.on { color: var(--on-zec); border-color: var(--zec); background: var(--zec); }
.scrollx { display: flex; gap: 8px; overflow-x: auto; padding: 12px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scrollx::-webkit-scrollbar { display: none; }
.scrollx .chip { flex: none; }

/* status tags, GUST style: outlined pill, dot, mono lowercase */
.st { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--zec); white-space: nowrap; }
.st.frozen { color: var(--green); }
.st.moving { color: var(--red); }
.st.empty, .st.unknown { color: var(--t2); }
.held { color: var(--t2); font-size: 13px; }
.pill { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--t2); white-space: nowrap; }
.pill.green { color: var(--green); }
.pill.red { color: var(--red); }
.pill.blue { color: var(--zec); }

/* page header (GUST "Markets": title, lede, two pills on the right) */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 28px 0 18px; }
.pagehead .lede { color: var(--t2); margin-top: 8px; max-width: 620px; font-size: 16px; }
.pagehead .acts { display: flex; gap: 8px; flex: none; }
.hero { padding: 28px 0 18px; }
.hero h1 { font-size: 34px; }
.hero .lede { color: var(--t2); margin-top: 8px; max-width: 640px; font-size: 16px; }
.hero .eyebrow { margin-bottom: 8px; }

/* layout */
.cols { display: grid; grid-template-columns: 1fr 400px; gap: 16px; margin-top: 16px; align-items: start; }
.cols.social { grid-template-columns: minmax(0, 1fr) 400px; }
.stack > * + * { margin-top: 16px; }
.cols > *, .feed, .post, .post .pbody { min-width: 0; }

/* stat tiles: bordered panels, uppercase label, mono number, sub-line */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tile { background: var(--bg-2); padding: 16px 18px; display: flex; flex-direction: column; }
.tile .k { order: -1; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t2); margin-bottom: 8px; }
.tile .v { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -.01em; color: var(--t1); }
.tile .v.green { color: var(--green); } .tile .v.red { color: var(--red); } .tile .v.gold { color: var(--zec); }
.tile .sub { font-size: 13px; color: var(--t2); margin-top: 4px; }

/* alerts strip: what just happened */
.alerts { display: flex; gap: 10px; overflow-x: auto; padding: 12px 18px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.alerts::-webkit-scrollbar { display: none; }
.alert { flex: none; width: 240px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--r2); background: var(--bg-3); }
.alert .m { min-width: 0; flex: 1; }
.alert b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert span { display: block; font-family: var(--mono); font-size: 12px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert.moving span { color: var(--red); } .alert.frozen span { color: var(--green); }
.alert .ava { width: 36px; height: 36px; font-size: 11px; }
.alerts-head { display: flex; align-items: center; gap: 10px; padding: 13px 18px 0; }
.alerts-head .live { display: none; }
.alerts-head .eyebrow { color: var(--t1); }

/* compose box */
.compose { display: flex; gap: 12px; padding: 14px 18px; }
.compose .pava { margin-top: 2px; }
.compose .f { flex: 1; min-width: 0; }
.compose textarea { background: transparent; padding: 8px 0; font-size: 17px; border: 0; min-height: 44px; }
.compose .bar { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 4px; flex-wrap: wrap; }
.compose select { width: auto; max-width: 60%; height: 36px; padding: 0 32px 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; appearance: none; -webkit-appearance: none; border: 1px solid var(--line2); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a39b86' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
.compose .bar .spacer { flex: 1; }

/* feed rows: who, what, money in mono on the right */
.feed { display: flex; flex-direction: column; }
.post { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.feed > .post:last-child { border-bottom: 0; }
.post .pbody { flex: 1; }
.post .phd { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; font-size: 15px; line-height: 1.3; }
.post .phd b { font-weight: 700; }
.post .phd .handle, .post .phd .t { color: var(--t3); font-family: var(--mono); font-size: 12px; }
.post .phd .t::before { content: "· "; }
.post .phd .money { margin-left: auto; font-family: var(--mono); font-weight: 600; font-size: 15px; white-space: nowrap; }
.post .pwal { font-size: 14px; color: var(--t2); margin-top: 1px; }
.post .pwal a { color: var(--zec-2); font-weight: 600; }
.post .ptext { margin-top: 6px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap; }
.post.ev .ptext { color: var(--t2); font-size: 15px; }
.post .badge { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--t2); }
.post .badge.green { color: var(--green); } .post .badge.red { color: var(--red); } .post .badge.blue { color: var(--zec); }
.post .pact { display: flex; gap: 4px; align-items: center; margin-top: 8px; flex-wrap: wrap; margin-left: -8px; }
.post.reply { padding-left: 52px; background: var(--bg-3); }
.post.reply .pava, .post.reply .ava { width: 32px; height: 32px; font-size: 12px; }
.reacts { display: inline-flex; gap: 2px; }
.react, .act { height: 34px; padding: 0 10px; border-radius: 999px; color: var(--t2); font-size: 14px; display: inline-flex; align-items: center; gap: 5px; background: transparent; font-weight: 600; }
.react:hover, .act:hover { background: var(--bg-4); color: var(--t1); }
.react.has { color: var(--t1); }
.react span { font-family: var(--mono); font-size: 12px; color: var(--t2); }
.replyBtn { color: var(--t2); }
.bubble { background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 4px 12px 12px 12px; padding: 10px 14px; margin: 6px 0 4px; white-space: pre-wrap; max-width: 560px; font-size: 16px; line-height: 1.45; }
.empty { padding: 28px 18px; color: var(--t3); text-align: center; font-size: 15px; }
.welcome { display: flex; gap: 12px; padding: 16px 18px; background: var(--zec-bg); border-bottom: 1px solid var(--line); align-items: flex-start; }
.welcome[hidden] { display: none; }
.welcome .em { font-size: 26px; line-height: 1; flex: none; }
.welcome > div { flex: 1; min-width: 0; }
.welcome p { font-size: 15px; color: var(--t1); overflow-wrap: anywhere; }
.welcome p + p { margin-top: 4px; }
.welcome .x { margin-left: auto; color: var(--t2); font-size: 20px; line-height: 1; flex: none; padding: 0 2px; }

/* lists: rank, avatar, name + sub, mono number on the right */
.wlist a.wrow, .wlist .wrow { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-soft); }
.wlist .wrow:last-child { border-bottom: 0; }
.wlist .wrow .m { flex: 1; min-width: 0; }
.wlist .wrow b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wlist .wrow .s { font-size: 13px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wlist .wrow .v { font-family: var(--mono); font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--zec); }
.wlist .wrow .v.plain { color: var(--t1); }
.wlist .wrow .ava { width: 40px; height: 40px; font-size: 12px; }
.rank { width: 22px; color: var(--t3); font-family: var(--mono); font-size: 13px; text-align: center; flex: none; }
.lbtabs { display: flex; gap: 6px; padding: 12px 18px 0; flex-wrap: wrap; }
.lbtabs button { padding: 0 10px; height: 30px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--t2); font-size: 13px; font-weight: 600; }
.lbtabs button.on { color: var(--on-zec); background: var(--zec); border-color: var(--zec); }
/* leaderboard windows: a mono row under the kind tabs (24h · 7d · 30d · all-time) */
.lbwin { display: flex; gap: 2px; padding: 10px 18px 12px; border-bottom: 1px solid var(--line-soft); }
.lbwin button { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); padding: 4px 8px; border-bottom: 2px solid transparent; }
.lbwin button.on { color: var(--zec); border-bottom-color: var(--zec); }
/* all-time badge on a leaderboard row or a profile: mono caps, no box */
.atb { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--zec); margin-left: 8px; white-space: nowrap; }
.atb::before { content: "★ "; }
/* clan tag after a poster's name */
.clan { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--zec-2); margin-left: 6px; white-space: nowrap; }
.clan::before { content: "["; } .clan::after { content: "]"; }
.clanme { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); display: grid; gap: 4px; }
.clanme b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.clanme .motto { color: var(--t2); font-size: 14px; }
.clanme .row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; }
.clanme .row .spacer { flex: 1; }
.clanform { display: grid; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.clanform input { height: 40px; padding: 0 12px; font-size: 14px; }
/* the checked proof under a post */
.verify { font-family: var(--mono); font-size: 12px; color: var(--t2); }
.verify a { color: var(--zec-2); margin-left: 4px; }
.verify.green { color: var(--green); }

/* wallet directory: cards */
.wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px 18px 18px; }
.wcard { background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wcard .hd { display: flex; gap: 12px; align-items: center; }
.wcard .hd .ava { width: 44px; height: 44px; font-size: 12px; }
.wcard .hd .m { min-width: 0; flex: 1; }
.wcard .hd b { display: block; font-weight: 700; line-height: 1.25; }
.wcard .hd .s { font-size: 13px; color: var(--t2); }
.wcard .big { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.wcard .big small { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--t2); margin-left: 6px; }
.wcard .line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wcard .ft { display: flex; gap: 8px; align-items: center; margin-top: auto; }
.wcard .ft .btn { flex: 1; }
.wcard .cnt { font-size: 13px; color: var(--t2); }

/* wallet page: profile */
.profile { padding: 0; overflow: hidden; }
.cover { height: 80px; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.phead { padding: 0 20px 18px; }
.phead .toprow { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -40px; gap: 10px; }
.phead .toprow .acts { display: flex; gap: 8px; margin-bottom: 4px; }
.phead h1 { font-size: 28px; margin-top: 12px; }
.phead .addr { display: inline-flex; align-items: center; gap: 8px; color: var(--t2); max-width: 100%; font-size: 15px; margin-top: 6px; }
.phead .addr code { font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--t1); }
.copy { color: var(--zec); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.phead .bio { margin-top: 10px; font-size: 16px; color: var(--t2); }
.phead .bio b { color: var(--t1); font-family: var(--mono); font-weight: 600; }
.phead .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; margin-top: 14px; }
.stats div { background: var(--bg-3); padding: 12px 14px; min-width: 0; display: flex; flex-direction: column; }
.stats b { font-family: var(--mono); font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats span { order: -1; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t2); margin-bottom: 6px; }
.stats b.green { color: var(--green); } .stats b.red { color: var(--red); }
.counts { display: flex; gap: 16px; margin-top: 12px; font-size: 14px; color: var(--t2); flex-wrap: wrap; }
.counts b { color: var(--t1); font-family: var(--mono); font-weight: 600; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; padding: 14px 18px; font-size: 14px; }
.kv .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--t2); align-self: center; } .kv .v { text-align: right; font-family: var(--mono); font-weight: 500; }
.kv .v.green { color: var(--green); } .kv .v.red { color: var(--red); }
.links a { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); color: var(--t1); font-weight: 600; }
.links a:last-child { border-bottom: 0; }
.links a:hover { background: var(--bg-3); }
.links a span { color: var(--t3); font-family: var(--mono); font-size: 12px; font-weight: 400; }
.links a::after { content: "↗"; color: var(--zec); margin-left: 8px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1; padding: 14px 10px; color: var(--t2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.tabs button.on { color: var(--t1); border-color: var(--zec); }
.tx { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); font-size: 14px; align-items: center; }
.tx:last-child { border-bottom: 0; }
.tx .dir { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; border: 1px solid var(--line-soft); color: var(--t2); }
.tx .dir.out { color: var(--red); border-color: rgba(255,107,87,.5); } .tx .dir.in { color: var(--green); border-color: rgba(79,209,165,.5); }
.tx .amt { font-family: var(--mono); white-space: nowrap; font-weight: 600; }
.tx .msg { color: var(--t1); margin-top: 3px; white-space: pre-wrap; word-wrap: break-word; }
.tx a { font-family: var(--mono); font-size: 12px; color: var(--zec); }
.composer { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.composer .f { flex: 1; min-width: 0; display: grid; gap: 8px; }
.composer textarea { background: transparent; border: 0; padding: 8px 0; font-size: 17px; min-height: 44px; }
.composer .line { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.composer .line input { max-width: 220px; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13px; }
.note { color: var(--t2); font-size: 14px; line-height: 1.5; }
.note b { color: var(--t1); font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: calc(84px + var(--sab)); transform: translateX(-50%); background: var(--zec); color: var(--on-zec); padding: 11px 16px; border-radius: 999px; font-size: 15px; font-weight: 700; z-index: 50; box-shadow: 0 8px 30px rgba(0,0,0,.5); opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: flex-end; justify-content: center; z-index: 40; padding: 0; }
.modal[hidden] { display: none; }
.modal .box { background: var(--bg-2); border: 1px solid var(--line2); border-radius: 18px 18px 0 0; width: 100%; max-width: 520px; padding: 18px 18px calc(18px + var(--sab)); }
.modal .box h2 { margin-bottom: 6px; }
.modal .box .row2 { display: flex; gap: 8px; margin-top: 12px; }
.modal .box .row2 .btn { flex: 1; }
.steps { display: grid; gap: 8px; margin-top: 12px; }
.step { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r2); background: var(--bg-3); border: 1px solid var(--line-soft); font-size: 15px; }
.step .n { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--t2); flex: none; }
.step.done .n { background: var(--green); color: var(--on-zec); border-color: var(--green); }
.step.now .n { background: var(--zec); color: var(--on-zec); border-color: var(--zec); }
.split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 8px 0 6px; background: var(--bg-4); }
.split i { display: block; height: 100%; background: var(--zec); }
.split i + i { background: var(--t2); }
footer { color: var(--t3); font-size: 13px; padding: 32px 0 calc(28px + var(--sab)); line-height: 1.6; }
footer a { color: var(--t2); }

/* where the money went */
.flowwrap { overflow-x: auto; padding: 14px 18px 6px; scrollbar-width: thin; }
.flowsvg { display: block; font-family: var(--sans); }
.fl-name { font-size: 13px; font-weight: 700; fill: var(--t1); }
.fl-sub { font-size: 11px; font-family: var(--mono); fill: var(--t2); }
.flowsvg.narrow .fl-name { font-size: 11px; } .flowsvg.narrow .fl-sub { font-size: 10px; }
.fl-node:hover .fl-name { fill: var(--zec); }
.fl-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 6px 18px 14px; font-size: 12px; color: var(--t2); }
.fl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.flowtabs { display: flex; gap: 6px; }
/* sparklines from real readings */
.spark { display: inline-block; vertical-align: middle; color: var(--t3); }
.spark.down { color: var(--red); } .spark.up { color: var(--green); }
.spark.flat { height: 1px; background: var(--line-soft); display: inline-block; }
.tile .spark { display: block; margin-top: 10px; width: 100%; height: 28px; }

/* the path the money took */
.hops { display: flex; align-items: stretch; padding: 14px 20px 18px; overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: none; }
.hops::-webkit-scrollbar { display: none; }
.hop { flex: 1; min-width: 130px; position: relative; padding-top: 18px; }
.hop::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line2); }
.hop::after { content: ""; position: absolute; left: 0; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--t3); }
.hop.here::after { background: var(--zec); border-color: var(--zec); }
.hop.frozen::after { background: var(--green); border-color: var(--green); } .hop.moving::after { background: var(--red); border-color: var(--red); }
.hop .n { font-size: 14px; font-weight: 700; padding-right: 10px; }
.hop .d { font-family: var(--mono); font-size: 11px; color: var(--t3); margin-top: 2px; }
.hop.frozen .n { color: var(--green); } .hop.moving .n { color: var(--red); }

/* ticker strip under the top bar */
.ticker { border-top: 1px solid var(--line-soft); overflow: hidden; height: 32px; position: relative; background: #070603; }
.ticker[hidden] { display: none; }
.ticker .track { display: inline-flex; gap: 28px; white-space: nowrap; height: 32px; align-items: center; padding-left: 16px; animation: tick 90s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk { font-size: 13px; color: var(--t2); }
.tk .k { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--zec); margin-right: 6px; }
.tk .k.green { color: var(--green); } .tk .k.red { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

/* bottom tab bar on phones */
.tabbar { display: none; }
@media (max-width: 900px) {
  .cols, .cols.social { grid-template-columns: 1fr; }
  .cols.social { display: flex; flex-direction: column; gap: 16px; }
  .cols.social > .stack, .cols.social > aside { display: contents; }
  .cols.social .stack > * + * { margin-top: 0; }
  .cols.social > *, .cols.social > .stack > *, .cols.social > aside > * { width: 100%; max-width: 100%; min-width: 0; }
  #storiesCard { order: 0; } #flowCard { order: 1; } #compose { order: 2; } #feedCard { order: 3; } #suggestCard { order: 4; } #clansCard { order: 5; } #leadersCard { order: 6; } #gtk { order: 7; }
  .nav, .sync { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #070603; border-top: 1px solid var(--line); padding: 0 0 var(--sab); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--t2); padding: 8px 0 7px; border-top: 2px solid transparent; margin-top: -1px; }
  .tabbar a .i { font-size: 20px; line-height: 1; }
  .tabbar a.on { color: var(--t1); border-top-color: var(--zec); }
  body { padding-bottom: calc(72px + var(--sab)); }
  .wgrid { grid-template-columns: 1fr; padding: 12px; }
  .tiles.four { grid-template-columns: repeat(2, 1fr); }
  .pagehead { flex-direction: column; align-items: flex-start; padding: 22px 0 16px; }
  .pagehead .acts { flex-wrap: wrap; }
  h1, .hero h1 { font-size: 30px; }
  .top .wrap { gap: 10px; }
  .phead .toprow { margin-top: -34px; }
  .ava.xl { width: 72px; height: 72px; font-size: 18px; }
  .phead h1 { font-size: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .tile .v { font-size: 22px; }
  .post, .compose, .composer { padding: 12px 14px; }
  .brand .txt { font-size: 18px; }
  .brand .txt small { display: none; }
  .me span.n { max-width: 90px; }
  #readAt { display: none; }
  .composer .line input { max-width: 150px; }
  .phead { padding: 0 16px 16px; }
  .actions .btn { flex: 1 1 45%; }
  .alerts { padding: 10px 14px 12px; }
  .alert { width: 214px; }
}
