/* Meme Copy Lab — a trading desk at night.
   Graphite monitor surfaces stacked a few % apart, chalk-white type, one amber accent (ticker LEDs) for
   "you are here / act here", green and red only for money won and lost. Borders-only depth (dense tool).
   Signature: the bracket bar, where a position sits between its stop and its target. 4px spacing grid. */
:root {
  color-scheme: dark;
  --desk: #0E1013;
  --desk-raised: #15181D;
  --desk-overlay: #1C2027;
  --well: #090B0E;
  --seam: rgba(255, 255, 255, .07);
  --seam-strong: rgba(255, 255, 255, .13);
  --chalk: #E7E9EC;
  --chalk-2: #A9B0B9;
  --chalk-3: #757D88;
  --chalk-4: #4C535C;
  --amber: #E9A23B;
  --amber-ink: #1A1206;
  --amber-wash: rgba(233, 162, 59, .12);
  --gain: #3DB17E;
  --gain-wash: rgba(61, 177, 126, .12);
  --loss: #E0564E;
  --loss-wash: rgba(224, 86, 78, .12);
  --r-control: 8px;
  --r-panel: 12px;
  --r-sheet: 16px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --nav-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--desk); color: var(--chalk); font: 400 14px/1.5 var(--font); font-variant-numeric: tabular-nums; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.gain { color: var(--gain); } .loss { color: var(--loss); } .mute { color: var(--chalk-3); } .soft { color: var(--chalk-2); }

/* ---------- shell ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(14, 16, 19, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--seam); padding-top: env(safe-area-inset-top); }
.bar-in { max-width: 1120px; margin: 0 auto; height: 56px; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 22px; height: 22px; color: var(--amber); }
.tabs { display: flex; gap: 4px; height: 100%; }
.tabs a { display: flex; align-items: center; padding: 0 12px; text-decoration: none; color: var(--chalk-3); font-weight: 500; border-bottom: 2px solid transparent; transition: color .15s var(--ease); }
.tabs a:hover { color: var(--chalk); }
.tabs a[aria-current="page"] { color: var(--chalk); border-bottom-color: var(--amber); }
.status { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--seam-strong); font-size: 12.5px; font-weight: 500; color: var(--chalk-2); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--gain); }
.chip.paused i { background: var(--amber); }
.chip.down i { background: var(--loss); }
.paper { font-size: 12px; color: var(--chalk-3); white-space: nowrap; }

main { max-width: 1120px; margin: 0 auto; padding: 24px 20px calc(48px + env(safe-area-inset-bottom)); }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.view-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.view-head p { color: var(--chalk-3); margin-top: 4px; }

.dock { display: none; }
@media (max-width: 760px) {
  .tabs { display: none; }
  .bar-in { padding: 0 16px; gap: 12px; }
  .paper { display: none; }
  main { padding: 20px 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); }
  .dock { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 6px 8px env(safe-area-inset-bottom); background: rgba(14, 16, 19, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--seam); }
  .dock a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; min-height: 52px; text-decoration: none; color: var(--chalk-3); font-size: 11px; font-weight: 500; }
  .dock a svg { width: 22px; height: 22px; }
  .dock a[aria-current="page"] { color: var(--amber); }
}

/* ---------- surfaces ---------- */
.panel { background: var(--desk-raised); border: 1px solid var(--seam); border-radius: var(--r-panel); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--seam); }
.panel-head h2 { font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .panel-head { flex-wrap: wrap; row-gap: 2px; } }
.panel-head .mute { font-size: 12.5px; }
.panel-body { padding: 16px; }
.stack { display: grid; gap: 16px; }

