/* Parlor — quiet black, one glowing horizon, serif display with mono numbers. Monochrome luxury; colour only for up/down.
   Layout: home = centred column (hero, live chat window, rooms list); room = market column + 400px chat rail. */
:root {
  --bg: #09090b;
  --s1: #111114;
  --s2: #17171b;
  --s3: #1f1f25;
  --line: rgba(236, 236, 245, 0.08);
  --line-2: rgba(236, 236, 245, 0.15);
  --fg: #ececf1;
  --text: #d4d4dc;
  --muted: #8b8b97;
  --faint: #5c5c66;
  --silver: #c9cbe0;
  --up: #4fd69c;
  --down: #ff6b6b;
  --warn: #f2c14e;
  --mention: rgba(201, 203, 224, 0.07);

  --f-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --f-ui: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-num: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 16px;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { overflow-x: clip; }
body { background: var(--bg); color: var(--fg); font: 400 15px/1.55 var(--f-ui); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 1.5px solid var(--silver); outline-offset: 2px; border-radius: 8px; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .sm { font-size: 13px; }
.up { color: var(--up); } .down { color: var(--down); }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); }

/* the one flourish: a dim planet-edge glow behind the hero */
.horizon {
  position: absolute; left: 0; right: 0; top: -44vh; height: 100vh; pointer-events: none; z-index: 0;
  background: radial-gradient(80% 50% at 50% 100%, rgba(170, 176, 230, 0.20), transparent 70%), radial-gradient(45% 24% at 50% 100%, rgba(255, 255, 255, 0.10), transparent 70%);
  mask-image: linear-gradient(#000 45%, transparent);
}
body.in-room .horizon { display: none; }
/* fine film grain over everything, very faint */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- primitives */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 18px; font-weight: 500; font-size: 14px; border: 1px solid var(--line-2); background: transparent; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.primary:hover { background: #fff; }
.btn.ghost:hover { border-color: var(--silver); color: #fff; }
.btn.sm { padding: 5px 11px; font-size: 12px; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--muted); flex: none; }
.icon-btn:hover { color: var(--fg); border-color: var(--line-2); }
.badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--fg); color: var(--bg); font: 600 10px/18px var(--f-num); text-align: center; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); display: inline-block; flex: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { background: none; border: 0; border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--muted); }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--s3); color: var(--fg); }
.seg.sm button { padding: 3px 10px; font-size: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--s2) center/cover; display: grid; place-items: center; font: 500 10px var(--f-num); color: var(--muted); flex: none; overflow: hidden; border: 1px solid var(--line); }
.avatar.lg { width: 42px; height: 42px; font-size: 11px; }
.avatar.xs { width: 22px; height: 22px; font-size: 8px; }
.pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font: 500 12px var(--f-num); }
.pill.up { background: rgba(79, 214, 156, .12); }
.pill.down { background: rgba(255, 107, 107, .12); }
.wordmark { font: italic 400 27px/1 var(--f-display); letter-spacing: .01em; }
.wordmark.sm { font-size: 22px; }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.nav-in { max-width: 1160px; margin: 0 auto; padding: 14px var(--gr) 14px var(--gl); display: flex; align-items: center; gap: 32px; }
body.in-room .nav-in { max-width: none; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
.nav-msg { background: none; border: 0; padding: 0; color: var(--fg); font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.nav-msg:hover { color: #fff; }
.nav-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--fg); color: var(--bg); font: 600 10px/18px var(--f-num); text-align: center; }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- home */
#home { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.hero { text-align: center; padding-block: 104px 56px; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 30px; font: 500 11px var(--f-num); letter-spacing: .32em; text-transform: uppercase; color: var(--silver); }
.eyebrow::before, .eyebrow::after { content: ""; width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2)); }
.eyebrow::after { transform: scaleX(-1); }
.hero h1 { font: 400 clamp(50px, 8.2vw, 108px)/0.98 var(--f-display); letter-spacing: -0.025em; margin: 0; max-width: 17ch; text-wrap: balance; }
.hero h1 em { font-style: italic; background: linear-gradient(180deg, #f4f4fa 10%, #a9acc6 95%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lede { max-width: 50ch; color: var(--muted); font-size: 17px; margin: 26px 0 42px; text-wrap: pretty; }
.search { width: min(640px, 100%); display: flex; align-items: center; gap: 10px; background: rgba(23, 23, 27, .72); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 6px 6px 24px; box-shadow: 0 0 0 6px rgba(201, 203, 224, .03), 0 30px 80px -30px rgba(160, 166, 230, .35); transition: border-color .15s; }
.search:focus-within { border-color: rgba(201, 203, 224, .45); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 16px; padding: 10px 0; }
.search input::placeholder { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--faint); }
.chips button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--muted); font: 12px var(--f-num); }
.chips button:hover { color: var(--fg); border-color: var(--line-2); }
.figures { display: flex; justify-content: center; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.figures div { padding: 18px 34px 0; text-align: center; }
.figures div + div { border-left: 1px solid var(--line); }
.figures dt { font: 500 10px var(--f-num); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.figures dd { margin: 6px 0 0; font: 400 32px/1 var(--f-display); display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.results { width: min(680px, 100%); margin-top: 24px; text-align: left; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); overflow: hidden; }
.results .note { padding: 16px 20px; color: var(--muted); font-size: 14px; }
.res { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line); }
.res:first-child { border-top: 0; }
.res:hover { background: var(--s2); }
.res .t1 { font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.res .t1 small { font: 11px var(--f-num); color: var(--faint); font-weight: 400; }
.res .t2 { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res .r1 { text-align: right; font: 500 13px var(--f-num); white-space: nowrap; }
.res .r2 { text-align: right; font: 11px var(--f-num); color: var(--muted); white-space: nowrap; }

/* showcase: the chat itself, live */
.showcase { padding-bottom: 88px; display: flex; justify-content: center; }
.window { width: min(760px, 100%); border: 1px solid var(--line-2); border-radius: 22px; background: linear-gradient(180deg, rgba(23, 23, 27, .9), rgba(14, 14, 17, .9)); box-shadow: 0 40px 120px -40px rgba(150, 156, 220, .28), inset 0 1px 0 rgba(255, 255, 255, .05); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--s3); border: 1px solid var(--line-2); }
.window-title { font: 500 12px var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.window-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 12px var(--f-num); color: var(--muted); }
.feed { height: 380px; overflow: hidden; padding: 10px 20px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; mask-image: linear-gradient(transparent, #000 22%); }
.fm { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; animation: rise .45s ease-out; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.fm .ini { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 500 12px var(--f-ui); color: var(--bg); }
.fm header { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.fm header b { font-weight: 600; }
.fm header a { font: 11px var(--f-num); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.fm header a:hover { color: var(--fg); border-color: var(--line-2); }
.fm header time { margin-left: auto; font: 11px var(--f-num); color: var(--faint); }
.fm p { margin: 2px 0 0; font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.feed-empty { margin: auto; text-align: center; color: var(--muted); font-size: 14px; max-width: 34ch; }
.feed-empty b { display: block; font: italic 400 26px/1.2 var(--f-display); color: var(--fg); margin-bottom: 6px; }

.band { padding-block: 64px; border-top: 1px solid var(--line); }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
.band-head h2 { font: 400 38px/1.1 var(--f-display); margin: 0; letter-spacing: -0.01em; }
.band-head p { margin: 0; color: var(--muted); font-size: 14px; }
.rooms { border-top: 1px solid var(--line); }
.lr { display: grid; grid-template-columns: 34px minmax(120px, 200px) minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); transition: background .15s, padding .15s; }
.lr:hover { background: rgba(236, 236, 245, .025); padding-left: 10px; }
.lr .t1 { font-weight: 600; font-size: 15px; }
.lr .t1 small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr .t2 { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr .t2 b { color: var(--muted); font-weight: 500; margin-right: 6px; }
.lr .on { font: 12px var(--f-num); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.lr .on.zero .dot { background: var(--faint); box-shadow: none; }
.lr .go { font-size: 13px; color: var(--silver); white-space: nowrap; }
.empty { color: var(--muted); font-size: 14px; padding: 28px 4px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.trio h3 { margin: 0 0 8px; font: italic 400 28px/1.1 var(--f-display); }
.trio p { margin: 0; color: var(--muted); font-size: 14px; max-width: 34ch; }
.trend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tr { display: flex; align-items: center; gap: 12px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; transition: background .15s; }
.tr:hover { background: rgba(236, 236, 245, .025); }
.tr > div { flex: 1; min-width: 0; }
.tr .t1 { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.tr .t1 span { font: 500 12px var(--f-num); }
.tr .t2 { display: flex; justify-content: space-between; gap: 8px; font: 11px var(--f-num); color: var(--muted); white-space: nowrap; }
.skel { height: 72px; background: linear-gradient(90deg, var(--s1), var(--s2), var(--s1)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }
.foot { display: flex; flex-wrap: wrap; gap: 14px 48px; align-items: baseline; padding-block: 40px calc(48px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.foot p { margin: 0; color: var(--faint); font-size: 13px; max-width: 70ch; }

/* ---------- tables */
.tscroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 500 11px var(--f-num); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl td.r, .tbl td.n { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: 13px; }
.tbl tbody tr:hover { background: var(--s2); }
.tbl.compact td { padding: 9px 14px; }
.tbl.compact th { padding: 10px 14px; }
tr.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: rgba(79, 214, 156, .1); } }
tr.sell.flash { animation-name: flashr; }
@keyframes flashr { from { background: rgba(255, 107, 107, .1); } }
.side { font: 500 11px var(--f-num); padding: 2px 8px; border-radius: 999px; letter-spacing: .04em; }
.side.buy { color: var(--up); background: rgba(79, 214, 156, .1); }
.side.sell { color: var(--down); background: rgba(255, 107, 107, .1); }
.wallet { font: 12px var(--f-num); color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; display: inline-flex; gap: 6px; align-items: center; }
.wallet:hover { border-color: var(--line-2); }
.wallet em { font-style: normal; color: var(--warn); font-family: var(--f-ui); font-size: 11px; }
.tx { color: var(--faint); display: inline-grid; place-items: center; }
.tx:hover { color: var(--fg); }
.tx svg { width: 15px; height: 15px; }

/* ---------- room */
body.in-room { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
#room { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; z-index: 1; }
.room-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px var(--gr) 14px var(--gl); border-bottom: 1px solid var(--line); }
.coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coin-txt { min-width: 0; }
.coin-name { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.coin-name h1 { margin: 0; font: 400 28px/1.1 var(--f-display); letter-spacing: -0.01em; }
.coin-name span { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca { background: none; border: 0; padding: 0; font: 12px var(--f-num); color: var(--faint); display: inline-flex; gap: 6px; align-items: center; }
.ca:hover { color: var(--fg); }
.ca svg { width: 13px; height: 13px; }
.coin-px { display: flex; align-items: center; gap: 10px; }
.coin-px b { font: 500 22px var(--f-num); font-variant-numeric: tabular-nums; }
.coin-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.coin-links a { font: 12px var(--f-num); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.coin-links a:hover { color: var(--fg); border-color: var(--line-2); }
.coin-links a.swap { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.mtabs { display: none; }
.room-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 400px; }
.market { overflow-y: auto; padding: 18px var(--gr) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gl); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.market > * { flex: none; }
.chart-card { overflow: hidden; }
.chart-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); }
.chart { height: min(540px, 56vh); min-height: 340px; position: relative; background: var(--s1); }
.chart iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--s1); }
.chart canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.chart-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 20px; }
.chart-legend { position: absolute; left: 12px; top: 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; font: 12px var(--f-num); color: var(--muted); pointer-events: none; }
.chart-legend b { color: var(--fg); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; gap: 1px; background: var(--line); }
.stat { background: var(--bg); padding: 13px 16px; min-width: 0; }
.stat > span { display: block; font: 500 10px var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.stat b { font: 500 16px var(--f-num); white-space: nowrap; }
.stat small { display: block; font: 11px var(--f-num); color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-card { overflow: hidden; }
.dtabs { display: flex; gap: 4px; padding: 4px 10px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.dtabs button { background: none; border: 0; padding: 12px 10px; font-size: 14px; color: var(--muted); border-bottom: 1.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.dtabs button:hover { color: var(--fg); }
.dtabs button[aria-selected="true"] { color: var(--fg); border-color: var(--fg); }
.dtools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dnote { margin: 0; padding: 10px 14px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.dpane .tscroll { max-height: 460px; overflow-y: auto; }
.dpane thead th { position: sticky; top: 0; background: var(--s1); z-index: 1; }
.loading { padding: 28px 16px; color: var(--muted); font-size: 14px; text-align: center; white-space: normal; }
.share { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.share .bar { flex: 1; height: 4px; border-radius: 2px; background: var(--s3); overflow: hidden; }
.share .bar i { display: block; height: 100%; background: var(--silver); border-radius: 2px; }
.share .bar i.pool { background: var(--faint); }
.share b { font: 500 12px var(--f-num); min-width: 6ch; text-align: right; }
.hsum { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hsum div { border: 1px solid var(--line); border-radius: 12px; padding: 7px 12px; }
.hsum span { display: block; font: 500 10px var(--f-num); color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.hsum b { font: 500 15px var(--f-num); }
.sec { padding: 14px; display: grid; gap: 14px; }
.score { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.score .big { font: 400 40px/1 var(--f-display); }
.score .big small { font: 13px var(--f-num); color: var(--faint); }
.score p { margin: 0; color: var(--muted); font-size: 13px; }
.lvl { font: 600 11px var(--f-num); letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; }
.lvl.LOW { color: var(--up); background: rgba(79, 214, 156, .12); }
.lvl.MEDIUM { color: var(--warn); background: rgba(242, 193, 78, .12); }
.lvl.HIGH { color: var(--down); background: rgba(255, 107, 107, .12); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.check i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font: 600 11px var(--f-num); }
.check.ok i { background: rgba(79, 214, 156, .14); color: var(--up); }
.check.warn i { background: rgba(242, 193, 78, .14); color: var(--warn); }
.check.bad i { background: rgba(255, 107, 107, .14); color: var(--down); }
.check.na i { background: var(--s3); color: var(--faint); }
.check em { font: 12px var(--f-num); color: var(--muted); font-style: normal; text-align: right; }
.sec-foot { color: var(--faint); font-size: 12px; margin: 0; }
.sec-foot a { color: var(--silver); text-decoration: underline; text-underline-offset: 3px; }
.info { padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.info h3 { margin: 0 0 8px; font: 500 10px var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.info .rowkv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.info .rowkv span:last-child { font-family: var(--f-num); }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.links a { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-transform: capitalize; color: var(--muted); }
.links a:hover { border-color: var(--line-2); color: var(--fg); }

/* ---------- chat rail */
.chat { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: color-mix(in srgb, var(--s1) 55%, var(--bg)); position: relative; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.people-btn { background: none; border: 0; padding: 4px 0; display: inline-flex; align-items: center; gap: 8px; font: 12px var(--f-num); color: var(--muted); }
.people-btn b { color: var(--fg); font-weight: 500; }
.people-btn:hover { color: var(--fg); }
.nick-btn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font: 12px var(--f-num); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nick-btn:hover { border-color: var(--line-2); }
.people { max-height: 40%; overflow-y: auto; border-bottom: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.person { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; font-size: 13px; }
.person:hover { background: var(--s2); }
.person b { font-weight: 600; }
.person .acts { margin-left: auto; display: flex; gap: 4px; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.m { display: flex; flex-direction: column; gap: 2px; min-width: 0; border-radius: 12px; }
.m.me-tag { background: var(--mention); box-shadow: inset 2px 0 0 var(--silver); padding: 8px 10px; }
.m header { display: flex; align-items: center; gap: 7px; font-size: 13px; min-width: 0; }
.m .who { background: none; border: 0; padding: 0; font-weight: 600; font-size: 13px; }
.m .who:hover { text-decoration: underline; text-underline-offset: 3px; }
.m .wb { font: 10px var(--f-num); color: var(--muted); border: 1px solid var(--line); background: none; border-radius: 999px; padding: 0 6px; }
.m .wb:hover { color: var(--fg); border-color: var(--line-2); }
.m time { margin-left: auto; font: 11px var(--f-num); color: var(--faint); }
.m p { margin: 0; font-size: 14px; color: var(--text); overflow-wrap: anywhere; white-space: pre-wrap; }
.m p a { color: var(--silver); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.m p .tk { color: var(--fg); font-weight: 600; }
.m p .at { color: var(--silver); font-weight: 600; }
.m.agent, .m.alert { background: var(--s1); border: 1px solid var(--line); padding: 10px 12px; }
.m.agent .who, .m.alert .who { font: 500 11px var(--f-num); letter-spacing: .1em; text-transform: uppercase; color: var(--silver); }
.m.agent .who::before { content: '◆ '; }
.m.alert .who { color: var(--warn); }
.m.alert { border-color: rgba(242, 193, 78, .22); }
.m.agent p, .m.alert p { font: 12.5px/1.6 var(--f-num); color: var(--fg); }
.sys { text-align: center; font: 12px var(--f-num); color: var(--faint); }
.cmds { display: flex; gap: 6px; padding: 8px 18px 0; overflow-x: auto; scrollbar-width: none; }
.cmds button { flex: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font: 12px var(--f-num); color: var(--muted); }
.cmds button:hover { color: var(--fg); border-color: var(--line-2); }
.composer { position: relative; display: flex; gap: 8px; padding: 10px 18px calc(16px + env(safe-area-inset-bottom, 0px)); }
.composer input { flex: 1; min-width: 0; background: var(--s2); border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; outline: 0; font-size: 14px; }
.composer input:focus { border-color: var(--line-2); }
.send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fg); color: var(--bg); display: grid; place-items: center; flex: none; }
.send:hover { background: #fff; }
.chat-err { margin: -6px 18px 12px; font-size: 12px; color: var(--down); }
.mention-pop { position: absolute; left: 18px; right: 70px; bottom: calc(100% - 4px); background: var(--s2); border: 1px solid var(--line-2); border-radius: 14px; padding: 4px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); max-height: 220px; overflow-y: auto; z-index: 5; }
.mention-pop button { display: flex; width: 100%; align-items: center; gap: 8px; background: none; border: 0; border-radius: 10px; padding: 7px 10px; font-size: 14px; text-align: left; }
.mention-pop button[aria-selected="true"], .mention-pop button:hover { background: var(--s3); }
.mention-pop small { margin-left: auto; font: 11px var(--f-num); color: var(--faint); }

/* ---------- messages window (centred) */
.scrim { position: fixed; inset: 0; background: rgba(4, 4, 6, .72); backdrop-filter: blur(8px); z-index: 40; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } }
.dmodal { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1040px, calc(100vw - 48px)); height: min(700px, calc(100vh - 64px)); height: min(700px, calc(100dvh - 64px)); display: grid; grid-template-columns: 320px minmax(0, 1fr); background: linear-gradient(180deg, #141418, #0e0e11); border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; box-shadow: 0 60px 160px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02), inset 0 1px 0 rgba(255, 255, 255, .05); animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
.dmodal.locked { grid-template-columns: 1fr; }
.dmodal.locked .dm-main { display: none; }
.dmodal.locked .only-narrow { display: grid; }
.only-narrow { display: none; }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.dm-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: rgba(9, 9, 11, .35); }
.dm-side-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 14px; }
.dm-side-head h2 { margin: 0; font: 400 32px/1 var(--f-display); letter-spacing: -0.01em; }
.dm-side-body { flex: 1; min-height: 0; overflow-y: auto; }
.dm-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.dm-main-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 16px 22px; border-bottom: 1px solid var(--line); min-height: 72px; }
.dm-peer-ident:empty { display: none; }
.dm-title { flex: 1; min-width: 0; font: 400 24px/1.1 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-name-row { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.dm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rename { flex: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font: 11px var(--f-num); color: var(--muted); }
.rename:hover { color: var(--fg); border-color: var(--line-2); }
.rename-form { display: flex; gap: 6px; align-items: center; font: 14px var(--f-ui); }
.rename-form input { flex: 1; min-width: 0; max-width: 260px; background: var(--s2); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font: 14px var(--f-ui); color: var(--fg); outline: 0; }
.rename-form input:focus { border-color: var(--silver); }
.dm-title small { display: block; font: 11px var(--f-num); color: var(--faint); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.dm-empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 32px; }
.dm-empty > div { max-width: 36ch; }
.dm-empty h3 { margin: 0 0 8px; font: italic 400 34px/1.1 var(--f-display); }
.dm-empty p { margin: 0; color: var(--muted); font-size: 14px; }
.dm-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dm-new { padding: 4px 22px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.dm-new label { font: 500 10px var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.dm-new .row { display: flex; gap: 6px; }
.dm-new > input { width: 100%; }
.dm-new input { flex: 1; min-width: 0; color: var(--fg); background: var(--s2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 12px var(--f-num); outline: 0; }
.dm-new input:focus { border-color: var(--line-2); }
.contacts-h { padding: 14px 22px 6px; font: 500 10px var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.thr { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; margin: 0 8px; border: 0; border-radius: 14px; width: calc(100% - 16px); background: none; text-align: left; }
.thr:hover { background: rgba(236, 236, 245, .04); }
.thr.on { background: rgba(236, 236, 245, .07); }
.thr .t1 { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thr .t1 small { font: 11px var(--f-num); color: var(--faint); font-weight: 400; margin-left: 6px; }
.thr .t2 { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thr .u { background: var(--fg); color: var(--bg); font: 600 11px var(--f-num); border-radius: 9px; padding: 1px 7px; }
.thr .tm { font: 11px var(--f-num); color: var(--faint); }
.ident { width: 38px; height: 38px; border-radius: 50%; flex: none; display: block; }
.dm-main-head .ident { width: 36px; height: 36px; }
.signin { min-height: 100%; padding: 48px 32px; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; text-align: center; }
.signin h3 { margin: 0; font: 400 clamp(34px, 5vw, 48px)/1.05 var(--f-display); }
.signin h3 em { color: var(--silver); }
.signin p { margin: 0; color: var(--muted); font-size: 15px; max-width: 44ch; }
.signin .fine { font: 11px var(--f-num); color: var(--faint); letter-spacing: .04em; }
.thread-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.dm-thread .composer { padding: 12px 18px 18px; border-top: 1px solid var(--line); }
.bub { max-width: 70%; padding: 10px 14px; border-radius: 18px; font-size: 14px; background: var(--s2); border: 1px solid var(--line); align-self: flex-start; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--text); }
.bub.mine { align-self: flex-end; background: var(--fg); color: var(--bg); border-color: var(--fg); }
.bub time { display: block; font: 10px var(--f-num); opacity: .55; margin-top: 3px; }
.thread-note { font-size: 12px; color: var(--faint); text-align: center; margin: auto 0 12px; }

/* ---------- menus, dialogs, toast */
.menu { position: fixed; z-index: 50; background: var(--s2); border: 1px solid var(--line-2); border-radius: 14px; padding: 4px; min-width: 210px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8); }
.menu .mh { padding: 8px 10px 6px; font: 11px var(--f-num); color: var(--faint); }
.menu button, .menu a { display: flex; width: 100%; gap: 10px; align-items: center; background: none; border: 0; border-radius: 10px; padding: 8px 10px; font-size: 14px; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--s3); }
.menu svg { width: 16px; height: 16px; color: var(--muted); }
dialog { background: var(--s1); color: var(--fg); border: 1px solid var(--line-2); border-radius: 20px; padding: 28px; width: min(420px, calc(100vw - 40px)); }
dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
dialog h2 { margin: 0 0 6px; font: 400 30px var(--f-display); }
dialog p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
dialog input { width: 100%; background: var(--s2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; outline: 0; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); }
.toast button { background: var(--bg); color: var(--fg); border: 0; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 500; }

/* ---------- responsive */
@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .room-body { grid-template-columns: minmax(0, 1fr) 360px; }
  .hide-m { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding-top: 72px; }
  .dmodal { grid-template-columns: 1fr; }
  .dmodal:not(.peer-open) .dm-main { display: none; }
  .dmodal.peer-open .dm-side { display: none; }
  .only-narrow { display: grid; }
  .dm-main-head #dmClose { display: none; }
  .trio { grid-template-columns: 1fr; gap: 24px; }
  .trend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lr { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .lr .t2 { grid-column: 2 / -1; grid-row: 2; margin-top: -10px; }
  .lr .go { display: none; }
  .coin-links { margin-left: 0; width: 100%; }
  .mtabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 var(--gr) 0 var(--gl); }
  .mtabs button { background: none; border: 0; padding: 11px 14px; color: var(--muted); font-size: 14px; border-bottom: 1.5px solid transparent; margin-bottom: -1px; }
  .mtabs button[aria-selected="true"] { color: var(--fg); border-color: var(--fg); }
  .mtabs b { font: 11px var(--f-num); color: var(--faint); margin-left: 4px; }
  .room-body { display: block; position: relative; }
  .room-body > [data-pane] { position: absolute; inset: 0; }
  .room-body > [data-pane][data-off] { display: none; }
  .chat { border-left: 0; }
  .checks, .info { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hide-s { display: none; }
  #walletBtn { padding: 8px 12px; font-size: 13px; }
  .search { padding-left: 18px; }
  .search .btn { padding: 10px 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart { height: 50vh; min-height: 300px; }
  .coin-px b { font-size: 18px; }
  .coin-links { width: auto; margin-left: auto; }
  .coin-links a:not(.swap) { display: none; }
  .feed { height: 340px; padding-inline: 14px; }
  .dmodal { width: 100vw; height: 100dvh; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .figures div { padding: 16px 16px 0; }
  .figures dd { font-size: 26px; }
  .trend { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* =====================================================================
   EMBER THEME — colours and motion borrowed from FORGE
   near-black, quiet greys, one ember accent; cursor glow, breathing light,
   scroll progress, card spotlights, scroll reveals.
   ===================================================================== */
:root {
  --bg: #050506;
  --s1: #0f0f12;
  --s2: #16161a;
  --s3: #1e1e23;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #f4f3f1;
  --text: #dddcd9;
  --muted: #a3a3a8;
  --faint: #6c6c72;
  --ember: #ff6a2c;
  --ember-soft: rgba(255, 106, 44, 0.14);
  --silver: #ff6a2c;          /* every former silver accent becomes ember */
  --up: #3ddc84;
  --down: #ff5f56;
  --warn: #f5a524;
  --mention: rgba(255, 106, 44, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
::selection { background: var(--ember); color: #000; }
:focus-visible { outline-color: var(--ember); }
body::after { display: none; }   /* no film grain in this theme */

/* breathing ember light behind the hero */
.horizon {
  left: 50%; right: auto; top: -160px; width: min(1000px, 100%); height: 680px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 106, 44, 0.24), rgba(255, 106, 44, 0.06) 55%, transparent);
  mask-image: none; animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.6; transform: translateX(-50%) scale(1.06); } }

/* glow that follows the mouse */
.cursor-glow { position: fixed; left: 0; top: 0; width: 560px; height: 560px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(closest-side, rgba(255, 106, 44, 0.13), rgba(255, 106, 44, 0.04) 50%, transparent 72%); opacity: 0; transition: opacity 0.5s var(--ease); will-change: transform; }
.cursor-glow.on { opacity: 1; }
body.in-room .cursor-glow { opacity: 0.45; }

/* scroll progress line */
.progress { position: fixed; inset: 0 0 auto; top: env(safe-area-inset-top, 0px); height: 2px; z-index: 45; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, rgba(255, 106, 44, 0.2), var(--ember)); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
body.in-room .progress { display: none; }

/* headline accent */
.hero h1 em { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ember); }
.eyebrow { color: var(--ember); }
.eyebrow::before, .eyebrow::after { background: linear-gradient(90deg, transparent, rgba(255, 106, 44, 0.5)); }
.dot { background: var(--ember); box-shadow: 0 0 12px var(--ember); animation: emberpulse 2.4s ease-in-out infinite; }
@keyframes emberpulse { 50% { opacity: 0.35; box-shadow: 0 0 2px var(--ember); } }
.lr .on.zero .dot { animation: none; }

/* buttons + inputs */
.btn.primary { box-shadow: 0 10px 40px -12px rgba(255, 255, 255, 0.35); }
.btn.ghost:hover, .icon-btn:hover { border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.05); color: var(--fg); }
.search { box-shadow: 0 0 0 6px rgba(255, 106, 44, 0.04), 0 30px 80px -30px rgba(255, 106, 44, 0.35); }
.search:focus-within, .composer input:focus, .dm-new input:focus, .rename-form input:focus { border-color: rgba(255, 106, 44, 0.55); }
.send { box-shadow: 0 8px 30px -10px rgba(255, 255, 255, 0.35); }
.badge, .nav-badge, .thr .u { background: var(--ember); color: #050506; }
.nav-msg:hover { color: var(--ember); }

/* the live window: terminal glow + a spotlight under the cursor */
.window { background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 106, 44, 0.07), transparent 60%), rgba(12, 12, 14, 0.92); box-shadow: 0 40px 120px -40px rgba(255, 106, 44, 0.3), 0 30px 80px -30px rgba(0, 0, 0, 0.9); }
.lights i { background: #2a2a2e; border-color: transparent; }
.fm.fresh { animation: arrive 1.6s ease-out; border-radius: 12px; }
@keyframes arrive { from { background: var(--ember-soft); box-shadow: 0 0 30px -10px rgba(255, 106, 44, 0.5); } }

/* card spotlights */
.lr, .tr, .stat, .check, .thr { background-image: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 106, 44, 0.08), transparent 60%); }
.tr:hover { border-color: var(--line); }
.lr:hover .go { transform: translateX(3px); }
.lr .go { transition: transform 0.25s var(--ease); }

/* scroll reveal (only for sections that start below the fold) */
.rv-pre { opacity: 0; transform: translate3d(0, 26px, 0); }
.rv-pre.rv-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

/* chat accents */
.m.agent { border-color: rgba(255, 106, 44, 0.18); }
.m.me-tag { box-shadow: inset 2px 0 0 var(--ember); }
.dmodal { background: linear-gradient(180deg, rgba(255, 106, 44, 0.05), transparent 30%), #0e0e11; box-shadow: 0 60px 160px -40px rgba(255, 106, 44, 0.25), 0 40px 100px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.thr.on { background-color: rgba(255, 106, 44, 0.08); }

@media (prefers-reduced-motion: reduce), (pointer: coarse) { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) { .rv-pre { opacity: 1; transform: none; } }
.lr:hover, .tr:hover, .thr:hover { background-color: rgba(255, 255, 255, 0.02); background-image: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 106, 44, 0.1), transparent 60%); }

/* rooms: chat on the left, market on the right */
.room-body { grid-template-columns: 400px minmax(0, 1fr); }
.room-body > .chat { order: -1; border-left: 0; border-right: 1px solid var(--line); }
@media (max-width: 1200px) { .room-body { grid-template-columns: 360px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .room-body > .chat { border-right: 0; }
  .nav-links { display: flex; margin-left: auto; }
  .nav-links a { display: none; }
  .nav-actions { margin-left: 0; }
}

/* =====================================================================
   TECH TYPE — Space Grotesk headlines, IBM Plex Sans text, IBM Plex Mono data
   ===================================================================== */
:root {
  --f-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --f-ui: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-num: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
body { font-family: var(--f-ui); }
.hero h1 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; }
.hero h1 em, .signin h3 em { font-style: normal; }
.band-head h2, .coin-name h1, dialog h2, .dm-side-head h2, .dm-title, .signin h3, .dm-empty h3, .feed-empty b, .trio h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.03em; font-style: normal; }
.figures dd, .score .big { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; }
.trio h3 { font-size: 22px; }
.dm-empty h3 { font-size: 28px; }
/* wordmark: a live network node + name */
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--f-display); font-style: normal; letter-spacing: -0.03em; }
.wordmark::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 3px rgba(255, 106, 44, 0.18), 0 0 14px var(--ember); }
.wordmark.sm { font-size: 17px; }
.m p { font-size: 14.5px; }

/* X + CA next to the wallet button */
.social { width: 38px; height: 38px; text-decoration: none; }
.xlogo { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.ca-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font: 600 12px var(--f-num); letter-spacing: 0.08em; color: var(--fg); }
.ca-btn span { font: 500 10px var(--f-num); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--ember-soft); color: var(--ember); }
.ca-btn.live span { text-transform: none; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.ca-btn:hover { border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.04); }
@media (max-width: 560px) {
  .nav-in { gap: 10px; }
  .nav-actions { gap: 6px; }
  .social, .sound-btn { width: 34px; height: 34px; }
  .ca-btn { height: 34px; padding: 0 10px; }
  .ca-btn span { display: none; }
  #walletBtn { padding: 7px 11px; font-size: 12px; }
  .nav-links { gap: 0; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 18px; gap: 8px; }
  .nav-msg { font-size: 13px; }
  .nav-in { gap: 8px; }
  #walletBtn { padding: 7px 9px; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-foot { position: relative; margin-top: 40px; padding-top: 72px; border-top: 1px solid var(--line); overflow: hidden; }
.site-foot::before { content: ""; position: absolute; left: 50%; bottom: -320px; width: 900px; height: 560px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 106, 44, 0.16), transparent); pointer-events: none; }
.site-foot > * { position: relative; }
.sf-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.sf-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sf-brand .wordmark { font-size: 26px; }
.sf-tag { margin: 6px 0 0; font: 600 30px/1.1 var(--f-display); letter-spacing: -0.035em; color: var(--fg); }
.sf-desc { margin: 0; max-width: 44ch; color: var(--muted); font-size: 15px; }
.sf-badge { display: inline-flex; align-items: center; gap: 9px; margin-top: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 12px var(--f-num); color: var(--muted); text-decoration: none; }
.sf-badge:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.24); }
.sf-ca { background: var(--s1); border: 1px solid var(--line-2); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 80px -40px rgba(255, 106, 44, 0.35); }
.sf-label { font: 500 10px var(--f-num); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember); }
.sf-ca-row { display: flex; gap: 8px; align-items: center; }
.sf-ca-row code { flex: 1; min-width: 0; font: 13px var(--f-num); color: var(--fg); background: var(--bg); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-ca p { margin: 0; font-size: 12px; color: var(--faint); }
.sf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.sf-cols div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sf-cols h4 { margin: 0 0 6px; font: 500 10px var(--f-num); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.sf-cols a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color 0.15s, transform 0.2s var(--ease); }
.sf-cols a:hover { color: var(--fg); transform: translateX(2px); }
.sf-legal { margin: 48px 0 0; max-width: 82ch; font-size: 12.5px; line-height: 1.6; color: var(--faint); }
.sf-giant { margin: 40px 0 -0.18em; font: 700 clamp(96px, 22vw, 300px)/0.8 var(--f-display); letter-spacing: -0.07em; text-align: center; background: linear-gradient(180deg, rgba(244, 243, 241, 0.14), rgba(244, 243, 241, 0.015) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }
.sf-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-block: 20px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font: 12px var(--f-num); color: var(--faint); }
.sf-top-btn { background: none; border: 0; padding: 0; font: 12px var(--f-num); color: var(--muted); }
.sf-top-btn:hover { color: var(--ember); }
@media (max-width: 760px) {
  .sf-top { grid-template-columns: 1fr; }
  .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-tag { font-size: 24px; }
}

/* =====================================================================
   HOW IT WORKS — docs layout: sticky contents left, article right
   ===================================================================== */
html { scroll-padding-top: 88px; }
.nav-links a[aria-current="page"] { color: var(--fg); }
#guide { position: relative; z-index: 1; }
.guide { max-width: 1160px; margin: 0 auto; padding: 56px max(20px, env(safe-area-inset-right, 0px)) 96px max(20px, env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; }
.g-toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.g-toc p { margin: 20px 0 6px; padding-left: 12px; font: 500 10px var(--f-num); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.g-toc p:first-child { margin-top: 0; }
.g-toc a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 9px; border-left: 2px solid transparent; transition: color 0.15s, background 0.15s; }
.g-toc a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.03); }
.g-toc a[aria-current] { color: var(--fg); border-left-color: var(--ember); background: rgba(255, 106, 44, 0.06); border-radius: 0 9px 9px 0; }
.g-doc { max-width: 780px; min-width: 0; }
.g-doc section { padding-top: 64px; }
.g-head { padding-bottom: 8px; }
.g-kicker { font: 500 11px var(--f-num); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ember); }
.g-doc h1 { margin: 16px 0 18px; font: 600 clamp(36px, 5vw, 58px)/1.02 var(--f-display); letter-spacing: -0.04em; text-wrap: balance; }
.g-doc h1 em, .g-cta h2 em { font-style: normal; color: var(--ember); }
.g-lede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 60ch; }
.g-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.g-pills span { font: 12px var(--f-num); color: var(--muted); padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.g-doc h2 { margin: 0 0 14px; font: 600 30px/1.15 var(--f-display); letter-spacing: -0.03em; }
.g-doc section > p { margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 66ch; }
.g-doc b { color: var(--fg); font-weight: 600; }
.g-doc code { font: 0.86em var(--f-num); color: var(--fg); background: var(--s2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.g-steps { list-style: none; counter-reset: s; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.g-steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 18px 20px; border-top: 1px solid var(--line); }
.g-steps li:first-child { border-top: 0; }
.g-steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 500 13px var(--f-num); color: var(--ember); padding-top: 2px; }
.g-steps b { font-size: 16px; }
.g-steps span { color: var(--muted); font-size: 15px; line-height: 1.6; }
.g-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.g-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-card { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; min-width: 0; background-image: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 106, 44, 0.08), transparent 60%); }
.g-card h3 { margin: 0 0 6px; font: 600 16px var(--f-display); letter-spacing: -0.01em; }
.g-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.g-card.alert { border-color: rgba(255, 106, 44, 0.2); background-color: rgba(255, 106, 44, 0.035); }
.g-card.alert h3::before { content: "◆ "; color: var(--ember); font-size: 12px; vertical-align: 1px; }
.g-table { border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; margin-bottom: 18px; }
.g-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.g-table th { text-align: left; font: 500 10px var(--f-num); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); background: var(--s1); padding: 12px 18px; border-bottom: 1px solid var(--line); }
.g-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; line-height: 1.55; }
.g-table tr:last-child td { border-bottom: 0; }
.g-table td:first-child { color: var(--fg); white-space: nowrap; }
.g-table .r { text-align: right; font-family: var(--f-num); color: var(--ember); }
.g-table tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
.g-table table.cmd td:first-child code { color: var(--ember); border-color: rgba(255, 106, 44, 0.25); background: rgba(255, 106, 44, 0.06); }
.g-levels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.g-note { font-size: 13.5px !important; color: var(--faint) !important; }
.g-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 16px; }
.g-list li { padding: 14px 20px 14px 44px; position: relative; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
.g-list li:first-child { border-top: 0; }
.g-list li::before { content: ""; position: absolute; left: 20px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px rgba(255, 106, 44, 0.6); }
.g-faq { border-top: 1px solid var(--line); }
.g-faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.g-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font: 500 17px var(--f-display); letter-spacing: -0.01em; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; color: var(--faint); font: 300 24px/1 var(--f-ui); transition: transform 0.2s var(--ease), color 0.2s; }
.g-faq details[open] summary::after { transform: rotate(45deg); color: var(--ember); }
.g-faq details p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 64ch; }
.g-cta { margin-top: 72px; padding: 40px; border: 1px solid var(--line-2); border-radius: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; background: linear-gradient(180deg, rgba(255, 106, 44, 0.07), transparent 70%), var(--s1); box-shadow: 0 40px 120px -50px rgba(255, 106, 44, 0.4); }
.g-cta h2 { margin: 0; font: 600 clamp(26px, 3.4vw, 38px)/1.1 var(--f-display); letter-spacing: -0.035em; }
@media (max-width: 900px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
  .g-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .g-toc p { display: none; }
  .g-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
  .g-toc a[aria-current] { border-radius: 999px; border-color: rgba(255, 106, 44, 0.4); }
  .g-grid, .g-grid.three { grid-template-columns: minmax(0, 1fr); }
  .g-table td:first-child { white-space: normal; }
}

/* =========================================================
   PROFILE PICTURES, SAFETY TOOLS, ENCRYPTED DMs, SOUND
   ========================================================= */
.pfp { --c: var(--muted); width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden; background: var(--c); color: var(--bg); font: 600 12px var(--f-ui); line-height: 1; }
.pfp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfp.xs { width: 20px; height: 20px; font-size: 10px; }
.pfp.sm { width: 24px; height: 24px; font-size: 11px; }
.pfp.md { width: 30px; height: 30px; }
.pfp.lg { width: 38px; height: 38px; font-size: 15px; }
.pfp.xl { width: 76px; height: 76px; font-size: 28px; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 5px var(--ember-soft); }
.dm-peer-ident .pfp { width: 38px; height: 38px; }

.m.has-pfp { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; align-items: start; }
.m.has-pfp > .pfp { margin-top: 1px; }
.m .mb { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m .mmore { background: none; border: 0; color: var(--faint); padding: 0 5px; font-size: 16px; line-height: 1; border-radius: 6px; opacity: 0; transition: opacity .15s; }
.m:hover .mmore, .m .mmore:focus-visible { opacity: 1; }
@media (hover: none) { .m .mmore { opacity: .6; } }
.m .mmore:hover { color: var(--fg); background: var(--s3); }

/* messages that @mention you: warm gold */
:root { --gold: #f5c542; }
.m.me-tag { background: linear-gradient(90deg, rgba(245, 197, 66, .16), rgba(245, 197, 66, .05)); box-shadow: inset 3px 0 0 var(--gold); padding: 8px 10px; border-radius: 12px; }
.m.me-tag p .at { color: var(--gold); }
.m.me-tag.flash { animation: goldflash 1.6s var(--ease); }
@keyframes goldflash { 0% { background-color: rgba(245, 197, 66, .38); } 100% { background-color: transparent; } }

.menu .danger { color: var(--down); }
.menu .danger svg { color: var(--down); }
.m p a.unverified, .bub a.unverified { text-decoration-style: dashed; }
.m p a.unverified::after, .bub a.unverified::after { content: " ↗"; font-size: .85em; }

.nick-btn { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px 3px 3px; }
.nick-btn span { overflow: hidden; text-overflow: ellipsis; }

.bub.flagged { border-color: color-mix(in srgb, var(--warn) 60%, transparent); }
.bub .flag { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--warn); margin-bottom: 6px; white-space: normal; }
.bub .flag svg, .bub .undec svg, .thread-note svg, .thr .t2 svg { width: 12px; height: 12px; vertical-align: -1px; }
.bub .undec { color: var(--muted); font-size: 13px; }
.thread-note svg { margin-right: 3px; }
.thr .blk { font: 10px var(--f-num); color: var(--down); border: 1px solid rgba(255, 95, 86, .35); border-radius: 999px; padding: 0 6px; margin-left: 6px; }
.dm-state { align-self: center; max-width: 440px; text-align: center; font-size: 13px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 14px; padding: 12px 16px; margin-top: 10px; }
.linkish { background: none; border: 0; padding: 0; color: var(--ember); text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }
.dm-gate { max-width: 40ch; }
.dm-gate .lock-ic { width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ember-soft); color: var(--ember); margin-bottom: 16px; }
.dm-gate .lock-ic svg { width: 20px; height: 20px; }
.dm-gate p { margin-bottom: 20px !important; }
.dm-gate .fine { display: block; margin-top: 12px; font: 11px var(--f-num); color: var(--faint); letter-spacing: .04em; }
#dmInput:disabled { opacity: .55; }

.pf-row { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.pf-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-acts small { flex-basis: 100%; font-size: 12px; color: var(--faint); }
.field-l { display: block; font: 11px var(--f-num); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.muted-row { font-size: 13px; color: var(--muted); margin: 14px 0 0 !important; }
.reasons { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.reasons label { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.reasons label:hover { border-color: var(--line-2); }
.reasons label:has(input:checked) { border-color: var(--ember); background: var(--ember-soft); }
.chk { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer; }
dialog .reasons input, dialog .chk input { width: auto; accent-color: var(--ember); margin: 0; }
.link-full { display: block; font: 12px var(--f-num); color: var(--muted); background: var(--s2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }

.sound-btn .off { display: none; }
.sound-btn[aria-pressed="false"] .on { display: none; }
.sound-btn[aria-pressed="false"] .off { display: block; }
.sound-btn[aria-pressed="false"] { color: var(--faint); }
.sound-btn.ring svg { animation: ring .7s var(--ease); transform-origin: 50% 15%; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(7deg); } 80% { transform: rotate(-3deg); } }

/* ---------- coin icon links (room header) */
.coin-icons { display: flex; align-items: center; gap: 6px; }
.coin-icons:empty { display: none; }
.coin-icons .ci { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); transition: color .15s, border-color .15s, background .15s, transform .15s var(--ease); }
.coin-icons .ci svg { width: 15px; height: 15px; }
.coin-icons .ci svg.fill { fill: currentColor; stroke: none; width: 13px; height: 13px; }
.coin-icons .ci:hover, .coin-icons .ci:focus-visible { color: var(--ember); border-color: rgba(255, 106, 44, .45); background: var(--ember-soft); transform: translateY(-1px); }
.coin-icons .ci::after { content: attr(data-label); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -3px); white-space: nowrap; font: 11px var(--f-num); color: var(--fg); background: var(--s3); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 8px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 5; }
.coin-icons .ci:hover::after, .coin-icons .ci:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.ci-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 4px; }
@media (hover: none) { .coin-icons .ci::after { display: none; } }
@media (max-width: 560px) { .coin-icons .ci { width: 30px; height: 30px; } .coin-icons { gap: 5px; } }
@media (max-width: 560px) { .room-bar { column-gap: 12px; } .coin-icons .ci { width: 29px; height: 29px; } .coin-icons { gap: 4px; } .ci-sep { margin: 0 2px; } }

/* ---------- wallet labels (known traders, exchanges, .sol names) */
:root { --gold: #f5c542; --sns: #b9a3ff; --cex: #7cc4ff; }
.wv { display: inline-flex; align-items: center; min-width: 0; }
.wl { display: inline-flex; align-items: center; gap: 4px; font: 600 11.5px var(--f-ui); letter-spacing: 0; white-space: nowrap; }
.wl i { font-style: normal; font-size: 10px; line-height: 1; }
.wl.kol, .wl.trader { color: var(--gold); }
.wl.exchange { color: var(--cex); }
.wl.protocol { color: var(--muted); }
.wl.team { color: var(--ember); }
.wl.scam { color: var(--down); }
.wl.sns { color: var(--sns); font: 500 11.5px var(--f-num); }
.wn { font: 600 11.5px var(--f-ui); color: var(--fg); }
.wallet:has(.wl.kol), .wallet:has(.wl.trader), .m .wb:has(.wl.kol) { border-color: rgba(245, 197, 66, .35); background: rgba(245, 197, 66, .06); }
.wallet:has(.wl.scam) { border-color: rgba(255, 95, 86, .45); background: rgba(255, 95, 86, .07); }
.wallet:has(.wl.exchange) { border-color: rgba(124, 196, 255, .3); }
.m .wb .wl, .m .wb .wn { font-size: 10.5px; }
.menu .mh-l { padding: 0 10px 8px; font-size: 12px; color: var(--muted); line-height: 1.5; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu .mh-l .wl { font-size: 12.5px; }
.m.alert p:has(+ *), .m.alert p { white-space: pre-wrap; }
.g-card.wide { grid-column: 1 / -1; }
.wl.emo i { font-size: 11px; }

/* =========================================================
   WATCHLIST, REPLIES, REACTIONS, IMAGES, HOLDER BADGES,
   KNOWN TRADERS, LEADERBOARD, WALLET PAGE
   ========================================================= */
/* watchlist star */
.star-btn { align-self: center; background: none; border: 0; padding: 4px; margin-left: 2px; color: var(--faint); border-radius: 8px; line-height: 0; transition: color .15s, transform .15s var(--ease); }
.star-btn svg { width: 19px; height: 19px; }
.star-btn:hover { color: var(--gold); transform: scale(1.08); }
.star-btn[aria-pressed="true"] { color: var(--gold); }
.star-btn[aria-pressed="true"] svg { fill: currentColor; }

/* watchlist on home */
.watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.wcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); transition: border-color .15s, transform .2s var(--ease); }
.wcard:hover { border-color: rgba(255, 106, 44, .4); transform: translateY(-2px); }
.wcard .w1 { display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 18px; }
.wcard .w1 > div { min-width: 0; display: flex; flex-direction: column; }
.wcard .w1 b { font: 600 16px var(--f-display); }
.wcard .w1 small { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcard .wu { margin-left: auto; font: 600 11px var(--f-num); color: var(--bg); background: var(--ember); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.wcard .w2 { display: flex; justify-content: space-between; font: 500 15px var(--f-num); }
.wcard .w3 { display: flex; justify-content: space-between; font: 11px var(--f-num); color: var(--muted); }
.wcard .w3 .dot { margin-right: 5px; }
.wcard .unwatch { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: none; color: var(--faint); font-size: 16px; line-height: 1; opacity: 0; transition: opacity .15s; }
.wcard:hover .unwatch, .wcard .unwatch:focus-visible { opacity: 1; }
.wcard .unwatch:hover { color: var(--fg); background: var(--s3); }
@media (hover: none) { .wcard .unwatch { opacity: .6; } }

/* holder badges */
.hb { display: inline-flex; align-items: center; gap: 4px; font: 500 10.5px var(--f-num); border-radius: 999px; padding: 1px 7px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.hb i { font-style: normal; color: var(--faint); margin-left: 2px; }
.hb.whale { color: #7cc4ff; border-color: rgba(124, 196, 255, .35); background: rgba(124, 196, 255, .07); }
.hb.dolphin { color: var(--up); border-color: rgba(61, 220, 132, .3); background: rgba(61, 220, 132, .06); }
.hb.fish { color: var(--text); }
.hb.none { color: var(--faint); border-style: dashed; }
.m header .hb { margin-left: -2px; }

/* message actions (reply, react, more) */
.m header { flex-wrap: wrap; row-gap: 3px; }
.macts { display: inline-flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.m:hover .macts, .macts:focus-within { opacity: 1; }
@media (hover: none) { .macts { opacity: .65; } }
.macts button { background: none; border: 0; padding: 2px 4px; border-radius: 6px; color: var(--faint); line-height: 0; }
.macts button svg { width: 15px; height: 15px; }
.macts button:hover { color: var(--fg); background: var(--s3); }
.macts .mmore { opacity: 1; line-height: 1; font-size: 16px; padding: 0 5px; }
.m .mmore { opacity: 1; }

/* reply quote */
.rq { display: flex; align-items: center; gap: 6px; max-width: 100%; margin: 2px 0 3px; padding: 4px 10px 4px 8px; border: 0; border-left: 2px solid var(--line-2); border-radius: 4px 8px 8px 4px; background: rgba(255, 255, 255, .03); font-size: 12px; color: var(--muted); text-align: left; min-width: 0; }
.rq svg { width: 13px; height: 13px; flex: none; color: var(--faint); }
.rq b { font-weight: 600; color: var(--text); flex: none; }
.rq span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rq:hover { border-left-color: var(--ember); color: var(--text); }
.m.jump { animation: jumpflash 1.6s var(--ease); }
@keyframes jumpflash { 0%, 30% { background-color: rgba(255, 106, 44, .16); } 100% { background-color: transparent; } }

/* images in chat */
.mimg { display: block; margin-top: 6px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--s2); width: min(var(--iw, 260px), 100%); aspect-ratio: var(--ar, 4/3); max-height: 320px; cursor: zoom-in; }
.mimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mimg:hover { border-color: var(--line-2); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(3, 3, 5, .9); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; animation: fade .18s ease-out; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); cursor: default; }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; background: var(--s2); }

/* reactions */
.rxs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.rxs[hidden] { display: none; }
.rx { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--s2); font-size: 13px; line-height: 1.4; transition: border-color .15s, background .15s, transform .1s; }
.rx b { font: 600 11px var(--f-num); color: var(--muted); }
.rx:hover { border-color: var(--line-2); }
.rx:active { transform: scale(.94); }
.rx.on { border-color: rgba(255, 106, 44, .55); background: var(--ember-soft); }
.rx.on b { color: var(--ember); }
.rx-pop { position: fixed; z-index: 55; display: flex; gap: 2px; padding: 5px; background: var(--s2); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .8); }
.rx-pop button { width: 34px; height: 34px; border: 0; background: none; border-radius: 50%; font-size: 18px; line-height: 1; transition: transform .12s var(--ease), background .12s; }
.rx-pop button:hover { background: var(--s3); transform: scale(1.18); }

/* composer: reply bar, image preview, attach */
.pending { display: flex; flex-direction: column; gap: 6px; padding: 8px 18px 0; }
.pending[hidden] { display: none; }
.pend { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border: 1px solid var(--line); border-left: 2px solid var(--ember); border-radius: 10px; background: var(--s2); font-size: 12.5px; min-width: 0; }
.pend .pl { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; flex: none; }
.pend .pl svg { width: 14px; height: 14px; color: var(--ember); }
.pend .pl b { color: var(--fg); }
.pend .pt { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.pend img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.pend button { margin-left: auto; flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 16px; line-height: 1; }
.pend button:hover { background: var(--s3); color: var(--fg); }
.attach { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--s2); color: var(--muted); display: grid; place-items: center; }
.attach:hover { color: var(--fg); border-color: var(--line-2); }
.attach svg { width: 18px; height: 18px; }
.chat.drop::after { content: "Drop the image to attach it"; position: absolute; inset: 8px; border: 2px dashed var(--ember); border-radius: 16px; background: rgba(5, 5, 6, .82); display: grid; place-items: center; font: 600 15px var(--f-ui); color: var(--fg); z-index: 6; pointer-events: none; }
.composer .send:disabled { opacity: .5; }

/* leaderboard */
.board-btn { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px 4px 9px; font: 12px var(--f-num); color: var(--muted); }
.board-btn svg { width: 14px; height: 14px; }
.board-btn:hover, .board-btn[aria-expanded="true"] { color: var(--fg); border-color: var(--line-2); }
.board-btn[aria-expanded="true"] { background: var(--s2); }
.board { max-height: 55%; overflow-y: auto; border-bottom: 1px solid var(--line); padding: 12px 16px 14px; background: var(--s1); }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.board-head b { font: 600 14px var(--f-display); }
.board-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.board h4 { margin: 0 0 6px; font: 500 10.5px var(--f-num); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.board ol { list-style: none; margin: 0; padding: 0; counter-reset: rank; display: flex; flex-direction: column; gap: 2px; }
.board li { counter-increment: rank; display: grid; grid-template-columns: 14px 24px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 4px 2px; font-size: 12.5px; }
.board li::before { content: counter(rank); font: 11px var(--f-num); color: var(--faint); text-align: right; }
.board li:nth-child(1)::before { color: var(--gold); }
.board li.empty-li { display: block; color: var(--faint); font-size: 12px; padding: 4px 0; }
.board li.empty-li::before { content: none; }
.board .bn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.board .bn b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.board .bn .wallet { font-size: 10px; padding: 0 6px; }
.board .bc { font: 600 13px var(--f-num); text-align: right; }
.board .bc small { display: block; font: 10px var(--f-num); color: var(--faint); font-weight: 400; }
.board-note { margin: 10px 0 0; font-size: 11px; color: var(--faint); }
@media (max-width: 420px) { .board-cols { grid-template-columns: 1fr; } }

/* known traders tab */
.tab-n { margin-left: 6px; font: 600 10px var(--f-num); color: var(--bg); background: var(--gold); border-radius: 999px; padding: 1px 6px; vertical-align: 1px; }
.tab-n[hidden] { display: none; }
.hold-cell small { display: block; font-size: 10.5px; color: var(--faint); }

/* wallet page */
#walletView { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 36px var(--gr) 80px var(--gl); }
.wp-loading, .wp-err { padding: 80px 0; text-align: center; color: var(--muted); }
.wp-err h1 { font: 600 32px var(--f-display); color: var(--fg); margin: 0 0 8px; }
.wp-err p { margin: 0 0 22px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--ember); border-radius: 50%; margin-right: 10px; vertical-align: -2px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wp-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
.wp-face { flex: none; line-height: 0; }
.ident.xl { width: 76px; height: 76px; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 5px var(--ember-soft); }
.wp-id { flex: 1; min-width: 240px; }
.wp-id .eyebrow { margin: 0 0 8px; }
.wp-id h1 { margin: 0 0 10px; font: 600 clamp(28px, 4vw, 40px)/1.05 var(--f-display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.wp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.wl-tag { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--f-ui); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.wl-tag small { font-weight: 400; color: var(--faint); font-size: 11px; }
.wl-tag.kol, .wl-tag.trader { color: var(--gold); border-color: rgba(245, 197, 66, .35); background: rgba(245, 197, 66, .06); }
.wl-tag.exchange { color: var(--cex); border-color: rgba(124, 196, 255, .3); }
.wl-tag.scam { color: var(--down); border-color: rgba(255, 95, 86, .45); background: rgba(255, 95, 86, .07); }
.wl-tag.sns { color: var(--sns); font-family: var(--f-num); font-weight: 500; }
.wl-tag.plain { color: var(--muted); font-weight: 400; }
.wl-tag.plain b { color: var(--fg); font-weight: 600; }
.wp-addr { font-size: 12px; overflow-wrap: anywhere; text-align: left; }
.wp-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-acts .btn { display: inline-flex; align-items: center; gap: 7px; }
.wp-acts svg { width: 16px; height: 16px; }
.wp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.wp-card { margin-bottom: 18px; overflow: hidden; }
.wp-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px 18px 10px; flex-wrap: wrap; }
.wp-card-head h2 { margin: 0; font: 600 18px var(--f-display); letter-spacing: -0.02em; }
.wp-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.wp-cols .wp-card { margin-bottom: 0; }
.tk-cell { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.tk-cell span { display: flex; flex-direction: column; min-width: 0; }
.tk-cell b { font-weight: 600; }
.tk-cell small { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.wp-rooms { display: flex; flex-direction: column; padding: 0 10px 12px; }
.wp-rooms .loading { padding: 10px 8px; }
.wp-room { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; }
.wp-room:hover { background: var(--s2); }
.wp-room span { display: flex; flex-direction: column; }
.wp-room small { font: 11px var(--f-num); color: var(--faint); }
.wp-note { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.wp-note.warn { border-color: rgba(245, 165, 36, .4); color: var(--warn); }
@media (max-width: 900px) { .wp-cols { grid-template-columns: 1fr; } .wp-cols .wp-card { margin-bottom: 18px; } .wp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { #walletView { padding-top: 22px; } .wp-head { gap: 14px; } .wp-acts { width: 100%; } }
/* message actions float above the message on hover instead of taking space */
.m { position: relative; }
.macts { position: absolute; top: -13px; right: 6px; z-index: 3; padding: 2px; background: var(--s2); border: 1px solid var(--line-2); border-radius: 9px; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .8); pointer-events: none; }
.m:hover .macts, .macts:focus-within { pointer-events: auto; }
.m.agent .macts, .m.alert .macts { top: -11px; }
@media (hover: none) {
  .macts { position: static; padding: 0; background: none; border: 0; box-shadow: none; pointer-events: auto; opacity: .6; margin-left: 2px; }
}
.msgs > .m:first-child .macts { top: 2px; }
#dmTo.prefilled { border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-soft); }

/* ---------- the Agent: AI answers, thinking indicator, one-tap questions */
.m.agent p { font: 14px/1.55 var(--f-ui); color: var(--text); white-space: pre-wrap; }
.m.agent .rq { background: rgba(255, 106, 44, .05); }
.typing { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 1px solid rgba(255, 106, 44, .2); border-radius: 12px; background: var(--s1); font-size: 12.5px; color: var(--muted); }
.typing b { color: var(--ember); font: 500 11px var(--f-num); letter-spacing: .1em; text-transform: uppercase; margin-right: 4px; }
.typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-of-type(2) { animation-delay: .15s; }
.typing i:nth-of-type(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.ask { display: flex; align-items: center; gap: 6px; padding: 8px 18px 0; overflow-x: auto; scrollbar-width: none; }
.ask::-webkit-scrollbar { display: none; }
.ask-l { flex: none; font: 500 10.5px var(--f-num); letter-spacing: .1em; text-transform: uppercase; color: var(--ember); margin-right: 2px; }
.ask button { flex: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 12px; color: var(--muted); transition: color .15s, border-color .15s, background .15s; }
.ask button:hover { color: var(--fg); border-color: rgba(255, 106, 44, .45); background: var(--ember-soft); }
.m.agent.me-tag { background: var(--s1); box-shadow: inset 3px 0 0 var(--gold); padding: 10px 12px; }

/* ---------- your profile (/profile) */
#profileView { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; padding: 40px var(--gr) 80px var(--gl); }
.pv-head { margin-bottom: 26px; }
.pv-head .eyebrow { margin: 0 0 10px; }
.pv-head h1 { margin: 0 0 8px; font: 600 clamp(30px, 4vw, 42px)/1.05 var(--f-display); letter-spacing: -0.03em; }
.pv-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.pv-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pv-side { display: flex; flex-direction: column; gap: 18px; }
.pv-card { padding: 22px; }
.pv-card h2 { margin: 0 0 12px; font: 600 18px var(--f-display); letter-spacing: -0.02em; }
.pv-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.pv-me { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.pfp.xxl { width: 132px; height: 132px; font-size: 48px; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 7px var(--ember-soft), 0 20px 60px -20px rgba(255, 106, 44, .5); }
.pv-av-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pv-av-acts small, .pv-name small { flex-basis: 100%; font-size: 12px; color: var(--faint); }
.pv-name { width: 100%; max-width: 380px; text-align: left; }
.pv-row { display: flex; gap: 8px; }
.pv-row input { flex: 1; min-width: 0; background: var(--s2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; outline: 0; color: var(--fg); font: inherit; }
.pv-row input:focus { border-color: var(--ember); }
.pv-name small { display: block; margin-top: 6px; }
.pv-preview { width: 100%; max-width: 380px; text-align: left; border-top: 1px solid var(--line); padding-top: 14px; }
.pv-sample { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--s1) 55%, var(--bg)); }
.pv-sample .who { font-weight: 600; font-size: 13px; }
.pv-sample .wb { font: 10px var(--f-num); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; }
.pv-addr .ca { font-size: 12px; overflow-wrap: anywhere; text-align: left; }
.pv-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px !important; }
.pv-line svg { width: 14px; height: 14px; color: var(--ember); }
.pv-line b { color: var(--fg); font-weight: 600; }
.pv-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.pv-toggle span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pv-toggle small { color: var(--faint); font-size: 12px; }
.switch { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--s3); padding: 0; transition: background .2s, border-color .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background .2s; }
.switch[aria-checked="true"] { background: var(--ember); border-color: var(--ember); }
.switch[aria-checked="true"] i { transform: translateX(20px); background: #fff; }
.pv-names { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pv-names li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pv-names li:last-child { border-bottom: 0; }
.pv-names .addr { font: 12px var(--f-num); color: var(--faint); }
.pv-names .linkish { margin-left: auto; font-size: 12px; }
@media (max-width: 860px) { .pv-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { #profileView { padding-top: 24px; } .pv-card { padding: 18px; } }