/* ---------- overview ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 20px 20px 8px; }
.hero .k { color: var(--chalk-3); font-weight: 500; }
.hero .v { font-size: 44px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.hero .d { font-size: 15px; font-weight: 500; }
.ranges { display: flex; gap: 2px; padding: 2px; background: var(--well); border: 1px solid var(--seam); border-radius: var(--r-control); }
.ranges button { height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--chalk-3); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.ranges button[aria-pressed="true"] { background: var(--desk-overlay); color: var(--chalk); }
.curve { display: block; width: 100%; height: 220px; }
.curve .base { stroke: var(--chalk-4); stroke-dasharray: 3 4; }
.curve .line { fill: none; stroke: var(--chalk); stroke-width: 1.75; stroke-linejoin: round; }
.curve .fill-up { fill: url(#gUp); } .curve .fill-down { fill: url(#gDown); }
.curve .tick { font: 500 11px var(--font); fill: var(--chalk-3); }
.curve .now { fill: var(--amber); }
.curve-wrap { position: relative; padding: 0 8px 8px; }
.curve-tip { position: absolute; top: 4px; pointer-events: none; background: var(--desk-overlay); border: 1px solid var(--seam-strong); border-radius: 6px; padding: 4px 8px; font-size: 12px; white-space: nowrap; transform: translateX(-50%); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--seam); }
.figures div { padding: 14px 20px; border-left: 1px solid var(--seam); min-width: 0; }
.figures div:first-child { border-left: 0; }
.figures dt { color: var(--chalk-3); font-size: 12.5px; font-weight: 500; }
.figures dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.figures small { display: block; color: var(--chalk-3); font-size: 12px; font-weight: 400; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
@media (max-width: 960px) { .ov-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .hero { padding: 16px 16px 4px; } .hero .v { font-size: 38px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures div:nth-child(3) { border-left: 0; } .figures div:nth-child(n+3) { border-top: 1px solid var(--seam); }
  .figures div { padding: 12px 16px; } .curve { height: 180px; }
}

/* ---------- position / trade rows ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--seam); cursor: pointer; transition: background-color .12s var(--ease); }
.row:first-child { border-top: 0; }
.row:hover { background: rgba(255, 255, 255, .02); }
.row:active { background: rgba(255, 255, 255, .035); }
.row .sym { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sym small { color: var(--chalk-3); font-weight: 400; font-size: 12.5px; margin-left: 6px; }
.row .amt { text-align: right; font-weight: 600; font-size: 15px; }
.row .sub { color: var(--chalk-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub-r { color: var(--chalk-3); font-size: 12.5px; text-align: right; white-space: nowrap; }
.row .bracket { grid-column: 1 / -1; margin-top: 8px; }
.empty { padding: 28px 16px; text-align: center; color: var(--chalk-3); }
.empty b { display: block; color: var(--chalk-2); font-weight: 500; margin-bottom: 2px; }

/* signature: the bracket bar — stop on the left, target on the right, entry tick, live marker */
.bracket { position: relative; height: 26px; }
.bracket .rail { position: absolute; left: 0; right: 0; top: 6px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--loss-wash), transparent var(--z), transparent var(--z), var(--gain-wash)); box-shadow: inset 0 0 0 1px var(--seam); }
.bracket .fillbar { position: absolute; top: 6px; height: 4px; border-radius: 2px; }
.bracket .entry { position: absolute; top: 2px; width: 1px; height: 12px; background: var(--chalk-3); }
.bracket .mark { position: absolute; top: 2px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--desk-raised); border: 2px solid var(--amber); }
.bracket .lab { position: absolute; top: 15px; font-size: 11px; color: var(--chalk-4); white-space: nowrap; }

/* ---------- activity tape ---------- */
.tape { list-style: none; margin: 0; padding: 4px 0; max-height: 520px; overflow: auto; }
.tape li { display: grid; grid-template-columns: 64px 8px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 16px; font-size: 13px; }
.tape time { color: var(--chalk-4); font-size: 12px; white-space: nowrap; }
.tape i { width: 6px; height: 6px; border-radius: 50%; background: var(--chalk-4); align-self: center; }
.tape .buy i { background: var(--amber); } .tape .sell.won i { background: var(--gain); } .tape .sell.lost i { background: var(--loss); }
.tape span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--chalk-2); }
.tape b { font-weight: 600; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-control); border: 1px solid var(--seam-strong); background: var(--desk-overlay); color: var(--chalk); font-weight: 500; cursor: pointer; white-space: nowrap; transition: transform .12s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease); }
.btn:hover { border-color: rgba(255, 255, 255, .2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); font-weight: 600; }
.btn.primary:hover { background: #F0AE4C; }
.btn.danger { color: var(--loss); }
.btn.danger.solid { background: var(--loss); border-color: var(--loss); color: #fff; }
.btn.ghost { background: none; border-color: transparent; color: var(--chalk-2); }
.btn.ghost:hover { color: var(--chalk); background: rgba(255, 255, 255, .04); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; height: 44px; }
.seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--well); border: 1px solid var(--seam); border-radius: var(--r-control); }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--chalk-3); font-weight: 500; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--desk-overlay); color: var(--chalk); box-shadow: 0 0 0 1px var(--seam); }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 500; color: var(--chalk-2); font-size: 13px; }
.field small { color: var(--chalk-3); font-size: 12px; }
.input { height: 40px; width: 100%; padding: 0 12px; border-radius: var(--r-control); border: 1px solid var(--seam-strong); background: var(--well); outline: none; transition: border-color .15s var(--ease); }
.input:focus { border-color: var(--amber); }
.input-wrap { position: relative; }
.input-wrap .unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--chalk-3); pointer-events: none; }
.input-wrap .pre { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--chalk-3); pointer-events: none; }
.input-wrap .pre + .input { padding-left: 24px; }
.switch { position: relative; width: 40px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; inset: -10px; opacity: 0; cursor: pointer; margin: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--desk-overlay); border: 1px solid var(--seam-strong); transition: background-color .15s var(--ease); pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--chalk-3); transition: transform .18s var(--ease), background-color .15s; }
.switch input:checked + span { background: var(--amber); border-color: var(--amber); }
.switch input:checked + span::after { transform: translateX(16px); background: var(--amber-ink); }
.switch input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.line-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--seam); }
.line-item:first-child { border-top: 0; }
.line-item b { display: block; font-weight: 500; }
.line-item small { display: block; color: var(--chalk-3); font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- trades view ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.totals { display: flex; gap: 8px 24px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--seam); font-size: 13px; color: var(--chalk-3); }
.totals b { color: var(--chalk); font-weight: 600; font-size: 14px; margin-left: 6px; }
.trade-row { grid-template-columns: 66px minmax(0, 1fr) auto; }
.trade-row time { color: var(--chalk-3); font-size: 12.5px; white-space: nowrap; grid-row: span 2; align-self: start; padding-top: 2px; }
.trade-row .bracket { grid-column: 2 / -1; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 500; padding: 1px 7px; border-radius: 999px; background: var(--desk-overlay); color: var(--chalk-2); margin-left: 6px; vertical-align: 1px; }
.badge.open { background: var(--amber-wash); color: var(--amber); }

/* ---------- wallets view ---------- */
.wallet { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 16px; border-top: 1px solid var(--seam); align-items: center; }
.wallet:first-child { border-top: 0; }
.wallet .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wallet .who b { font-weight: 600; }
.wallet .addr { color: var(--chalk-3); font-size: 12.5px; background: none; border: 0; padding: 0; cursor: pointer; }
.wallet .addr:hover { color: var(--chalk-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--chalk-4); }
.pulse.hot { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-wash); }
.pulse.warm { background: var(--chalk-2); }
.pulse.off { background: transparent; border: 1.5px solid var(--chalk-4); }
.wallet .nums { grid-column: 1 / -1; display: flex; gap: 6px 20px; flex-wrap: wrap; color: var(--chalk-3); font-size: 12.5px; }
.wallet .nums b { color: var(--chalk-2); font-weight: 500; }
.wallet.disabled .who b { color: var(--chalk-3); }

/* ---------- sheet (details / confirm) ---------- */
dialog { border: 1px solid var(--seam-strong); border-radius: var(--r-sheet); background: var(--desk-overlay); color: var(--chalk); padding: 0; width: min(480px, calc(100% - 32px)); max-height: calc(100% - 48px); }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
dialog[open] { animation: rise .22s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--seam); }
.sheet-head h2 { font-size: 18px; font-weight: 600; }
.sheet-head p { color: var(--chalk-3); margin-top: 2px; }
.sheet-body { padding: 16px 20px 20px; display: grid; gap: 16px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.kv dt { color: var(--chalk-3); font-size: 12.5px; }
.kv dd { margin: 2px 0 0; font-weight: 500; }
@media (max-width: 760px) {
  dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  dialog[open] { animation: up .26s var(--ease); }
  @keyframes up { from { transform: translateY(24px); opacity: 0; } }
}

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
@media (max-width: 760px) { .toasts { bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); } }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--desk-overlay); border: 1px solid var(--seam-strong); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); animation: rise .22s var(--ease); }
.toast i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--chalk-3); }
.toast.buy i { background: var(--amber); } .toast.won i { background: var(--gain); } .toast.lost i, .toast.err i { background: var(--loss); }
.toast b { display: block; font-weight: 600; }
.toast span { color: var(--chalk-2); font-size: 13px; }

/* ---------- login ---------- */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.gate form { width: min(380px, 100%); display: grid; gap: 16px; }
.gate .brand { font-size: 17px; margin-bottom: 8px; }
.gate h1 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.gate p { color: var(--chalk-3); }
.err { color: var(--loss); font-size: 13px; min-height: 1.5em; }

.callout { padding: 12px 14px; border-radius: 10px; background: var(--amber-wash); color: var(--chalk-2); font-size: 13px; }
.callout b { color: var(--amber); font-weight: 600; }
.skel { color: transparent !important; background: var(--desk-overlay); border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-property: color, background-color, border-color, opacity !important; }
}

/* ---------- the brain (overview hero) ---------- */
.stage { position: relative; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-radius: var(--r-panel) var(--r-panel) 0 0; }
.neural { position: absolute; inset: 0; }
.neural canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.neural canvas:active { cursor: grabbing; }
.stage::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(21, 24, 29, .9) 0%, rgba(21, 24, 29, .5) 30%, rgba(21, 24, 29, 0) 52%); }
.stage .hero { position: static; pointer-events: none; max-width: 520px; }
.stage .hero > * { position: relative; z-index: 2; }
.stage .hero .ranges { pointer-events: auto; position: absolute; top: 20px; right: 20px; z-index: 3; }
.stage .hero > div:first-child { display: block !important; position: static; }
.stage .hero .k { position: relative; z-index: 2; }
.stage-key { position: relative; z-index: 2; pointer-events: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 20px 14px; font-size: 12px; color: var(--chalk-2); }
.stage-key i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.k-core { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.k-hot { background: #F3C27A; } .k-cold { background: var(--chalk-3); }
.neural-tip { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 12px)); background: var(--desk-overlay); border: 1px solid var(--seam-strong); border-radius: 6px; padding: 4px 8px; font-size: 12px; white-space: nowrap; pointer-events: none; }
.stage + .curve-wrap { border-top: 1px solid var(--seam); padding-top: 8px; }
@media (max-width: 760px) {
  .stage { min-height: 420px; }
  .stage::before { background: linear-gradient(180deg, rgba(21, 24, 29, .9) 0%, rgba(21, 24, 29, .35) 38%, transparent 60%, rgba(21, 24, 29, .7) 100%); }
  .stage .hero .ranges { display: none; }
}

/* ---------- galaxy (full-bleed) ---------- */
body.gx-mode main { max-width: none; padding: 0; }
.gx { position: fixed; left: 0; right: 0; top: calc(57px + env(safe-area-inset-top)); bottom: 0; overflow: hidden; background: #0B1020; }
.gx-canvas { position: absolute; inset: 0; }
.gx-canvas canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.gx-labels { position: absolute; inset: 0; pointer-events: none; }
.gx-label { position: absolute; left: 0; top: 0; pointer-events: auto; margin: 10px 0 0 10px; display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(10, 14, 26, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--chalk); font: 500 12px var(--font); white-space: nowrap; cursor: pointer; transition: border-color .15s var(--ease); }
.gx-label:hover { border-color: rgba(255, 255, 255, .28); }
.gx-label i { width: 7px; height: 7px; border-radius: 50%; align-self: center; }
.gx-label small { color: var(--chalk-3); font-size: 11px; }
.gx-coin { position: absolute; left: 0; top: 0; margin: -22px 0 0 8px; font: 500 11px var(--font); color: rgba(231, 233, 236, .82); text-shadow: 0 1px 3px #000; white-space: nowrap; }
.glass { background: rgba(14, 18, 30, .62); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.gx h2 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.gx-crumbs { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 4px 10px 4px 4px; font-size: 13px; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; }
.gx-crumbs .crumb { background: none; border: 0; padding: 4px 6px; color: var(--chalk-2); cursor: pointer; border-radius: 6px; }
.gx-crumbs .crumb:hover { color: var(--chalk); background: rgba(255, 255, 255, .05); }
.gx-crumbs .crumb.on { color: var(--chalk); font-weight: 600; cursor: default; }
.gx-crumbs .sep { color: var(--chalk-4); }
.gx-left { position: absolute; left: 16px; top: 14px; bottom: 88px; width: 280px; padding: 14px; display: flex; flex-direction: column; }
.gx-left .mute { font-size: 12px; margin-bottom: 10px; }
.gx-feed { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; display: grid; align-content: start; gap: 2px; }
.gx-feed li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; }
.gx-feed li.buy { background: rgba(233, 162, 59, .07); }
.gx-feed time { color: var(--chalk-4); white-space: nowrap; }
.gx-feed span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--chalk-2); }
.gx-feed b { color: var(--chalk); font-weight: 600; }
.gx-right { position: absolute; right: 16px; top: 14px; bottom: 88px; width: 260px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.gx-kv { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.gx-kv dt { color: var(--chalk-3); font-size: 11.5px; }
.gx-kv dd { margin: 1px 0 0; font-size: 13px; font-weight: 500; }
.gx-wallets { list-style: none; margin: -6px 0 0; padding: 0; overflow: auto; flex: 1; }
.gx-wallets button { width: 100%; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 0 8px; align-items: baseline; text-align: left; background: none; border: 0; border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.gx-wallets button:hover { background: rgba(255, 255, 255, .05); }
.gx-wallets i { width: 8px; height: 8px; border-radius: 50%; align-self: center; grid-row: span 2; }
.gx-wallets b { font-weight: 600; font-size: 13px; }
.gx-wallets span { color: var(--chalk-3); font-size: 11.5px; }
.gx-bottom { position: absolute; left: 50%; transform: translateX(-50%); bottom: 16px; display: flex; gap: 28px; padding: 12px 22px; white-space: nowrap; }
.gx-bottom span { display: block; color: var(--chalk-3); font-size: 11.5px; }
.gx-bottom b { font-size: 15px; font-weight: 600; }
.gx-orb { position: absolute; right: 22px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(233, 162, 59, .35); background: radial-gradient(circle, rgba(233, 162, 59, .25), rgba(14, 18, 30, .7) 70%); cursor: default; display: grid; place-items: center; }
.gx-orb span { width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 18px var(--amber); }
.gx-orb::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; }
.gx-orb.beat::after { animation: beat 1.2s var(--ease); }
@keyframes beat { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.8); } }
.gx-card { position: absolute; width: 280px; padding: 14px; display: grid; gap: 12px; z-index: 5; }
.gx-card-head { display: flex; justify-content: space-between; gap: 8px; }
.gx-card-head b { display: block; font-size: 16px; font-weight: 600; }
.gx-card-head span { color: var(--chalk-3); font-size: 12px; }
@media (max-width: 1100px) { .gx-left { display: none; } }
@media (max-width: 760px) {
  .gx { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
  .gx-right { top: auto; bottom: 74px; left: 12px; right: 12px; width: auto; max-height: 34%; padding: 12px; }
  .gx-right > div { display: none; }
  .gx-bottom { left: 12px; right: 12px; transform: none; bottom: 10px; justify-content: space-between; gap: 10px; padding: 10px 14px; }
  .gx-bottom div:nth-child(4) { display: none; }
  .gx-orb { display: none; }
  .gx-crumbs { top: 10px; }
  .gx-card { left: 12px !important; right: 12px; top: 56px !important; width: auto; }
  .toasts { bottom: calc(var(--nav-h) + 90px + env(safe-area-inset-bottom)); }
}
